You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/src/main/java/com/ultreon/devices/api/app/Dialog.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,7 @@ public void init(@Nullable CompoundTag intent) {
206
206
207
207
super.init(intent);
208
208
209
-
defaultLayout.setBackground((graphics, gui, mc, x, y, width, height, mouseX, mouseY, windowActive) -> graphics.fill(x, y, x + width, y + height, Color.LIGHT_GRAY.getRGB()));
209
+
defaultLayout.setBackground((graphics, mc, x, y, width, height, mouseX, mouseY, windowActive) -> graphics.fill(x, y, x + width, y + height, Color.LIGHT_GRAY.getRGB()));
@@ -262,7 +262,7 @@ public void init(@Nullable CompoundTag intent) {
262
262
263
263
super.init(intent);
264
264
265
-
defaultLayout.setBackground((graphics, gui, mc, x, y, width, height, mouseX, mouseY, windowActive) -> graphics.fill(x, y, x + width, y + height, Color.LIGHT_GRAY.getRGB()));
265
+
defaultLayout.setBackground((graphics, mc, x, y, width, height, mouseX, mouseY, windowActive) -> graphics.fill(x, y, x + width, y + height, Color.LIGHT_GRAY.getRGB()));
@@ -366,7 +366,7 @@ public void init(@Nullable CompoundTag intent) {
366
366
367
367
super.init(intent);
368
368
369
-
defaultLayout.setBackground((graphics, gui, mc, x, y, width, height, mouseX, mouseY, windowActive) -> graphics.fill(x, y, x + width, y + height, Color.LIGHT_GRAY.getRGB()));
369
+
defaultLayout.setBackground((graphics, mc, x, y, width, height, mouseX, mouseY, windowActive) -> graphics.fill(x, y, x + width, y + height, Color.LIGHT_GRAY.getRGB()));
Copy file name to clipboardExpand all lines: common/src/main/java/com/ultreon/devices/api/app/component/ComboBox.java
+19-18
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
importnet.minecraft.client.Minecraft;
13
13
importnet.minecraft.client.gui.Gui;
14
14
15
+
importnet.minecraft.client.gui.GuiGraphics;
15
16
importorg.jetbrains.annotations.NotNull;
16
17
importorg.jetbrains.annotations.Nullable;
17
18
importjava.awt.*;
@@ -49,11 +50,11 @@ public void handleTick() {
49
50
50
51
@Override
51
52
publicvoidinit(Layoutlayout) {
52
-
this.layout.setBackground((pose, gui, mc, x, y, width, height, mouseX, mouseY, windowActive) -> Gui.fill(pose, x, y, x + width, y + height, Color.GRAY.getRGB()));
53
+
this.layout.setBackground((graphics, mc, x, y, width, height, mouseX, mouseY, windowActive) -> graphics.fill(x, y, x + width, y + height, Color.GRAY.getRGB()));
fill(pose, x + borderThickness, y + borderThickness, x + componentWidth - borderThickness, y + componentHeight - borderThickness, Color.LIGHT_GRAY.getRGB());
296
+
graphics.fill(x + borderThickness, y + borderThickness, x + componentWidth - borderThickness, y + componentHeight - borderThickness, Color.LIGHT_GRAY.getRGB());
296
297
} else {
297
-
fill(pose, x, y, x + componentWidth, y + componentHeight, Color.LIGHT_GRAY.getRGB());
298
+
graphics.fill(x, y, x + componentWidth, y + componentHeight, Color.LIGHT_GRAY.getRGB());
0 commit comments