Reputation: 30674
How would I create these buttons, so that clicking handles correctly?
Each button is a .png
, transparent outside of the coloured square. I need a transparent areas to be click-thru.
Upvotes: 2
Views: 1556
Reputation: 41
On clicking the button, check the location where it is clicked. Detect the pixel alpha at that location. If alpha is 0 the disable the click else enable it. This would definitly help.
Upvotes: 0