コード例 #1
0
        public static CCMenuItemFont itemFromString(string value, SelectorProtocol target, SEL_MenuHandler selector)
        {
            CCMenuItemFont cCMenuItemFont = new CCMenuItemFont();

            cCMenuItemFont.initFromString(value, target, selector);
            return(cCMenuItemFont);
        }
コード例 #2
0
        public static CCMenuItemFont itemFromString(string value)
        {
            CCMenuItemFont cCMenuItemFont = new CCMenuItemFont();

            cCMenuItemFont.initFromString(value, null, null);
            return(cCMenuItemFont);
        }
コード例 #3
0
 /// <summary>
 /// creates a menu item from a string with a target/selector
 /// </summary>
 public static CCMenuItemFont itemFromString(string value, SelectorProtocol target, SEL_MenuHandler selector)
 {
     CCMenuItemFont pRet = new CCMenuItemFont();
     pRet.initFromString(value, target, selector);
     //pRet->autorelease();
     return pRet;
 }
コード例 #4
0
 /// <summary>
 /// creates a menu item from a string without target/selector. To be used with CCMenuItemToggle
 /// </summary>
 public static CCMenuItemFont itemFromString(string value)
 {
     CCMenuItemFont pRet = new CCMenuItemFont();
     pRet.initFromString(value, null, null);
     //pRet->autorelease();
     return pRet;
 }
コード例 #5
0
        /// <summary>
        /// creates a menu item from a string with a target/selector
        /// </summary>
        public static CCMenuItemFont itemFromString(string value, SelectorProtocol target, SEL_MenuHandler selector)
        {
            CCMenuItemFont pRet = new CCMenuItemFont();

            pRet.initFromString(value, target, selector);
            //pRet->autorelease();
            return(pRet);
        }
コード例 #6
0
        /// <summary>
        /// creates a menu item from a string without target/selector. To be used with CCMenuItemToggle
        /// </summary>
        public static CCMenuItemFont itemFromString(string value)
        {
            CCMenuItemFont pRet = new CCMenuItemFont();

            pRet.initFromString(value, null, null);
            //pRet->autorelease();
            return(pRet);
        }