aboutsummaryrefslogtreecommitdiff
path: root/GuiTest
diff options
context:
space:
mode:
authorFalkreon <falkreon@gmail.com>2019-08-30 12:25:56 -0500
committerFalkreon <falkreon@gmail.com>2019-08-30 12:25:56 -0500
commitf31ed14fa9bcd45f1509c709ca51ce3c2aa4b6cf (patch)
treefd538cfc8f49ac4f505c546b8b077d3032179995 /GuiTest
parent3f01c837c12ee1c20d2ff568393a005226a1c940 (diff)
downloadLibGui-f31ed14fa9bcd45f1509c709ca51ce3c2aa4b6cf.tar.gz
LibGui-f31ed14fa9bcd45f1509c709ca51ce3c2aa4b6cf.tar.bz2
LibGui-f31ed14fa9bcd45f1509c709ca51ce3c2aa4b6cf.zip
Rearrange drawing, deprecate paintForeground, add widget ticks
Diffstat (limited to 'GuiTest')
-rw-r--r--GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java b/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java
index 90beffd..d1b8bca 100644
--- a/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java
+++ b/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java
@@ -1,6 +1,7 @@
package io.github.cottonmc.test.client;
import java.util.ArrayList;
+import java.util.List;
import java.util.function.BiConsumer;
import io.github.cottonmc.cotton.gui.client.BackgroundPainter;
@@ -32,7 +33,12 @@ public class TestClientGui extends LightweightGuiDescription {
WGridPanel root = new WGridPanel(22);
this.setRootPanel(root);
- WLabel title = new WLabel(new LiteralText("Client Test Gui"), WLabel.DEFAULT_TEXT_COLOR);
+ WLabel title = new WLabel(new LiteralText("Client Test Gui"), WLabel.DEFAULT_TEXT_COLOR) {
+ @Override
+ public void addInformation(List<String> information) {
+ information.add("Radical!");
+ }
+ };
root.add(title, 0, 0);
WTextField text = new WTextField();