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
@@ -255,13 +255,13 @@ void Menu::Update(Crawler*game){
for(auto&[key,value]:buttons){
for(auto&button:value){
if(button->renderInMain){
button->BeforeUpdate(game);
button->_BeforeUpdate(game);
}
}
}
for(auto&component:displayComponents){
if(component->renderInMain){
component->BeforeUpdate(game);
component->_BeforeUpdate(game);
}
}
for(auto&[key,value]:buttons){