From 4422d7d648d2968060e3ecdbd34b01b7796ab18f Mon Sep 17 00:00:00 2001 From: isXander Date: Thu, 2 Feb 2023 20:24:39 +0000 Subject: 22w05a button changes --- src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java') diff --git a/src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java b/src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java index 3b66b6a..15257e3 100644 --- a/src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java +++ b/src/client/java/dev/isxander/yacl/gui/LowProfileButtonWidget.java @@ -18,12 +18,12 @@ public class LowProfileButtonWidget extends Button { } @Override - public void renderButton(PoseStack matrices, int mouseX, int mouseY, float delta) { + public void renderButton(PoseStack matrices, int mouseX, int mouseY) { if (!isHoveredOrFocused() || !active) { int j = this.active ? 0xFFFFFF : 0xA0A0A0; - drawCenteredString(matrices, Minecraft.getInstance().font, this.getMessage(), this.getX() + this.width / 2, this.getY() + (this.height - 8) / 2, j | Mth.ceil(this.alpha * 255.0F) << 24); + this.renderString(matrices, Minecraft.getInstance().font, this.getX() + this.width / 2, this.getY() + (this.height - 8) / 2, j); } else { - super.renderButton(matrices, mouseX, mouseY, delta); + super.renderButton(matrices, mouseX, mouseY); } } } -- cgit