aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJuuxel <kasperi.kauppi@gmail.com>2019-07-27 22:49:58 +0300
committerJuuxel <kasperi.kauppi@gmail.com>2019-07-27 22:51:14 +0300
commitf83ff7b041bec67e357f537106797c9b88a1f2de (patch)
treeb8b46c1e5313e28a9bea93075bfb62c4400072a5 /src/main/java
parent2fea106344bb346011c425b5416a738045ca3400 (diff)
downloadLibGui-f83ff7b041bec67e357f537106797c9b88a1f2de.tar.gz
LibGui-f83ff7b041bec67e357f537106797c9b88a1f2de.tar.bz2
LibGui-f83ff7b041bec67e357f537106797c9b88a1f2de.zip
Some tweaks
- Fix one of ScreenDrawing.rect()'s overloads ignoring the color parameter - Replace options.libgui.done with vanilla's gui.done - Uncomments WWidget.setParent()
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java2
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/modmenu/ConfigGui.java2
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java b/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java
index dd55eea..f6aaef1 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java
@@ -19,7 +19,7 @@ public class ScreenDrawing {
}
public static void rect(Identifier texture, int left, int top, int width, int height, float u1, float v1, float u2, float v2, int color) {
- rect(texture, left, top, width, height, u1, v1, u2, v2, 0xFFFFFFFF, 0);
+ rect(texture, left, top, width, height, u1, v1, u2, v2, color, 0);
}
public static void rect(Identifier texture, int left, int top, int width, int height, float u1, float v1, float u2, float v2, int color, int z) {
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/modmenu/ConfigGui.java b/src/main/java/io/github/cottonmc/cotton/gui/client/modmenu/ConfigGui.java
index 4edf03d..8b3c3ee 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/modmenu/ConfigGui.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/modmenu/ConfigGui.java
@@ -28,7 +28,7 @@ public class ConfigGui extends LightweightGuiDescription {
root.add(new WKirbSprite(), 5, 4);
- WButton doneButton = new WButton(new TranslatableText("option.libgui.done"));
+ WButton doneButton = new WButton(new TranslatableText("gui.done"));
doneButton.setOnClick(()->{
MinecraftClient.getInstance().openScreen(previous);
});
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java
index 4a3f806..4eff4f7 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java
@@ -63,9 +63,9 @@ public class WWidget {
return false;
}
- //public void setParent(WPanel parent) {
- // this.parent = parent;
- //}
+ public void setParent(WPanel parent) {
+ this.parent = parent;
+ }
//public boolean getRenderTooltip() {
// return renderTooltip;