Hover functionality moved out to MenuComponent so any component can utilize them.
This commit is contained in:
+2
-2
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user