Search in sources :

Example 6 with ControlErrorState

use of binnie.core.gui.minecraft.control.ControlErrorState 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);
}
Also used : ControlIconDisplay(binnie.core.gui.minecraft.control.ControlIconDisplay) ControlErrorState(binnie.core.gui.minecraft.control.ControlErrorState) ControlSlotArray(binnie.core.gui.minecraft.control.ControlSlotArray) ControlMachineProgress(binnie.core.gui.minecraft.control.ControlMachineProgress) 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) ControlEnergyBar(binnie.core.gui.minecraft.control.ControlEnergyBar) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 7 with ControlErrorState

use of binnie.core.gui.minecraft.control.ControlErrorState 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);
}
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) ControlEnergyBar(binnie.core.gui.minecraft.control.ControlEnergyBar) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 8 with ControlErrorState

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

the class WindowDesigner method initialiseClient.

@Override
@SideOnly(Side.CLIENT)
public void initialiseClient() {
    this.setTitle(Machine.getMachine(this.getInventory()).getPackage().getDisplayName());
    new ControlText(this, new Area(190, 36, 114, 10), I18N.localise(new ResourceLocation(Constants.DESIGN_MOD_ID, "gui.design")), TextJustification.TOP_CENTER).setColor(4473924);
    new Panel(this, 188, 48, 118, 126, MinecraftGUI.PanelType.GRAY);
    this.textEdit = new ControlTextEdit(this, 188, 178, 118, 12);
    final ControlScrollableContent scroll = new ControlScrollableContent(this, 190, 50, 114, 122, 12);
    scroll.setScrollableContent(this.tileSelect = new ControlTileSelect(scroll, 0, 0));
    new ControlPlayerInventory(this).setPosition(new Point(14, 96));
    new ControlErrorState(this, 76, 65);
    if (this.getInventory() != null) {
        new ControlSlot.Builder(this, 22, 34).assign(DesignerSlots.DESIGN_SLOT_1);
        new ControlSlot.Builder(this, 62, 34).assign(DesignerSlots.DESIGN_SLOT_2);
        new ControlSlot.Builder(this, 42, 64).assign(DesignerSlots.ADHESIVE_SLOT);
        new ControlRecipeSlot(this, 112, 34);
    }
}
Also used : ControlErrorState(binnie.core.gui.minecraft.control.ControlErrorState) ControlText(binnie.core.gui.controls.ControlText) ControlTextEdit(binnie.core.gui.controls.ControlTextEdit) Point(binnie.core.gui.geometry.Point) Panel(binnie.core.gui.window.Panel) Area(binnie.core.gui.geometry.Area) ControlPlayerInventory(binnie.core.gui.minecraft.control.ControlPlayerInventory) ResourceLocation(net.minecraft.util.ResourceLocation) ControlSlot(binnie.core.gui.minecraft.control.ControlSlot) ControlScrollableContent(binnie.core.gui.controls.scroll.ControlScrollableContent) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

ControlErrorState (binnie.core.gui.minecraft.control.ControlErrorState)8 ControlPlayerInventory (binnie.core.gui.minecraft.control.ControlPlayerInventory)8 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)8 ControlEnergyBar (binnie.core.gui.minecraft.control.ControlEnergyBar)7 ControlIconDisplay (binnie.core.gui.minecraft.control.ControlIconDisplay)7 ControlSlot (binnie.core.gui.minecraft.control.ControlSlot)6 ControlSlotArray (binnie.core.gui.minecraft.control.ControlSlotArray)5 ControlSlotCharge (binnie.core.gui.minecraft.control.ControlSlotCharge)5 ControlLiquidTank (binnie.core.gui.minecraft.control.ControlLiquidTank)4 ControlMachineProgress (binnie.core.gui.minecraft.control.ControlMachineProgress)3 ControlText (binnie.core.gui.controls.ControlText)2 Area (binnie.core.gui.geometry.Area)2 ControlProgress (binnie.core.gui.minecraft.control.ControlProgress)2 Panel (binnie.core.gui.window.Panel)2 ControlTextEdit (binnie.core.gui.controls.ControlTextEdit)1 ControlScrollableContent (binnie.core.gui.controls.scroll.ControlScrollableContent)1 Point (binnie.core.gui.geometry.Point)1 ResourceLocation (net.minecraft.util.ResourceLocation)1