GUIComboBox

From Virtual World Web Wiki
Revision as of 14:26, 15 January 2018 by Spark5 (Talk | contribs) (Documentation for the GUIComboBox class)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Component representing a dropdown list of options to choose from

Remarks [edit]

Properties

int SelectedIndex {get; set;}
The index of the item in the dropdown list that is selected (or -1 for none)
GUISelectableComponent SelectedItem {get;}
Which item is selected in the dropdown list
bool UpdateLabel {get; set;}
Should the button's label automatically update with the text of the selected option

Events

OnSelect()
Event fired when one of the options is selected

Methods

GUIComponent AddItem(string itemName, string template = NULL)
Adds an item to the dropdown menu, optionally specifying a particular template
void ClearItems()
Remove all items from this component