diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-09-24 11:16:59 +0300 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-09-24 11:16:59 +0300 |
commit | 283db1edc77209344888210c4b618595874707fe (patch) | |
tree | d14de2cc4721ddfa1b1a3a1e6d40d51d8d92ccc7 /GuiTest/src/main | |
parent | bf22a932abedd9a82426d2d4e89f05f8cb74b6ca (diff) | |
download | LibGui-283db1edc77209344888210c4b618595874707fe.tar.gz LibGui-283db1edc77209344888210c4b618595874707fe.tar.bz2 LibGui-283db1edc77209344888210c4b618595874707fe.zip |
Add large slot to the test GUI description
This was to debug #85 which doesn't actually seem to happen in 3.0.x.
Diffstat (limited to 'GuiTest/src/main')
-rw-r--r-- | GuiTest/src/main/java/io/github/cottonmc/test/TestDescription.java | 5 |
1 files changed, 4 insertions, 1 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 9d638e2..b3e0c80 100644 --- a/GuiTest/src/main/java/io/github/cottonmc/test/TestDescription.java +++ b/GuiTest/src/main/java/io/github/cottonmc/test/TestDescription.java @@ -22,7 +22,10 @@ public class TestDescription extends SyncedGuiDescription { root.add(new WButton(new LiteralText("Button D")), 5, 5, 4, 1); root.add(new WTextField(new LiteralText("Type something...")), 0, 7, 5, 1); - root.add(createPlayerInventoryPanel(), 0, 9); + root.add(new WLabel(new LiteralText("Large slot:")), 0, 9); + root.add(WItemSlot.outputOf(blockInventory, 0), 4, 9); + + root.add(createPlayerInventoryPanel(), 0, 11); System.out.println(root.toString()); this.getRootPanel().validate(this); |