diff options
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java index 9aa0782..7079256 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java @@ -30,7 +30,7 @@ public abstract class WAbstractSlider extends WWidget { */ private static final int DRAGGING_FINISHED_RATE_LIMIT_FOR_SCROLLING = 10; - protected final int min, max; + protected int min, max; protected final Axis axis; protected int value; @@ -218,6 +218,14 @@ public abstract class WAbstractSlider extends WWidget { return max; } + public void setMinValue(int min) { + this.min = min; + } + + public void setMaxValue(int max) { + this.max = max; + } + public Axis getAxis() { return axis; } |