![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCMenuItem.h>
Public Member Functions | |
(id) | - initWithString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector: |
(id) | - initWithString:charMapFile:itemWidth:itemHeight:startCharMap:block: |
(id) | - initFromString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector: |
(id) | - initFromString:charMapFile:itemWidth:itemHeight:startCharMap:block: |
Static Public Member Functions | |
(id) | + itemWithString:charMapFile:itemWidth:itemHeight:startCharMap: |
(id) | + itemWithString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector: |
(id) | + itemWithString:charMapFile:itemWidth:itemHeight:startCharMap:block: |
(id) | + itemFromString:charMapFile:itemWidth:itemHeight:startCharMap: |
(id) | + itemFromString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector: |
(id) | + itemFromString:charMapFile:itemWidth:itemHeight:startCharMap:block: |
A CCMenuItemAtlasFont Helper class that creates a CCMenuItemLabel class with a CCLabelAtlas
- (id) initWithString: | (NSString *) | value | |
charMapFile: | (NSString *) | charMapFile | |
itemWidth: | (int) | itemWidth | |
itemHeight: | (int) | itemHeight | |
startCharMap: | (char) | startCharMap | |
block: | (id sender) | block | |
initializes a menu item from a string and atlas with a block. The block will be "copied".
- (id) initWithString: | (NSString *) | value | |
charMapFile: | (NSString *) | charMapFile | |
itemWidth: | (int) | itemWidth | |
itemHeight: | (int) | itemHeight | |
startCharMap: | (char) | startCharMap | |
target: | (id) | target | |
selector: | (SEL) | selector | |
initializes a menu item from a string and atlas with a target/selector. The "target" won't be retained.
+ (id) itemWithString: | (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) itemWithString: | (NSString *) | value | |
charMapFile: | (NSString *) | charMapFile | |
itemWidth: | (int) | itemWidth | |
itemHeight: | (int) | itemHeight | |
startCharMap: | (char) | startCharMap | |
block: | (id sender) | block | |
creates a menu item from a string and atlas. Use it with CCMenuItemToggle. The block will be "copied".
+ (id) itemWithString: | (NSString *) | value | |
charMapFile: | (NSString *) | charMapFile | |
itemWidth: | (int) | itemWidth | |
itemHeight: | (int) | itemHeight | |
startCharMap: | (char) | startCharMap | |
target: | (id) | target | |
selector: | (SEL) | selector | |
creates a menu item from a string and atlas. Use it with CCMenuItemToggle. The "target" won't be retained.