shedaniel / cloth-config

Client-Sided API for Minecraft 1.14
Other
194 stars 70 forks source link

Question about search field #242

Closed Nearata closed 9 months ago

Nearata commented 10 months ago

version: 10.1.117 mc: 1.19.4 AutoConfig with Gson Im using a GuiPredicateProvider

is there a way to not make fields disappear when searching ?

Screenshot_1 Screenshot_2

Nearata commented 9 months ago

fixed

i had to append search tags to each entry of the category

final ConfigEntryBuilder configentrybuilder = ConfigEntryBuilder.create();
final SubCategoryBuilder subcategorybuilder = configentrybuilder.startSubCategory("SubCategory"));

// some entries

subcategorybuilder.forEach(i -> i.appendSearchTags(Collections.singletonList("SubCategory")));

entries.add(subcategorybuilder.build());