Skip to content

Commit

Permalink
Merge pull request #1015 from radfast/master
Browse files Browse the repository at this point in the history
Inventory tabs - improve appearance of unselected tab.
  • Loading branch information
bonii-xx committed Sep 23, 2014
2 parents 50269ec + 18343a7 commit 518de71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/tconstruct/client/tabs/AbstractTab.java
Original file line number Diff line number Diff line change
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 518de71

Please sign in to comment.