#import "CCMenuItem.h"
Inherits CCMenuItemSprite.
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: |
CCMenuItemImage accepts images as items. The images has 3 different states:
For best results try that all images are of the same size
| - (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
1.7.1