Hi community,
I have two CCMenu’s in the same position. I didn’t change their touch priority, so only the added last touch events will be called.
But, for another CCMenu, I’m changing it’s priority with:
@
CCDirector::sharedDirector()>getTouchDispatcher>setPriority;
@
And this piece of code, changes the others CCMenu’s order, and the first added touch events will be called.
Ok, it is confusing… I will try to explain with an example.
CCMenu A~~ priority~~128;
CCMenu B - priority 128; priority
CCMenu C128;127, I will get:
If I change C priority to
CCMenu C - priority 127; priority
CCMenu B128; priority –128;
CCMenu A
Is it a bug?
Regards,
João Ribeiro