tk2dUIMultiStateToggleButton Class Reference

ToggleButton which can have multi-different states which it will toggle between. 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

GameObject[] states
 All states which toggle between. They will be actived/deactived as cycle through list. These do not need to be set to anything, you can simply set the array to required length.
bool activateOnPress = false
 If false toggles on click, if true toggles on down.
tk2dUIItem uiItem
 Button(uiItem) for this control.

Properties

int Index [get, set]
 Currently selected index of active state.

Events

System.Action
< tk2dUIMultiStateToggleButton
OnStateToggle
 Event on change of state.

Detailed Description

ToggleButton which can have multi-different states which it will toggle between.


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

If false toggles on click, if true toggles on down.

All states which toggle between. They will be actived/deactived as cycle through list. These do not need to be set to anything, you can simply set the array to required length.

Button(uiItem) for this control.


Property Documentation

Currently selected index of active state.


Event Documentation