use of gregtech.api.gui.widgets.TextFieldWidget in project GregTech by GregTechCE.
the class OreDictionaryItemFilter method initUI.
@Override
public void initUI(Consumer<Widget> widgetGroup) {
widgetGroup.accept(new LabelWidget(10, 0, "cover.ore_dictionary_filter.title1"));
widgetGroup.accept(new LabelWidget(10, 10, "cover.ore_dictionary_filter.title2"));
widgetGroup.accept(new TextFieldWidget(10, 25, 100, 12, true, () -> oreDictionaryFilter, this::setOreDictionaryFilter).setMaxStringLength(64).setValidator(str -> ORE_DICTIONARY_FILTER.matcher(str).matches()));
}
Aggregations