/// <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, ICCSelectorProtocol target, Action<object> selector) { var pRet = new CCMenuItemAtlasFont(); pRet.InitFromString(value, charMapFile, itemWidth, itemHeight, startCharMap, target, selector); return pRet; }
/// <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, ICCSelectorProtocol target, Action <CCMenuItem> selector) { var pRet = new CCMenuItemAtlasFont(); pRet.InitFromString(value, charMapFile, itemWidth, itemHeight, startCharMap, target, selector); return(pRet); }