diff options
| author | shedaniel <daniel@shedaniel.me> | 2023-07-03 20:11:18 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2023-07-03 20:11:18 +0800 |
| commit | c11c54d097fa13d57ed8311f87b77e2dc81a5a4b (patch) | |
| tree | 90ff39585d6adac0f0189eaf3f9ec7a4ad224066 | |
| parent | 59b1148af5084214255682b3e57631324f040ab1 (diff) | |
| download | RoughlyEnoughItems-c11c54d097fa13d57ed8311f87b77e2dc81a5a4b.tar.gz RoughlyEnoughItems-c11c54d097fa13d57ed8311f87b77e2dc81a5a4b.tar.bz2 RoughlyEnoughItems-c11c54d097fa13d57ed8311f87b77e2dc81a5a4b.zip | |
Fix hints text render
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/hint/HintWidget.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/hint/HintWidget.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/hint/HintWidget.java index 2d83fb0bc..448e31b3d 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/hint/HintWidget.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/hint/HintWidget.java @@ -116,9 +116,7 @@ public class HintWidget extends WidgetWithBounds { this.scroll.setTarget(ScrollingContainer.handleBounceBack(scroll.target(), this.contentHeight - (this.bounds.height - 8 - 9) - 9, delta, .08)); this.scroll.update(delta); - RenderSystem.disableDepthTest(); graphics.pose().pushPose(); - graphics.pose().translate(0, 0, 450); int background = 0xf0100010; int color1 = 0x505000ff; int color2 = color1; @@ -132,6 +130,9 @@ public class HintWidget extends WidgetWithBounds { graphics.fillGradient(x + width - 1, y + 1, x + width, y + height - 1, 400, color1, color2); graphics.fillGradient(x, y, x + width, y + 1, 400, color1, color1); graphics.fillGradient(x, y + height - 1, x + width, y + height, 400, color2, color2); + graphics.pose().popPose(); + graphics.pose().pushPose(); + graphics.pose().translate(0, 0, 450); int lineY = y + 4; try (CloseableScissors scissors = Widget.scissor(graphics, new Rectangle(x + 4, y + 4, width - 8, height - 8 - 9 - 2))) { @@ -155,7 +156,6 @@ public class HintWidget extends WidgetWithBounds { graphics.drawString(font, okay, this.okayBounds.x, this.okayBounds.y, 0xFF999999); graphics.pose().popPose(); - RenderSystem.enableDepthTest(); if (this.bounds.contains(mouseX, mouseY)) { ScreenOverlayImpl.getInstance().clearTooltips(); |
