Remember selection when exiting to Title Screen

This commit is contained in:
Hundrec
2025-03-18 20:47:21 +10:00
committed by Lasercar
parent 07c872c775
commit bf36a86877
@@ -466,6 +466,7 @@ class MainMenuState extends MusicBeatState
if (controls.BACK && menuItems.enabled && !menuItems.busy)
{
rememberedSelectedIndex = menuItems.selectedIndex;
FlxG.switchState(() -> new TitleState());
FunkinSound.playOnce(Paths.sound('cancelMenu'));
}