Add confirmation sound and animation before transitioning to Chart Editor in Freeplay

This commit is contained in:
EliteMasterEric
2025-06-06 15:05:08 -06:00
committed by Hundrec
parent e2b9cc9ed5
commit 2904e660e9
+11 -6
View File
@@ -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
}