Search in sources :

Example 21 with GuiButtonExt

use of cpw.mods.fml.client.config.GuiButtonExt in project Armourers-Workshop by RiskyKen.

the class GuiMannequinTabSkinHair method initGui.

@Override
public void initGui(int xPos, int yPos, int width, int height) {
    super.initGui(xPos, yPos, width, height);
    skinColour = tileEntity.getSkinColour();
    hairColour = tileEntity.getHairColour();
    selectSkinButton = new GuiButtonExt(0, width / 2 - 90, 25, 80, 14, GuiHelper.getLocalizedControlName(tileEntity.getInventoryName(), "selectSkin"));
    selectHairButton = new GuiButtonExt(0, width / 2 - 90, 40, 80, 14, GuiHelper.getLocalizedControlName(tileEntity.getInventoryName(), "selectHair"));
    autoSkinButton = new GuiButtonExt(0, width / 2 + 10, 25, 80, 14, GuiHelper.getLocalizedControlName(tileEntity.getInventoryName(), "autoSkin"));
    autoHairButton = new GuiButtonExt(0, width / 2 + 10, 40, 80, 14, GuiHelper.getLocalizedControlName(tileEntity.getInventoryName(), "autoHair"));
    buttonList.add(selectSkinButton);
    buttonList.add(selectHairButton);
    buttonList.add(autoSkinButton);
    buttonList.add(autoHairButton);
}
Also used : GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt)

Example 22 with GuiButtonExt

use of cpw.mods.fml.client.config.GuiButtonExt 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 23 with GuiButtonExt

use of cpw.mods.fml.client.config.GuiButtonExt in project Armourers-Workshop by RiskyKen.

the class GuiTabArmourerBlockUtils method initGui.

@Override
public void initGui(int xPos, int yPos, int width, int height) {
    super.initGui(xPos, yPos, width, height);
    String guiName = tileEntity.getInventoryName();
    buttonClear = new GuiButtonExt(10, 10, 20, 70, 16, GuiHelper.getLocalizedControlName(guiName, "clear"));
    buttonCopy = new GuiButtonExt(11, 10, 40, 70, 16, GuiHelper.getLocalizedControlName(guiName, "copy"));
    buttonList.add(buttonClear);
    buttonList.add(buttonCopy);
}
Also used : GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt)

Example 24 with GuiButtonExt

use of cpw.mods.fml.client.config.GuiButtonExt in project Armourers-Workshop by RiskyKen.

the class GuiGlobalLibraryPaneJoinBeta method initGui.

@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    textBetaCode = new GuiLabeledTextField(fontRenderer, x + 5, y + 35, 230, 12);
    textBetaCode.setEmptyLabel(GuiHelper.getLocalizedControlName(guiName, "enterBetaCode"));
    textBetaCode.setMaxStringLength(36);
    buttonCheckBetaCode = new GuiButtonExt(0, x + 5, y + 50, 230, 20, GuiHelper.getLocalizedControlName(guiName, "buttonJoinBeta"));
    buttonCheckBetaCode.enabled = false;
    buttonList.add(buttonCheckBetaCode);
}
Also used : GuiLabeledTextField(riskyken.armourersWorkshop.client.gui.controls.GuiLabeledTextField) GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt)

Example 25 with GuiButtonExt

use of cpw.mods.fml.client.config.GuiButtonExt in project Armourers-Workshop by RiskyKen.

the class GuiGlobalLibraryPanelSearchBox method initGui.

@Override
public void initGui() {
    super.initGui();
    String guiName = ((GuiGlobalLibrary) parent).getGuiName();
    buttonList.clear();
    searchTextbox = new GuiLabeledTextField(fontRenderer, x + 5, y + 5, width - 10 - 85, 12);
    searchTextbox.setEmptyLabel(GuiHelper.getLocalizedControlName(guiName, "searchBox.typeToSearch"));
    buttonList.add(new GuiButtonExt(0, x + width - 85, y + 3, 80, 16, GuiHelper.getLocalizedControlName(guiName, "searchBox.search")));
}
Also used : GuiLabeledTextField(riskyken.armourersWorkshop.client.gui.controls.GuiLabeledTextField) GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt) GuiGlobalLibrary(riskyken.armourersWorkshop.client.gui.globallibrary.GuiGlobalLibrary)

Aggregations

GuiButtonExt (cpw.mods.fml.client.config.GuiButtonExt)26 GuiDropDownList (riskyken.armourersWorkshop.client.gui.controls.GuiDropDownList)7 GuiLabeledTextField (riskyken.armourersWorkshop.client.gui.controls.GuiLabeledTextField)6 GuiCheckBox (riskyken.armourersWorkshop.client.gui.controls.GuiCheckBox)4 GuiTextField (net.minecraft.client.gui.GuiTextField)3 ISkinType (riskyken.armourersWorkshop.api.common.skin.type.ISkinType)3 GuiIconButton (riskyken.armourersWorkshop.client.gui.controls.GuiIconButton)3 GuiGlobalLibrary (riskyken.armourersWorkshop.client.gui.globallibrary.GuiGlobalLibrary)3 ISkinPartType (riskyken.armourersWorkshop.api.common.skin.type.ISkinPartType)2 GuiCustomSlider (riskyken.armourersWorkshop.client.gui.controls.GuiCustomSlider)2 Calendar (java.util.Calendar)1 ScaledResolution (net.minecraft.client.gui.ScaledResolution)1 Slot (net.minecraft.inventory.Slot)1 GuiList (riskyken.armourersWorkshop.client.gui.controls.GuiList)1 GuiScrollbar (riskyken.armourersWorkshop.client.gui.controls.GuiScrollbar)1 Rectangle_I_2D (riskyken.armourersWorkshop.common.data.Rectangle_I_2D)1 SkinTypeRegistry (riskyken.armourersWorkshop.common.skin.type.SkinTypeRegistry)1