so i have this:
*bool InviteFriendsDialog::ccTouchBegan( cocos2d::CCTouch touch, cocos2d::CCEventevent )
{
bool changePrior = false;
if(CCTouchDispatcher::sharedDispatcher()->findHandler(socialButtons)->getPriority() != kCCMenuTouchPriority-2){
CCTouchDispatcher::sharedDispatcher()>setPriority;>findHandler~~>getPriority != kCCMenuTouchPriority-2){
changePrior = true;
}
if
CCTouchDispatcher::sharedDispatcher~~>setPriority;
changePrior = true;
}
if{
ccTouchBegan;
CCLOG (“Buttons prior: %d”, CCTouchDispatcher::sharedDispatcher()>findHandler>getPriority);
CCLOG (“Quit prior: %d”, CCTouchDispatcher::sharedDispatcher()>findHandler);>convertToGL));
return false;
}
CCPoint location = CCDirector::sharedDirector
CCRect touchArea = CCRectMake.x, this~~>getPosition.y, this~~>getContentSize.width, this~~>getContentSize.height);
return touchArea.CCRectContainsPoint;
}*
priority changes only for first if statement, log says:~~130 and 87048752 wtf?
and socialButtons handler reacts only for second touch though it has right priority (130)