|
cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
|
#import <CCMenuItem.h>


Public Member Functions | |
| (id) | - initWithLabel:target:selector: |
| (void) | - setString: |
| (void) | - setIsEnabled: |
Static Public Member Functions | |
| (id) | + itemWithLabel: |
| (id) | + itemWithLabel:target:selector: |
Properties | |
| ccColor3B | disabledColor |
| CCNode< CCLabelProtocol, CCRGBAProtocol > * | label |
An abstract class for "label" CCMenuItemLabel items Any CCNode that supports the CCLabelProtocol protocol can be added. Supported nodes:
Definition at line 105 of file CCMenuItem.h.
| - (id) initWithLabel: | (CCNode< CCLabelProtocol, CCRGBAProtocol > *) | label | |
| target: | (id) | target | |
| selector: | (SEL) | selector | |
initializes a CCMenuItemLabel with a Label, target and selector
| + (id) itemWithLabel: | (CCNode< CCLabelProtocol, CCRGBAProtocol > *) | label |
creates a CCMenuItemLabel with a Label. Target and selector will be nill
| + (id) itemWithLabel: | (CCNode< CCLabelProtocol, CCRGBAProtocol > *) | label | |
| target: | (id) | target | |
| selector: | (SEL) | selector | |
creates a CCMenuItemLabel with a Label, target and selector
| - (void) setIsEnabled: | (BOOL) | enabled |
Enable or disabled the CCMenuItemFont
Implements CCMenuItem.
| - (void) setString: | (NSString *) | label |
sets a new string to the inner label
- (ccColor3B) disabledColor [read, write, assign] |
the color that will be used to disable the item
Definition at line 115 of file CCMenuItem.h.
- (CCNode<CCLabelProtocol, CCRGBAProtocol>*) label [read, write, assign] |
Label that is rendered. It can be any CCNode that implements the CCLabelProtocol
Definition at line 118 of file CCMenuItem.h.