aboutsummaryrefslogtreecommitdiff
path: root/GuiTest/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'GuiTest/src/main/java')
-rw-r--r--GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java8
-rw-r--r--GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java2
2 files changed, 2 insertions, 8 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 85ad3cd..23ea2a2 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
@@ -19,12 +19,6 @@ import net.minecraft.text.LiteralText;
import net.minecraft.util.Identifier;
public class TestClientGui extends LightweightGuiDescription {
-
- @Environment(EnvType.CLIENT)
- public static final BackgroundPainter PANEL = (x, y, panel)->{
- ScreenDrawing.drawBeveledPanel(x-1, y-1, panel.getWidth()+2, panel.getHeight()+2);
- };
-
//private static final Identifier PORTAL1 = new Identifier("libgui-test:portal.png");
//private static final Identifier PORTAL2 = new Identifier("libgui-test:portal2.png");
@@ -146,7 +140,7 @@ public class TestClientGui extends LightweightGuiDescription {
@Override
public void paint(MatrixStack matrices, int x, int y, int mouseX, int mouseY) {
- ScreenDrawing.coloredRect(x, y, this.getWidth(), this.getHeight(), color);
+ ScreenDrawing.coloredRect(matrices, x, y, this.getWidth(), this.getHeight(), color);
}
}
}
diff --git a/GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java b/GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java
index 2cc1e4b..41d566d 100644
--- a/GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java
+++ b/GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java
@@ -16,7 +16,7 @@ public class WHudTest extends WWidget {
@Override
public void paint(MatrixStack matrices, int x, int y, int mouseX, int mouseY) {
- ScreenDrawing.coloredRect(x, y, width, height, 0xFF_00FF00);
+ ScreenDrawing.coloredRect(matrices, x, y, width, height, 0xFF_00FF00);
}
@Override