Skip to content

Commit

Permalink
fix Textbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Superloup10 committed Jun 11, 2014
1 parent 18d7af3 commit f378c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/energy/transformer/common/gui/GuiPixelCondenser.java
Expand Up @@ -45,6 +45,7 @@ public void drawScreen(int mouseX, int mouseY, float par3)
{
super.drawScreen(mouseX, mouseY, par3);
this.updateScrollbar(mouseX, mouseY, par3);
this.textField.drawTextBox();
}

private void updateScrollbar(int mouseX, int mouseY, float par3)
Expand Down Expand Up @@ -104,7 +105,7 @@ public void initGui()
this.buttonList.clear();
this.buttonList.add(this.convert = new GuiButton(0, x + 150, y + 20, 67, 20, "Convert"));

this.textField = new GuiTextField(this.fontRendererObj, x - 51, y + 92, 90, 12);
this.textField = new GuiTextField(this.fontRendererObj, x + 35, y + 85, 87, 10);
this.textField.setMaxStringLength(120);
this.textField.setCanLoseFocus(false);
this.textField.setFocused(true);
Expand Down Expand Up @@ -164,7 +165,6 @@ protected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_)
{
this.fontRendererObj.drawString(this.pixelCondenser.hasCustomInventoryName() ? this.pixelCondenser.getInventoryName() : StatCollector.translateToLocal(this.pixelCondenser.getInventoryName()), 35, this.ySize - 241, 4210752);
this.fontRendererObj.drawString(StatCollector.translateToLocal("container.inventory"), 47, this.ySize - 102, 4210752);
this.textField.drawTextBox();
}

private int inventoryRows = 0;
Expand Down

0 comments on commit f378c41

Please sign in to comment.