CCMenuItemSprite * CCMenuItemSprite::itemFromNormalSprite(CCNode *normalSprite, CCNode *selectedSprite, CCNode *disabledSprite, SelectorProtocol *target, SEL_MenuHandler selector) { CCMenuItemSprite *pRet = new CCMenuItemSprite(); pRet->initFromNormalSprite(normalSprite, selectedSprite, disabledSprite, target, selector); pRet->autorelease(); return pRet; }
CCMenuItemSprite * CCMenuItemSprite::create(CCNode *normalSprite, CCNode *selectedSprite, CCNode *disabledSprite, CCObject *target, SEL_MenuHandler selector) { CCMenuItemSprite *pRet = new CCMenuItemSprite(); pRet->initWithNormalSprite(normalSprite, selectedSprite, disabledSprite, target, selector); pRet->autorelease(); return pRet; }