aboutsummaryrefslogtreecommitdiff
path: root/GuiTest/src/main
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2021-06-27 14:10:13 +0300
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2021-06-27 14:10:13 +0300
commit0b62c15c6cbc3a3440002bd705e2e499fb29df66 (patch)
tree568a6ad37ebc3a1e4da665d43807ac23304d0e48 /GuiTest/src/main
parentdc69df9c4e4787aa4d7025ac64b41290a52d79f9 (diff)
downloadLibGui-0b62c15c6cbc3a3440002bd705e2e499fb29df66.tar.gz
LibGui-0b62c15c6cbc3a3440002bd705e2e499fb29df66.tar.bz2
LibGui-0b62c15c6cbc3a3440002bd705e2e499fb29df66.zip
Add a "visual logger" for showing error messages in a dev env
Diffstat (limited to 'GuiTest/src/main')
-rw-r--r--GuiTest/src/main/java/io/github/cottonmc/test/TestDescription.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/GuiTest/src/main/java/io/github/cottonmc/test/TestDescription.java b/GuiTest/src/main/java/io/github/cottonmc/test/TestDescription.java
index ce579ae..dc264ba 100644
--- a/GuiTest/src/main/java/io/github/cottonmc/test/TestDescription.java
+++ b/GuiTest/src/main/java/io/github/cottonmc/test/TestDescription.java
@@ -22,6 +22,8 @@ public class TestDescription extends SyncedGuiDescription {
WGridPanel root = (WGridPanel)this.getRootPanel();
WItemSlot slot = WItemSlot.of(blockInventory, 0, 4, 1);
+ // test visual logger warnings
+ slot.setIcon(new TextureIcon(new Identifier("libgui-test", "saddle.png")));
root.add(slot, 0, 1);
WButton buttonA = new WButton(new LiteralText("Button A"));