From d0c9bc33ee3b7d092146f18ac1778c38d29571b1 Mon Sep 17 00:00:00 2001 From: Fran____ <45723631+franiscoder@users.noreply.github.com> Date: Wed, 23 Oct 2019 21:16:21 -0400 Subject: WAbstractSlider Update --- .../io/github/cottonmc/cotton/gui/widget/WAbstractSlider.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/main') 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; } -- cgit