mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-17 04:11:23 -05:00
commit
be64417785
2 changed files with 19 additions and 0 deletions
|
@ -124,6 +124,7 @@ import flixel.group.FlxGroup.FlxTypedGroup;
|
||||||
import funkin.audio.visualize.PolygonVisGroup;
|
import funkin.audio.visualize.PolygonVisGroup;
|
||||||
import flixel.input.mouse.FlxMouseEvent;
|
import flixel.input.mouse.FlxMouseEvent;
|
||||||
import flixel.text.FlxText;
|
import flixel.text.FlxText;
|
||||||
|
import flixel.system.debug.log.LogStyle;
|
||||||
|
|
||||||
using Lambda;
|
using Lambda;
|
||||||
|
|
||||||
|
@ -544,6 +545,11 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
||||||
*/
|
*/
|
||||||
var playtestPracticeMode:Bool = false;
|
var playtestPracticeMode:Bool = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enables or disables the "debugger" popup that appears when you run into a flixel error.
|
||||||
|
*/
|
||||||
|
var enabledDebuggerPopup:Bool = true;
|
||||||
|
|
||||||
// Visuals
|
// Visuals
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4808,6 +4814,9 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LogStyle.WARNING.openConsole = enabledDebuggerPopup;
|
||||||
|
LogStyle.ERROR.openConsole = enabledDebuggerPopup;
|
||||||
|
|
||||||
// TODO: Rework asset system so we can remove this.
|
// TODO: Rework asset system so we can remove this.
|
||||||
switch (currentSongStage)
|
switch (currentSongStage)
|
||||||
{
|
{
|
||||||
|
|
|
@ -488,6 +488,16 @@ class ChartEditorToolboxHandler
|
||||||
state.playtestStartTime = checkboxStartTime.selected;
|
state.playtestStartTime = checkboxStartTime.selected;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var checkboxDebugger:Null<CheckBox> = toolbox.findComponent('playtestDebuggerCheckbox', CheckBox);
|
||||||
|
|
||||||
|
if (checkboxDebugger == null) throw 'ChartEditorToolboxHandler.buildToolboxPlaytestPropertiesLayout() - Could not find playtestDebuggerCheckbox component.';
|
||||||
|
|
||||||
|
state.enabledDebuggerPopup = checkboxDebugger.selected;
|
||||||
|
|
||||||
|
checkboxDebugger.onClick = _ -> {
|
||||||
|
state.enabledDebuggerPopup = checkboxDebugger.selected;
|
||||||
|
};
|
||||||
|
|
||||||
return toolbox;
|
return toolbox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue