M_MSCLoader_Settings_AddDropDownList - piotrulos/MSCModLoader GitHub Wiki
Add DropDown List
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.3.1.346
C#
public static <a href="T_MSCLoader_SettingsDropDownList">SettingsDropDownList</a> AddDropDownList(
string settingID,
string name,
string[] arrayOfItems,
int defaultSelected = 0,
Action OnSelectionChanged = null,
bool visibleByDefault = true
)
View Source
- 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)
- Action when item is selected
- Boolean (Optional)
- Visible by default (default=true)
SettingsDropDownList
SettingsDropDownList