This commit is contained in:
Lasercar 2025-04-05 05:26:45 +10:00 committed by GitHub
commit 7936072948
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions
source/funkin/ui

View file

@ -173,6 +173,12 @@ class MenuTypedList<T:MenuListItem> extends FlxTypedGroup<T>
}
}
public function cancelAccept()
{
FlxFlicker.stopFlickering(members[selectedIndex]);
busy = false;
}
public function selectItem(index:Int)
{
members[selectedIndex].idle();

View file

@ -307,6 +307,9 @@ class MainMenuState extends MusicBeatState
{
persistentUpdate = false;
// Cancel the currently flickering menu item because it's about to call a state switch
if (menuItems.busy) menuItems.cancelAccept();
FlxG.state.openSubState(new DebugMenuSubState());
}