Added GUI progress bar to the Chemical Reactor

This commit is contained in:
Tntrololol 2015-05-20 17:34:41 -05:00
parent f32c81c780
commit 2278e2ab3e
2 changed files with 12 additions and 0 deletions

View file

@ -38,6 +38,18 @@ public class GuiChemicalReactor extends GuiContainer {
int l = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
int j = 0;
if(chemicalReactor.crafter.currentRecipe != null) {
j = this.chemicalReactor.crafter.currentTickTime * 11 / this.chemicalReactor.crafter.currentRecipe.tickTime();
}
this.drawTexturedModalRect(k + 73, l + 39, 177, 15, 30, j);
j = (int)this.chemicalReactor.energy.getEnergyStored() * 12 / this.chemicalReactor.energy.getCapacity();
if(j > 0) {
this.drawTexturedModalRect(k + 9, l + 32 + 12 - j, 176, 12 - j, 14, j + 2);
}
}
protected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB