Add a BeforeUpdate event for components to handle mouse out events (specifically for equip item slots showing stat differences.) Corrects a bug with stat differences not refreshing on mouse out.
This commit is contained in:
@@ -292,6 +292,18 @@ void Menu::Update(Crawler*game){
|
||||
}
|
||||
|
||||
KeyboardButtonNavigation(game,pos);
|
||||
for(auto&[key,value]:buttons){
|
||||
for(auto&button:value){
|
||||
if(button->renderInMain){
|
||||
button->BeforeUpdate(game);
|
||||
}
|
||||
}
|
||||
}
|
||||
for(auto&component:displayComponents){
|
||||
if(component->renderInMain){
|
||||
component->BeforeUpdate(game);
|
||||
}
|
||||
}
|
||||
for(auto&[key,value]:buttons){
|
||||
for(auto&button:value){
|
||||
if(button->renderInMain){
|
||||
|
||||
Reference in New Issue
Block a user