Inherits from CCMenuItemLabel : CCMenuItem : CCNodeRGBA : CCNode : NSObject
Declared in CCMenuItem.h

Overview

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

Tasks

Other Methods

Other Methods

Class Methods

itemFromString:charMapFile:itemWidth:itemHeight: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

Declared In

CCMenuItem.h

itemFromString:charMapFile:itemWidth:itemHeight:startCharMap:block:

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

+ (id)itemFromString:(NSString *)value charMapFile:(NSString *)charMapFile itemWidth:(int)itemWidth itemHeight:(int)itemHeight startCharMap:(char)startCharMap block:(void ( ^ ) ( id sender ))block

Declared In

CCMenuItem.h

itemFromString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector:

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

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

Declared In

CCMenuItem.h

itemWithString:charMapFile:itemWidth:itemHeight: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

Declared In

CCMenuItem.h

itemWithString:charMapFile:itemWidth:itemHeight:startCharMap: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 block:(void ( ^ ) ( id sender ))block

Declared In

CCMenuItem.h

itemWithString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector:

creates a menu item from a string and atlas. Use it with CCMenuItemToggle. The “target” won’t be retained.

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

Declared In

CCMenuItem.h

Instance Methods

initFromString:charMapFile:itemWidth:itemHeight:startCharMap:block:

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

- (id)initFromString:(NSString *)value charMapFile:(NSString *)charMapFile itemWidth:(int)itemWidth itemHeight:(int)itemHeight startCharMap:(char)startCharMap block:(void ( ^ ) ( id sender ))block

Declared In

CCMenuItem.h

initFromString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector:

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

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

Declared In

CCMenuItem.h

initWithString:charMapFile:itemWidth:itemHeight:startCharMap: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 block:(void ( ^ ) ( id sender ))block

Declared In

CCMenuItem.h

initWithString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector:

initializes a menu item from a string and atlas with a target/selector. The “target” won’t be retained.

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

Declared In

CCMenuItem.h