Skip to content

Commit

Permalink
Translated baubles button and text in front of the player model. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Phylogeny committed Aug 20, 2017
1 parent 65f9c79 commit fa67b37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/baubles/client/gui/GuiBaublesButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,15 @@ public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks)
GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);

GlStateManager.pushMatrix();
GlStateManager.translate(0, 0, 200);
if (k==1) {
this.drawTexturedModalRect(x, this.y, 200, 48, 10, 10);
} else {
this.drawTexturedModalRect(x, this.y, 210, 48, 10, 10);
this.drawCenteredString(fontrenderer, I18n.format(this.displayString), x + 5, this.y + this.height, 0xffffff);
}
GlStateManager.popMatrix();

this.mouseDragged(mc, mouseX, mouseY);
}
Expand Down

0 comments on commit fa67b37

Please sign in to comment.