tk2dUIDropDownItem Class Reference

Dropdown Item in the list of a DropDownMenu. More...

Inherits tk2dUIBaseItemControl.

List of all members.

Static Public Member Functions

static void ChangeGameObjectActiveState (GameObject go, bool isActive)
 Used for SetActive so easily works between Unity 3.x and Unity 4.x.
static void ChangeGameObjectActiveStateWithNullCheck (GameObject go, bool isActive)
 Changes active state, but first checks to make sure it isn't null.

Public Attributes

tk2dTextMesh label
 Text Label for dropdown Item.
float height
 Visible height of this ui item, used for vertical spacing.
tk2dUIUpDownHoverButton upDownHoverBtn
 Button used for hovers.
tk2dUIItem uiItem
 Button(uiItem) for this control.

Properties

int Index [get, set]
 Which item in the list is this (0-index)
string LabelText [get, set]
 Auto sets the label text (does commit)

Events

System.Action< tk2dUIDropDownItemOnItemSelected
 Event on this item being selected.

Detailed Description

Dropdown Item in the list of a DropDownMenu.


Member Function Documentation

static void tk2dUIBaseItemControl.ChangeGameObjectActiveState ( GameObject  go,
bool  isActive 
) [static, inherited]

Used for SetActive so easily works between Unity 3.x and Unity 4.x.

static void tk2dUIBaseItemControl.ChangeGameObjectActiveStateWithNullCheck ( GameObject  go,
bool  isActive 
) [static, inherited]

Changes active state, but first checks to make sure it isn't null.


Member Data Documentation

Visible height of this ui item, used for vertical spacing.

Text Label for dropdown Item.

Button(uiItem) for this control.


Property Documentation

int tk2dUIDropDownItem.Index [get, set]

Which item in the list is this (0-index)

string tk2dUIDropDownItem.LabelText [get, set]

Auto sets the label text (does commit)


Event Documentation

Event on this item being selected.