Skip to content

Commit

Permalink
Inventory tabs - improve appearance of unselected tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
radfast committed Sep 23, 2014
1 parent c7a0ed7 commit 18343a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/tconstruct/client/tabs/AbstractTab.java
Expand Up @@ -28,11 +28,12 @@ public void drawButton (Minecraft mc, int mouseX, int mouseY)
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);

int yTexPos = this.enabled ? 3 : 32;
int ySize = this.enabled ? 28 : 32;
int ySize = this.enabled ? 25 : 32;
int xOffset = this.id == 2 ? 0 : 1;
int yPos = this.yPosition + (this.enabled ? 3 : 0);

mc.renderEngine.bindTexture(this.texture);
this.drawTexturedModalRect(this.xPosition, this.yPosition, xOffset * 28, yTexPos, 28, ySize);
this.drawTexturedModalRect(this.xPosition, yPos, xOffset * 28, yTexPos, 28, ySize);

RenderHelper.enableGUIStandardItemLighting();
this.zLevel = 100.0F;
Expand Down

0 comments on commit 18343a7

Please sign in to comment.