/// <summary>
 ///  creates a menu item from a string and atlas. Use it with MenuItemToggle
 /// </summary>
 public static CCMenuItemAtlasFont itemFromString(string value, string charMapFile, int itemWidth, int itemHeight, char startCharMap, SelectorProtocol target, SEL_MenuHandler selector)
 {
     CCMenuItemAtlasFont pRet = new CCMenuItemAtlasFont();
     pRet.initFromString(value, charMapFile, itemWidth, itemHeight, startCharMap, target, selector);
     //pRet->autorelease();
     return pRet;
 }
Ejemplo n.º 2
0
        public static CCMenuItemAtlasFont itemFromString(string value, string charMapFile, int itemWidth, int itemHeight, char startCharMap, SelectorProtocol target, SEL_MenuHandler selector)
        {
            CCMenuItemAtlasFont cCMenuItemAtlasFont = new CCMenuItemAtlasFont();

            cCMenuItemAtlasFont.initFromString(value, charMapFile, itemWidth, itemHeight, startCharMap, target, selector);
            return(cCMenuItemAtlasFont);
        }
 /// <summary>
 /// creates a menu item from a string and atlas with a target/selector
 /// </summary>
 public static CCMenuItemAtlasFont itemFromString(string value, string charMapFile, int itemWidth, int itemHeight, char startCharMap)
 {
     return(CCMenuItemAtlasFont.itemFromString(value, charMapFile, itemWidth, itemHeight, startCharMap, null, null));
 }