use of binnie.core.gui.minecraft.control.ControlEnergyBar in project Binnie by ForestryMC.
the class WindowGenepool method initialiseClient.
@Override
@SideOnly(Side.CLIENT)
public void initialiseClient() {
super.initialiseClient();
int x = 16;
final int y = 32;
new ControlLiquidTank(this, x, y, Genepool.TANK_ETHANOL);
x += 26;
new ControlSlotArray.Builder(this, x, y + 3, 2, 3).create(Genepool.SLOT_RESERVE);
x += 38;
new ControlIconDisplay(this, x, y + 3 + 18 + 1, GUIIcon.ARROW_RIGHT.getIcon().getResourceLocation());
x += 18;
new ControlSlot.Builder(this, x, y + 3 + 18).assign(0);
x += 18;
new ControlMachineProgress(this, x, y + 19, PROGRESS_BASE, PROGRESS, Alignment.LEFT);
x += 130;
new ControlLiquidTank(this, x, y, Genepool.TANK_DNA);
new ControlEnergyBar(this, 21, 115, 16, 60, Alignment.BOTTOM);
new ControlSlot.Builder(this, 121, 82).assign(7);
new ControlSlotCharge(this, 143, 82, 7).setColor(15722671);
new ControlErrorState(this, 181, 83);
new ControlPlayerInventory(this);
}
use of binnie.core.gui.minecraft.control.ControlEnergyBar in project Binnie by ForestryMC.
the class WindowSplicer method initialiseClient.
@Override
@SideOnly(Side.CLIENT)
public void initialiseClient() {
super.initialiseClient();
int x = 16;
new ControlSplicerProgress(this, 84, 32, this.getWidth() - 172, 102);
CraftGUIUtil.horizontalGrid(x, 62, new ControlSlotArray.Builder(this, 0, 0, 2, 1).create(Splicer.SLOT_SERUM_RESERVE), new ControlIconDisplay(this, 0, 0, GUIIcon.ARROW_RIGHT.getIcon().getResourceLocation()), new ControlSlot.Builder(this, 0, 0).assign(0));
new ControlSlotArray.Builder(this, x + 12, 84, 2, 1).create(Splicer.SLOT_SERUM_EXPENDED);
new ControlIconDisplay(this, x + 12 + 36 + 4, 86, GUIIcon.ARROW_UP_LEFT.getIcon().getResourceLocation());
new ControlEnergyBar(this, 196, 64, 60, 16, Alignment.LEFT);
new ControlErrorState(this, 218, 86);
x += 142;
CraftGUIUtil.verticalGrid((this.getWidth() - 72) / 2, 32, TextJustification.MIDDLE_CENTER, 4, new ControlSlotArray.Builder(this, 0, 0, 4, 1).create(Inoculator.SLOT_RESERVE), new ControlIconDisplay(this, 0, 0, GUIIcon.ARROW_DOWN.getIcon().getResourceLocation()), new ControlSlot.Builder(this, 0, 0).assign(9), new ControlIconDisplay(this, 0, 0, GUIIcon.ARROW_DOWN.getIcon().getResourceLocation()), new ControlSlotArray.Builder(this, 0, 0, 4, 1).create(Inoculator.SLOT_FINISHED));
new ControlPlayerInventory(this);
}
Aggregations