CCMenuItemImage Class Reference

#import <CCMenuItem.h>

Inherits CCMenuItemSprite.

Collaboration diagram for CCMenuItemImage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initFromNormalImage:selectedImage:disabledImage:target:selector:

Static Public Member Functions

(id) + itemFromNormalImage:selectedImage:
(id) + itemFromNormalImage:selectedImage:target:selector:
(id) + itemFromNormalImage:selectedImage:disabledImage:target:selector:

Detailed Description

CCMenuItemImage accepts images as items. The images has 3 different states:

For best results try that all images are of the same size

Definition at line 187 of file CCMenuItem.h.


Member Function Documentation

- (id) initFromNormalImage: (NSString *)  value
selectedImage: (NSString *)  value2
disabledImage: (NSString *)  value3
target: (id)  r
selector: (SEL)  s 

initializes a menu item with a normal, selected and disabled image with target/selector

+ (id) itemFromNormalImage: (NSString *)  value
selectedImage: (NSString *)  value2 

creates a menu item with a normal and selected image

+ (id) itemFromNormalImage: (NSString *)  value
selectedImage: (NSString *)  value2
disabledImage: (NSString *)  value3
target: (id)  r
selector: (SEL)  s 

creates a menu item with a normal,selected and disabled image with target/selector

+ (id) itemFromNormalImage: (NSString *)  value
selectedImage: (NSString *)  value2
target: (id)  r
selector: (SEL)  s 

creates a menu item with a normal and selected image with target/selector


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

Generated on Mon Dec 14 14:58:23 2009 for cocos2d for iPhone 0.9.0-beta by  doxygen 1.6.1