aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2019-12-15 18:29:34 +0200
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2019-12-15 18:29:34 +0200
commitcbf749a775a10fbe4bd8cf74f958ef86f5df8b19 (patch)
treea4f82c731d0b7b08a0676f19300451c5716ee6c7 /src/main/java
parent6bdc91ce80b7379605e15338e8a59ca482f8b828 (diff)
downloadLibGui-cbf749a775a10fbe4bd8cf74f958ef86f5df8b19.tar.gz
LibGui-cbf749a775a10fbe4bd8cf74f958ef86f5df8b19.tar.bz2
LibGui-cbf749a775a10fbe4bd8cf74f958ef86f5df8b19.zip
WToggleButton.setLabel should return itself
Diffstat (limited to 'src/main/java')
-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;
}
/**