Class CCMenuItemLabel

#include <Geode/cocos/menu_nodes/CCMenuItem.h>
classCCMenuItemLabel:publiccocos2d::CCMenuItem{ ... }

An abstract class for “label” CCMenuItemLabel items Any CCNode that supports the CCLabelProtocol protocol can be added. Supported nodes:

Examples0
Public static methods2
staticcocos2d::CCMenuItemLabel*create(,,)

creates a CCMenuItemLabel with a Label, target and selector

staticcocos2d::CCMenuItemLabel*create()

creates a CCMenuItemLabel with a Label. Target and selector will be nil

Public member functions10
virtualcocos2d::ccColor3Bconst&getDisabledColor()

the color that will be used to disable the item

virtualvoidsetDisabledColor()

the color that will be used to disable the item

virtualcocos2d::CCNode*getLabel()

Label that is rendered. It can be any CCNode that implements the CCLabelProtocol

virtualvoidsetLabel()

Label that is rendered. It can be any CCNode that implements the CCLabelProtocol

boolinitWithLabel(,,)

initializes a CCMenuItemLabel with a Label, target and selector

voidsetString()

sets a new string to the inner label

virtualvoidactivate()
No description provided
virtualvoidselected()
No description provided
virtualvoidunselected()
No description provided
virtualvoidsetEnabled(
boolenabled
)

Enable or disabled the CCMenuItemFont

⚠️ setEnabled changes the RGB color of the font

Fields0
Protected member functions0
Protected fields4
cocos2d::ccColor3Bm_tDisabledColor
;

the color that will be used to disable the item

;

Label that is rendered. It can be any CCNode that implements the CCLabelProtocol

cocos2d::ccColor3Bm_tColorBackup
;
No description provided
floatm_fOriginalScale
;
No description provided