Examples of GUIButton


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 = (_smasher.getFortune() < 3);
    _dec.enabled = (_smasher.getFortune() > 0);
    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();
    _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

Examples of net.minecraft.client.gui.GuiButton

    // 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

Examples of net.minecraft.client.gui.GuiButton

    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

Examples of net.minecraft.client.gui.GuiButton

    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

Examples of net.minecraft.client.gui.GuiButton

      int xButton = ((width - xSize) / 2);
    int yButton = ((height - ySize) / 2) - buttonHeight;
   
    int id = 0;
   
    infoButton = new GuiButton(id++, xButton, yButton, 40, buttonHeight, "Info");   
    controlList.add(infoButton);
   
    townHallInv = new GuiButton(id++, xButton+40, yButton, 60, buttonHeight, "Town Inv.");
    controlList.add(townHallInv);
     
  
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

      GL11.glDisable(GL11.GL_DEPTH_TEST)
      this.infoButton.drawButton(this.mc, par1, par2);
      //TODO: highlight the tab that is currently selected.
      for (int var44 = 0; var44 < this.controlList.size(); ++var44)
          {
              GuiButton var55 = (GuiButton)this.controlList.get(var44);
              var55.drawButton(this.mc, par1, par2);
          }
     
      RenderHelper.enableGUIStandardItemLighting();
      GL11.glPushMatrix();
      GL11.glTranslatef((float)var4, (float)var5, 0.0F);
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

    public void initGui()
    {
      super.initGui();
        this.controlList.clear();
        Keyboard.enableRepeatEvents(true);
        this.controlList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 65, "Done"));
        this.inputField = new GuiTextField(this.fontRenderer,2, this.height/4 + 50, this.width - 3, 12);
        this.inputField.setMaxStringLength(70);
        this.inputField.setFocused(true);
        this.inputField.setCanLoseFocus(false);
    }
View Full Code Here

Examples of net.minecraft.client.gui.GuiButton

    super.initGui();
   
    int xButton = (width-xSize) / 2;
    int yButton = ((height-ySize)/2)-20;
   
    controlList.add(new GuiButton(1,xButton,yButton, 40, 20,"Info"));
    controlList.add(new GuiButton(0, xButton+40, yButton, 60, 20, "House Inv."));
   
  }
View Full Code Here

Examples of net.minecraft.src.GuiButton

                    var6 += 105;
                }

                int var7 = var5 + 150 + 150;
                int var8 = var6 + 84 + 10;
                GuiButton var9 = this.getSelectedButton(par1, par2);

                if (var9 != null)
                {
                    String var10 = this.getButtonName(var9.displayString);
                    String[] var11 = this.getTooltipLines(var10, var9.id);
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.