Package net.minecraft.client.gui

Examples of net.minecraft.client.gui.GuiButton


    player.openGui(EnderIO.instance, GuiHandler.GUI_ID_EXTERNAL_CONNECTION_BASE + dir.ordinal(), player.worldObj, loc.x, loc.y, loc.z);
  }

  @Override
  public void initGui() {
    GuiButton b;
    for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
      Point p = getOffsetForDir(dir);
      b = new GuiButton(dir.ordinal(), p.x, p.y, 60, 20, dir.toString());
      buttonList.add(b);
      if(!cons.contains(dir)) {
        b.enabled = false;
      }
    }
View Full Code Here


    useMetaB.onGuiInit();
    useMetaB.setSelected(activeFilter.isMatchMeta());
   
    int x = gui.getGuiLeft() + 80;
    int y = gui.getGuiTop() + 65;
    snapshotB = new GuiButton(ID_SNAPSHOT, x, y, 60, 20, "Snapshot");
   
    x += 65;
    showB = new GuiButton(ID_SHOW, x, y, 40, 20, "Show");
   
    x = gui.getGuiLeft() + 80;
    y += 22;
    clearB = new GuiButton(ID_CLEAR, x, y, 60, 20, "Clear");
   
    clearB.enabled = filter.getSnapshot() != null;        
    showB.enabled = clearB.enabled;
   
    gui.addButton(snapshotB);
View Full Code Here

  @Override
  public void initGui()
  {
    this.textFieldPos = new Vector2(30, 43);
    super.initGui();
    this.buttonList.add(new GuiButton(1, this.width / 2 - 10, this.height / 2 - 28, 58, 20, LanguageUtility.getLocal("gui.deriver.derive")));
  }
View Full Code Here

  {
    this.textFieldPos = new Vector2(110, 91);
    super.initGui();

    // Inverse Button
    this.buttonList.add(new GuiButton(1, this.width / 2 - 80, this.height / 2 - 65, 50, 20, LanguageUtility.getLocal("gui.matrix.banned")));
  }
View Full Code Here

    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

    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

    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

    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

    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

    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

TOP

Related Classes of net.minecraft.client.gui.GuiButton

Copyright © 2018 www.massapicom. 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.