I am now using Cocostudio to start the development with cocos2d-x 3.0 alpha1.
I am now designing a dialog box with Modal layer concept.
The design for Modal Layer is ready as adding the code below to the layer
auto pListen = EventListenerTouchOneByOne::create();
pListen->onTouchBegan = CC_CALLBACK_2(Modal::onTouchBegan, this);
which kModalLayerPriority is ~~128 same as the implementation before 3.0.
But now my problem is, I have to implement a dialog box above the modal layer. In previous version you can setTouchPriority for CCLayer so that it can come on top of the modal layer.
But now for example, I cannot find out how to do this in UIWidget
For example, when I work with UIButton, I can just have this code to work with the TouchListener
Please let me know if I have missed something.