Outline around the hub, module lists, shulker preview backdrop

This commit is contained in:
noil 2019-11-04 15:31:27 -05:00
parent c69ed7663d
commit f264b7fbc3
3 changed files with 5 additions and 2 deletions

View File

@ -55,6 +55,7 @@ public final class HubComponent extends DraggableHudComponent {
}
// Background & title
RenderUtil.drawRect(this.getX() - 1, this.getY() - 1, this.getX() + this.getW() + 1, this.getY() + this.getH() + 1, 0x99101010);
RenderUtil.drawRect(this.getX(), this.getY(), this.getX() + this.getW(), this.getY() + this.getH(), 0xFF202020);
mc.fontRenderer.drawStringWithShadow(this.getName(), this.getX() + 2, this.getY() + 2, 0xFFFFFFFF);
offsetY += mc.fontRenderer.FONT_HEIGHT + 1;

View File

@ -58,6 +58,7 @@ public final class ModuleListComponent extends DraggableHudComponent {
}
// Background & title
RenderUtil.drawRect(this.getX() - 1, this.getY() - 1, this.getX() + this.getW() + 1, this.getY() + this.getH() + 1, 0x99101010);
RenderUtil.drawRect(this.getX(), this.getY(), this.getX() + this.getW(), this.getY() + this.getH(), 0xFF202020);
mc.fontRenderer.drawStringWithShadow(this.getName(), this.getX() + 2, this.getY() + 2, 0xFFFFFFFF);
offsetY += mc.fontRenderer.FONT_HEIGHT + 1;

View File

@ -50,8 +50,9 @@ public final class ShulkerPreviewModule extends Module {
GlStateManager.disableLighting();
GlStateManager.disableDepth();
// background
RenderUtil.drawRect(-2, -mc.fontRenderer.FONT_HEIGHT - 3, 9 * 16 + 2, 3 * 16 + 2, 0xEE202020);
RenderUtil.drawRect(0, 0, 9 * 16, 3 * 16, 0x99101010);
RenderUtil.drawRect(-3, -mc.fontRenderer.FONT_HEIGHT - 4, 9 * 16 + 3, 3 * 16 + 3, 0x99101010);
RenderUtil.drawRect(-2, -mc.fontRenderer.FONT_HEIGHT - 3, 9 * 16 + 2, 3 * 16 + 2, 0xFF202020);
RenderUtil.drawRect(0, 0, 9 * 16, 3 * 16, 0xFF101010);
// text
mc.fontRenderer.drawStringWithShadow(shulker.getDisplayName(), 0, -mc.fontRenderer.FONT_HEIGHT - 1, 0xFFFFFFFF);