Public Member Functions | Static Public Member Functions

CCMenuItemImage Class Reference

#import "CCMenuItem.h"

Inherits CCMenuItemSprite.

Collaboration diagram for CCMenuItemImage:
[legend]

List of all members.

Public Member Functions

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

Static Public Member Functions

(id) + itemFromNormalImage:selectedImage:
(id) + itemFromNormalImage:selectedImage:disabledImage:target:selector:
(id) + itemFromNormalImage:selectedImage: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


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: