Search in sources :

Example 41 with GuiButtonExt

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);
}
Also used : GuiButton(net.minecraft.client.gui.GuiButton) GuiButtonExt(net.minecraftforge.fml.client.config.GuiButtonExt)

Example 42 with GuiButtonExt

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);
    }
}
Also used : GuiButtonExt(net.minecraftforge.fml.client.config.GuiButtonExt)

Example 43 with GuiButtonExt

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();
}
Also used : GuiButtonExt(net.minecraftforge.fml.client.config.GuiButtonExt)

Example 44 with GuiButtonExt

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);
    }
}
Also used : GuiButtonExt(net.minecraftforge.fml.client.config.GuiButtonExt)

Example 45 with GuiButtonExt

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, "+"));
}
Also used : GuiButtonExt(net.minecraftforge.fml.client.config.GuiButtonExt)

Aggregations

GuiButtonExt (net.minecraftforge.fml.client.config.GuiButtonExt)46 HoverChecker (net.minecraftforge.fml.client.config.HoverChecker)11 GuiCheckBox (net.minecraftforge.fml.client.config.GuiCheckBox)10 GuiTextField (net.minecraft.client.gui.GuiTextField)9 GuiButton (net.minecraft.client.gui.GuiButton)4 GuiTooltip (org.blockartistry.lib.gui.GuiTooltip)4 GuiCheckBox (com.wuest.prefab.Gui.Controls.GuiCheckBox)3 GuiTab (com.wuest.prefab.Gui.Controls.GuiTab)2 GuiLabel (net.minecraft.client.gui.GuiLabel)2 GuiSlider (net.minecraftforge.fml.client.config.GuiSlider)2 IStructureConfigurationCapability (com.wuest.prefab.Capabilities.IStructureConfigurationCapability)1 BasicStructureConfiguration (com.wuest.prefab.Config.Structures.BasicStructureConfiguration)1 BulldozerConfiguration (com.wuest.prefab.Config.Structures.BulldozerConfiguration)1 ChickenCoopConfiguration (com.wuest.prefab.Config.Structures.ChickenCoopConfiguration)1 FishPondConfiguration (com.wuest.prefab.Config.Structures.FishPondConfiguration)1 HorseStableConfiguration (com.wuest.prefab.Config.Structures.HorseStableConfiguration)1 InstantBridgeConfiguration (com.wuest.prefab.Config.Structures.InstantBridgeConfiguration)1 ModerateHouseConfiguration (com.wuest.prefab.Config.Structures.ModerateHouseConfiguration)1 ModularHouseConfiguration (com.wuest.prefab.Config.Structures.ModularHouseConfiguration)1 MonsterMasherConfiguration (com.wuest.prefab.Config.Structures.MonsterMasherConfiguration)1