mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-03-25 13:23:01 +01:00
Changed menu tween precidence
This commit is contained in:
@@ -201,6 +201,12 @@ void Component::Update(float dt)
|
||||
EnterRequested = false;
|
||||
NewItemSelected = false;
|
||||
}
|
||||
else if(MenuExitRequested)
|
||||
{
|
||||
MenuExitRequested = false;
|
||||
CurrentTweens = Tweens->GetTween("menuExit", MenuExitIndex);
|
||||
CurrentAnimationState = MENU_EXIT;
|
||||
}
|
||||
else if(MenuEnterRequested)
|
||||
{
|
||||
MenuEnterRequested = false;
|
||||
@@ -213,12 +219,6 @@ void Component::Update(float dt)
|
||||
CurrentTweens = Tweens->GetTween("menuScroll", MenuEnterIndex);
|
||||
CurrentAnimationState = MENU_SCROLL;
|
||||
}
|
||||
else if(MenuExitRequested)
|
||||
{
|
||||
MenuExitRequested = false;
|
||||
CurrentTweens = Tweens->GetTween("menuExit", MenuExitIndex);
|
||||
CurrentAnimationState = MENU_EXIT;
|
||||
}
|
||||
else if(IsScrollActive() || NewItemSelected || ExitRequested)
|
||||
{
|
||||
CurrentTweens = Tweens->GetTween("highlightExit", MenuEnterIndex);
|
||||
|
||||
Reference in New Issue
Block a user