mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-23 23:28:52 +01:00
Changed menu tween precidence
This commit is contained in:
parent
be1cd8165c
commit
ad0abe779e
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user