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