Fixed Implosion Compressor gui closes #261
This commit is contained in:
parent
320d06e39e
commit
4d6f961b9c
1 changed files with 11 additions and 11 deletions
|
@ -38,21 +38,21 @@ public class GuiImplosionCompressor extends GuiContainer {
|
||||||
int l = (this.height - this.ySize) / 2;
|
int l = (this.height - this.ySize) / 2;
|
||||||
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
|
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
|
||||||
|
|
||||||
int j = 0;
|
|
||||||
if (this.compresser.crafter.currentTickTime != 0) {
|
|
||||||
j = this.compresser.crafter.currentTickTime * 20 / this.compresser.crafter.currentNeededTicks;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (compresser.getMutliBlock() != true) {
|
if (compresser.getMutliBlock() != true) {
|
||||||
GuiDraw.drawTooltipBox(k + 30, l + 50 + 12 - j, 114, 10);
|
GuiDraw.drawTooltipBox(k + 30, l + 50 + 12 - 0, 114, 10);
|
||||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("techreborn.message.missingmultiblock"), k + 38, l + 52 + 12 - j, -1);
|
this.fontRendererObj.drawString(StatCollector.translateToLocal("techreborn.message.missingmultiblock"), k + 38, l + 52 + 12 - 0, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.drawTexturedModalRect(k + 60, l + 38, 176, 14, j + 1, 16);
|
int j = 0;
|
||||||
|
this.mc.getTextureManager().bindTexture(texture);
|
||||||
j = (int) (this.compresser.crafter.energy.getEnergy() * 12 / this.compresser.getMaxPower());
|
j = compresser.getProgressScaled(24);
|
||||||
if (j > 0) {
|
if (j > 0) {
|
||||||
this.drawTexturedModalRect(k + 16, l + 37 + 12 - j, 176, 12 - j, 14, j + 2);
|
this.drawTexturedModalRect(k + 60, l + 37, 176, 14, j + 1, 16);
|
||||||
|
}
|
||||||
|
|
||||||
|
j = compresser.getEnergyScaled(12);
|
||||||
|
if (j > 0) {
|
||||||
|
this.drawTexturedModalRect(k + 14, l + 36 + 12 - j, 176, 12 - j, 14, j + 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue