From f7bb96c49c08e1bc626454ccd3c8ab43162858b0 Mon Sep 17 00:00:00 2001 From: MtH Date: Thu, 15 Apr 2021 16:19:02 +0200 Subject: [PATCH] menu back sounds on all menus --- source/FreeplayState.hx | 1 + source/ui/OptionsState.hx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index fccfcc440..05eb6e2b7 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -234,6 +234,7 @@ class FreeplayState extends MusicBeatState if (controls.BACK) { + FlxG.sound.play(Paths.sound('cancelMenu')); FlxG.switchState(new MainMenuState()); } diff --git a/source/ui/OptionsState.hx b/source/ui/OptionsState.hx index da51df269..ce28f5a31 100644 --- a/source/ui/OptionsState.hx +++ b/source/ui/OptionsState.hx @@ -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)