Skip to content

Commit

Permalink
Attempt to fix pop-in
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Apr 23, 2024
1 parent e6cc770 commit e194a72
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ protected void renderWidget(GuiGraphics guiGraphics, int pInt1, int pInt2, float
RenderSystem.enableDepthTest();
GuiUtil.bindIrisWidgetsTexture();
GuiUtil.drawButton(guiGraphics, this.getX(), this.getY(), this.getWidth(), this.getHeight(), this.isHoveredOrFocused(), this.active);
guiGraphics.setColor(1.0F, 1.0F, 1.0F, 1.0F);
guiGraphics.setColor(1.0F, 1.0F, 1.0F, this.alphaSupplier.getAsFloat());
int lvInt6 = this.active ? 16777215 : 10526880;
this.renderString(guiGraphics, lvMinecraft5.font, lvInt6 | Mth.ceil(this.alphaSupplier.getAsFloat() * 255.0F) << 24);
guiGraphics.setColor(1.0F, 1.0F, 1.0F, 1.0F);

}

public static IrisButton.Builder iris$builder(Component pComponent0, Button.OnPress pButton$OnPress1, FloatSupplier alpha) {
Expand Down

0 comments on commit e194a72

Please sign in to comment.