aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-08 20:08:40 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-08 20:08:40 +0200
commit9624c38e07c7f18ec754cf5ee14d54df31e708dc (patch)
tree82845f3d0827042ce01dcd9a9b7c2b5a5a0ec028 /src/main/java/cc/polyfrost/oneconfig/gui
parent618d1591edfcc688e4980bfc94f62e2992f7bec3 (diff)
downloadOneConfig-9624c38e07c7f18ec754cf5ee14d54df31e708dc.tar.gz
OneConfig-9624c38e07c7f18ec754cf5ee14d54df31e708dc.tar.bz2
OneConfig-9624c38e07c7f18ec754cf5ee14d54df31e708dc.zip
forgot to migrate vigilance comp layer oops
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java
index a254729..066fdd3 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java
@@ -20,8 +20,8 @@ public class ConfigSlider extends BasicOption {
private boolean dragging = false;
private boolean mouseWasDown = false;
- public ConfigSlider(Field field, Object parent, String name, String category, String subcategory, int size, float min, float max, int step) {
- super(field, parent, name,category, subcategory, size);
+ public ConfigSlider(Field field, Object parent, String name, String category, String subcategory, float min, float max, int step) {
+ super(field, parent, name,category, subcategory, 2);
this.min = min;
this.max = max;
this.step = step;
@@ -30,7 +30,7 @@ public class ConfigSlider extends BasicOption {
public static ConfigSlider create(Field field, Object parent) {
Slider slider = field.getAnnotation(Slider.class);
- return new ConfigSlider(field, parent, slider.name(), slider.category(), slider.subcategory(), 2, slider.min(), slider.max(), slider.step());
+ return new ConfigSlider(field, parent, slider.name(), slider.category(), slider.subcategory(), slider.min(), slider.max(), slider.step());
}
@Override