mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-17 04:11:23 -05:00
Move the "Start at current time" checkbox
This commit is contained in:
parent
c3fa793d97
commit
43038d0a06
3 changed files with 12 additions and 5 deletions
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit d29187aeafbb560ec62b15c52fff8c0281912431
|
||||
Subproject commit dcb65bdb2a2075dc8d21df5c136a4151a8eea80a
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -442,12 +442,22 @@ class ChartEditorToolboxHandler
|
|||
var checkboxPracticeMode:Null<CheckBox> = 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<CheckBox> = 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue