Skip to content

Commit

Permalink
overlooking: the return
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Nov 22, 2024
1 parent 07ef57c commit 75b041f
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions source/funkin/ui/mainmenu/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -437,31 +437,32 @@ class MainMenuState extends MusicBeatState
funkin.save.Save.instance.data.unlocks.charactersSeen = ["bf"];
funkin.save.Save.instance.data.unlocks.oldChar = false;
}
}

if (FlxG.keys.pressed.CONTROL && FlxG.keys.pressed.ALT && FlxG.keys.pressed.SHIFT && FlxG.keys.justPressed.E)
{
funkin.save.Save.instance.debug_dumpSave();
}
if (FlxG.keys.pressed.CONTROL && FlxG.keys.pressed.ALT && FlxG.keys.pressed.SHIFT && FlxG.keys.justPressed.E)
{
funkin.save.Save.instance.debug_dumpSave();
}

if (FlxG.sound.music != null && FlxG.sound.music.volume < 0.8)
{
FlxG.sound.music.volume += 0.5 * elapsed;
}
if (FlxG.sound.music != null && FlxG.sound.music.volume < 0.8)
{
FlxG.sound.music.volume += 0.5 * elapsed;
}

if (_exiting) menuItems.enabled = false;
if (_exiting) menuItems.enabled = false;

if (controls.BACK)
{
goBack();
}
if (controls.BACK)
{
goBack();
}
}

public function goBack():Void
public function goBack():Void
{
if (menuItems.enabled && !menuItems.busy)
{
if (menuItems.enabled && !menuItems.busy)
{
FlxG.switchState(() -> new TitleState());
FunkinSound.playOnce(Paths.sound('cancelMenu'));
}
FlxG.switchState(() -> new TitleState());
FunkinSound.playOnce(Paths.sound('cancelMenu'));
}
}
}

0 comments on commit 75b041f

Please sign in to comment.