Package net.minecraft.client.gui

Examples of net.minecraft.client.gui.GuiTextField


        int var2 = (this.height - this.ySize) / 2;
        //this.textFieldFrequency = new GuiTextField(this.fontRenderer, 6, 45, 49, 13);
        //this.textFieldFrequency.setMaxStringLength(3);
        //this.textFieldFrequency.setText(this.tileEntity.getFrequency() + "");
       
        this.textFieldX = new GuiTextField(this.fontRenderer, 150, 5, 45, 11);
        this.textFieldX.setMaxStringLength(5);
        this.textFieldX.setText(this.tileEntity.getFrequency() + "");
       
        this.textFieldY = new GuiTextField(this.fontRenderer, 150, 19, 45, 11);
        this.textFieldY.setMaxStringLength(5);
        this.textFieldY.setText(this.tileEntity.getFrequency() + "");
       
        this.textFieldZ = new GuiTextField(this.fontRenderer, 150, 33, 45, 11);
        this.textFieldZ.setMaxStringLength(5);
        this.textFieldZ.setText(this.tileEntity.getFrequency() + "");
       
        this.buttonList.clear();
       
View Full Code Here


    buttonList.clear();
    //enabledB.onGuiInit();

    int x = guiLeft + MARGIN + getFontRenderer().getStringWidth(engineTxt2) + 4;
    int y = guiTop + MARGIN + ICON_SIZE + ICON_SIZE + getFontRenderer().FONT_HEIGHT;
    startTF = new GuiTextField(getFontRenderer(), x, y, 28, 14);
    startTF.setCanLoseFocus(true);
    startTF.setMaxStringLength(3);
    startTF.setFocused(true);
    startTF.setText(INT_NF.format(te.asPercentInt(te.startLevel)));

    y = y + getFontRenderer().FONT_HEIGHT + ICON_SIZE + ICON_SIZE + 4;
    x = guiLeft + MARGIN + getFontRenderer().getStringWidth(engineTxt5);
    endTF = new GuiTextField(getFontRenderer(), x, y, 28, 14);
    endTF.setCanLoseFocus(true);
    endTF.setMaxStringLength(3);
    endTF.setFocused(false);
    endTF.setText(INT_NF.format(te.asPercentInt(te.stopLevel)));
View Full Code Here

    privateStr = Lang.localize("gui.travelAccessable.private");
    protectedStr = Lang.localize("gui.travelAccessable.protected");

    FontRenderer fr = Minecraft.getMinecraft().fontRenderer;

    tf = new GuiTextField(fr, 7, 12, 90, 16);

    col1x = 88;
    col0x = (col1x - fr.getStringWidth(protectedStr) / 2) / 2;
    col2x = (col1x + fr.getStringWidth(protectedStr) / 2);
    col2x += (176 - col2x) / 2;
View Full Code Here

        selector.setSelected(true);
        updateSelected(selector);
      }
    }
    Collections.sort(fluidWidgets, new FluidWidgetComparator());
    searchbar = new GuiTextField(fontRenderer, guiLeft + 81, guiTop - 12, 88, 10)
    {
      private int xPos = 0;
      private int yPos = 0;
      private int width = 0;
      private int height = 0;
View Full Code Here

      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);

      textfield_types = new GuiTextField(fontRenderer, posX + 40, posY + 50, 90, 15);
      textfield_types.setFocused(false);
      textfield_types.setMaxStringLength(2);
    }
  }
View Full Code Here

  public ChannelTab(GuiTransceiver guiTransceiver, ChannelType type) {
    parent = guiTransceiver;
    this.type = type;
    transceiver = guiTransceiver.transceiver;

    newChannelTF = new GuiTextField(parent.getFontRenderer(), 7, 12, 103, 16);   
    addButton = new IconButtonEIO(parent, ADD_BUTTON_ID, 137, 12, IconEIO.PLUS);
    addButton.setToolTip(Lang.localize("gui.trans.addChannel"));
    addButton.enabled = false;

    privateButton = new ToggleButtonEIO(parent, PRIVATE_BUTTON_ID, 118, 12, IconEIO.PUBLIC, IconEIO.PRIVATE);
View Full Code Here

    inputRsButton.onGuiInit();
    outputRsButton.onGuiInit();

    x = guiLeft + inputX;
    y = guiTop + inputY;
    maxInputTF = new GuiTextField(fontRenderer, x, y, 72, 16);
    maxInputTF.setCanLoseFocus(true);
    maxInputTF.setMaxStringLength(10);
    maxInputTF.setFocused(false);
    maxInputTF.setText(PowerDisplayUtil.formatPower(capBank.getMaxInput()));

    x = guiLeft + outputX;
    y = guiTop + outputY;
    maxOutputTF = new GuiTextField(fontRenderer, x, y, 72, 16);
    maxOutputTF.setCanLoseFocus(true);
    maxOutputTF.setMaxStringLength(10);
    maxOutputTF.setFocused(true);
    maxOutputTF.setText(PowerDisplayUtil.formatPower(capBank.getMaxOutput()));
  }
View Full Code Here

    int x = guiLeft + 203;
    int y = guiTop + 12;

    y = guiTop + 12;
    x = guiLeft + 8;
    newChannelTF = new GuiTextField(getFontRenderer(), x, y, 103, 16);
    newChannelTF.setCanLoseFocus(false);
    newChannelTF.setMaxStringLength(32);
    newChannelTF.setFocused(true);

    privateButton.onGuiInit();
View Full Code Here

  public void initGui()
  {
    this.textFieldPos = new Vector2(109, 92);
    super.initGui();

    this.textFieldUsername = new GuiTextField(this.fontRenderer, 52, 18, 90, 12);
    this.textFieldUsername.setMaxStringLength(30);

    int x = 0;
    int y = 0;
View Full Code Here

    Keyboard.enableRepeatEvents(true);

    if (this.frequencyTile != null)
    {
      this.textFieldFrequency = new GuiTextField(this.fontRenderer, this.textFieldPos.intX(), this.textFieldPos.intY(), 50, 12);
      this.textFieldFrequency.setMaxStringLength(Settings.MAX_FREQUENCY_DIGITS);
      this.textFieldFrequency.setText(frequencyTile.getFrequency() + "");
    }
  }
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.