M_MSCLoader_Settings_AddDropDownList - piotrulos/MSCModLoader GitHub Wiki

AddDropDownList Method

Add DropDown List

Definition

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

Parameters

  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)

Return Value

SettingsDropDownList
SettingsDropDownList

See Also

Reference

Settings Class
MSCLoader Namespace

⚠️ **GitHub.com Fallback** ⚠️