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()
No description provided
virtualvoidsetDisabledColor()
No description provided
virtualcocos2d::CCNode*getLabel()
No description provided
virtualvoidsetLabel()
No description provided
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
;
No description provided
;
No description provided
cocos2d::ccColor3Bm_tColorBackup
;
No description provided
floatm_fOriginalScale
;
No description provided