#import "CCMenuItem.h"
Inherits CCMenuItem, and CCRGBAProtocol-p.
Inherited by CCMenuItemAtlasFont, and CCMenuItemFont.
Public Member Functions | |
(id) | - initWithLabel:target:selector: |
(void) | - setIsEnabled: |
(void) | - setString: |
Static Public Member Functions | |
(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:
- (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 | ||
target: | (id) | target | ||
selector: | (SEL) | selector | ||
creates a CCMenuItemLabel with a Label, target and selector
- (void) setIsEnabled: | (BOOL) | enabled |
Enable or disabled the CCMenuItemFont
- (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
- (CCNode<CCLabelProtocol, CCRGBAProtocol>*) label [read, write, assign] |
Label that is rendered. It can be any CCNode that implements the CCLabelProtocol