aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WToggleButton.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WToggleButton.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WToggleButton.java
index 4c75113..0e069f0 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WToggleButton.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WToggleButton.java
@@ -14,7 +14,7 @@ import javax.annotation.Nullable;
import java.util.function.Consumer;
public class WToggleButton extends WWidget {
- /** Default On / Off Images */
+ // Default on/off images
protected final static Identifier DEFAULT_OFF_IMAGE = new Identifier("libgui:textures/widget/toggle_off.png");
protected final static Identifier DEFAULT_ON_IMAGE = new Identifier("libgui:textures/widget/toggle_on.png");
@@ -129,8 +129,9 @@ public class WToggleButton extends WWidget {
return label;
}
- public void setLabel(@Nullable Text label) {
+ public WToggleButton setLabel(@Nullable Text label) {
this.label = label;
+ return this;
}
/**