change debug menu and add key for freeplay

This commit is contained in:
Cameron Taylor 2024-07-08 16:22:38 -04:00
parent 105e3dccba
commit d7105e8b8e
3 changed files with 8 additions and 3 deletions
source/funkin/ui

View file

@ -54,7 +54,9 @@ class DebugMenuSubState extends MusicBeatSubState
// Create each menu item.
// Call onMenuChange when the first item is created to move the camera .
#if CHART_EDITOR_SUPPORTED
onMenuChange(createItem("CHART EDITOR", openChartEditor));
#end
// createItem("Input Offset Testing", openInputOffsetTesting);
createItem("CHARACTER SELECT", openCharSelect, true);
createItem("ANIMATION EDITOR", openAnimationEditor);

View file

@ -1206,6 +1206,11 @@ class FreeplayState extends MusicBeatSubState
// }
#end
if (FlxG.keys.justPressed.TAB)
{
FlxG.switchState(new funkin.ui.charSelect.CharSelectSubState());
}
if (controls.FREEPLAY_FAVORITE && !busy)
{
var targetSong = grpCapsules.members[curSelected]?.songData;

View file

@ -341,17 +341,15 @@ class MainMenuState extends MusicBeatState
}
}
#if (debug || FORCE_DEBUG_VERSION)
// Open the debug menu, defaults to ` / ~
#if CHART_EDITOR_SUPPORTED
if (controls.DEBUG_MENU)
{
persistentUpdate = false;
FlxG.state.openSubState(new DebugMenuSubState());
}
#end
#if (debug || FORCE_DEBUG_VERSION)
if (FlxG.keys.pressed.CONTROL && FlxG.keys.pressed.ALT && FlxG.keys.pressed.SHIFT && FlxG.keys.justPressed.W)
{
// Give the user a score of 1 point on Weekend 1 story mode.