Search in sources :

Example 46 with GuiButtonExt

use of net.minecraftforge.fml.client.config.GuiButtonExt in project Random-Things by lumien231.

the class GuiEntityDetector method initGui.

@Override
public void initGui() {
    super.initGui();
    minusX = new GuiButtonExt(0, this.guiLeft + 15 + 24, this.guiTop + 25, 10, 10, "-");
    plusX = new GuiButtonExt(1, this.guiLeft + 15 + 90 + 14, this.guiTop + 25, 10, 10, "+");
    minusY = new GuiButtonExt(2, this.guiLeft + 15 + 24, this.guiTop + 45, 10, 10, "-");
    plusY = new GuiButtonExt(3, this.guiLeft + 15 + 90 + 14, this.guiTop + 45, 10, 10, "+");
    minusZ = new GuiButtonExt(4, this.guiLeft + 15 + 24, this.guiTop + 65, 10, 10, "-");
    plusZ = new GuiButtonExt(5, this.guiLeft + 15 + 90 + 14, this.guiTop + 65, 10, 10, "+");
    filter = new GuiButtonExt(6, this.guiLeft + 15 + 5, this.guiTop + 95, 70, 16, "");
    invert = new GuiCustomButton(this, 7, entityDetector.invert(), this.guiLeft + 15 + 77, this.guiTop + 93, 20, 20, "", background, 176, 0, 20, 20);
    invert.setToolTips("tooltip.entityDetector.normalOutput", "tooltip.entityDetector.invertedOutput");
    strongOutput = new GuiCustomButton(this, 8, entityDetector.strongOutput(), this.guiLeft + 15 + 100, this.guiTop + 93, 20, 20, "", background, 216, 0, 20, 20);
    strongOutput.setToolTips("tooltip.entityDetector.weakOutput", "tooltip.entityDetector.strongOutput");
    this.buttonList.add(minusX);
    this.buttonList.add(plusX);
    this.buttonList.add(minusY);
    this.buttonList.add(plusY);
    this.buttonList.add(minusZ);
    this.buttonList.add(plusZ);
    this.buttonList.add(filter);
    this.buttonList.add(strongOutput);
    this.buttonList.add(invert);
}
Also used : GuiCustomButton(lumien.randomthings.client.gui.elements.GuiCustomButton) 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