mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-21 19:31:52 -04:00
Merge e0b40ec0f4
into d31ef12363
This commit is contained in:
commit
7936072948
2 changed files with 9 additions and 0 deletions
source/funkin/ui
|
@ -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();
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue