Search in sources :

Example 1 with TextBox

use of convenientadditions.api.gui.widget.TextBox in project ConvenientAdditions by Necr0.

the class GuiTransmutationTomeRecipeLookup method initGui.

@Override
public void initGui() {
    super.initGui();
    initClearable();
    addWidget(new Label(leftX + 8, topY + 6, Helper.localize("gui." + ModConstants.Mod.MODID + ":transmutationTomeLookup")));
    addButton(new GuiButtonExt(0, leftX + 8, topY + 108, 12, 12, "<"));
    addButton(new GuiButtonExt(1, leftX + 156, topY + 108, 12, 12, ">"));
    textBox = addWidget(new TextBox(2, leftX + 73, topY + 5, 98, 10));
    textBox.setText(query);
}
Also used : CenteredLabel(convenientadditions.api.gui.widget.label.CenteredLabel) Label(convenientadditions.api.gui.widget.label.Label) GuiButtonExt(net.minecraftforge.fml.client.config.GuiButtonExt) TextBox(convenientadditions.api.gui.widget.TextBox)

Aggregations

TextBox (convenientadditions.api.gui.widget.TextBox)1 CenteredLabel (convenientadditions.api.gui.widget.label.CenteredLabel)1 Label (convenientadditions.api.gui.widget.label.Label)1 GuiButtonExt (net.minecraftforge.fml.client.config.GuiButtonExt)1