Public Member Functions | Static Public Member Functions

CCMenuItemAtlasFont Class Reference

#import <CCMenuItem.h>

Inherits CCMenuItemLabel.

Collaboration diagram for CCMenuItemAtlasFont:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initFromString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector:

Static Public Member Functions

(id) + itemFromString:charMapFile:itemWidth:itemHeight:startCharMap:
(id) + itemFromString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector:

Detailed Description

A CCMenuItemAtlasFont Helper class that creates a MenuItemLabel class with a LabelAtlas

Definition at line 138 of file CCMenuItem.h.


Member Function Documentation

- (id) initFromString: (NSString *)  value
charMapFile: (NSString *)  charMapFile
itemWidth: (int)  itemWidth
itemHeight: (int)  itemHeight
startCharMap: (char)  startCharMap
target: (id)  rec
selector: (SEL)  cb 

initializes a menu item from a string and atlas with a target/selector

+ (id) itemFromString: (NSString *)  value
charMapFile: (NSString *)  charMapFile
itemWidth: (int)  itemWidth
itemHeight: (int)  itemHeight
startCharMap: (char)  startCharMap 

creates a menu item from a string and atlas with a target/selector

+ (id) itemFromString: (NSString *)  value
charMapFile: (NSString *)  charMapFile
itemWidth: (int)  itemWidth
itemHeight: (int)  itemHeight
startCharMap: (char)  startCharMap
target: (id)  rec
selector: (SEL)  cb 

creates a menu item from a string and atlas. Use it with MenuItemToggle


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1