Cloth Config API (Fabric/Forge/NeoForge)

Cloth Config API (Fabric/Forge/NeoForge)

184M Downloads

DropDown menu don't display list

Bulldog83 opened this issue ยท 4 comments

commented

Hello.
I've tried to make DropDown menu. But it shows "No suggestions" instead of list with variants.
My code:

mapAppearance.addEntry(entryBuilder.startDropdownMenu(lang("current_skin"), MapSkin.getCurrentSkin(), MapSkin::getSkinByName, MapSkin::getName)
.setDefaultValue(MapSkin.getSkin((int) JustMap.CONFIG.getDefault("current_skin")))
.setSelections(MapSkin.getSkins())
.build());

MapSkin.getSkins() returns not empty List, I've checked.
And menu in your config shows only one element, but in the Enum in ClothConfig are several of them.
2020-02-23_21 09 51

commented

oh that list is basically a suggestion of the "search" you typed currently, to display all, you must clear the text field.

commented

And I've found a bug in the mine code.. :)

commented

Ou. Now it's clear..

commented

No worries, don't hesitate to ask if you have any other questions. I will close this issue now.