mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-21 19:31:52 -04:00
[BUGFIX] Fixed cancelMenu
sound not playing after switching state.
This commit is contained in:
parent
242ab6e922
commit
34a19ef583
3 changed files with 3 additions and 3 deletions
source/funkin/ui
|
@ -412,8 +412,8 @@ class MainMenuState extends MusicBeatState
|
|||
|
||||
if (controls.BACK && menuItems.enabled && !menuItems.busy)
|
||||
{
|
||||
FunkinSound.playOnce(Paths.sound('cancelMenu'));
|
||||
FlxG.switchState(() -> new TitleState());
|
||||
FunkinSound.playOnce(Paths.sound('cancelMenu'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -145,8 +145,8 @@ class Page extends FlxGroup
|
|||
{
|
||||
if (canExit && controls.BACK)
|
||||
{
|
||||
FunkinSound.playOnce(Paths.sound('cancelMenu'));
|
||||
exit();
|
||||
FunkinSound.playOnce(Paths.sound('cancelMenu'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -390,9 +390,9 @@ class StoryMenuState extends MusicBeatState
|
|||
|
||||
if (controls.BACK && !exitingMenu && !selectedLevel)
|
||||
{
|
||||
FunkinSound.playOnce(Paths.sound('cancelMenu'));
|
||||
exitingMenu = true;
|
||||
FlxG.switchState(() -> new MainMenuState());
|
||||
FunkinSound.playOnce(Paths.sound('cancelMenu'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue