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