diff options
| author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-11 13:12:19 +0200 |
|---|---|---|
| committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-11 13:12:19 +0200 |
| commit | 333b4099972260d0e348ec20f8a00a430471aac8 (patch) | |
| tree | 18680345cab8a241c2e7bc9b1c0950149497a88f /src/main/java/cc/polyfrost/oneconfig/gui/HudGui.java | |
| parent | 5c16cd384103e0bdbef68fe378f49eb491eacef8 (diff) | |
| parent | fd70b3f28f9682e3195f798ae7e1417e81bede7b (diff) | |
| download | OneConfig-333b4099972260d0e348ec20f8a00a430471aac8.tar.gz OneConfig-333b4099972260d0e348ec20f8a00a430471aac8.tar.bz2 OneConfig-333b4099972260d0e348ec20f8a00a430471aac8.zip | |
Merge branch 'master' of github.com:Polyfrost/OneConfig
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/HudGui.java')
| -rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/HudGui.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/HudGui.java b/src/main/java/cc/polyfrost/oneconfig/gui/HudGui.java index a67c1d1..5465652 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/HudGui.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/HudGui.java @@ -3,7 +3,6 @@ package cc.polyfrost.oneconfig.gui; import cc.polyfrost.oneconfig.hud.HudCore; import cc.polyfrost.oneconfig.hud.BasicHud; import cc.polyfrost.oneconfig.lwjgl.RenderManager; -import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.GuiScreen; import org.lwjgl.input.Keyboard; @@ -26,7 +25,7 @@ public class HudGui extends GuiScreen { @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { - Gui.drawRect(0, 0, this.width, this.height, new Color(80, 80, 80, 50).getRGB()); + RenderManager.drawGlRect(0, 0, this.width, this.height, new Color(80, 80, 80, 50).getRGB()); if (isDragging) { setPosition(mouseX - xOffset, mouseY - yOffset, true); @@ -67,7 +66,7 @@ public class HudGui extends GuiScreen { if (editingHud == hud) { color = new Color(43, 159, 235).getRGB(); if (isDragging) - Gui.drawRect(x, y, x + width, y + height, new Color(108, 176, 255, 60).getRGB()); + RenderManager.drawGlRect(x, y, width, height, new Color(108, 176, 255, 60).getRGB()); } int finalColor = color; RenderManager.setupAndDraw(true, (vg) -> { |
