Search in sources :

Example 11 with GuiCheckBox

use of riskyken.armourersWorkshop.client.gui.controls.GuiCheckBox in project Armourers-Workshop by RiskyKen.

the class GuiDialogClear method initGui.

@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    buttonClose = new GuiButtonExt(-1, x + width - 80 - 10, y + height - 30, 80, 20, GuiHelper.getLocalizedControlName(name, "close"));
    buttonClear = new GuiButtonExt(-1, x + width - 160 - 20, y + height - 30, 80, 20, GuiHelper.getLocalizedControlName(name, "clear"));
    dropDownParts = new GuiDropDownList(0, x + 10, y + 20, 60, "", null);
    dropDownParts.addListItem("*", "*", true);
    if (skinType != null) {
        if (skinType != SkinTypeRegistry.skinBlock) {
            for (int i = 0; i < skinType.getSkinParts().size(); i++) {
                ISkinPartType partType = skinType.getSkinParts().get(i);
                addPartToDropDown(dropDownParts, partType);
            }
        } else {
            boolean multiblock = SkinProperties.PROP_BLOCK_MULTIBLOCK.getValue(skinProperties);
            ISkinPartType partType;
            if (multiblock) {
                partType = ((SkinBlock) SkinTypeRegistry.skinBlock).partMultiblock;
            } else {
                partType = ((SkinBlock) SkinTypeRegistry.skinBlock).partBase;
            }
            addPartToDropDown(dropDownParts, partType);
        }
    }
    dropDownParts.setListSelectedIndex(0);
    checkClearBlocks = new GuiCheckBox(0, x + 10, y + height - 60, GuiHelper.getLocalizedControlName(name, "clearBlocks"), true);
    checkClearPaint = new GuiCheckBox(0, x + 10, y + height - 50, GuiHelper.getLocalizedControlName(name, "clearPaint"), true);
    checkClearMarkers = new GuiCheckBox(0, x + 10, y + height - 70, GuiHelper.getLocalizedControlName(name, "clearMarkers"), true);
    buttonList.add(buttonClose);
    buttonList.add(buttonClear);
    buttonList.add(dropDownParts);
    buttonList.add(checkClearBlocks);
    buttonList.add(checkClearPaint);
    buttonList.add(checkClearMarkers);
}
Also used : GuiDropDownList(riskyken.armourersWorkshop.client.gui.controls.GuiDropDownList) ISkinPartType(riskyken.armourersWorkshop.api.common.skin.type.ISkinPartType) GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt) GuiCheckBox(riskyken.armourersWorkshop.client.gui.controls.GuiCheckBox)

Example 12 with GuiCheckBox

use of riskyken.armourersWorkshop.client.gui.controls.GuiCheckBox in project Armourers-Workshop by RiskyKen.

the class GuiDebugTool method initGui.

@Override
public void initGui() {
    guiLeft = width / 2 - guiWidth / 2;
    guiTop = height / 2 - guiHeight / 2;
    buttonList.clear();
    checkWireframe = new GuiCheckBox(-1, guiLeft + 5, guiTop + 5, "wire frame", ConfigHandlerClient.wireframeRender);
    checkWireframe.setTextColour(0xFFEEEEEE);
    checkArmourerDebugRenders = new GuiCheckBox(-1, guiLeft + 5, guiTop + 15, "armourer debug renders", ConfigHandlerClient.showArmourerDebugRender);
    checkArmourerDebugRenders.setTextColour(0xFFEEEEEE);
    checkShowLodLevel = new GuiCheckBox(-1, guiLeft + 5, guiTop + 25, "show lod levels", ConfigHandlerClient.showLodLevels);
    checkShowLodLevel.setTextColour(0xFFEEEEEE);
    checkShowSkinBlockBounds = new GuiCheckBox(-1, guiLeft + 5, guiTop + 35, "show skin block bounds", ConfigHandlerClient.showSkinBlockBounds);
    checkShowSkinBlockBounds.setTextColour(0xFFEEEEEE);
    checkShowSkinRenderBounds = new GuiCheckBox(-1, guiLeft + 5, guiTop + 45, "show skin render bounds", ConfigHandlerClient.showSkinRenderBounds);
    checkShowSkinRenderBounds.setTextColour(0xFFEEEEEE);
    checkDebugItemRenders = new GuiCheckBox(-1, guiLeft + 5, guiTop + 55, "show item debug renders", SkinItemRenderHelper.debugShowFullBounds);
    checkDebugItemRenders.setTextColour(0xFFEEEEEE);
    buttonList.add(checkWireframe);
    buttonList.add(checkArmourerDebugRenders);
    buttonList.add(checkShowLodLevel);
    buttonList.add(checkShowSkinBlockBounds);
    buttonList.add(checkShowSkinRenderBounds);
    buttonList.add(checkDebugItemRenders);
}
Also used : GuiCheckBox(riskyken.armourersWorkshop.client.gui.controls.GuiCheckBox)

Aggregations

GuiCheckBox (riskyken.armourersWorkshop.client.gui.controls.GuiCheckBox)12 GuiDropDownList (riskyken.armourersWorkshop.client.gui.controls.GuiDropDownList)6 GuiButtonExt (cpw.mods.fml.client.config.GuiButtonExt)4 ISkinPartType (riskyken.armourersWorkshop.api.common.skin.type.ISkinPartType)2 GuiCustomSlider (riskyken.armourersWorkshop.client.gui.controls.GuiCustomSlider)2 GuiTextField (net.minecraft.client.gui.GuiTextField)1 ScaledResolution (net.minecraft.client.gui.ScaledResolution)1 Slot (net.minecraft.inventory.Slot)1 ISkinType (riskyken.armourersWorkshop.api.common.skin.type.ISkinType)1 GuiIconButton (riskyken.armourersWorkshop.client.gui.controls.GuiIconButton)1 GuiInventorySize (riskyken.armourersWorkshop.client.gui.controls.GuiInventorySize)1 GuiLabeledTextField (riskyken.armourersWorkshop.client.gui.controls.GuiLabeledTextField)1 GuiList (riskyken.armourersWorkshop.client.gui.controls.GuiList)1 GuiScrollbar (riskyken.armourersWorkshop.client.gui.controls.GuiScrollbar)1 MessageClientSkinWardrobeUpdate (riskyken.armourersWorkshop.common.network.messages.client.MessageClientSkinWardrobeUpdate)1 SkinProperties (riskyken.armourersWorkshop.common.skin.data.SkinProperties)1 MovementType (riskyken.armourersWorkshop.common.skin.type.wings.SkinWings.MovementType)1 PowerMode (riskyken.armourersWorkshop.common.tileentities.TileEntityHologramProjector.PowerMode)1