Package net.minecraft.client.gui

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


  @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

    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

    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

        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

        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

        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

  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

        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

        Rectangle buttonRect = filterStat.getButtonScaledRectangle(5, 30, 170, 20);
        filterButton = new GuiButtonSpecial(1, buttonRect.x, buttonRect.y, buttonRect.width, buttonRect.height, "-");
        filterStat.addWidget(filterButton);

        creativeTabButton = new GuiButton(2, xStart + 91, yStart + 58, 78, 20, "-");
        nameFilterField = new GuiTextField(fontRendererObj, xStart + 91, yStart + 58, 78, 10);
        nameFilterField.setText(te.itemNameFilter);

        buttonList.add(creativeTabButton);
        if(te.filterMode != TileEntityPressureChamberInterface.EnumFilterMode.ITEM) {
            if(((Slot)inventorySlots.inventorySlots.get(5)).xDisplayPosition < 1000) {
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.