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);
}
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);
}
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);
}
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();
}
}
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;
}
Aggregations