Examples of GuiCheckBox


Examples of logisticspipes.utils.gui.GuiCheckBox

    this.buttonList.add(new GuiButton(1, guiLeft + 10, guiTop + 139, 30, 20, "-"));
    this.buttonList.add(new GuiButton(2, guiLeft + 45, guiTop + 139, 30, 20, "+"));
      this.buttonList.add(new GuiButton(3, guiLeft + 140, guiTop + 179, 30, 20, "++"));
      ((GuiButton)this.buttonList.get(3)).visible = false;
    this.buttonList.add(new SmallGuiButton(4, guiLeft + 241, guiTop + 217, 30, 10, StringUtil.translate(PREFIX + "Open")));
    this.buttonList.add(new GuiCheckBox(5, guiLeft + 160, guiTop + 42, 16, 16, _tile.allowCC));
    this.buttonList.add(new SmallGuiButton(6, guiLeft + 162, guiTop + 60, 60, 10, StringUtil.translate(PREFIX + "EditTable")));
    if(!SimpleServiceLocator.ccProxy.isCC() && !LPConstants.DEBUG) {
      ((GuiButton)this.buttonList.get(5)).visible = false;
      ((GuiButton)this.buttonList.get(6)).visible = false;
    }
    this.buttonList.add(new GuiButton(7, guiLeft + 55, guiTop + 95, 70, 20, StringUtil.translate(PREFIX + "Authorize")));
    this.buttonList.add(new GuiButton(8, guiLeft + 175, guiTop + 95, 70, 20, StringUtil.translate(PREFIX + "Deauthorize")));
    this.buttonList.add(new GuiCheckBox(9, guiLeft + 160, guiTop + 74, 16, 16, _tile.allowAutoDestroy));
    MainProxy.sendPacketToServer(PacketHandler.getPacket(PlayerListRequest.class));
  }
View Full Code Here

Examples of logisticspipes.utils.gui.GuiCheckBox

    buttonList.add(new SmallGuiButton(4,  right - 148 , bottom - 26, 15, 10, "--")); // -10
    buttonList.add(new SmallGuiButton(5,  right - 132 , bottom - 26, 10, 10, "-")); // -1
    buttonList.add(new SmallGuiButton(6,  right - 86 , bottom - 26, 10, 10, "+")); // +1
    buttonList.add(new SmallGuiButton(7,  right - 74 , bottom - 26, 15, 10, "++")); // +10
    buttonList.add(new SmallGuiButton(11, right - 86 , bottom - 15, 26, 10, "+++")); // +64
    buttonList.add(new GuiCheckBox(8, guiLeft + 209, bottom - 60, 14, 14, Configs.DISPLAY_POPUP)); // Popup
   
    buttonList.add(new SmallGuiButton(3, guiLeft + 210, bottom - 15, 46, 10, "Refresh")); // Refresh
    buttonList.add(new SmallGuiButton(13,  guiLeft + 210, bottom - 28, 46, 10, "Content")); // Component
    buttonList.add(new SmallGuiButton(9, guiLeft + 210, bottom - 41, 46, 10, "Both"));
    buttonList.add(new SmallGuiButton(20, right - 116, bottom - 41, 26, 10, "Sort")); // Sort
View Full Code Here

Examples of logisticspipes.utils.gui.GuiCheckBox

    } else if (guibutton.id == 7) {
      itemDisplay.add(2);
    } else if (guibutton.id == 11) {
      itemDisplay.add(3);
    } else if (guibutton.id == 8) {
      GuiCheckBox button = (GuiCheckBox)guibutton;
      Configs.DISPLAY_POPUP = button.change();
      Configs.savePopupState();
    } else if (guibutton.id == 13 && itemDisplay.getSelectedItem() != null) {
      MainProxy.sendPacketToServer(PacketHandler.getPacket(RequestComponentPacket.class).setDimension(dimension).setStack(itemDisplay.getSelectedItem().getItem().makeStack(itemDisplay.getRequestCount())).setTilePos(_table.container));
    } else if (guibutton.id == 9) {
      String displayString = "";
View Full Code Here

Examples of logisticspipes.utils.gui.GuiCheckBox

  @Override
  public void initGui() {
    super.initGui();
    if(player.inventory.getStackInSlot(slot) != null) {
      IHUDConfig config = new HUDConfig(player.inventory.getStackInSlot(slot));
      this.buttonList.add(new GuiCheckBox(0, guiLeft + 30, guiTop +  10, 12, 12, config.isHUDChassie()));
      this.buttonList.add(new GuiCheckBox(1, guiLeft + 30, guiTop +  30, 12, 12, config.isHUDCrafting()));
      this.buttonList.add(new GuiCheckBox(2, guiLeft + 30, guiTop +  50, 12, 12, config.isHUDInvSysCon()));
      this.buttonList.add(new GuiCheckBox(3, guiLeft + 30, guiTop +  70, 12, 12, config.isHUDPowerLevel()));
      this.buttonList.add(new GuiCheckBox(4, guiLeft + 30, guiTop +  90, 12, 12, config.isHUDProvider()));
      this.buttonList.add(new GuiCheckBox(5, guiLeft + 30, guiTop + 110, 12, 12, config.isHUDSatellite()));
    } else {
      this.closeGui();
    }
  }
View Full Code Here

Examples of logisticspipes.utils.gui.GuiCheckBox

  @SuppressWarnings("unchecked")
  @Override
  public void initGui() {
    super.initGui();
    this.buttonList.clear();
    this.buttonList.add(new GuiCheckBox(0, guiLeft + 110, guiTop + 26, 16, 16, false));
    this.buttonList.add(new GuiCheckBox(1, guiLeft + 110, guiTop + 41, 16, 16, false));
    this.buttonList.add(new GuiCheckBox(2, guiLeft + 110, guiTop + 56, 16, 16, false));
    this.buttonList.add(new GuiCheckBox(3, guiLeft + 110, guiTop + 71, 16, 16, false));
    this.buttonList.add(new GuiCheckBox(4, guiLeft + 110, guiTop + 86, 16, 16, false));
    this.buttonList.add(new SmallGuiButton(5, guiLeft + 94, guiTop + 103, 30, 10, StringUtil.translate(PREFIX + "Close")));
    refreshCheckBoxes();
  }
View Full Code Here

Examples of logisticspipes.utils.gui.GuiCheckBox

    buttonList.add(new SmallGuiButton(4, xCenter - 51, bottom - 26, 15, 10, "--")); // -10
    buttonList.add(new SmallGuiButton(5, xCenter - 35, bottom - 26, 10, 10, "-")); // -1
    buttonList.add(new SmallGuiButton(6, xCenter + 26, bottom - 26, 10, 10, "+")); // +1
    buttonList.add(new SmallGuiButton(7, xCenter + 38, bottom - 26, 15, 10, "++")); // +10
    buttonList.add(new SmallGuiButton(11, xCenter + 26, bottom - 15, 26, 10, "+++")); // +64
    buttonList.add(new GuiCheckBox(8, guiLeft + 9, bottom - 60, 14, 14, Configs.DISPLAY_POPUP)); // Popup
   
    buttonList.add(new SmallGuiButton(20, xCenter - 13, bottom - 41, 26, 10, "Sort")); // Sort
   
    if(search == null) search = new SearchBar(mc.fontRenderer, this, guiLeft + 30, bottom - 78, right - guiLeft - 58, 15);
    search.reposition(guiLeft + 30, bottom - 78, right - guiLeft - 58, 15);
View Full Code Here

Examples of logisticspipes.utils.gui.GuiCheckBox

    } else if (guibutton.id == 7) {
      itemDisplay.add(2);
    } else if (guibutton.id == 11) {
      itemDisplay.add(3);
    } else if (guibutton.id == 8) {
      GuiCheckBox button = (GuiCheckBox)guibutton;
      Configs.DISPLAY_POPUP = button.change();
      Configs.savePopupState();
    } else if (guibutton.id == 13 && itemDisplay.getSelectedItem() != null) {
      MainProxy.sendPacketToServer(PacketHandler.getPacket(RequestComponentPacket.class).setDimension(dimension).setStack(itemDisplay.getSelectedItem().getItem().makeStack(itemDisplay.getRequestCount())).setPosX(xCoord).setPosY(yCoord).setPosZ(zCoord));
    } else if (guibutton.id == 20) {
      itemDisplay.cycle();
View Full Code Here

Examples of pneumaticCraft.client.gui.widget.GuiCheckBox

        buttonList.add(new GuiButton(1, guiLeft + 78, guiTop + 20, 100, 20, "Search inventory..."));
        decButton = new GuiButton(2, guiLeft + 140, guiTop + 63, 10, 20, "-");
        incButton = new GuiButton(3, guiLeft + 167, guiTop + 63, 10, 20, "+");
        buttonList.add(decButton);
        buttonList.add(incButton);
        checkBoxUseDamage = new GuiCheckBox(0, guiLeft + 4, guiTop + 50, 0xFF000000, "Use metadata / damage values");
        checkBoxUseDamage.setTooltip(Arrays.asList(new String[]{"Check to handle differently damaged tools", "or different colors of Wool as different."}));
        checkBoxUseDamage.checked = widg.useMetadata;
        addWidget(checkBoxUseDamage);
        checkBoxUseNBT = new GuiCheckBox(2, guiLeft + 4, guiTop + 86, 0xFF000000, "Use NBT");
        checkBoxUseNBT.setTooltip(Arrays.asList(new String[]{"Check to handle items like Enchanted Books", "or Firework as different."}));
        checkBoxUseNBT.checked = widg.useNBT;
        addWidget(checkBoxUseNBT);
        checkBoxUseOreDict = new GuiCheckBox(3, guiLeft + 4, guiTop + 98, 0xFF000000, "Use Ore Dictionary");
        checkBoxUseOreDict.setTooltip(Arrays.asList(new String[]{"Check to handle items registered in the", "Ore Dictionary (like Wood) as the same."}));
        checkBoxUseOreDict.checked = widg.useOreDict;
        addWidget(checkBoxUseOreDict);
        checkBoxUseModSimilarity = new GuiCheckBox(4, guiLeft + 4, guiTop + 110, 0xFF000000, "Use Mod similarity");
        checkBoxUseModSimilarity.setTooltip(Arrays.asList(new String[]{"Check to handle items from the", "same mod as the same."}));
        checkBoxUseModSimilarity.checked = widg.useModSimilarity;
        addWidget(checkBoxUseModSimilarity);

        checkBoxUseDamage.enabled = !checkBoxUseOreDict.checked && !checkBoxUseModSimilarity.checked;
View Full Code Here

Examples of pneumaticCraft.client.gui.widget.GuiCheckBox

        super.actionPerformed(button);
    }

    @Override
    public void actionPerformed(IGuiWidget guiWidget){
        GuiCheckBox checkBox = (GuiCheckBox)guiWidget;
        switch(checkBox.getID()){
            case 0:
                widg.useMetadata = checkBox.checked;
                incButton.enabled = checkBoxUseDamage.enabled && checkBoxUseDamage.checked;
                decButton.enabled = checkBoxUseDamage.enabled && checkBoxUseDamage.checked;
                break;
View Full Code Here

Examples of pneumaticCraft.client.gui.widget.GuiCheckBox

        buttonList.add(new GuiButton(0, guiLeft + 50, guiTop + 150, 80, 20, "Show area"));

        for(int i = 0; i < 6; i++) {
            String sideName = PneumaticCraftUtils.getOrientationName(ForgeDirection.getOrientation(i));
            GuiCheckBox checkBox = new GuiCheckBox(i, guiLeft + 4, guiTop + 30 + i * 12, 0xFF000000, sideName);
            checkBox.checked = ((ProgWidgetInventoryBase)widget).accessingSides[i];
            addWidget(checkBox);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.