tk2dUIDropDownMenu Class Reference

DropDown Menu Control. More...

List of all members.

Public Member Functions

void UpdateList ()
 Updates all items in list. Need to call this after manipulating strings.
void SetSelectedItem ()
 Sets the selected item (based on index)

Public Attributes

tk2dUIItem dropDownButton
 Button that controls, dropdown list from appearing.
tk2dTextMesh selectedTextMesh
 Primary textMesh, this will read what DropDownItem is selected.
float height
 Visual height of this ui item, used for spacing.
tk2dUIDropDownItem dropDownItemTemplate
 Template for each drop down item. Will be cloned.

Properties

List< string > ItemList [get, set]
 List of all text item in dropdown menu.
int Index [get, set]
 Which list index is currently selected.
string SelectedItem [get]
 Text of the currently selected dropdown list item.

Events

System.Action OnSelectedItemChange
 Event, if different item is selected.

Detailed Description

DropDown Menu Control.


Member Function Documentation

Sets the selected item (based on index)

Updates all items in list. Need to call this after manipulating strings.


Member Data Documentation

Button that controls, dropdown list from appearing.

Template for each drop down item. Will be cloned.

Visual height of this ui item, used for spacing.

Primary textMesh, this will read what DropDownItem is selected.


Property Documentation

int tk2dUIDropDownMenu.Index [get, set]

Which list index is currently selected.

List<string> tk2dUIDropDownMenu.ItemList [get, set]

List of all text item in dropdown menu.

Text of the currently selected dropdown list item.


Event Documentation

Event, if different item is selected.