CCMenuItemLabel
CCMenuItemLabel
Cocos2DInheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCMenuItem
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}
Constructors
CCMenuItemLabel()
CCMenuItemLabel()()
CCMenuItemLabel(CCNode)
CCMenuItemLabel(CCNode)(Cocos2D.CCNode label)
Parameters:
label
(Cocos2D.CCNode)CCMenuItemLabel(CCNode, Action)
CCMenuItemLabel(CCNode, Action)(Cocos2D.CCNode label, System.ActionCocos2D.CCMenuItem selector)
Parameters:
label
(Cocos2D.CCNode)selector
(System.ActionCocos2D.CCMenuItem)Fields
m_fOriginalScale(System.Single)
m_pLabel(Cocos2D.CCNode)
m_tColorBackup(Cocos2D.CCColor3B)
m_tDisabledColor(Cocos2D.CCColor3B)
Properties
DisabledColor(Cocos2D.CCColor3B)
Enabled(System.Boolean)
Label(Cocos2D.CCNode)
Text(System.String)
Methods
Activate()
Activate()()
Activate the item
Example
InitWithLabel(CCNode, Action)
System.Boolean InitWithLabel(CCNode, Action)(Cocos2D.CCNode label, System.ActionCocos2D.CCMenuItem selector)
Parameters:
label
(Cocos2D.CCNode)selector
(System.ActionCocos2D.CCMenuItem)Returns:
System.Boolean
Selected()
Selected()()
The item was selected (not activated), similar to "mouse-over"
Example
SetString(string)
SetString(string)(System.String label)
Parameters:
label
(System.String)Unselected()
Unselected()()
The item was unselected
Example