fixed a little
This commit is contained in:
@@ -377,20 +377,22 @@ public class MyScreen extends BaseOwoScreen<FlowLayout> {
|
||||
new SettingsControls.ButtonState("L-BOTTOM", () -> Module_FPS.setPosition(1, 99))
|
||||
);
|
||||
|
||||
FlowLayout sizeSlider = SettingsControls.makeSlider(
|
||||
FlowLayout paddingSlider = SettingsControls.makeSlider(
|
||||
FLAT,
|
||||
80,
|
||||
0.0, 20.0,
|
||||
4.0,
|
||||
0.0, 15.0,
|
||||
Config.get().fpsSize,
|
||||
value -> (int) value + "px",
|
||||
value -> Module_FPS.fpsContainer.gap((int) value)
|
||||
value -> Module_FPS.setFpsPadding((int) value)
|
||||
);
|
||||
|
||||
|
||||
int currentIndex = positionIndex(Config.get().fpsX, Config.get().fpsY);
|
||||
|
||||
return List.of(
|
||||
new SettingRow("Position", SettingsControls.makeCyclingButton(GLASS_PANEL, positionStates, currentIndex)),
|
||||
new SettingRow("Size", sizeSlider)
|
||||
new SettingRow("Size", paddingSlider)
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
@@ -405,10 +407,10 @@ public class MyScreen extends BaseOwoScreen<FlowLayout> {
|
||||
FlowLayout sizeSlider = SettingsControls.makeSlider(
|
||||
FLAT,
|
||||
80,
|
||||
0.0, 20.0,
|
||||
4.0,
|
||||
10.0, 30.0,
|
||||
Config.get().keySize,
|
||||
value -> (int) value + "px",
|
||||
value -> {} // fixed: was Module_FPS.fpsContainer.gap(...)
|
||||
value -> Module_KeyStrokes.setKeySize((int) value)
|
||||
);
|
||||
|
||||
int currentIndex = positionIndex(Config.get().keyX, Config.get().keyY);
|
||||
|
||||
Reference in New Issue
Block a user