@Override public void initGui() { super.initGui(); if (!myInfo.isEmpty()) { addTab(new TabInfo(this, myInfo)); } if (ItemSatchel.enableSecurity && secure) { addTab(new TabSecurity(this, (ISecurable) inventorySlots, playerName)); } }
@Override public void initGui() { super.initGui(); // Left Side securityTab = addTab(new TabSecurity(this, baseTile, playerName)); securityTab.setVisible(baseTile.enableSecurity() && baseTile.isSecured()); if (!myInfo.isEmpty()) { addTab(new TabInfo(this, myInfo)); } }
@Override public void initGui() { super.initGui(); if (!myInfo.isEmpty()) { addTab(new TabInfo(this, myInfo)); } if (ItemSatchel.enableSecurity && secure) { addTab(new TabSecurity(this, (ISecurable) inventorySlots, playerName)); } buttonList = new ElementButton(this, 119, 20, "FilterList", 176, 0, 176, 20, 20, 20, texturePath); buttonOre = new ElementButton(this, 145, 20, "FilterOre", 216, 0, 216, 20, 20, 20, texturePath); buttonMeta = new ElementButton(this, 119, 46, "FilterMeta", 176, 60, 176, 80, 20, 20, texturePath); buttonNbt = new ElementButton(this, 145, 46, "FilterNbt", 216, 60, 216, 80, 20, 20, texturePath); addElement(buttonList); addElement(buttonOre); addElement(buttonMeta); addElement(buttonNbt); updateButtons(); }
@Override public void initGui() { super.initGui(); // Right Side redstoneTab = addTab(new TabRedstoneControl(this, baseTile)); if (baseTile.hasTransferIn() || baseTile.hasTransferOut()) { configTab = addTab(new TabConfigurationTransfer(this, baseTile)); } else { configTab = addTab(new TabConfiguration(this, baseTile)); } // Left Side securityTab = addTab(new TabSecurity(this, baseTile, playerName)); securityTab.setVisible(baseTile.enableSecurity() && baseTile.isSecured()); if (!myInfo.isEmpty()) { addTab(new TabInfo(this, myInfo)); } }
@Override public void initGui() { super.initGui(); // Right Side // redstoneTab = addTab(new TabRedstoneControl(this, baseTile)); // Left Side securityTab = addTab(new TabSecurity(this, baseTile, playerName)); securityTab.setVisible(baseTile.enableSecurity() && baseTile.isSecured()); if (!myInfo.isEmpty()) { addTab(new TabInfo(this, myInfo)); } lock = new ElementButton(this, 44, 54, "Lock", 176, 48, 176, 64, 176, 80, 16, 16, TEX_PATH).setToolTipLocalized(true); decMax = new ElementButton(this, 109, 56, "DecMax", 176, 0, 176, 14, 176, 28, 14, 14, TEX_PATH).setToolTipLocalized(true); incMax = new ElementButton(this, 125, 56, "IncMax", 190, 0, 190, 14, 190, 28, 14, 14, TEX_PATH).setToolTipLocalized(true); addElement(lock); addElement(decMax); addElement(incMax); }
@Override public void initGui() { super.initGui(); // Right Side augmentTab = addTab(new TabAugment(this, (IAugmentableContainer) inventorySlots)); redstoneTab = addTab(new TabRedstoneControl(this, baseTile)); redstoneTab.setVisible(baseTile.hasRedstoneControl()); configTab = addTab(new TabConfigurationTransfer(this, baseTile)); // Left Side securityTab = addTab(new TabSecurity(this, baseTile, playerName)); securityTab.setVisible(baseTile.enableSecurity() && baseTile.isSecured()); if (baseTile.getMaxEnergyStored(null) > 0) { addTab(new TabEnergy(this, baseTile, false).displayStored(!baseTile.smallStorage())); } if (!myInfo.isEmpty()) { addTab(new TabInfo(this, myInfo)); } }
@Override public void initGui() { super.initGui(); // Right Side redstoneTab = addTab(new TabRedstoneControl(this, baseTile)); // Left Side securityTab = addTab(new TabSecurity(this, baseTile, playerName)); securityTab.setVisible(baseTile.enableSecurity() && baseTile.isSecured()); if (!myInfo.isEmpty()) { addTab(new TabInfo(this, myInfo)); } addElement(new ElementFluidTank(this, 80, 19, baseTile.getTank()).setMedium().setGauge(0).setAlwaysShow(true).setInfinite(baseTile.isCreative)); output = new ElementButton(this, 35, 41, "Output", 176, 0, 176, 16, 176, 32, 16, 16, TEX_PATH).setToolTipLocalized(true); lock = new ElementButton(this, 125, 41, "Lock", 176, 48, 176, 64, 176, 80, 16, 16, TEX_PATH).setToolTipLocalized(true); addElement(output); addElement(lock); }
@Override public void initGui() { super.initGui(); addElement(new ElementEnergyStored(this, 80, 18, baseTile.getEnergyStorage())); // Right Side steamTab = (TabSteam) addTab(new TabSteam(this, baseTile, baseTile.isSteamProducer())); steamTab.setVisible(baseTile.showSteamTab()); augmentTab = addTab(new TabAugment(this, (IAugmentableContainer) inventorySlots)); redstoneTab = addTab(new TabRedstoneControl(this, baseTile)); redstoneTab.setVisible(baseTile.hasRedstoneControl()); // Left Side securityTab = addTab(new TabSecurity(this, baseTile, playerName)); securityTab.setVisible(baseTile.enableSecurity() && baseTile.isSecured()); energyTab = addTab(new TabEnergy(this, baseTile, true).displayStored(!baseTile.smallStorage())); energyTab.setVisible(baseTile.showEnergyTab()); if (!myInfo.isEmpty()) { addTab(new TabInfo(this, myInfo + "\n\n" + StringHelper.localize("tab.thermalexpansion.dynamo.0"))); } MinecraftForge.EVENT_BUS.register(this); }
@Override public void initGui() { super.initGui(); // Right Side redstoneTab = addTab(new TabRedstoneControl(this, baseTile)); configTab = addTab(new TabConfiguration(this, baseTile)); // Left Side securityTab = addTab(new TabSecurity(this, baseTile, playerName)); securityTab.setVisible(baseTile.enableSecurity() && baseTile.isSecured()); if (!myInfo.isEmpty()) { addTab(new TabInfo(this, myInfo)); } addElement(new ElementEnergyStored(this, 80, 18, baseTile.getEnergyStorage()).setInfinite(baseTile.isCreative)); ElementSimple infoInput = (ElementSimple) new ElementSimple(this, 33, 16).setToolTip("info.cofh.input").setSize(20, 20).setTexture(TEX_INFO_INPUT, 20, 20); ElementSimple infoOutput = (ElementSimple) new ElementSimple(this, 123, 16).setToolTip("info.cofh.output").setSize(20, 20).setTexture(TEX_INFO_OUTPUT, 20, 20); addElement(infoInput); addElement(infoOutput); decRecv = new ElementButton(this, 28, 56, "DecRecv", 176, 0, 176, 14, 176, 28, 14, 14, TEX_PATH).setToolTipLocalized(true); incRecv = new ElementButton(this, 44, 56, "IncRecv", 190, 0, 190, 14, 190, 28, 14, 14, TEX_PATH).setToolTipLocalized(true); decSend = new ElementButton(this, 118, 56, "DecSend", 176, 0, 176, 14, 176, 28, 14, 14, TEX_PATH).setToolTipLocalized(true); incSend = new ElementButton(this, 134, 56, "IncSend", 190, 0, 190, 14, 190, 28, 14, 14, TEX_PATH).setToolTipLocalized(true); addElement(decRecv); addElement(incRecv); addElement(decSend); addElement(incSend); }