Added row item display button components.
This commit is contained in:
@@ -121,6 +121,7 @@ void MenuComponent::DrawDecal(ViewPort&window,bool focused){
|
||||
case CROSSHAIR:drawutil::DrawCrosshairDecalViewPort(window,{rect.pos+V(A::DRAW_OFFSET),rect.size},0);break;
|
||||
case INNER_BOX:window.DrawRectDecal(rect.pos+V(A::DRAW_OFFSET)+vi2d{1,1},rect.size-vi2d{2,2});break;
|
||||
case HIGHLIGHT:break;//Not used.
|
||||
case SelectionType::NONE:break;//Displays nothing.
|
||||
default:ERR("Undefined selection type selected: "<<int(selectionType));
|
||||
}
|
||||
}
|
||||
@@ -205,7 +206,6 @@ void MenuComponent::OnMouseOut(){};
|
||||
void MenuComponent::OnHover(){};
|
||||
|
||||
void MenuComponent::_OnMouseOut(){
|
||||
if(name=="Equip Item 2"){std::cout<<std::boolalpha<<hoverState<<","<<hovered<<","<<runHoverFunctions<<std::endl;}
|
||||
if(!hovered){
|
||||
if(runHoverFunctions){
|
||||
if(hoverState){
|
||||
|
||||
Reference in New Issue
Block a user