diff options
author | Fran____ <45723631+franiscoder@users.noreply.github.com> | 2019-10-23 21:16:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-23 21:16:21 -0400 |
commit | d0c9bc33ee3b7d092146f18ac1778c38d29571b1 (patch) | |
tree | b96ab0a0090fe2ae68d5f187e52129a74375b39d /src/main/java/io | |
parent | e511933cb169218373b70084a133b50f28175560 (diff) | |
download | LibGui-d0c9bc33ee3b7d092146f18ac1778c38d29571b1.tar.gz LibGui-d0c9bc33ee3b7d092146f18ac1778c38d29571b1.tar.bz2 LibGui-d0c9bc33ee3b7d092146f18ac1778c38d29571b1.zip |
WAbstractSlider Update
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; } |