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:
@@ -67,6 +67,8 @@ MenuComponent::~MenuComponent(){
|
||||
|
||||
void MenuComponent::AfterCreate(){}
|
||||
|
||||
void MenuComponent::BeforeUpdate(Crawler*game){}
|
||||
|
||||
void MenuComponent::Update(Crawler*game){
|
||||
if(hovered){
|
||||
hoverEffect=std::min("ThemeGlobal.HighlightTime"_F,hoverEffect+game->GetElapsedTime());
|
||||
|
||||
Reference in New Issue
Block a user