Package pneumaticCraft.client.gui.widget

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


        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

        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

Related Classes of pneumaticCraft.client.gui.widget.GuiCheckBox

Copyright © 2018 www.massapicom. 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.