コード例 #1
0
        /// <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;
        }
コード例 #2
0
        /// <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);
        }