diff options
author | Falkreon <falkreon@gmail.com> | 2019-10-24 08:24:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-24 08:24:11 -0500 |
commit | dcf3d2f0cbe9d680f94fac26bda1f0c2936e7a57 (patch) | |
tree | b96ab0a0090fe2ae68d5f187e52129a74375b39d /src/main/java | |
parent | e511933cb169218373b70084a133b50f28175560 (diff) | |
parent | d0c9bc33ee3b7d092146f18ac1778c38d29571b1 (diff) | |
download | LibGui-dcf3d2f0cbe9d680f94fac26bda1f0c2936e7a57.tar.gz LibGui-dcf3d2f0cbe9d680f94fac26bda1f0c2936e7a57.tar.bz2 LibGui-dcf3d2f0cbe9d680f94fac26bda1f0c2936e7a57.zip |
Merge pull request #21 from franiscoder/master
Add setters for min and max in WAbstractSlider
Diffstat (limited to 'src/main/java')
-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; } |