Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main menu - Cancel state change on debug menu open #4211

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Cancel state change on debug menu
  • Loading branch information
Lasercar committed Feb 23, 2025
commit 1d70f9f5d6605ae9305597db35b2d1e49c5821b7
4 changes: 4 additions & 0 deletions source/funkin/ui/mainmenu/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class MainMenuState extends MusicBeatState
FlxG.camera.follow(camFollow, null, 0.06);

if (snap) FlxG.camera.snapToTarget();
if (menuItems.busy) menuItems.busy = false;
}

function createMenuItem(name:String, atlas:String, callback:Void->Void, fireInstantly:Bool = false):Void
Expand Down Expand Up @@ -353,6 +354,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) FlxFlicker.stopFlickering(menuItems.members[menuItems.selectedIndex]);

FlxG.state.openSubState(new DebugMenuSubState());
}

Expand Down
Loading