cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCMenuItemAtlasFont Class Reference

#import <CCMenuItem.h>

+ Inheritance diagram for CCMenuItemAtlasFont:
+ Collaboration diagram for CCMenuItemAtlasFont:

List of all members.

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:

Detailed Description

A CCMenuItemAtlasFont Helper class that creates a CCMenuItemLabel class with a CCLabelAtlas


Member Function Documentation

- (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.


The documentation for this class was generated from the following file: