mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-27 20:40:31 +00:00
menu back sounds on all menus
This commit is contained in:
parent
366b6242c0
commit
f7bb96c49c
|
@ -234,6 +234,7 @@ class FreeplayState extends MusicBeatState
|
||||||
|
|
||||||
if (controls.BACK)
|
if (controls.BACK)
|
||||||
{
|
{
|
||||||
|
FlxG.sound.play(Paths.sound('cancelMenu'));
|
||||||
FlxG.switchState(new MainMenuState());
|
FlxG.switchState(new MainMenuState());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,10 @@ class Page extends FlxGroup
|
||||||
function updateEnabled(elapsed:Float)
|
function updateEnabled(elapsed:Float)
|
||||||
{
|
{
|
||||||
if (canExit && controls.BACK)
|
if (canExit && controls.BACK)
|
||||||
|
{
|
||||||
|
FlxG.sound.play(Paths.sound('cancelMenu'));
|
||||||
exit();
|
exit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_enabled(value:Bool)
|
function set_enabled(value:Bool)
|
||||||
|
|
Loading…
Reference in a new issue