AinaVT / LethalConfig

A mod configuration menu for Lethal Company
https://thunderstore.io/c/lethal-company/p/AinaVT/LethalConfig/
GNU General Public License v3.0
15 stars 6 forks source link

Implement TextDropDownConfigItem #35

Closed ChrisFeline closed 7 months ago

ChrisFeline commented 7 months ago

Implements TextDropDown for text Config Entries that uses an AcceptableValueList of type string.

// Example Usage
var textInputDropdown = Config.Bind<string>("Example", "Text Input Dropdown", "Two", new ConfigDescription("This is a text input with an acceptable value list.", new AcceptableValueList<string>("One", "Two", "HL:Alyx")));

LethalConfigManager.AddConfigItem(new TextDropDownConfigItem(textInputDropdown, new TextDropDownOptions() { RequiresRestart = false }));
AinaVT commented 7 months ago

Looks good to me.