CCMenuItemFont
CCMenuItemFont
Cocos2DInheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCMenuItem → Cocos2D.CCMenuItemLabel
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}
Constructors
CCMenuItemFont(string)
CCMenuItemFont(string)(System.String value)
Parameters:
value
(System.String)CCMenuItemFont(string, Action)
CCMenuItemFont(string, Action)(System.String value, System.ActionCocos2D.CCMenuItem selector)
Parameters:
value
(System.String)selector
(System.ActionCocos2D.CCMenuItem)CCMenuItemFont(string, string, Action)
CCMenuItemFont(string, string, Action)(System.String value, System.String fontName, System.ActionCocos2D.CCMenuItem selector)
Parameters:
value
(System.String)fontName
(System.String)selector
(System.ActionCocos2D.CCMenuItem)CCMenuItemFont(string, string, int, Action)
CCMenuItemFont(string, string, int, Action)(System.String value, System.String fontName, System.Int32 fontSize, System.ActionCocos2D.CCMenuItem selector)
Parameters:
value
(System.String)fontName
(System.String)fontSize
(System.Int32)selector
(System.ActionCocos2D.CCMenuItem)Fields
m_strFontName(System.String)
m_uFontSize(System.UInt32)
Properties
Color(Cocos2D.CCColor3B)
Gets or sets the color
FontName(System.String)
Sets the font name for all items.
FontSize(System.UInt32)
Sets the font size for all items.
ItemFontName(System.String)
Sets the name of the font for this item.
ItemFontSize(System.UInt32)
Sets the font size for this menu item
Methods
InitWithString(string, string, int, Action)
System.Boolean InitWithString(string, string, int, Action)(System.String value, System.String fontName, System.Int32 fontSize, System.ActionCocos2D.CCMenuItem selector)
Parameters:
value
(System.String)fontName
(System.String)fontSize
(System.Int32)selector
(System.ActionCocos2D.CCMenuItem)Returns:
System.Boolean
RecreateLabel()
RecreateLabel()()