Package net.minecraft.client.gui

Examples of net.minecraft.client.gui.GuiTextField


    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


    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

    super.initGui();
    buttonList.add(backButton = new GuiButtonBack(12, left + guiWidth / 2 - 8, top + guiHeight + 2));
    buttonList.add(leftButton = new GuiButtonPage(13, left, top + guiHeight - 10, false));
    buttonList.add(rightButton = new GuiButtonPage(14, left + guiWidth - 18, top + guiHeight - 10, true));

    searchField = new GuiTextField(fontRendererObj, left + guiWidth / 2 + 28, top + guiHeight + 6, 200, 10);
    searchField.setCanLoseFocus(false);
    searchField.setFocused(true);
    searchField.setEnableBackgroundDrawing(false);

    updateAll();
View Full Code Here

    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);
View Full Code Here

    titleString = new BeefGuiLabel(this, "Reactor Control Rod", leftX, topY);
    topY += titleString.getHeight() + 8;
   
    rodNameLabel = new BeefGuiLabel(this, "Name:", leftX, topY + 6);
   
    rodName = new GuiTextField(fontRendererObj, leftX + 4 + rodNameLabel.getWidth(), topY, 100, 20);
    rodName.setCanLoseFocus(true);
    rodName.setMaxStringLength(32);
    rodName.setText(entity.getName());
    rodName.setEnabled(true);
   
View Full Code Here

    {
      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

    this.controlList.add(this.btnIncBZ);

    this.btnEnable = new GuiButton(id++, this.width - 210, this.height - 30, 50, 20, this.strTranslate.translateKey(this.settings.isRenderingGuide ? "schematic.disable" : "schematic.enable"));
    this.controlList.add(this.btnEnable);

    this.tfFilename = new GuiTextField(this.fontRenderer, this.width - 155, this.height - 29, 100, 18);

    this.btnSave = new GuiButton(id++, this.width - 50, this.height - 30, 40, 20, this.strTranslate.translateKey("schematic.save"));
    this.btnSave.enabled = this.settings.isRenderingGuide;
    this.controlList.add(this.btnSave);
View Full Code Here

    buttonList.clear();
    buttonList.add(confirmName = new GuiButton(0, guiWidth + 58, guiHeight + 47, 60, 20, MekanismUtils.localize("gui.confirm")));
    confirmName.visible = displayNameChange;

    nameChangeField = new GuiTextField(fontRendererObj, guiWidth + 48, guiHeight + 21, 80, 12);
    nameChangeField.setMaxStringLength(12);
    nameChangeField.setFocused(true);
  }
View Full Code Here

    Keyboard.enableRepeatEvents(true);

    int i = (width - xSize) / 2;
    int j = (height - ySize) / 2;

    itemNameField = new GuiTextField(fontRendererObj, i + 62, j + 24, 103, 12);
    itemNameField.setTextColor(-1);
    itemNameField.setDisabledTextColour(-1);
    itemNameField.setEnableBackgroundDrawing(false);
    itemNameField.setMaxStringLength(30);
    inventorySlots.removeCraftingFromCrafters(this);
View Full Code Here

    String prevRad = radiusField != null ? radiusField.getText() : "";
    String prevMin = minField != null ? minField.getText() : "";
    String prevMax = maxField != null ? maxField.getText() : "";

    radiusField = new GuiTextField(fontRendererObj, guiWidth + 12, guiHeight + 67, 26, 11);
    radiusField.setMaxStringLength(2);
    radiusField.setText(prevRad);

    minField = new GuiTextField(fontRendererObj, guiWidth + 12, guiHeight + 92, 26, 11);
    minField.setMaxStringLength(3);
    minField.setText(prevMin);

    maxField = new GuiTextField(fontRendererObj, guiWidth + 12, guiHeight + 117, 26, 11);
    maxField.setMaxStringLength(3);
    maxField.setText(prevMax);
  }
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.