Search in sources :

Example 16 with GuiButtonExt

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

the class GuiDialogOverwrite 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"));
    buttonOK = new GuiButtonExt(-1, x + width - 160 - 20, y + height - 30, 80, 20, GuiHelper.getLocalizedControlName(name, "ok"));
    buttonList.add(buttonClose);
    buttonList.add(buttonOK);
}
Also used : GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt)

Example 17 with GuiButtonExt

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

the class GuiTabWardrobeColourSettings method initGui.

@Override
public void initGui(int xPos, int yPos, int width, int height) {
    super.initGui(xPos, yPos, width, height);
    selectSkinButton = new GuiButtonExt(0, 68, 46, 100, 18, GuiHelper.getLocalizedControlName(guiName, "selectSkin"));
    autoSkinButton = new GuiButtonExt(0, 68 + 105, 46, 50, 18, GuiHelper.getLocalizedControlName(guiName, "autoSkin"));
    selectHairButton = new GuiButtonExt(0, 68, 98, 100, 18, GuiHelper.getLocalizedControlName(guiName, "selectHair"));
    autoHairButton = new GuiButtonExt(0, 68 + 105, 98, 50, 18, GuiHelper.getLocalizedControlName(guiName, "autoHair"));
    buttonList.add(selectSkinButton);
    buttonList.add(autoSkinButton);
    buttonList.add(selectHairButton);
    buttonList.add(autoHairButton);
}
Also used : GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt)

Example 18 with GuiButtonExt

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

the class GuiGlobalLibraryPanelSkinInfo method initGui.

@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    int panelCenter = this.x + this.width / 2;
    buttonBack = new GuiButtonExt(0, panelCenter + 25, this.y + this.height - 25, 80, 20, GuiHelper.getLocalizedControlName(guiName, "back"));
    buttonDownload = new GuiButtonExt(0, panelCenter - 105, this.y + this.height - 25, 80, 20, GuiHelper.getLocalizedControlName(guiName, "downloadSkin"));
    buttonUserSkins = new GuiButtonExt(0, x + 6, y + 6, 26, 26, "");
    buttonEditSkin = new GuiButtonExt(0, x + 6, this.y + this.height - 25, 80, 20, GuiHelper.getLocalizedControlName(guiName, "editSkin"));
    buttonLikeSkin = new GuiIconButton(parent, 0, x + 200, this.y + 10, 20, 20, GuiHelper.getLocalizedControlName(guiName, "like"), BUTTON_TEXTURES);
    buttonLikeSkin.setIconLocation(102, 0, 16, 16);
    buttonUnlikeSkin = new GuiIconButton(parent, 0, x + 200, this.y + 10, 20, 20, GuiHelper.getLocalizedControlName(guiName, "unlike"), BUTTON_TEXTURES);
    buttonUnlikeSkin.setIconLocation(102, 17, 16, 16);
    updateLikeButtons();
    buttonList.add(buttonBack);
    buttonList.add(buttonDownload);
    buttonList.add(buttonUserSkins);
    buttonList.add(buttonEditSkin);
    buttonList.add(buttonLikeSkin);
    buttonList.add(buttonUnlikeSkin);
}
Also used : GuiIconButton(riskyken.armourersWorkshop.client.gui.controls.GuiIconButton) GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt)

Example 19 with GuiButtonExt

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

the class GuiGlobalLibraryPanelUpload method initGui.

@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    textName = new GuiLabeledTextField(fontRenderer, x + 5, y + 35, 180, 12);
    textName.setEmptyLabel(GuiHelper.getLocalizedControlName(guiName, "enterName"));
    textName.setMaxStringLength(80);
    textTags = new GuiLabeledTextField(fontRenderer, x + 5, y + 65, 180, 12);
    textTags.setEmptyLabel(GuiHelper.getLocalizedControlName(guiName, "enterTags"));
    textDescription = new GuiLabeledTextField(fontRenderer, x + 5, y + 95, width - 10, 12);
    textDescription.setEmptyLabel(GuiHelper.getLocalizedControlName(guiName, "enterDescription"));
    textDescription.setMaxStringLength(255);
    buttonUpload = new GuiButtonExt(0, x + 5, y + 110, 100, 20, GuiHelper.getLocalizedControlName(guiName, "buttonUpload"));
    buttonUpload.enabled = false;
    buttonList.add(buttonUpload);
    if (visible) {
        updatePlayerSlots();
    }
}
Also used : GuiLabeledTextField(riskyken.armourersWorkshop.client.gui.controls.GuiLabeledTextField) GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt)

Example 20 with GuiButtonExt

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

the class GuiMannequinTabOffset method initGui.

@Override
public void initGui(int xPos, int yPos, int width, int height) {
    super.initGui(xPos, yPos, width, height);
    guiLoaded = false;
    resetOffsetButton = new GuiButtonExt(0, 0, TAB_HEIGHT - 18 - 8, 50, 18, GuiHelper.getLocalizedControlName(inventoryName, "reset"));
    resetOffsetButton.width = fontRenderer.getStringWidth(resetOffsetButton.displayString) + fontRenderer.getStringWidth(" ") * 4;
    resetOffsetButton.xPosition = this.width / 2 - TAB_WIDTH / 2 + TAB_WIDTH - 10 - resetOffsetButton.width;
    bipedOffsetXslider = new GuiCustomSlider(0, (int) ((width / 2F) - (TAB_WIDTH / 2F)) + 10, 25, TAB_WIDTH - 20, 10, "X: ", "", -1D, 1D, 0D, true, true, this);
    bipedOffsetYslider = new GuiCustomSlider(0, (int) ((width / 2F) - (TAB_WIDTH / 2F)) + 10, 25 + 12, TAB_WIDTH - 20, 10, "Y: ", "", -1D, 1D, 0D, true, true, this);
    bipedOffsetZslider = new GuiCustomSlider(0, (int) ((width / 2F) - (TAB_WIDTH / 2F)) + 10, 25 + 24, TAB_WIDTH - 20, 10, "Z: ", "", -1D, 1D, 0D, true, true, this);
    setSliderValue(bipedOffsetXslider, tileEntity.getOffsetX());
    setSliderValue(bipedOffsetYslider, tileEntity.getOffsetY());
    setSliderValue(bipedOffsetZslider, tileEntity.getOffsetZ());
    buttonList.add(resetOffsetButton);
    buttonList.add(bipedOffsetXslider);
    buttonList.add(bipedOffsetYslider);
    buttonList.add(bipedOffsetZslider);
    guiLoaded = true;
}
Also used : GuiCustomSlider(riskyken.armourersWorkshop.client.gui.controls.GuiCustomSlider) GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt)

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