M_MSCLoader_PopupSetting_AddDropDownList - piotrulos/MSCModLoader GitHub Wiki
Add DropDown List to popup menu (int [array index] value returns on confirm)
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.3.1.346
C#
public <a href="T_MSCLoader_SettingsDropDownList">SettingsDropDownList</a> AddDropDownList(
string settingID,
string name,
string[] arrayOfItems,
int defaultSelected = 0,
Action onValueChanged = null,
bool visibleByDefault = true
)
- String
- unique settings ID
- String
- Name of the dropdown list
- String[]
- array of items that will be displayed in list
- Int32 (Optional)
- default selected Index ID (default 0)
- Action (Optional)
- Do something when value is changed
- Boolean (Optional)
- show dropdown list by default (default true)
SettingsDropDownList
SettingsDropDownList