From 5fc6fbed058aa47516d35d18c6322b21b4686e50 Mon Sep 17 00:00:00 2001 From: stal111 Date: Sat, 16 Sep 2023 23:23:58 +0200 Subject: [PATCH] Adjust hud overlay positions --- .../client/gui/overlay/AurealMeterOverlay.java | 4 ++-- .../client/gui/overlay/SanityMeterOverlay.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/stal111/forbidden_arcanus/client/gui/overlay/AurealMeterOverlay.java b/src/main/java/com/stal111/forbidden_arcanus/client/gui/overlay/AurealMeterOverlay.java index 15b152ad..0e4e4003 100644 --- a/src/main/java/com/stal111/forbidden_arcanus/client/gui/overlay/AurealMeterOverlay.java +++ b/src/main/java/com/stal111/forbidden_arcanus/client/gui/overlay/AurealMeterOverlay.java @@ -30,7 +30,7 @@ public void render(ForgeGui gui, GuiGraphics guiGraphics, float partialTick, int } IAureal aureal = AurealHelper.getCapability(player); - guiGraphics.blit(TEXTURE, window.getGuiScaledWidth() / 2 + 10, window.getGuiScaledHeight() - 25 - 23, 18, 9, 81, 9, 256, 128); + guiGraphics.blit(TEXTURE, window.getGuiScaledWidth() / 2 + 10, window.getGuiScaledHeight() - 25 - 24, 18, 9, 81, 9, 256, 128); this.renderOverlay(guiGraphics, window, aureal); } @@ -39,7 +39,7 @@ private void renderOverlay(GuiGraphics guiGraphics, Window window, IAureal aurea int xSize = Math.toIntExact(Math.round(BAR_WIDTH * ((aureal.getAureal()) / 200.0F))); int startOffset = BAR_WIDTH - xSize; - guiGraphics.blit(TEXTURE, window.getGuiScaledWidth() / 2 + 13 + startOffset, window.getGuiScaledHeight() - 25 - 22, 21 + startOffset, 19, xSize, 7, 256, 128); + guiGraphics.blit(TEXTURE, window.getGuiScaledWidth() / 2 + 13 + startOffset, window.getGuiScaledHeight() - 25 - 23, 21 + startOffset, 19, xSize, 7, 256, 128); } } diff --git a/src/main/java/com/stal111/forbidden_arcanus/client/gui/overlay/SanityMeterOverlay.java b/src/main/java/com/stal111/forbidden_arcanus/client/gui/overlay/SanityMeterOverlay.java index 0a33d40f..94d9665c 100644 --- a/src/main/java/com/stal111/forbidden_arcanus/client/gui/overlay/SanityMeterOverlay.java +++ b/src/main/java/com/stal111/forbidden_arcanus/client/gui/overlay/SanityMeterOverlay.java @@ -34,7 +34,7 @@ public void render(ForgeGui gui, GuiGraphics guiGraphics, float partialTicks, in IAureal aureal = AurealHelper.getCapability(player); - guiGraphics.blit(TEXTURE, window.getGuiScaledWidth() / 2 - 9, window.getGuiScaledHeight() - 39 - 13, 0, 0, 18, 18, 256, 128); + guiGraphics.blit(TEXTURE, window.getGuiScaledWidth() / 2 - 9, window.getGuiScaledHeight() - 39 - 16, 0, 0, 18, 18, 256, 128); this.renderOverlay(guiGraphics, window, aureal, false); this.renderOverlay(guiGraphics, window, aureal, true); @@ -42,6 +42,6 @@ public void render(ForgeGui gui, GuiGraphics guiGraphics, float partialTicks, in private void renderOverlay(GuiGraphics guiGraphics, Window window, IAureal aureal, boolean corruption) { int ySize = Math.toIntExact(Math.round(12.0F * (corruption ? aureal.getCorruption() / 100.0F : aureal.getAureal() / 200.0F))); - guiGraphics.blit(TEXTURE, window.getGuiScaledWidth() / 2 - 9, window.getGuiScaledHeight() - 36 - ySize, 0, (corruption ? 51 : 38) - 4 - ySize, 18, ySize, 256, 128); + guiGraphics.blit(TEXTURE, window.getGuiScaledWidth() / 2 - 9, window.getGuiScaledHeight() - 39 - ySize, 0, (corruption ? 51 : 38) - 4 - ySize, 18, ySize, 256, 128); } }