Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17103

Bug: Button on top of another button

$
0
0

@RogueProgrammer wrote:

I have a large button and on top of it I have a smaller button. If I press on the smaller button the larger button gets all of the mouse messages so Cocos2dx thinks I have clicked on the large button. Z order doesn't seem to matter.

This is happening in Cocos2d-x 2.2.6. We have not migrated to Cocos2dx 3.x due to openGL compatibility issues under Windows 10 which no one appears to have a resolution for yet.

If you're wondering why I have a small button on a larger button it is because we have a scrolling Node with a number of large buttons and when it scrolls so that one of those large buttons is under our bottom menu bar it places that large button under a smaller menu button. I have an example below showing what I mean in a simple test case. I should be able to click on the HOME button, but when I do I get the message sent with a sender pointing to the ORANGE button.

Does anyone have any ideas on how to work around this?

.

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 17103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>