mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-15 08:25:31 -04:00
menu back sounds on all menus
This commit is contained in:
parent
366b6242c0
commit
f7bb96c49c
2 changed files with 4 additions and 0 deletions
source
|
@ -234,6 +234,7 @@ class FreeplayState extends MusicBeatState
|
|||
|
||||
if (controls.BACK)
|
||||
{
|
||||
FlxG.sound.play(Paths.sound('cancelMenu'));
|
||||
FlxG.switchState(new MainMenuState());
|
||||
}
|
||||
|
||||
|
|
|
@ -137,7 +137,10 @@ class Page extends FlxGroup
|
|||
function updateEnabled(elapsed:Float)
|
||||
{
|
||||
if (canExit && controls.BACK)
|
||||
{
|
||||
FlxG.sound.play(Paths.sound('cancelMenu'));
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
function set_enabled(value:Bool)
|
||||
|
|
Loading…
Add table
Reference in a new issue