A MenuItemAtlasFont.
More...
Inherits MenuItemLabel.
|
static MenuItemAtlasFont * | create (const std::string &value, const std::string &charMapFile, int itemWidth, int itemHeight, char startCharMap) |
| Creates a menu item from a string and atlas with a target/selector.
|
|
static MenuItemAtlasFont * | create (const std::string &value, const std::string &charMapFile, int itemWidth, int itemHeight, char startCharMap, const ccMenuCallback &callback) |
| Creates a menu item from a string and atlas.
|
|
static Node * | create () |
| Allocates and initializes a node.
|
|
static int | getAttachedNodeCount () |
| Gets count of nodes those are attached to scene graph.
|
|
template<typename _T > |
static void | sortNodes (cocos2d::Vector< _T * > &nodes) |
| Sorts helper function.
|
|
|
| MenuItemAtlasFont () |
| ctor
|
|
virtual | ~MenuItemAtlasFont () |
| NA NA
|
|
bool | initWithString (const std::string &value, const std::string &charMapFile, int itemWidth, int itemHeight, char startCharMap, const ccMenuCallback &callback) |
| Initializes a menu item from a string and atlas with a target/selector.
|
|
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
void * | _scriptObject |
| scriptObject, support for swift
|
|
bool | _rooted |
| When true, it means that the object was already rooted.
|
|
static const int | INVALID_TAG = -1 |
| Default tag used for all the nodes.
|
|
A MenuItemAtlasFont.
Helper class that creates a MenuItemLabel class with a LabelAtlas.
static MenuItemAtlasFont* create |
( |
const std::string & |
value, |
|
|
const std::string & |
charMapFile, |
|
|
int |
itemWidth, |
|
|
int |
itemHeight, |
|
|
char |
startCharMap |
|
) |
| |
|
static |
Creates a menu item from a string and atlas with a target/selector.
static MenuItemAtlasFont* create |
( |
const std::string & |
value, |
|
|
const std::string & |
charMapFile, |
|
|
int |
itemWidth, |
|
|
int |
itemHeight, |
|
|
char |
startCharMap, |
|
|
const ccMenuCallback & |
callback |
|
) |
| |
|
static |
Creates a menu item from a string and atlas.
Use it with MenuItemToggle.
bool initWithString |
( |
const std::string & |
value, |
|
|
const std::string & |
charMapFile, |
|
|
int |
itemWidth, |
|
|
int |
itemHeight, |
|
|
char |
startCharMap, |
|
|
const ccMenuCallback & |
callback |
|
) |
| |
|
protected |
Initializes a menu item from a string and atlas with a target/selector.
The documentation for this class was generated from the following file: