|
cocos2d-iphone
1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
|
#include <CCMenuItem.h>
Inheritance diagram for CCMenuItemLabel:
Collaboration diagram for CCMenuItemLabel:Public Member Functions | |
| id | initWithLabel:target:selector: (CCNode< CCLabelProtocol, CCRGBAProtocol > *label,[target] id target,[selector] SEL selector) |
| void | setString: (NSString *label) |
| void | setIsEnabled: (BOOL enabled) |
Static Public Member Functions | |
| id | itemWithLabel: (CCNode< CCLabelProtocol, CCRGBAProtocol > *label) |
| id | itemWithLabel:target:selector: (CCNode< CCLabelProtocol, CCRGBAProtocol > *label,[target] id target,[selector] SEL selector) |
Protected Attributes | |
|
CCNode< CCLabelProtocol, CCRGBAProtocol > * | label_ |
| ccColor3B | colorBackup |
| ccColor3B | disabledColor_ |
| float | originalScale_ |
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 CCMenuItemLabel::initWithLabel:target:selector: | ( | CCNode< CCLabelProtocol, CCRGBAProtocol > * | label, |
| [target] id | target, | ||
| [selector] SEL | selector | ||
| ) | [virtual] |
initializes a CCMenuItemLabel with a Label, target and selector
| id CCMenuItemLabel::itemWithLabel: | ( | CCNode< CCLabelProtocol, CCRGBAProtocol > * | label | ) | [static, virtual] |
creates a CCMenuItemLabel with a Label. Target and selector will be nill
| id CCMenuItemLabel::itemWithLabel:target:selector: | ( | CCNode< CCLabelProtocol, CCRGBAProtocol > * | label, |
| [target] id | target, | ||
| [selector] SEL | selector | ||
| ) | [static, virtual] |
creates a CCMenuItemLabel with a Label, target and selector
| void CCMenuItemLabel::setIsEnabled: | ( | BOOL | enabled | ) | [virtual] |
Enable or disabled the CCMenuItemFont
Implements CCMenuItem.
| void CCMenuItemLabel::setString: | ( | NSString * | label | ) | [virtual] |
sets a new string to the inner label
ccColor3B CCMenuItemLabel::disabledColor [read, write, assign] |
the color that will be used to disable the item
CCNode<CCLabelProtocol, CCRGBAProtocol>* CCMenuItemLabel::label [read, write, assign] |
Label that is rendered. It can be any CCNode that implements the CCLabelProtocol