Examples of GuiTextField


Examples of net.minecraft.client.gui.GuiTextField

        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

Examples of net.minecraft.client.gui.GuiTextField

    @Override
    public void initGui(){
        super.initGui();
        buttonList.clear();
        Keyboard.enableRepeatEvents(true);
        searchField = new GuiTextField(fontRendererObj, guiLeft + 20, guiTop + 36, 89, fontRendererObj.FONT_HEIGHT);
        searchField.setMaxStringLength(15);
        searchField.setEnableBackgroundDrawing(true);
        searchField.setVisible(true);
        searchField.setFocused(true);
        searchField.setTextColor(16777215);
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

    public GuiButtonSpecial getInvisibleButtonFromRectangle(int buttonID, Rectangle buttonSize){
        return new GuiButtonSpecial(buttonID, buttonSize.x, buttonSize.y, buttonSize.width, buttonSize.height, "");
    }

    public GuiTextField getTextFieldFromRectangle(Rectangle textFieldSize){
        return new GuiTextField(fontRendererObj, textFieldSize.x, textFieldSize.y, textFieldSize.width, textFieldSize.height);
    }
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

    }

    @Override
    public void initGui(IGuiScreen gui){
        gui.getButtonList().add(new GuiButton(10, 30, 128, 150, 20, "Move Stat Screen..."));
        textField = new GuiTextField(gui.getFontRenderer(), 35, 60, 140, 10);
        textField.setFocused(true);
        if( PneumaticCraft.proxy.getPlayer() != null) textField.setText(ItemPneumaticArmor.getEntityFilter(PneumaticCraft.proxy.getPlayer().getCurrentArmor(3)));
    }
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

        super.initGui();

        int xStart = (width - xSize) / 2;
        int yStart = (height - ySize) / 2;

        lowerBoundField = new GuiTextField(fontRendererObj, xStart + 10, yStart + 23, 30, 10);
        lowerBoundField.setText(PneumaticCraftUtils.roundNumberTo(module.lowerBound, 1));
        higherBoundField = new GuiTextField(fontRendererObj, xStart + 140, yStart + 23, 30, 10);
        higherBoundField.setText(PneumaticCraftUtils.roundNumberTo(module.higherBound, 1));

        graphLowY = guiTop + 135;
        graphHighY = guiTop + 75;
        graphLeft = guiLeft + 22;
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

    private GuiTextField textfield;

    @Override
    public void initGui(){
        super.initGui();
        textfield = new GuiTextField(fontRendererObj, guiLeft + 10, guiTop + 25, 160, 10);
        textfield.setText(((ModuleAirGrate)module).entityFilter);
    }
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

    }

    @Override
    public void initGui(){
        super.initGui();
        textfield = new GuiTextField(fontRendererObj, guiLeft + 10, guiTop + 20, 160, 10);
        textfield.setText(((ProgWidgetString)widget).string);
    }
View Full Code Here

Examples of net.minecraft.client.gui.GuiTextField

                oldText[i] = textFields[i].getText();
        }
        int xMiddle = width / 2;
        int yMiddle = height / 2;
        for(int i = 0; i < 3; i++) {
            textFields[i] = new GuiTextField(fontRendererObj, xMiddle - TEXTFIELD_WIDTH / 2, yMiddle - 27 + i * 22, TEXTFIELD_WIDTH, fontRendererObj.FONT_HEIGHT);
            textFields[i].setText(oldText[i]);
        }

        for(int i = 0; i < 3; i++) {
            buttonList.add(new GuiButton(0 + i * 4, xMiddle - 49 - TEXTFIELD_WIDTH / 2, yMiddle - 32 + i * 22, 22, 20, "-10"));
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.