diff --git a/source/funkin/MainMenuState.hx b/source/funkin/MainMenuState.hx index 57640bffa..82fcac77d 100644 --- a/source/funkin/MainMenuState.hx +++ b/source/funkin/MainMenuState.hx @@ -1,5 +1,6 @@ package funkin; +import funkin.ui.debug.DebugMenuSubState; import flixel.FlxObject; import flixel.FlxSprite; 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) { diff --git a/source/funkin/MusicBeatState.hx b/source/funkin/MusicBeatState.hx index 6c6591c62..2b97951f9 100644 --- a/source/funkin/MusicBeatState.hx +++ b/source/funkin/MusicBeatState.hx @@ -9,7 +9,6 @@ import flixel.util.FlxSort; import funkin.modding.PolymodHandler; import funkin.modding.events.ScriptEvent; import funkin.modding.module.ModuleHandler; -import funkin.ui.debug.DebugMenuSubState; import funkin.util.SortUtil; /** @@ -66,15 +65,6 @@ class MusicBeatState extends FlxUIState // This can now be used in EVERY STATE YAY! 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. FlxG.watch.addQuick("songPos", Conductor.songPosition); FlxG.watch.addQuick("currentStepTime", Conductor.currentStepTime);