use of net.minecraftforge.fml.client.config.GuiButtonExt in project Minestuck by mraof.
the class GuiTitleSelector method initGui.
@Override
public void initGui() {
for (int i = 0; i < 12; i++) {
GuiButton button = new GuiButtonExt(i, (width - guiWidth) / 2 + 4 + (i % 2) * 40, (height - guiHeight) / 2 + 24 + (i / 2) * 16, 40, 16, EnumClass.getClassFromInt(i).getDisplayName());
buttonList.add(button);
classButtons[i] = button;
}
for (int i = 0; i < 12; i++) {
GuiButton button = new GuiButtonExt(12 + i, (width - guiWidth) / 2 + 102 + (i % 2) * 40, (height - guiHeight) / 2 + 24 + (i / 2) * 16, 40, 16, EnumAspect.getAspectFromInt(i).getDisplayName());
buttonList.add(button);
aspectButtons[i] = button;
}
selectButton = new GuiButtonExt(-1, (width - guiWidth) / 2 + 63, (height - guiHeight) / 2 + 128, 60, 20, "Select");
buttonList.add(selectButton);
}
use of net.minecraftforge.fml.client.config.GuiButtonExt in project Minestuck by mraof.
the class GuiUraniumCooker method initGui.
@Override
public void initGui() {
super.initGui();
if (!te.isAutomatic()) {
goButton = new GuiButtonExt(1, (width - xSize) / 2 + goX, (height - ySize) / 2 + goY, 30, 12, te.overrideStop ? "STOP" : "GO");
buttonList.add(goButton);
}
}
use of net.minecraftforge.fml.client.config.GuiButtonExt in project Minestuck by mraof.
the class GuiCaptchaDeck method initGui.
@Override
public void initGui() {
super.initGui();
modusButton = new GuiButtonExt(1, xOffset + 102, yOffset + 31, 50, 18, I18n.format("gui.useItem"));
sylladexMap = new GuiButtonExt(1, xOffset + 6, yOffset + 31, 60, 18, I18n.format("gui.sylladex"));
buttonList.add(modusButton);
buttonList.add(sylladexMap);
sylladexMap.enabled = CaptchaDeckHandler.clientSideModus != null;
modusButton.enabled = !container.inventory.getStackInSlot(0).isEmpty();
}
use of net.minecraftforge.fml.client.config.GuiButtonExt in project Minestuck by mraof.
the class GuiGristCache method initGui.
@Override
public void initGui() {
super.initGui();
this.previousButton = new GuiButtonExt(1, this.xOffset + 8, this.yOffset + 8, 16, 16, "<");
this.nextButton = new GuiButtonExt(2, this.xOffset + guiWidth - 24, this.yOffset + 8, 16, 16, ">");
if (GristType.REGISTRY.getValues().size() > rows * columns) {
this.buttonList.add(this.nextButton);
}
}
use of net.minecraftforge.fml.client.config.GuiButtonExt in project Random-Things by lumien231.
the class GuiAdvancedRedstoneRepeater method initGui.
@Override
public void initGui() {
super.initGui();
this.buttonList.add(new GuiButtonExt(0, this.guiLeft + 5, this.guiTop + 15, 10, 10, "-"));
this.buttonList.add(new GuiButtonExt(1, this.guiLeft + 5 + 70, this.guiTop + 15, 10, 10, "+"));
this.buttonList.add(new GuiButtonExt(2, this.guiLeft + 5, this.guiTop + 39, 10, 10, "-"));
this.buttonList.add(new GuiButtonExt(3, this.guiLeft + 5 + 70, this.guiTop + 39, 10, 10, "+"));
}
Aggregations