@@ -2,6 +2,7 @@ import { Icons } from "../images/Icons";
2
2
import { TimeSkipSettings } from "../settings/TimeSkipSettings" ;
3
3
import { ucfirst } from "../tools/Format" ;
4
4
import { UserScript } from "../UserScript" ;
5
+ import { ButtonListItem } from "./components/ButtonListItem" ;
5
6
import { TriggerButton } from "./components/buttons-icon/TriggerButton" ;
6
7
import { MaxButton } from "./components/buttons-text/MaxButton" ;
7
8
import { CyclesList } from "./components/CyclesList" ;
@@ -30,12 +31,7 @@ export class TimeSkipSettingsUi extends SettingsPanel<TimeSkipSettings> {
30
31
this . children . add ( this . _trigger ) ;
31
32
32
33
this . _maximum = new MaxButton ( this . _host , label , this . setting ) ;
33
- this . addChild ( this . _maximum ) ;
34
34
35
- const list = new SettingsList ( this . _host , {
36
- hasDisableAll : false ,
37
- hasEnableAll : false ,
38
- } ) ;
39
35
this . _cycles = new Panel (
40
36
this . _host ,
41
37
new LabelListItem ( host , ucfirst ( this . _host . engine . i18n ( "ui.cycles" ) ) , {
@@ -60,7 +56,16 @@ export class TimeSkipSettingsUi extends SettingsPanel<TimeSkipSettings> {
60
56
}
61
57
) ;
62
58
63
- list . addChildren ( [ this . _cycles , this . _seasons ] ) ;
64
- this . addChild ( list ) ;
59
+ this . addChild (
60
+ new SettingsList ( this . _host , {
61
+ children : [
62
+ new ButtonListItem ( host , this . _maximum , { delimiter : true } ) ,
63
+ this . _cycles ,
64
+ this . _seasons ,
65
+ ] ,
66
+ hasDisableAll : false ,
67
+ hasEnableAll : false ,
68
+ } )
69
+ ) ;
65
70
}
66
71
}
0 commit comments