mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-09-12 05:07:06 +00:00
Move the "Start at current time" checkbox
This commit is contained in:
parent
c3fa793d97
commit
43038d0a06
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);
|
menubarItemDifficultyUp.onClick = _ -> incrementDifficulty(1);
|
||||||
menubarItemDifficultyDown.onClick = _ -> incrementDifficulty(-1);
|
menubarItemDifficultyDown.onClick = _ -> incrementDifficulty(-1);
|
||||||
|
|
||||||
menubarItemPlaytestStartTime.onChange = event -> playtestStartTime = event.value;
|
|
||||||
menubarItemPlaytestStartTime.selected = playtestStartTime;
|
|
||||||
|
|
||||||
menuBarItemThemeLight.onChange = function(event:UIEvent) {
|
menuBarItemThemeLight.onChange = function(event:UIEvent) {
|
||||||
if (event.target.value) currentTheme = ChartEditorTheme.Light;
|
if (event.target.value) currentTheme = ChartEditorTheme.Light;
|
||||||
};
|
};
|
||||||
|
|
|
@ -442,12 +442,22 @@ class ChartEditorToolboxHandler
|
||||||
var checkboxPracticeMode:Null<CheckBox> = toolbox.findComponent('practiceModeCheckbox', CheckBox);
|
var checkboxPracticeMode:Null<CheckBox> = toolbox.findComponent('practiceModeCheckbox', CheckBox);
|
||||||
if (checkboxPracticeMode == null) throw 'ChartEditorToolboxHandler.buildToolboxPlaytestPropertiesLayout() - Could not find practiceModeCheckbox component.';
|
if (checkboxPracticeMode == null) throw 'ChartEditorToolboxHandler.buildToolboxPlaytestPropertiesLayout() - Could not find practiceModeCheckbox component.';
|
||||||
|
|
||||||
state.playtestPracticeMode = checkboxPracticeMode.selected;
|
checkboxPracticeMode.selected = state.playtestPracticeMode;
|
||||||
|
|
||||||
checkboxPracticeMode.onClick = _ -> {
|
checkboxPracticeMode.onClick = _ -> {
|
||||||
state.playtestPracticeMode = checkboxPracticeMode.selected;
|
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;
|
return toolbox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue