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