A CCMenuItemAtlasFont Helper class that creates a MenuItemLabel class with a LabelAtlas
Class CCMenuItemAtlasFont
#include <Geode/cocos/menu_nodes/CCMenuItem.h>
classCCMenuItemAtlasFont:publiccocos2d::CCMenuItemLabel{ ... }
Examples0
Public static methods2
staticcocos2d::CCMenuItemAtlasFont*create(charconst*value,charconst*charMapFile,intitemWidth,intitemHeight,charstartCharMap)
creates a menu item from a string and atlas with a target/selector
staticcocos2d::CCMenuItemAtlasFont*create(charconst*value,charconst*charMapFile,intitemWidth,intitemHeight,charstartCharMap,cocos2d::CCObject*target,cocos2d::SEL_MenuHandlerselector)
creates a menu item from a string and atlas. Use it with MenuItemToggle
Public member functions1
boolinitWithString(charconst*value,charconst*charMapFile,intitemWidth,intitemHeight,charstartCharMap,cocos2d::CCObject*target,cocos2d::SEL_MenuHandlerselector)
initializes a menu item from a string and atlas with a target/selector