I would like to create some kind of popup for my App. By Popup I mean a layer displayed above every other, and that captures every touch event. But I also want it to transmit touches event to its children, in case it contains menu items or buttons.
Playing with touch priorities doesn’t seem to be enough in a case like this one :
CCScene + CCLayer |+ CCMenu + Popup | + CCMenu
If Popup priority is above kCCMenuHandlerPriority, the other layer menu will still catch touches even if the popup is displayed. If popup priority is below kCCMenuHandlerPriority, the other layer menu won’t catch touches, but neither the popup menu.
Does cocos2d-x provides a simple way to do what I’d like to ?
Thanks in advance for your help