update the look of HubComponent

This commit is contained in:
noil 2019-10-27 16:19:43 -04:00
parent d2f297184c
commit 7bd97b3d50
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ public final class HubComponent extends DraggableHudComponent {
GL11.glEnable(GL11.GL_SCISSOR_TEST);
for (HudComponent component : Seppuku.INSTANCE.getHudManager().getComponentList()) {
if (component != this) {
RenderUtil.drawRect(this.getX() + BORDER + TEXT_GAP, this.getY() + offsetY + BORDER + TEXT_GAP - this.scroll, this.getX() + BORDER + TEXT_GAP + this.getW() - BORDER - SCROLL_WIDTH - BORDER - 2, this.getY() + offsetY + BORDER + TEXT_GAP + mc.fontRenderer.FONT_HEIGHT - this.scroll, component.isVisible() ? 0x45002e00 : 0x452e0000);
mc.fontRenderer.drawStringWithShadow(component.getName(), this.getX() + BORDER + TEXT_GAP + 1, this.getY() + offsetY + BORDER + TEXT_GAP - this.scroll, component.isVisible() ? 0xFF55FF55 : 0xFFFF5555);
offsetY += mc.fontRenderer.FONT_HEIGHT + TEXT_GAP;
}