Closed JoewAlabel closed 1 year ago
I found a way, thanks!!!
Solution:
Bind:
public static ConfigEntry<ItemList> AddItemName { get; set; }
AddItemName = this.Config.Bind("Utils",
"Item",
ItemList.GREEN_LEAF,
"Add item - Key ALT + Insert");
And the same enum ;)
"Specify AcceptableValueList when creating your setting. If you use an enum you don't need to specify AcceptableValueList, all of the enum values will be shown. If you want to hide some values, you will have to use the attribute.
Note: You can add System.ComponentModel.DescriptionAttribute to your enum's items to override their displayed names. "
How I use with enum, please? I can not find any example of it.
The max I can get is list the enum but it not overrides the displayed names:
ENUM:
Bind:
Thank you!!!