aboutsummaryrefslogtreecommitdiff
path: root/GuiTest/src/main
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2021-02-27 17:07:57 +0200
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2021-02-27 17:07:57 +0200
commit843ca3ed723b8f35c6bdf5aab19a3b63002f3ef8 (patch)
tree327f461d06f2437f4ade6956effb11650da9e87d /GuiTest/src/main
parent13a99174d682a31088fee27990b7c8e38239ee84 (diff)
downloadLibGui-843ca3ed723b8f35c6bdf5aab19a3b63002f3ef8.tar.gz
LibGui-843ca3ed723b8f35c6bdf5aab19a3b63002f3ef8.tar.bz2
LibGui-843ca3ed723b8f35c6bdf5aab19a3b63002f3ef8.zip
Add panel layout insets to replace background painter padding
Diffstat (limited to 'GuiTest/src/main')
-rw-r--r--GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java2
1 files changed, 2 insertions, 0 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 46db85f..140e27e 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
@@ -20,6 +20,7 @@ import io.github.cottonmc.cotton.gui.widget.WTiledSprite;
import io.github.cottonmc.cotton.gui.widget.WWidget;
import io.github.cottonmc.cotton.gui.widget.data.Axis;
import io.github.cottonmc.cotton.gui.widget.data.Color;
+import io.github.cottonmc.cotton.gui.widget.data.Insets;
public class TestClientGui extends LightweightGuiDescription {
//private static final Identifier PORTAL1 = new Identifier("libgui-test:portal.png");
@@ -31,6 +32,7 @@ public class TestClientGui extends LightweightGuiDescription {
public TestClientGui() {
WGridPanel root = new WGridPanel(22);
+ root.setInsets(Insets.ROOT_PANEL);
this.setRootPanel(root);
WLabel title = new WLabel(new LiteralText("Client Test Gui"), WLabel.DEFAULT_TEXT_COLOR) {
@Environment(EnvType.CLIENT)