diff --git a/assets b/assets index d29187aea..dcb65bdb2 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit d29187aeafbb560ec62b15c52fff8c0281912431 +Subproject commit dcb65bdb2a2075dc8d21df5c136a4151a8eea80a diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index fe538966d..b36f9c87e 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -2453,9 +2453,6 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState menubarItemDifficultyUp.onClick = _ -> incrementDifficulty(1); menubarItemDifficultyDown.onClick = _ -> incrementDifficulty(-1); - menubarItemPlaytestStartTime.onChange = event -> playtestStartTime = event.value; - menubarItemPlaytestStartTime.selected = playtestStartTime; - menuBarItemThemeLight.onChange = function(event:UIEvent) { if (event.target.value) currentTheme = ChartEditorTheme.Light; }; diff --git a/source/funkin/ui/debug/charting/handlers/ChartEditorToolboxHandler.hx b/source/funkin/ui/debug/charting/handlers/ChartEditorToolboxHandler.hx index 2876ce2fa..ee70c5cb4 100644 --- a/source/funkin/ui/debug/charting/handlers/ChartEditorToolboxHandler.hx +++ b/source/funkin/ui/debug/charting/handlers/ChartEditorToolboxHandler.hx @@ -442,12 +442,22 @@ class ChartEditorToolboxHandler var checkboxPracticeMode:Null = toolbox.findComponent('practiceModeCheckbox', CheckBox); if (checkboxPracticeMode == null) throw 'ChartEditorToolboxHandler.buildToolboxPlaytestPropertiesLayout() - Could not find practiceModeCheckbox component.'; - state.playtestPracticeMode = checkboxPracticeMode.selected; + checkboxPracticeMode.selected = state.playtestPracticeMode; checkboxPracticeMode.onClick = _ -> { state.playtestPracticeMode = checkboxPracticeMode.selected; }; + var checkboxStartTime:Null = toolbox.findComponent('playtestStartTimeCheckbox', CheckBox); + if (checkboxStartTime == null) + throw 'ChartEditorToolboxHandler.buildToolboxPlaytestPropertiesLayout() - Could not find playtestStartTimeCheckbox component.'; + + checkboxStartTime.selected = state.playtestStartTime; + + checkboxStartTime.onClick = _ -> { + state.playtestStartTime = checkboxStartTime.selected; + }; + return toolbox; }