/// <summary>
 /// creates the CCLabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas
 /// </summary>
 public static CCLabelAtlas labelWithString(string label, string charMapFile, int itemWidth, int itemHeight, char startCharMap)
 {
     CCLabelAtlas pRet = new CCLabelAtlas();
     if (pRet != null && pRet.initWithString(label, charMapFile, itemWidth, itemHeight, startCharMap))
     {
         return pRet;
     }
     return null;
 }
Beispiel #2
0
        public static CCLabelAtlas labelWithString(string label, string charMapFile, int itemWidth, int itemHeight, char startCharMap)
        {
            CCLabelAtlas cCLabelAtla = new CCLabelAtlas();

            if (cCLabelAtla != null && cCLabelAtla.initWithString(label, charMapFile, itemWidth, itemHeight, startCharMap))
            {
                return(cCLabelAtla);
            }
            return(null);
        }