Examples of GuiTextField


Examples of net.minecraft.client.gui.GuiTextField

  @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

Examples of net.minecraft.client.gui.GuiTextField

    @Override
    public void initGui()
    {
        super.initGui();
        Keyboard.enableRepeatEvents(true);
        this.searchField = new GuiTextField(this.fontRendererObj, this.guiLeft + 90, this.guiTop + 19, 96, this.fontRendererObj.FONT_HEIGHT);
        this.searchField.setMaxStringLength(32);
        this.searchField.setEnableBackgroundDrawing(false);
        this.searchField.setVisible(true);
        this.searchField.setFocused(true);
        this.searchField.setCanLoseFocus(false);
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

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

    textField = new GuiTextField(this.fontRendererObj, 10, 10, 156, 12);
    textField.setMaxStringLength(32);
    textField.setText(ItemList.getLabel(player.getCurrentEquippedItem()));
    textField.setFocused(false);
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

    int x = (width - xSize) / 2;
    int y = (height - ySize) / 2;

    Keyboard.enableRepeatEvents(true);

    textField = new GuiTextField(this.fontRendererObj, TEXT_X, TEXT_Y, TEXT_WIDTH, TEXT_HEIGHT);
    textField.setMaxStringLength(BuildCraftBuilders.MAX_BLUEPRINTS_NAME_SIZE);
    textField.setText(testCase.testName);
    textField.setFocused(true);

    compress = new GuiButton(0, x + 5, y + 50, 120, 20, "");
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

    cancel = new GuiButton(2, xscreen + 5, yscreen + 105, 120, 20, "");
    cancel.displayString = "Cancel";
    buttonList.add(cancel);

    textField = new GuiTextField(this.fontRendererObj, TEXT_X, TEXT_Y, TEXT_WIDTH, TEXT_HEIGHT);
    textField.setMaxStringLength(BuildCraftBuilders.MAX_BLUEPRINTS_NAME_SIZE);
    textField.setText("");
    textField.setFocused(true);
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

        new ToolTipLine(StringUtils.localize("tile.architect.tooltip.allowCreative.1")),
        new ToolTipLine(StringUtils.localize("tile.architect.tooltip.allowCreative.2"))
    ));
    buttonList.add(optionAllowCreative);
   
    textField = new GuiTextField(this.fontRendererObj, TEXT_X, TEXT_Y, TEXT_WIDTH, TEXT_HEIGHT);
    textField.setMaxStringLength(BuildCraftBuilders.MAX_BLUEPRINTS_NAME_SIZE);
    textField.setText(architect.name);
    textField.setFocused(true);

    updateButtons();
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

        public StringEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement<?> configElement)
        {
            super(owningScreen, owningEntryList, configElement);
            beforeValue = configElement.get().toString();
            this.textFieldValue = new GuiTextField(this.mc.fontRenderer, this.owningEntryList.controlX + 1, 0, this.owningEntryList.controlWidth - 3, 16);
            this.textFieldValue.setMaxStringLength(10000);
            this.textFieldValue.setText(configElement.get().toString());
        }
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

        protected final GuiTextField textFieldValue;

        public StringEntry(GuiEditArray owningScreen, GuiEditArrayEntries owningEntryList, IConfigElement configElement, Object value)
        {
            super(owningScreen, owningEntryList, configElement);
            this.textFieldValue = new GuiTextField(owningEntryList.mc.fontRenderer, owningEntryList.width / 4 + 1, 0, owningEntryList.controlWidth - 3, 16);
            this.textFieldValue.setMaxStringLength(10000);
            this.textFieldValue.setText(value.toString());
            this.isValidated = configElement.getValidationPattern() != null;

            if (configElement.getValidationPattern() != null)
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

  private void newTextField() {
    if (this.textField != null) {
      this.text = this.textField.getText();
    }
      int w = this.width * textDialogWidthPercent / 100;
      this.textField = new GuiTextField(this.fontRendererObj,
          (this.width - w) / 2 + 5,
          textDialogY,
          w - 10,
          12);
    this.textField.setMaxStringLength(32);
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

        int yStart = (height - ySize) / 2;

        sensorInfoStat = addAnimatedStat("Sensor Info", new ItemStack(Blockss.universalSensor), 0xFFFFAA00, false);
        addAnimatedStat("gui.tab.upgrades", Textures.GUI_UPGRADES_LOCATION, 0xFF0000FF, true).setText(getUpgradeText());

        nameFilterField = new GuiTextField(fontRendererObj, xStart + 70, yStart + 58, 100, 10);
        nameFilterField.setText(te.getText(0));

        updateButtons();//also adds the redstoneButton.
    }
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.