From ff1d47e84ab5bba5bccc3c1bfef4f2e97c6b316c Mon Sep 17 00:00:00 2001 From: IThundxr Date: Sun, 1 Sep 2024 13:59:01 -0400 Subject: [PATCH] DoubleInputWindowElement fixes --- .../ponder/utils/elements/DoubleInputWindowElement.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/dev/ithundxr/createnumismatics/ponder/utils/elements/DoubleInputWindowElement.java b/common/src/main/java/dev/ithundxr/createnumismatics/ponder/utils/elements/DoubleInputWindowElement.java index 6e5d501..9a52875 100644 --- a/common/src/main/java/dev/ithundxr/createnumismatics/ponder/utils/elements/DoubleInputWindowElement.java +++ b/common/src/main/java/dev/ithundxr/createnumismatics/ponder/utils/elements/DoubleInputWindowElement.java @@ -135,7 +135,7 @@ protected void render(PonderScene scene, PonderUI screen, GuiGraphics graphics, PonderPalette.WHITE.getColorObject().scaleAlpha(fade).getRGB(), false); if (hasText2) - graphics.drawString(font, text2, 4 + 24 + 8, (int) ((height - font.lineHeight) / 2f + 2), + graphics.drawString(font, text2, 36, (int) ((height - font.lineHeight) / 2f + 2), PonderPalette.WHITE.getColorObject().scaleAlpha(fade).getRGB(), false); if (hasIcon1) { @@ -164,7 +164,7 @@ protected void render(PonderScene scene, PonderUI screen, GuiGraphics graphics, if (hasItem2) { GuiGameElement.of(item2) - .at(keyWidth2 + (hasIcon2 ? 48 : 0), 0) + .at(keyWidth2 + (hasIcon2 ? 60 : 36), 0) .scale(1.5) .render(graphics); RenderSystem.disableDepthTest();