1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-28 15:57:42 +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)
{
FlxG.sound.play(Paths.sound('cancelMenu'));
FlxG.switchState(new MainMenuState());
}

View file

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