CCMenuItem
CCMenuItem
Cocos2DInheritance: System.Object → Cocos2D.CCNode
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}
Constructors
CCMenuItem()
CCMenuItem()()CCMenuItem(Action)
CCMenuItem(Action)(System.ActionCocos2D.CCMenuItem selector)Parameters:
selector (System.ActionCocos2D.CCMenuItem)Fields
_fontName(System.String)
_fontNameRelease(System.Boolean)
_fontSize(System.UInt32)
kCurrentItem(System.Int32)
kZoomActionTag(System.UInt32)
m_bIsEnabled(System.Boolean)
m_bIsSelected(System.Boolean)
m_functionName(System.String)
m_pfnSelector(System.ActionCocos2D.CCMenuItem)
Properties
Enabled(System.Boolean)
IsSelected(System.Boolean)
Rectangle(Cocos2D.CCRect)
Methods
Activate()
Activate()()InitWithTarget(Action)
System.Boolean InitWithTarget(Action)(System.ActionCocos2D.CCMenuItem selector)Parameters:
selector (System.ActionCocos2D.CCMenuItem)Returns:
System.BooleanRegisterScriptHandler(string)
RegisterScriptHandler(string)(System.String pszFunctionName)Parameters:
pszFunctionName (System.String)Selected()
Selected()()SetTarget(Action)
SetTarget(Action)(System.ActionCocos2D.CCMenuItem selector)Parameters:
selector (System.ActionCocos2D.CCMenuItem)Unselected()
Unselected()()Events
OnActivated(Event)
OnSelected(Event)
OnUnselected(Event)