@@ -42,7 +42,9 @@ public static Screen genConfigScreen(Screen parent) {
42
42
DynamicFPSConfig config = DynamicFPSConfig .INSTANCE ;
43
43
DynamicFPSConfig defaultConfig = DynamicFPSConfig .DEFAULTS ;
44
44
45
- general .addEntry (
45
+ SubCategoryBuilder misc = entryBuilder .startSubCategory (localized ("config" , "feature.misc" ));
46
+
47
+ misc .add (
46
48
entryBuilder .startBooleanToggle (
47
49
localized ("config" , "enabled" ),
48
50
config .enabled ()
@@ -52,7 +54,7 @@ public static Screen genConfigScreen(Screen parent) {
52
54
.build ()
53
55
);
54
56
55
- general . addEntry (
57
+ misc . add (
56
58
entryBuilder .startBooleanToggle (
57
59
localized ("config" , "uncap_menu_frame_rate" ),
58
60
config .uncapMenuFrameRate ()
@@ -63,11 +65,10 @@ public static Screen genConfigScreen(Screen parent) {
63
65
.build ()
64
66
);
65
67
66
- general .addEntry (
67
- entryBuilder .startTextDescription (CommonComponents .SPACE ).build ()
68
- );
68
+ general .addEntry (misc .build ());
69
+ SubCategoryBuilder idle = entryBuilder .startSubCategory (localized ("config" , "feature.idle" ));
69
70
70
- general . addEntry (
71
+ idle . add (
71
72
entryBuilder .startIntSlider (
72
73
localized ("config" , "idle_time" ),
73
74
config .idle ().timeout () / 60 ,
@@ -80,7 +81,7 @@ public static Screen genConfigScreen(Screen parent) {
80
81
.build ()
81
82
);
82
83
83
- general . addEntry (
84
+ idle . add (
84
85
entryBuilder .startEnumSelector (
85
86
localized ("config" , "idle_condition" ),
86
87
IdleCondition .class ,
@@ -93,13 +94,12 @@ public static Screen genConfigScreen(Screen parent) {
93
94
.build ()
94
95
);
95
96
96
- general .addEntry (
97
- entryBuilder .startTextDescription (CommonComponents .SPACE ).build ()
98
- );
97
+ general .addEntry (idle .build ());
98
+ SubCategoryBuilder volumeTransition = entryBuilder .startSubCategory (localized ("config" , "feature.volume_transition" ));
99
99
100
100
VariableStepTransformer volumeTransformer = getVolumeStepTransformer ();
101
101
102
- general . addEntry (
102
+ volumeTransition . add (
103
103
entryBuilder .startIntSlider (
104
104
localized ("config" , "volume_transition_speed_up" ),
105
105
volumeTransformer .toStep ((int ) (config .volumeTransitionSpeed ().getUp () * 100 )),
@@ -112,7 +112,7 @@ public static Screen genConfigScreen(Screen parent) {
112
112
.build ()
113
113
);
114
114
115
- general . addEntry (
115
+ volumeTransition . add (
116
116
entryBuilder .startIntSlider (
117
117
localized ("config" , "volume_transition_speed_down" ),
118
118
volumeTransformer .toStep ((int ) (config .volumeTransitionSpeed ().getDown () * 100 )),
@@ -125,13 +125,12 @@ public static Screen genConfigScreen(Screen parent) {
125
125
.build ()
126
126
);
127
127
128
- general .addEntry (
129
- entryBuilder .startTextDescription (CommonComponents .SPACE ).build ()
130
- );
128
+ general .addEntry (volumeTransition .build ());
129
+ SubCategoryBuilder battery = entryBuilder .startSubCategory (localized ("config" , "feature.battery" ));
131
130
132
131
BatteryTrackerConfig batteryTracker = config .batteryTracker ();
133
132
134
- general . addEntry (
133
+ battery . add (
135
134
entryBuilder .startBooleanToggle (
136
135
localized ("config" , "battery_tracker" ),
137
136
batteryTracker .enabled ()
@@ -142,7 +141,7 @@ public static Screen genConfigScreen(Screen parent) {
142
141
.build ()
143
142
);
144
143
145
- general . addEntry (
144
+ battery . add (
146
145
entryBuilder .startBooleanToggle (
147
146
localized ("config" , "battery_tracker_switch_states" ),
148
147
batteryTracker .switchStates ()
@@ -153,7 +152,7 @@ public static Screen genConfigScreen(Screen parent) {
153
152
.build ()
154
153
);
155
154
156
- general . addEntry (
155
+ battery . add (
157
156
entryBuilder .startBooleanToggle (
158
157
localized ("config" , "battery_tracker_notifications" ),
159
158
batteryTracker .notifications ()
@@ -164,7 +163,7 @@ public static Screen genConfigScreen(Screen parent) {
164
163
.build ()
165
164
);
166
165
167
- general . addEntry (
166
+ battery . add (
168
167
entryBuilder .startEnumSelector (
169
168
localized ("config" , "battery_indicator_condition" ),
170
169
BatteryIndicatorCondition .class ,
@@ -176,7 +175,7 @@ public static Screen genConfigScreen(Screen parent) {
176
175
.build ()
177
176
);
178
177
179
- general . addEntry (
178
+ battery . add (
180
179
entryBuilder .startEnumSelector (
181
180
localized ("config" , "battery_indicator_placement" ),
182
181
BatteryIndicatorPlacement .class ,
@@ -188,6 +187,8 @@ public static Screen genConfigScreen(Screen parent) {
188
187
.build ()
189
188
);
190
189
190
+ general .addEntry (battery .build ());
191
+
191
192
// Used for each state's frame rate target slider below
192
193
VariableStepTransformer fpsTransformer = getFpsTransformer ();
193
194
0 commit comments