1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-08-18 14:05:06 +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;
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)
{

View file

@ -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);