Search in sources :

Example 16 with SmallGuiButton

use of logisticspipes.utils.gui.SmallGuiButton in project LogisticsPipes by RS485.

the class NormalGuiOrderer method initGui.

@Override
@SuppressWarnings("unchecked")
public void initGui() {
    super.initGui();
    // Refresh
    buttonList.add(new SmallGuiButton(3, guiLeft + 10, bottom - 15, 46, 10, "Refresh"));
    // Component
    buttonList.add(new SmallGuiButton(13, guiLeft + 10, bottom - 28, 46, 10, "Content"));
    buttonList.add(new SmallGuiButton(9, guiLeft + 10, bottom - 41, 46, 10, "Both"));
}
Also used : SmallGuiButton(logisticspipes.utils.gui.SmallGuiButton)

Example 17 with SmallGuiButton

use of logisticspipes.utils.gui.SmallGuiButton 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 18 with SmallGuiButton

use of logisticspipes.utils.gui.SmallGuiButton 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 19 with SmallGuiButton

use of logisticspipes.utils.gui.SmallGuiButton in project LogisticsPipes by RS485.

the class GuiDiskPopup method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    buttonList.add(new SmallGuiButton(0, xCenter + 16, bottom - 27, 50, 10, "Request"));
    buttonList.add(new SmallGuiButton(1, xCenter + 16, bottom - 15, 50, 10, "Exit"));
    buttonList.add(new SmallGuiButton(2, xCenter - 66, bottom - 27, 50, 10, "Add/Edit"));
    buttonList.add(new SmallGuiButton(3, xCenter - 66, bottom - 15, 50, 10, "Delete"));
    buttonList.add(new SmallGuiButton(4, xCenter - 12, bottom - 27, 25, 10, "/\\"));
    buttonList.add(new SmallGuiButton(5, xCenter - 12, bottom - 15, 25, 10, "\\/"));
}
Also used : SmallGuiButton(logisticspipes.utils.gui.SmallGuiButton)

Example 20 with SmallGuiButton

use of logisticspipes.utils.gui.SmallGuiButton 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)

Aggregations

SmallGuiButton (logisticspipes.utils.gui.SmallGuiButton)23 GuiButton (net.minecraft.client.gui.GuiButton)10 GuiCheckBox (logisticspipes.utils.gui.GuiCheckBox)5 ItemDisplay (logisticspipes.utils.gui.ItemDisplay)5 SearchBar (logisticspipes.utils.gui.SearchBar)4 ItemStack (net.minecraft.item.ItemStack)2 ArrayList (java.util.ArrayList)1 BitSet (java.util.BitSet)1 Collection (java.util.Collection)1 HashMap (java.util.HashMap)1 Iterator (java.util.Iterator)1 List (java.util.List)1 Locale (java.util.Locale)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1 Collectors (java.util.stream.Collectors)1 LogisticsPipes (logisticspipes.LogisticsPipes)1 Configs (logisticspipes.config.Configs)1 GuiDiskPopup (logisticspipes.gui.popup.GuiDiskPopup)1 GuiRequestPopup (logisticspipes.gui.popup.GuiRequestPopup)1