Package net.minecraft.client.gui

Examples of net.minecraft.client.gui.GuiButton


    buildButtonList();
  }

  public void buildButtonList() {
    buttonList.clear();
    GuiButton enchantButton = new GuiButtonEnchant(this, enchanter, 0, x + 151, y + 33);
    buttonList.add(enchantButton);
    enchantButton.enabled = !enchanter.enchantments.isEmpty();

    for (int i = 0; i < 16; i++) {
      int z = -24;
View Full Code Here


        this.textFieldZ.setMaxStringLength(5);
        this.textFieldZ.setText(this.tileEntity.getFrequency() + "");
       
        this.buttonList.clear();
       
        this.buttonList.add(new GuiButton(0, var1 + 6, var2 + 60, 50, 20, "Set"));
    }
View Full Code Here

    private int backgroundHeight = 256;

    @Override
    @SuppressWarnings("unchecked")
    public void initGui() {
        this.buttonList.add(this.closeButton = new GuiButton(0, (this.width - this.backgroundWidth + 100) / 2, (this.height + this.backgroundHeight - 60) / 2, this.backgroundWidth - 100, 20, "Close"));
    }
View Full Code Here

    super.initGui();
    int sx = (width - xSize) / 2;
    int sy = (height - ySize) / 2;
    String str = Lang.localize("gui.travelAccessable.ok");
    int strLen = getFontRenderer().getStringWidth(str);
    GuiButton okB = new GuiButton(0, width / 2 - (strLen / 2) - 5, sy + 50, strLen + 10, 20, str);
    buttonList.clear();
    buttonList.add(okB);
  }
View Full Code Here

    int k = (width - xSize) / 2;
    int l = (height - ySize) / 2;
    renderPowerBar(k, l);

    for (int i = 0; i < buttonList.size(); ++i) {
      GuiButton guibutton = (GuiButton) this.buttonList.get(i);
      guibutton.drawButton(this.mc, 0, 0);
    }

    if(showRecipeButton()) {
      IconEIO.RECIPE.renderIcon(k + 155, l + 43, 16, 16, 0, true);
    }
View Full Code Here

    int posY = (this.height - ySize) / 2;

    if (rightItem)
    {
      this.buttonList.clear();
      this.buttonList.add(new GuiButton(0, posX + 5, posY + 17, 40, 20, "- 2048"));
      this.buttonList.add(new GuiButton(1, posX + 130, posY + 17, 40, 20, "+ 2048"));
      this.buttonList.add(new GuiButton(2, posX + 5, posY + 47, 40, 20, "- 1"));
      this.buttonList.add(new GuiButton(3, posX + 130, posY + 47, 40, 20, "+ 1"));

      textfield_size = new GuiTextField(fontRenderer, posX + 40, posY + 20, 90, 15);
      textfield_size.setFocused(false);
      textfield_size.setMaxStringLength(12);
View Full Code Here

    for (int i = 0; i < buttonList.size(); i++)
    {
      if (i == 6)
        break;
      GuiButton currentButton = (GuiButton) buttonList.get(i);

      if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT))
      {
        currentButton.displayString = shiftNames[i] + "mB";
      } else
View Full Code Here

    amountField.setFocused(true);
    amountField.setEnableBackgroundDrawing(false);
    amountField.setTextColor(0xFFFFFF);

    buttonList.clear();
    buttonList.add(new GuiButton(0, posX + 65 - 46, posY + 8 + 6, 42, 20, "-1"));
    buttonList.add(new GuiButton(1, posX + 115 - 46, posY + 8 + 6, 42, 20, "-10"));
    buttonList.add(new GuiButton(2, posX + 165 - 46, posY + 8 + 6, 42, 20, "-100"));
    buttonList.add(new GuiButton(3, posX + 65 - 46, posY + 58 - 2, 42, 20, "+1"));
    buttonList.add(new GuiButton(4, posX + 115 - 46, posY + 58 - 2, 42, 20, "+10"));
    buttonList.add(new GuiButton(5, posX + 165 - 46, posY + 58 - 2, 42, 20, "+100"));
    buttonList.add(new WidgetRedstoneModes(6, posX + 120, posY + 36, 16, 16, RedstoneModeInput.WhenOff, true));

    amountField.setText(Long.toString(tileentity.getAmount()));

    super.initGui();
View Full Code Here

    int i1 = capBank.getEnergyStoredScaled(POWER_HEIGHT);
    drawTexturedModalRect(sx + POWER_X, sy + BOTTOM_POWER_Y - i1, 176 + 21, 0, POWER_WIDTH, i1);

    for (int i = 0; i < buttonList.size(); ++i) {
      GuiButton guibutton = (GuiButton) this.buttonList.get(i);
      guibutton.drawButton(this.mc, 0, 0);
    }

    maxInputTF.drawTextBox();
    maxOutputTF.drawTextBox();
View Full Code Here

    newChannelTF.drawTextBox();
    publicChannelList.drawScreen(mouseX, mouseY, partialTick);
    privateChannelList.drawScreen(mouseX, mouseY, partialTick);

    for (int i = 0; i < buttonList.size(); ++i) {
      GuiButton guibutton = (GuiButton) this.buttonList.get(i);
      guibutton.drawButton(this.mc, 0, 0);
    }

    int x = guiLeft + 12;
    int y = guiTop + 35;
    int rgb = ColorUtil.getRGB(Color.white);
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.