mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-06-06 19:06:48 +02:00
Menu exit tweens were not using the proper index
This commit is contained in:
@@ -216,7 +216,7 @@ void Component::Update(float dt)
|
|||||||
else if(MenuExitRequested)
|
else if(MenuExitRequested)
|
||||||
{
|
{
|
||||||
MenuExitRequested = false;
|
MenuExitRequested = false;
|
||||||
CurrentTweens = Tweens->GetTween("menuExit", MenuEnterIndex);
|
CurrentTweens = Tweens->GetTween("menuExit", MenuExitIndex);
|
||||||
CurrentAnimationState = MENU_EXIT;
|
CurrentAnimationState = MENU_EXIT;
|
||||||
}
|
}
|
||||||
else if(IsScrollActive() || NewItemSelected || ExitRequested)
|
else if(IsScrollActive() || NewItemSelected || ExitRequested)
|
||||||
@@ -276,7 +276,7 @@ void Component::Update(float dt)
|
|||||||
}
|
}
|
||||||
else if(MenuExitRequested)
|
else if(MenuExitRequested)
|
||||||
{
|
{
|
||||||
CurrentTweens = Tweens->GetTween("menuExit", MenuEnterIndex);
|
CurrentTweens = Tweens->GetTween("menuExit", MenuExitIndex);
|
||||||
CurrentAnimationState = MENU_EXIT;
|
CurrentAnimationState = MENU_EXIT;
|
||||||
MenuExitRequested = false;
|
MenuExitRequested = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user