From 48254df84d4e8f58f37b7bbb1ef3cb81446f6df4 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Wed, 20 May 2020 21:48:25 +0300 Subject: Add Inventory label for player inventory panels Also allows custom label widgets that can be *any* widget. --- GuiTest/src/main/java/io/github/cottonmc/test/TestController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'GuiTest') diff --git a/GuiTest/src/main/java/io/github/cottonmc/test/TestController.java b/GuiTest/src/main/java/io/github/cottonmc/test/TestController.java index 43a0a6f..1d3c955 100644 --- a/GuiTest/src/main/java/io/github/cottonmc/test/TestController.java +++ b/GuiTest/src/main/java/io/github/cottonmc/test/TestController.java @@ -22,7 +22,7 @@ public class TestController extends CottonInventoryController { root.add(button, 0, 3, 5, 1); - root.add(new WPlayerInvPanel(playerInventory), 0, 5); + root.add(createPlayerInventoryPanel(), 0, 5); this.getRootPanel().validate(this); -- cgit