Hover functionality moved out to MenuComponent so any component can utilize them.

This commit is contained in:
2023-12-16 21:28:41 -06:00
parent 025a89788e
commit ac0f5c42aa
11 changed files with 222 additions and 79 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ void Menu::InitializeCharacterMenuWindow(){
Menu*characterMenuWindow=CreateMenu(CHARACTER_MENU,CENTERED,windowSize);
characterMenuWindow->ADD("Character Label",MenuLabel)({{0,-4},{float(windowSize.x)-1,24}},"Character",2,ComponentAttr::SHADOW|ComponentAttr::OUTLINE|ComponentAttr::BACKGROUND)END;
characterMenuWindow->ADD("Equip Slot Outline",MenuComponent)({{0,28},{120,windowSize.y-48}},"",DO_NOTHING,ButtonAttr::UNSELECTABLE)END;
characterMenuWindow->ADD("Equip Slot Outline",MenuComponent)({{0,28},{120,windowSize.y-37}},"",DO_NOTHING,ButtonAttr::UNSELECTABLE)END;
characterMenuWindow->ADD("Character Rotating Display",CharacterRotatingDisplay)({{135,28},{90,windowSize.y-48}},GFX[classutils::GetClassInfo(game->GetPlayer()->GetClassName()).classFullImgName].Decal())END;
const static std::array<ItemAttribute,7>displayAttrs{
@@ -90,7 +90,7 @@ void Menu::InitializeCharacterMenuWindow(){
}
equipmentWindowOpened=false;
return true;
})END;
})DEPTH 0 END;
equipSelectionSelectButton->Enable(false);