Package net.minecraft.client.gui

Examples of net.minecraft.client.gui.GuiTextField


    if(isNew)
    {
      ((GuiButton)buttonList.get(1)).enabled = false;
    }

    oreDictText = new GuiTextField(fontRendererObj, guiWidth + 35, guiHeight + 47, 95, 12);
    oreDictText.setMaxStringLength(12);
    oreDictText.setFocused(true);
  }
View Full Code Here


    int guiHeight = (height - ySize) / 2;

    buttonList.clear();
    buttonList.add(new GuiButton(0, guiWidth + 55, guiHeight + 68, 60, 20, MekanismUtils.localize("gui.open")));

    passwordField = new GuiTextField(fontRendererObj, guiWidth + 45, guiHeight + 50, 80, 12);
    passwordField.setMaxStringLength(12);
    passwordField.setFocused(true);
  }
View Full Code Here

    int guiHeight = (height - ySize) / 2;

    buttonList.clear();
    buttonList.add(new GuiButton(0, guiWidth + 55, guiHeight + 68, 60, 20, MekanismUtils.localize("gui.confirm")));

    newPasswordField = new GuiTextField(fontRendererObj, guiWidth + 60, guiHeight + 34, 80, 12);
    newPasswordField.setMaxStringLength(12);
    newPasswordField.setFocused(true);

    confirmPasswordField = new GuiTextField(fontRendererObj, guiWidth + 60, guiHeight + 51, 80, 12);
    confirmPasswordField.setMaxStringLength(12);
    confirmPasswordField.setFocused(false);
  }
View Full Code Here

    if(isNew)
    {
      ((GuiButton)buttonList.get(1)).enabled = false;
    }

    minField = new GuiTextField(fontRendererObj, guiWidth + 149, guiHeight + 19, 20, 11);
    minField.setMaxStringLength(2);
    minField.setText("" + filter.min);

    maxField = new GuiTextField(fontRendererObj, guiWidth + 149, guiHeight + 31, 20, 11);
    maxField.setMaxStringLength(2);
    maxField.setText("" + filter.max);
  }
View Full Code Here

    if(isNew)
    {
      ((GuiButton)buttonList.get(1)).enabled = false;
    }

    modIDText = new GuiTextField(fontRendererObj, guiWidth + 35, guiHeight + 47, 95, 12);
    modIDText.setMaxStringLength(12);
    modIDText.setFocused(true);
  }
View Full Code Here

  {
    super.initGui();
    this.buttonList.clear();
    //Setup the text entry field
    Keyboard.enableRepeatEvents(true);
    nameEntryField = new GuiTextField(this.fontRendererObj, width / 2 - 128 + 70, height / 2 - 94 + 24, 179, fontRendererObj.FONT_HEIGHT);
    nameEntryField.setMaxStringLength(60);
    nameEntryField.setEnableBackgroundDrawing(true);
    nameEntryField.setVisible(true);
    nameEntryField.setFocused(true);
    nameEntryField.setTextColor(16777215);
View Full Code Here

    // Setup Text Box
    String temp = "";
    if (tbName != null) { // Stops GUI resize deleting text.
      temp = tbName.getText();
    }
    tbName = new GuiTextField(this.fontRendererObj, tbNameX, tbNameY, 128, TB_HEIGHT);
    tbName.setMaxStringLength(20);
    tbName.setText(temp);
    tbName.setEnableBackgroundDrawing(false);

    // Setup Text Area
View Full Code Here

  @Override
  public void initGui() {
    super.initGui();

    addressNameField = new GuiTextField(this.fontRendererObj, guiLeft + 44, guiTop + 39, 90, 14);
    if (container.getAddress() != null)
      addressNameField.setText(container.getAddress().getName());
    addressNameField.setFocused(true);
  }
View Full Code Here

  public void initGui() {
    super.initGui();

    Keyboard.enableRepeatEvents(true);

    address = new GuiTextField(this.fontRendererObj, guiLeft + 46, guiTop + 13, 93, 13);
    IMailAddress recipient = container.getRecipient();
    if (recipient != null) {
      address.setText(recipient.getName());
    }
View Full Code Here

  @Override
  public void initGui()
  {
    super.initGui();

    name = new GuiTextField( fontRendererObj, this.guiLeft + 24, this.guiTop + 32, 79, fontRendererObj.FONT_HEIGHT );
    name.setEnableBackgroundDrawing( false );
    name.setMaxStringLength( 32 );
    name.setTextColor( 0xFFFFFF );
    name.setVisible( true );
    name.setFocused( true );
View Full Code Here

TOP

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

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.