![]() |
GearBlocks
The GearBlocks Lua scripting API
|
Provides access to a UI dropdown menu's properties and methods. More...
Public Member Functions | |
void | AddOption (string name) |
Add an option to the dropdown menu. | |
void | AddOption (string name, bool selectable) |
Add an option to the dropdown menu. | |
void | AddOptions (IList< string > names) |
Add options to the dropdown menu. | |
void | AddOptions (IList<(string, bool)> options) |
Add options to the dropdown menu. | |
void | ClearOptions () |
Clear all options from the dropdown menu. | |
Properties | |
int | Value [get, set] |
The dropdown value. | |
string | SelectedOption [get] |
The selected dropdown option. | |
int | NumOptions [get] |
The number of dropdown options. | |
Events | |
ValueChangedHandler | OnChanged |
Event that is raised when the dropdown value is changed. | |
Provides access to a UI dropdown menu's properties and methods.
void SmashHammer.UI.IDropdown.AddOption | ( | string | name | ) |
Add an option to the dropdown menu.
name | The name of the option to add. |
Implemented in SmashHammer.UI.Dropdown.
void SmashHammer.UI.IDropdown.AddOption | ( | string | name, |
bool | selectable | ||
) |
Add an option to the dropdown menu.
name | The name of the option to add. |
selectable | Set to true to make the option selectable; false to make it non-selectable. |
Implemented in SmashHammer.UI.Dropdown.
void SmashHammer.UI.IDropdown.AddOptions | ( | IList< string > | names | ) |
Add options to the dropdown menu.
names | A list of option names to add. |
Implemented in SmashHammer.UI.Dropdown.
void SmashHammer.UI.IDropdown.AddOptions | ( | IList<(string, bool)> | options | ) |
Add options to the dropdown menu.
options | A list of options (each specifying name and "is selectable" flag) to add. |
Implemented in SmashHammer.UI.Dropdown.
|
getset |
The dropdown value.
The index of the currently selected option in this dropdown menu.
Implemented in SmashHammer.UI.Dropdown.
|
get |
The selected dropdown option.
The currently selected option in this dropdown menu.
Implemented in SmashHammer.UI.Dropdown.
|
get |
The number of dropdown options.
The number of options in this dropdown menu.
Implemented in SmashHammer.UI.Dropdown.