Search in sources :

Example 81 with GuiButton

use of net.minecraft.client.gui.GuiButton in project LogisticsPipes by RS485.

the class GuiSatellitePipe method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    buttonList.add(new GuiButton(0, (width / 2) - (30 / 2) + 35, (height / 2) - (20 / 2), 30, 20, "+"));
    buttonList.add(new GuiButton(1, (width / 2) - (30 / 2) - 35, (height / 2) - (20 / 2), 30, 20, "-"));
}
Also used : GuiButton(net.minecraft.client.gui.GuiButton)

Example 82 with GuiButton

use of net.minecraft.client.gui.GuiButton in project LogisticsPipes by RS485.

the class GuiSecurityStation method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    buttonList.add(new GuiButton(0, guiLeft + 10, guiTop + 179, 30, 20, "--"));
    ((GuiButton) buttonList.get(0)).visible = false;
    buttonList.add(new GuiButton(1, guiLeft + 10, guiTop + 139, 30, 20, "-"));
    buttonList.add(new GuiButton(2, guiLeft + 45, guiTop + 139, 30, 20, "+"));
    buttonList.add(new GuiButton(3, guiLeft + 140, guiTop + 179, 30, 20, "++"));
    ((GuiButton) buttonList.get(3)).visible = false;
    buttonList.add(new SmallGuiButton(4, guiLeft + 241, guiTop + 217, 30, 10, StringUtils.translate(GuiSecurityStation.PREFIX + "Open")));
    buttonList.add(new GuiCheckBox(5, guiLeft + 160, guiTop + 42, 16, 16, _tile.allowCC));
    buttonList.add(new SmallGuiButton(6, guiLeft + 162, guiTop + 60, 60, 10, StringUtils.translate(GuiSecurityStation.PREFIX + "EditTable")));
    if (!SimpleServiceLocator.ccProxy.isCC() && !LPConstants.DEBUG) {
        ((GuiButton) buttonList.get(5)).visible = false;
        ((GuiButton) buttonList.get(6)).visible = false;
    }
    buttonList.add(new GuiButton(7, guiLeft + 55, guiTop + 95, 70, 20, StringUtils.translate(GuiSecurityStation.PREFIX + "Authorize")));
    buttonList.add(new GuiButton(8, guiLeft + 175, guiTop + 95, 70, 20, StringUtils.translate(GuiSecurityStation.PREFIX + "Deauthorize")));
    buttonList.add(new GuiCheckBox(9, guiLeft + 160, guiTop + 74, 16, 16, _tile.allowAutoDestroy));
    MainProxy.sendPacketToServer(PacketHandler.getPacket(PlayerListRequest.class));
}
Also used : SmallGuiButton(logisticspipes.utils.gui.SmallGuiButton) GuiButton(net.minecraft.client.gui.GuiButton) SmallGuiButton(logisticspipes.utils.gui.SmallGuiButton) PlayerListRequest(logisticspipes.network.packets.PlayerListRequest) GuiCheckBox(logisticspipes.utils.gui.GuiCheckBox)

Example 83 with GuiButton

use of net.minecraft.client.gui.GuiButton in project LogisticsPipes by RS485.

the class GuiSupplierPipe method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    buttonList.add(new GuiButton(0, width / 2 + 35, height / 2 - 25, 50, 20, (hasPatternUpgrade ? module.getPatternMode() : module.getSupplyMode()).toString()));
    if (hasPatternUpgrade) {
        buttonList.add(new SmallGuiButton(1, guiLeft + 5, guiTop + 68, 45, 10, module.isLimited() ? "Limited" : "Unlimited"));
        for (int i = 0; i < 9; i++) {
            buttonList.add(new SmallGuiButton(i + 2, guiLeft + 18 + i * 18, guiTop + 40, 17, 10, "Set"));
        }
    }
}
Also used : GuiButton(net.minecraft.client.gui.GuiButton) SmallGuiButton(logisticspipes.utils.gui.SmallGuiButton) SmallGuiButton(logisticspipes.utils.gui.SmallGuiButton)

Example 84 with GuiButton

use of net.minecraft.client.gui.GuiButton in project LogisticsPipes by RS485.

the class GuiEditCCAccessTable method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    buttonList.add(new GuiButton(0, guiLeft + 10, guiTop + 119, 30, 20, "-"));
    buttonList.add(new GuiButton(1, guiLeft + 110, guiTop + 119, 30, 20, "+"));
    buttonList.add(new SmallGuiButton(2, guiLeft + 30, guiTop + 107, 40, 10, StringUtils.translate(GuiEditCCAccessTable.PREFIX + "Remove")));
    buttonList.add(new SmallGuiButton(3, guiLeft + 80, guiTop + 107, 40, 10, StringUtils.translate(GuiEditCCAccessTable.PREFIX + "Add")));
    buttonList.add(new SmallGuiButton(4, guiLeft + 87, guiTop + 4, 10, 10, "<"));
    buttonList.add(new SmallGuiButton(5, guiLeft + 130, guiTop + 4, 10, 10, ">"));
}
Also used : GuiButton(net.minecraft.client.gui.GuiButton) SmallGuiButton(logisticspipes.utils.gui.SmallGuiButton) SmallGuiButton(logisticspipes.utils.gui.SmallGuiButton)

Example 85 with GuiButton

use of net.minecraft.client.gui.GuiButton in project LogisticsPipes by RS485.

the class GuiMessagePopup method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    buttonList.add(new GuiButton(0, xCenter - 25, bottom - 25, 50, 20, "OK"));
}
Also used : GuiButton(net.minecraft.client.gui.GuiButton)

Aggregations

GuiButton (net.minecraft.client.gui.GuiButton)132 GuiTextField (net.minecraft.client.gui.GuiTextField)17 SmallGuiButton (logisticspipes.utils.gui.SmallGuiButton)12 ArrayList (java.util.ArrayList)10 ItemStack (net.minecraft.item.ItemStack)9 Point (java.awt.Point)7 GuiElementInfoRegionMP (stevekung.mods.moreplanets.util.client.gui.GuiElementInfoRegionMP)7 ItemDisplay (logisticspipes.utils.gui.ItemDisplay)6 GuiCheckBox (logisticspipes.utils.gui.GuiCheckBox)5 Bounds (ivorius.reccomplex.gui.table.Bounds)4 Rectangle (java.awt.Rectangle)4 SearchBar (logisticspipes.utils.gui.SearchBar)4 ItemIdentifierStack (logisticspipes.utils.item.ItemIdentifierStack)3 GuiButtonVariableDims (am2.guis.controls.GuiButtonVariableDims)2 GuiSlideControl (am2.guis.controls.GuiSlideControl)2 IOException (java.io.IOException)2 BitSet (java.util.BitSet)2 GuiDiskPopup (logisticspipes.gui.popup.GuiDiskPopup)2 RequestMonitorPopup (logisticspipes.gui.popup.RequestMonitorPopup)2 ClearCraftingGridPacket (logisticspipes.network.packets.block.ClearCraftingGridPacket)2