ToolTipComponent: Update looks
This commit is contained in:
parent
ebf515a577
commit
d3b2b0107e
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue