aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFran____ <45723631+franiscoder@users.noreply.github.com>2019-10-23 21:16:21 -0400
committerGitHub <noreply@github.com>2019-10-23 21:16:21 -0400
commitd0c9bc33ee3b7d092146f18ac1778c38d29571b1 (patch)
treeb96ab0a0090fe2ae68d5f187e52129a74375b39d /src
parente511933cb169218373b70084a133b50f28175560 (diff)
downloadLibGui-d0c9bc33ee3b7d092146f18ac1778c38d29571b1.tar.gz
LibGui-d0c9bc33ee3b7d092146f18ac1778c38d29571b1.tar.bz2
LibGui-d0c9bc33ee3b7d092146f18ac1778c38d29571b1.zip
WAbstractSlider Update
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java10
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;
}