From 0b62c15c6cbc3a3440002bd705e2e499fb29df66 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Sun, 27 Jun 2021 14:10:13 +0300 Subject: Add a "visual logger" for showing error messages in a dev env --- GuiTest/src/main/java/io/github/cottonmc/test/TestDescription.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'GuiTest') 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")); -- cgit