Skip to content

Commit

Permalink
Cleanup unused vars in social button
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Jan 6, 2024
1 parent 53e0574 commit 34d9aad
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ public class SocialButton extends Button {

public static final ResourceLocation SOCIAL_ICONS = new ResourceLocation(Quark.MOD_ID, "textures/gui/social_icons.png");

private final Component text;
private final int textColor;
private final int socialId;

public SocialButton(int x, int y, Component text, int textColor, int socialId, OnPress onClick) {
super(new Button.Builder(Component.literal(""), onClick).size(20, 20).pos(x, y));
this.textColor = textColor;
this.socialId = socialId;
this.text = text;

setTooltip(Tooltip.create(text));
}
Expand All @@ -48,9 +46,6 @@ public void renderWidget(@NotNull GuiGraphics guiGraphics, int mouseX, int mouse
int v = isHovered ? 20 : 0;

guiGraphics.blit(SOCIAL_ICONS, getX(), getY(), u, v, 20, 20, 128, 64);

//if(isHovered)
// guiGraphics.renderTooltip(Minecraft.getInstance().font, text, mouseX, mouseY);
}

@Override
Expand Down

0 comments on commit 34d9aad

Please sign in to comment.