Class cc.MenuItemAtlasFont

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.MenuItemAtlasFont(value, charMapFile, itemWidth, itemHeight, startCharMap, callback, target)
Helper class that creates a MenuItemLabel class with a LabelAtlas

Method Summary

Class Detail

cc.MenuItemAtlasFont(value, charMapFile, itemWidth, itemHeight, startCharMap, callback, target)
Helper class that creates a MenuItemLabel class with a LabelAtlas
var menuItem = new cc.MenuItemAtlasFont(param1,param2...);
Parameters:
{String} value
{String} charMapFile
{Number} itemWidth
{Number} itemHeight
{String} startCharMap
a single character
{function|String|Null} callback
{cc.Node|Null} target

Method Detail

  • <static> {cc.MenuItemAtlasFont} cc.MenuItemAtlasFont.create(value, charMapFile, itemWidth, itemHeight, startCharMap, callback, target)
    create menu item from string with font
    Parameters:
    {String} value
    the text to display
    {String} charMapFile
    the character map file
    {Number} itemWidth
    {Number} itemHeight
    {String} startCharMap
    a single character
    {function|String|Null} callback Optional, Default: null
    {cc.Node|Null} target Optional
    Deprecated:
    since v3.0 ,please use new cc.MenuItemAtlasFont() instead.
    Returns:
    {cc.MenuItemAtlasFont}
  • ctor(value, charMapFile, itemWidth, itemHeight, startCharMap, callback, target)
    the contructor of cc.MenuItemAtlasFont
    Parameters:
    {String} value
    {String} charMapFile
    {Number} itemWidth
    {Number} itemHeight
    {String} startCharMap
    a single character
    {function|String|Null} callback
    {cc.Node|Null} target
  • {Boolean} initWithString(value, charMapFile, itemWidth, itemHeight, startCharMap, callback, target)
    initializes a cc.MenuItemAtlasFont with string
    Parameters:
    {String} value
    {String} charMapFile
    {Number} itemWidth
    {Number} itemHeight
    {String} startCharMap
    a single character
    {function|String|Null} callback
    {cc.Node|Null} target
    Returns:
    {Boolean}