Examples of GuiButton


Examples of net.minecraft.client.gui.GuiButton

    int guiWidth = (width - xSize) / 2;
    int guiHeight = (height - ySize) / 2;

    buttonList.clear();
    buttonList.add(new GuiButton(0, guiWidth + 93, guiHeight + 4, 76, 20, MekanismUtils.localize("gui.electricChest.editPassword")));
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

    int guiWidth = (width - xSize) / 2;
    int guiHeight = (height - ySize) / 2;

    buttonList.clear();
    buttonList.add(new GuiButton(0, guiWidth + 27, guiHeight + 62, 60, 20, MekanismUtils.localize("gui.save")));
    buttonList.add(new GuiButton(1, guiWidth + 89, guiHeight + 62, 60, 20, MekanismUtils.localize("gui.delete")));

    if(isNew)
    {
      ((GuiButton)buttonList.get(1)).enabled = false;
    }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

    super.initGui();
   
    int xOffset = (this.width - this.xSize) / 2;
    int yOffset = (this.height - this.ySize) / 2;
   
    _settingSilkTouch = new GuiButton(1, xOffset + 7, yOffset + 14, 110, 20, _silkTouchText);
    _settingSmallShrooms = new GuiButton(2, xOffset + 7, yOffset + 34, 110, 20, _smallShroomsText);
    _settingJungleWood = new GuiButton(3, xOffset + 7, yOffset + 54, 110, 20, _jungleWoodText);
   
    buttonList.add(_settingSilkTouch);
    buttonList.add(_settingSmallShrooms);
    buttonList.add(_settingJungleWood);
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

    super.initGui();
   
    int xOffset = (this.width - this.xSize) / 2;
    int yOffset = (this.height - this.ySize) / 2;
   
    _matchLevels =  new GuiButton(1, xOffset + 7,  yOffset + 15, 100, 20, "Match Levels: NO");
   
    buttonList.add(_matchLevels);
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

    super.initGui();
   
    int xOffset = (this.width - this.xSize) / 2;
    int yOffset = (this.height - this.ySize) / 2;
   
    _ageToggle = new GuiButton(1, xOffset + 7, yOffset + 14, 110, 20, "Moving: ");
   
    buttonList.add(_ageToggle);
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

    super.initGui();
   
    int xOffset = (this.width - this.xSize) / 2;
    int yOffset = (this.height - this.ySize) / 2;
   
    _toggle = new GuiButton(1, xOffset + 7, yOffset + 44, 115, 20, "Spawn Exact Copy: ");
   
    buttonList.add(_toggle);
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

    super.initGui();
   
    int xOffset = (this.width - this.xSize) / 2;
    int yOffset = (this.height - this.ySize) / 2;
   
    _matchLevels =  new GuiButton(1, xOffset + 7,  yOffset + 15, 120, 20, "Reject Unmapped: NO");
   
    buttonList.add(_matchLevels);
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

  @SuppressWarnings("unchecked")
  @Override
  public void initGui()
  {
    super.initGui();
    _inc = new GuiButton(1, (this.width - this.xSize) / 2 + 63, (this.height - this.ySize) / 2 + 23, 20, 20, "+");
    _dec = new GuiButton(2, (this.width - this.xSize) / 2 + 63, (this.height - this.ySize) / 2 + 53, 20, 20, "-");
    _inc.enabled = (_enchanter.getTargetLevel() < 30);
    _dec.enabled = (_enchanter.getTargetLevel() > 1);
    buttonList.add(_inc);
    buttonList.add(_dec);
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

  @SuppressWarnings("unchecked")
  @Override
  public void initGui()
  {
    super.initGui();
    _repeatToggle = new GuiButton(1, (this.width - this.xSize) / 2 + 63, (this.height - this.ySize) / 2 + 23, 70, 20, "Repeat: No");
    buttonList.add(_repeatToggle);
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

    super.initGui();
   
    int xOffset = (this.width - this.xSize) / 2;
    int yOffset = (this.height - this.ySize) / 2;
   
    _dirDown =  new GuiButton(1, xOffset + 7,  yOffset + 80, 30, 20, "OUT");
    _dirUp =  new GuiButton(2, xOffset + 7,  yOffset + 40, 30, 20, "OUT");
    _dirNorth = new GuiButton(3, xOffset + 37, yOffset + 40, 30, 20, "OUT");
    _dirSouth = new GuiButton(4, xOffset + 37, yOffset + 80, 30, 20, "OUT");
    _dirWest =  new GuiButton(5, xOffset + 67, yOffset + 80, 30, 20, "OUT");
    _dirEast =  new GuiButton(6, xOffset + 67, yOffset + 40, 30, 20, "OUT");
   
    buttonList.add(_dirDown);
    buttonList.add(_dirUp);
    buttonList.add(_dirNorth);
    buttonList.add(_dirSouth);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.