Guis for batbox, mfe, mfsu

This commit is contained in:
gigabit101 2016-03-21 15:52:46 +00:00
parent cb42f452c4
commit 1acdc13e2d
2 changed files with 22 additions and 34 deletions

View file

@ -42,10 +42,10 @@ public class GuiBatbox extends GuiContainer {
int j = 0;
// j = generator.getEnergyScaled(24);
// if (j > 0) {
// this.drawTexturedModalRect(k + 109, l + 21 + 12, 176, 0, j + 1, 16);
// }
j = generator.getEnergyScaled(24);
if (j > 0) {
this.drawTexturedModalRect(k + 109, l + 21 + 12, 176, 0, j + 1, 16);
}
//
// if (containerGenerator.burnTime != 0)
// {
@ -57,7 +57,9 @@ public class GuiBatbox extends GuiContainer {
protected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_) {
String name = I18n.translateToLocal("tile.techreborn.batbox.name");
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
this.fontRendererObj.drawString(I18n.translateToLocalFormatted("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752);
// this.fontRendererObj.drawString(PowerSystem.getLocaliszedPower(containerGenerator.energy), 25, this.ySize- 150, 4210752);
this.fontRendererObj.drawString(PowerSystem.getLocaliszedPower(generator.getMaxPower()), 25, this.ySize- 140, 4210752);
this.fontRendererObj.drawString(PowerSystem.getLocaliszedPower(containerGenerator.energy), 25, this.ySize- 150, 4210752);
}
}