Package net.minecraft.client.gui

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


    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

  @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

  @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

    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

  @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 = (_smasher.getFortune() < 3);
    _dec.enabled = (_smasher.getFortune() > 0);
    buttonList.add(_inc);
    buttonList.add(_dec);
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  @Override
  public void initGui()
  {
    super.initGui();
    _play = new GuiButton(1, (this.width - this.xSize) / 2 63, (this.height - this.ySize) / 2 + 23, 20, 20, "\u25B6");
    _stop = new GuiButton(2, (this.width - this.xSize) / 2 83, (this.height - this.ySize) / 2 + 23, 20, 20, "\u25A0");
    _copy = new GuiButton(3, (this.width - this.xSize) / 2 + 103, (this.height - this.ySize) / 2 + 23, 20, 20, "\u25CF");
    buttonList.add(_play);
    buttonList.add(_stop);
    buttonList.add(_copy);
  }
View Full Code Here

    // Subsetting display
    subSettingLabel = new BeefGuiLabel(this, "Settings", leftX, topY);
    topY += subSettingLabel.getHeight() + 4;

    subInputButton = new GuiButton(2, leftX, topY, 100, 20, "Activate on Pulse");
    subInputButton2 = new GuiButton(3, leftX + xSize - 46, topY, 36, 20, "Mode");
    topY += 24;
   
    subInputRodSettingLabel = new BeefGuiLabel(this, "While On", leftX, topY);
    subInputRodSettingOffLabel = new BeefGuiLabel(this, "While Off", leftX + xSize/2, topY);
   
    subOutputValue = new GuiTextField(this.fontRendererObj, leftX, topY, 60, 12);
    subOutputValue.setCanLoseFocus(true);
    subOutputValue.setMaxStringLength(7);
    subOutputValue.setText("0");
    subOutputValue.setEnabled(true);

    subOutputValueLabel = new BeefGuiLabel(this, "C", leftX + 62, topY + 2);
   
    topY += subInputRodSettingLabel.getHeight() + 2;
   
    subInputRodSetting = new GuiTextField(this.fontRendererObj, leftX, topY, 32, 12);
    subInputRodSetting.setCanLoseFocus(true);
    subInputRodSetting.setMaxStringLength(3);
    subInputRodSetting.setText("0");
    subInputRodSetting.setEnabled(true);

    subInputRodSettingPctLabel = new BeefGuiLabel(this, "%", leftX + 34, topY + 2);

    subInputRodSettingOff = new GuiTextField(this.fontRendererObj, leftX + xSize/2, topY, 32, 12);
    subInputRodSettingOff.setCanLoseFocus(true);
    subInputRodSettingOff.setMaxStringLength(3);
    subInputRodSettingOff.setText("0");
    subInputRodSettingOff.setEnabled(true);
    subInputRodSettingOffPctLabel = new BeefGuiLabel(this, "%", leftX + xSize/2 + 34, topY + 2);

    topY += 24;
   
    // Bottom buttons
    commitBtn = new GuiButton(0, guiLeft + xSize - 60, guiTop + ySize - 24, 56, 20, "Commit");
    commitBtn.enabled = false;

    resetBtn  = new GuiButton(1, guiLeft + 4, guiTop + ySize - 24, 56, 20, "Reset");
   
    registerControl(titleString);
    registerControl(settingString);
    registerControl(subSettingLabel);
    registerControl(subInputButton);
View Full Code Here

    registerControl(titleString);
    registerControl(settingsString);
    registerControl(subSettingString);
    registerControl(subSettingValueString);
   
    commitBtn = new GuiButton(0, guiLeft + 190, guiTop + 190, 56, 20, "Commit");
    commitBtn.enabled = false;
   
    this.subSettingForwardBtn   = new GuiButton(1, guiLeft + 178, guiTop + 114, 20, 20, ">");
    this.subSettingBackBtn     = new GuiButton(2, guiLeft + 154, guiTop + 114, 20, 20, "<");
    this.subSettingForwardBtn.visible = false;
    this.subSettingBackBtn.visible = false;
   
    this.buttonList.add(commitBtn);
    this.buttonList.add(subSettingForwardBtn);
View Full Code Here

    rodName.setCanLoseFocus(true);
    rodName.setMaxStringLength(32);
    rodName.setText(entity.getName());
    rodName.setEnabled(true);
   
    setNameBtn = new GuiButton(2, guiLeft + 140, topY, 30, 20, "Set");
    setNameBtn.enabled = false;
    topY += 28;
   
    rodInsertIcon = new BeefGuiIcon(this, leftX+42, topY, 16, 16, ClientProxy.GuiIcons.getIcon("controlRod"), new String[] { EnumChatFormatting.AQUA + "Rod Insertion", "", "Change the control rod's insertion.", "Higher insertion slows reaction rate.", "", "Lower reaction rates reduce heat,", "energy, radiation output, and", "fuel consumption." });
    insertionLabel = new BeefGuiLabel(this, "", leftX+62, topY+5);
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.