ToolTipComponent: Update looks

This commit is contained in:
noil 2020-12-29 21:31:19 -05:00
parent ebf515a577
commit d3b2b0107e
1 changed files with 3 additions and 3 deletions

View File

@ -40,12 +40,12 @@ public class ToolTipComponent extends HudComponent {
this.clamp();
// background
RenderUtil.drawRect(this.getX() - 2, this.getY() - 2, this.getX() + this.getW() + 2, this.getY() + this.getH() + 2, ColorUtil.changeAlpha(0x80101010, this.alpha / 2));
RenderUtil.drawRect(this.getX() - 1, this.getY() - 1, this.getX() + this.getW() + 1, this.getY() + this.getH() + 1, ColorUtil.changeAlpha(0xAD101010, this.alpha / 2));
RenderUtil.drawRect(this.getX() - 2, this.getY() - 9, this.getX() + this.getW() + 2, this.getY() + this.getH() - 6, ColorUtil.changeAlpha(0x80101010, this.alpha / 2));
RenderUtil.drawRect(this.getX() - 1, this.getY() - 8, this.getX() + this.getW() + 1, this.getY() + this.getH() - 7, ColorUtil.changeAlpha(0xAD101010, this.alpha / 2));
// text
GlStateManager.enableBlend();
Minecraft.getMinecraft().fontRenderer.drawStringWithShadow(this.text, this.getX() + 1, this.getY() + 1, ColorUtil.changeAlpha(0xADC255FF, this.alpha));
Minecraft.getMinecraft().fontRenderer.drawStringWithShadow(this.text, this.getX() + 1, this.getY() - 7, ColorUtil.changeAlpha(0xFFFFFFFF, this.alpha));
GlStateManager.disableBlend();
}
}