Chart Editor playtest option for Results Screen

This commit is contained in:
Lasercar
2025-12-09 01:12:11 -06:00
committed by Abnormal
parent 9f0a4988a3
commit eeba677da9
5 changed files with 104 additions and 12 deletions
@@ -603,6 +603,11 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
*/
var playtestBotPlayMode:Bool = false;
/**
* If true, after playtesting a chart the results screen will show your score.
*/
var playtestShowResults:Bool = false;
/**
* Enables or disables the "debugger" popup that appears when you run into a flixel error.
*/
@@ -6260,6 +6265,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
targetVariation: selectedVariation,
practiceMode: playtestPracticeMode,
botPlayMode: playtestBotPlayMode,
playtestResults: playtestShowResults,
minimalMode: minimal,
startTimestamp: startTimestamp,
playbackRate: playbackRate,
@@ -280,6 +280,16 @@ class ChartEditorToolboxHandler
state.playtestBotPlayMode = checkboxBotPlay.selected;
};
var checkboxShowResults:Null<CheckBox> = toolbox.findComponent('playtestShowResultsCheckbox', CheckBox);
if (checkboxShowResults == null)
throw 'ChartEditorToolboxHandler.buildToolboxPlaytestPropertiesLayout() - Could not find playtestShowResultsCheckbox component.';
checkboxShowResults.selected = state.playtestShowResults;
checkboxShowResults.onClick = _ -> {
state.playtestShowResults = checkboxShowResults.selected;
};
var checkboxSongScripts:Null<CheckBox> = toolbox.findComponent('playtestSongScriptsCheckbox', CheckBox);
if (checkboxSongScripts == null)