Hi,
I have a scene with 2 layers. The top most layer is a UI layer with a simple menu on it. When you click on a MenuItemImage in this menu, the menu processes the touches correctly and fires the associated selector. However, the layer below this one also receives this touch and I would like to prevent that from happening. Shouldn't the menu claim these touches and not let the layer below process them?
Menu items not swallowing touches..
(3 posts) (3 voices)-
Posted 2 years ago #
-
You can subclass that MenuItemImage and handle all touches in there with
return kEventHandled. Or subclass the whole menu, whoever is responsible for touches...Posted 2 years ago # -
fixed in r1081
Posted 2 years ago #
Reply
You must log in to post.