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