diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2019-12-15 18:29:34 +0200 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2019-12-15 18:29:34 +0200 |
commit | cbf749a775a10fbe4bd8cf74f958ef86f5df8b19 (patch) | |
tree | a4f82c731d0b7b08a0676f19300451c5716ee6c7 /src/main/java | |
parent | 6bdc91ce80b7379605e15338e8a59ca482f8b828 (diff) | |
download | LibGui-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.java | 5 |
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; } /** |