Exemplo n.º 1
0
        /// <summary>
        /// creates a menu item from a list of items with a target/selector
        /// </summary>
        public static CCMenuItemToggle itemWithTarget(SelectorProtocol target, SEL_MenuHandler selector, params CCMenuItem[] items)
        {
            CCMenuItemToggle pRet = new CCMenuItemToggle();
            pRet.initWithTarget(target, selector, items);

            return pRet;
        }
Exemplo n.º 2
0
 /// <summary>
 /// The follow methods offered to lua
 /// creates a menu item with a item
 /// </summary>
 public static CCMenuItemToggle itemWithItem(CCMenuItem item)
 {
     CCMenuItemToggle pRet = new CCMenuItemToggle();
     pRet.initWithItem(item);
     return pRet;
 }