1
0
Fork 0
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:
MtH 2021-04-15 16:19:02 +02:00
parent 366b6242c0
commit f7bb96c49c
2 changed files with 4 additions and 0 deletions

View file

@ -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());
} }

View file

@ -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)