Skip to content

Commit

Permalink
DoubleInputWindowElement fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Sep 1, 2024
1 parent 1c54a58 commit ff1d47e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -164,7 +164,7 @@ protected void render(PonderScene scene, PonderUI screen, GuiGraphics graphics,

if (hasItem2) {
GuiGameElement.of(item2)
.<GuiGameElement.GuiRenderBuilder>at(keyWidth2 + (hasIcon2 ? 48 : 0), 0)
.<GuiGameElement.GuiRenderBuilder>at(keyWidth2 + (hasIcon2 ? 60 : 36), 0)
.scale(1.5)
.render(graphics);
RenderSystem.disableDepthTest();
Expand Down

0 comments on commit ff1d47e

Please sign in to comment.