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"));
}
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));
}
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"));
}
}
}
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, "\\/"));
}
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, ">"));
}
Aggregations