From 2904e660e99bcc6ed841d85e5a5cf78e29fa7fc9 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Thu, 5 Jun 2025 18:59:58 -0400 Subject: [PATCH] Add confirmation sound and animation before transitioning to Chart Editor in Freeplay --- source/funkin/ui/freeplay/FreeplayState.hx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/source/funkin/ui/freeplay/FreeplayState.hx b/source/funkin/ui/freeplay/FreeplayState.hx index 380427dfb..e77fbb78c 100644 --- a/source/funkin/ui/freeplay/FreeplayState.hx +++ b/source/funkin/ui/freeplay/FreeplayState.hx @@ -1655,12 +1655,17 @@ class FreeplayState extends MusicBeatSubState changeSelection(0); targetSongID = grpCapsules.members[curSelected]?.freeplayData?.data.id ?? 'unknown'; } - FlxG.switchState(() -> new ChartEditorState( - { - targetSongId: targetSongID, - targetSongDifficulty: currentDifficulty, - targetSongVariation: currentVariation, - })); + // Play the confirm animation so the user knows they actually did something. + FunkinSound.playOnce(Paths.sound('confirmMenu')); + if (dj != null) dj.confirm(); + new FlxTimer().start(styleData?.getStartDelay(), function(tmr:FlxTimer) { + FlxG.switchState(() -> new ChartEditorState( + { + targetSongId: targetSongID, + targetSongDifficulty: currentDifficulty, + targetSongVariation: currentVariation, + })); + }); } #end }