Cocos2d-x 2.1.4 on OSX, building an iOS target.
I have a CCLayer and the user taps and brings up a HUD that is also a CCLayer that contains a CCMenu. The Menu items work, except if I touch the HUDLayer someplace in black space the CCLayer behind it accepts the touch.
Imaging tapping on the same place that brought up the HUD, now it is open twice and I have to click my close button twice to close them all.
So I thought this was layer~~>setPriority but this doesn’t seem to be working.
I know I should be able to set the priority I have tried setting the HUD to:
But the layer behind is accepting touches if I touch someplace that isn’t a CCMenu item.