1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-09-11 20:57:20 +00:00

Move debug menu to main menu only

This commit is contained in:
EliteMasterEric 2023-06-15 00:29:54 -04:00
parent 3d8dd8d604
commit dddd050268
2 changed files with 9 additions and 11 deletions

View file

@ -1,5 +1,6 @@
package funkin; package funkin;
import funkin.ui.debug.DebugMenuSubState;
import flixel.FlxObject; import flixel.FlxObject;
import flixel.FlxSprite; import flixel.FlxSprite;
import flixel.FlxState; import flixel.FlxState;
@ -299,7 +300,14 @@ class MainMenuState extends MusicBeatState
} }
} }
// FlxG.camera.followLerp = CoolUtil.camLerpShit(0.06); // ` / ~ to open the debug menu.
if (FlxG.keys.justPressed.GRAVEACCENT)
{
// TODO: Does this break anything?
this.persistentUpdate = false;
this.persistentDraw = false;
FlxG.state.openSubState(new DebugMenuSubState());
}
if (FlxG.sound.music.volume < 0.8) if (FlxG.sound.music.volume < 0.8)
{ {

View file

@ -9,7 +9,6 @@ import flixel.util.FlxSort;
import funkin.modding.PolymodHandler; import funkin.modding.PolymodHandler;
import funkin.modding.events.ScriptEvent; import funkin.modding.events.ScriptEvent;
import funkin.modding.module.ModuleHandler; import funkin.modding.module.ModuleHandler;
import funkin.ui.debug.DebugMenuSubState;
import funkin.util.SortUtil; import funkin.util.SortUtil;
/** /**
@ -66,15 +65,6 @@ class MusicBeatState extends FlxUIState
// This can now be used in EVERY STATE YAY! // This can now be used in EVERY STATE YAY!
if (FlxG.keys.justPressed.F5) debug_refreshModules(); if (FlxG.keys.justPressed.F5) debug_refreshModules();
// ` / ~ to open the debug menu.
if (FlxG.keys.justPressed.GRAVEACCENT)
{
// TODO: Does this break anything?
this.persistentUpdate = false;
this.persistentDraw = false;
FlxG.state.openSubState(new DebugMenuSubState());
}
// Display Conductor info in the watch window. // Display Conductor info in the watch window.
FlxG.watch.addQuick("songPos", Conductor.songPosition); FlxG.watch.addQuick("songPos", Conductor.songPosition);
FlxG.watch.addQuick("currentStepTime", Conductor.currentStepTime); FlxG.watch.addQuick("currentStepTime", Conductor.currentStepTime);