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:
parent
3d8dd8d604
commit
dddd050268
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue