Search in sources :

Example 1 with ControlProgress

use of binnie.core.gui.minecraft.control.ControlProgress in project Binnie by ForestryMC.

the class WindowAnalyser method initialiseClient.

@Override
@SideOnly(Side.CLIENT)
public void initialiseClient() {
    super.initialiseClient();
    int x = 16;
    final int y = 32;
    new ControlSlotArray.Builder(this, x, y, 2, 3).create(Analyser.SLOT_RESERVE);
    x += 28;
    new ControlSlot.Builder(this, x, y + 54 + 8).assign(13);
    new ControlSlotCharge(this, x + 20, y + 54 + 8, 13).setColor(10040319);
    new ControlEnergyBar(this, x + 24 + 16, y + 54 + 8 + 1, 60, 16, Alignment.LEFT);
    new ControlErrorState(this, x + 24 + 16 + 60 + 16, y + 54 + 8 + 1);
    x -= 28;
    new ControlIconDisplay(this, x + 36 + 2, y + 18, GUIIcon.ARROW_RIGHT.getIcon().getResourceLocation());
    x += 56;
    new Panel(this, x, y, 76, 50, MinecraftGUI.PanelType.TINTED);
    new ControlProgress(this, x + 5, y + 5, PROGRESS_BASE, PROGRESS, Alignment.LEFT);
    new ControlSlot.Builder(this, x + 38 - 9, y + 25 - 9).assign(6);
    new ControlIconDisplay(this, x + 76 + 2, y + 18, GUIIcon.ARROW_RIGHT.getIcon().getResourceLocation());
    x += 96;
    new ControlSlotArray.Builder(this, x, y, 2, 3).create(Analyser.SLOT_FINISHED);
    x += 52;
    new ControlPlayerInventory(this);
}
Also used : ControlIconDisplay(binnie.core.gui.minecraft.control.ControlIconDisplay) Panel(binnie.core.gui.window.Panel) ControlErrorState(binnie.core.gui.minecraft.control.ControlErrorState) ControlSlotArray(binnie.core.gui.minecraft.control.ControlSlotArray) ControlPlayerInventory(binnie.core.gui.minecraft.control.ControlPlayerInventory) ControlSlot(binnie.core.gui.minecraft.control.ControlSlot) ControlSlotCharge(binnie.core.gui.minecraft.control.ControlSlotCharge) ControlProgress(binnie.core.gui.minecraft.control.ControlProgress) ControlEnergyBar(binnie.core.gui.minecraft.control.ControlEnergyBar) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 2 with ControlProgress

use of binnie.core.gui.minecraft.control.ControlProgress in project Binnie by ForestryMC.

the class WindowIsolator method initialiseClient.

@Override
@SideOnly(Side.CLIENT)
public void initialiseClient() {
    super.initialiseClient();
    int x = 16;
    final int y = 32;
    new ControlLiquidTank(this, x, y, Isolator.TANK_ETHANOL);
    x += 26;
    new ControlSlotArray.Builder(this, x, y + 3, 1, 3).create(Isolator.SLOT_RESERVE);
    x += 20;
    new ControlIconDisplay(this, x, y + 3 + 1, GUIIcon.ARROW_RIGHT.getIcon().getResourceLocation());
    x += 18;
    new ControlSlot.Builder(this, x, y + 3).assign(5);
    new ControlSlot.Builder(this, x, y + 36 + 3).assign(0);
    new ControlSlotCharge(this, x + 18 + 2, y + 36 + 3, 0).setColor(15722671);
    x += 18;
    new ControlProgress(this, x, y + 3, PROGRESS_BASE, PROGRESS, Alignment.LEFT);
    x += 142;
    new ControlSlot.Builder(this, x, y + 3).assign(6);
    new ControlSlot.Builder(this, x, y + 3 + 36).assign(1);
    new ControlIconDisplay(this, x + 1, y + 3 + 19, GUIIcon.ARROW_UP.getIcon().getResourceLocation());
    x += 20;
    new ControlIconDisplay(this, x, y + 3 + 1, GUIIcon.ARROW_RIGHT.getIcon().getResourceLocation());
    x += 18;
    new ControlSlotArray.Builder(this, x, y + 3, 2, 3).create(Isolator.SLOT_FINISHED);
    new ControlEnergyBar(this, 260, 130, 16, 60, Alignment.BOTTOM);
    new ControlErrorState(this, 153, 81);
    new ControlPlayerInventory(this);
}
Also used : ControlIconDisplay(binnie.core.gui.minecraft.control.ControlIconDisplay) ControlErrorState(binnie.core.gui.minecraft.control.ControlErrorState) ControlSlotArray(binnie.core.gui.minecraft.control.ControlSlotArray) ControlPlayerInventory(binnie.core.gui.minecraft.control.ControlPlayerInventory) ControlSlot(binnie.core.gui.minecraft.control.ControlSlot) ControlSlotCharge(binnie.core.gui.minecraft.control.ControlSlotCharge) ControlLiquidTank(binnie.core.gui.minecraft.control.ControlLiquidTank) ControlProgress(binnie.core.gui.minecraft.control.ControlProgress) ControlEnergyBar(binnie.core.gui.minecraft.control.ControlEnergyBar) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

ControlEnergyBar (binnie.core.gui.minecraft.control.ControlEnergyBar)2 ControlErrorState (binnie.core.gui.minecraft.control.ControlErrorState)2 ControlIconDisplay (binnie.core.gui.minecraft.control.ControlIconDisplay)2 ControlPlayerInventory (binnie.core.gui.minecraft.control.ControlPlayerInventory)2 ControlProgress (binnie.core.gui.minecraft.control.ControlProgress)2 ControlSlot (binnie.core.gui.minecraft.control.ControlSlot)2 ControlSlotArray (binnie.core.gui.minecraft.control.ControlSlotArray)2 ControlSlotCharge (binnie.core.gui.minecraft.control.ControlSlotCharge)2 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)2 ControlLiquidTank (binnie.core.gui.minecraft.control.ControlLiquidTank)1 Panel (binnie.core.gui.window.Panel)1