CCMenuItemAtlasFont
CCMenuItemAtlasFont
Cocos2DA CCMenuItemAtlasFont Helper class that creates a MenuItemLabel class with a LabelAtlas
Inheritance: 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
CCMenuItemAtlasFont()
CCMenuItemAtlasFont()()
Methods
InitFromString(string, string, int, int, char, ICCSelectorProtocol, Action)
System.Boolean InitFromString(string, string, int, int, char, ICCSelectorProtocol, Action)(System.String value, System.String charMapFile, System.Int32 itemWidth, System.Int32 itemHeight, System.Char startCharMap, Cocos2D.ICCSelectorProtocol target, System.ActionCocos2D.CCMenuItem selector)
initializes a menu item from a string and atlas with a target/selector
Parameters:
value
(System.String)charMapFile
(System.String)itemWidth
(System.Int32)itemHeight
(System.Int32)startCharMap
(System.Char)target
(Cocos2D.ICCSelectorProtocol)selector
(System.ActionCocos2D.CCMenuItem)Returns:
System.Boolean
Example
ItemFromString(string, string, int, int, char)
Cocos2D.CCMenuItemAtlasFont ItemFromString(string, string, int, int, char)(System.String value, System.String charMapFile, System.Int32 itemWidth, System.Int32 itemHeight, System.Char startCharMap)
creates a menu item from a string and atlas with a target/selector
Parameters:
value
(System.String)charMapFile
(System.String)itemWidth
(System.Int32)itemHeight
(System.Int32)startCharMap
(System.Char)Returns:
Cocos2D.CCMenuItemAtlasFont
Example
ItemFromString(string, string, int, int, char, ICCSelectorProtocol, Action)
Cocos2D.CCMenuItemAtlasFont ItemFromString(string, string, int, int, char, ICCSelectorProtocol, Action)(System.String value, System.String charMapFile, System.Int32 itemWidth, System.Int32 itemHeight, System.Char startCharMap, Cocos2D.ICCSelectorProtocol target, System.ActionCocos2D.CCMenuItem selector)
creates a menu item from a string and atlas. Use it with MenuItemToggle
Parameters:
value
(System.String)charMapFile
(System.String)itemWidth
(System.Int32)itemHeight
(System.Int32)startCharMap
(System.Char)target
(Cocos2D.ICCSelectorProtocol)selector
(System.ActionCocos2D.CCMenuItem)Returns:
Cocos2D.CCMenuItemAtlasFont
Example