Makebutton Exactcol active behind layer or bug?

Discuss any general programming issues here
Post Reply
Bugala
Posts: 661
Joined: Sun Feb 14, 2010 8:11 pm

Makebutton Exactcol active behind layer or bug?

Post by Bugala » Sat Aug 12, 2017 10:14 am

Code: Select all

[id] = MakeButton(id, #LAYERBUTTON, layerid, exactcoll, noautohide, evttable[, userdata])
What I have thought Exactcol part to mean is that it requires you to actually touch part of the buttons image (layer) before becoming active.

However, Now that I am using it here, I have first this big rectangle shaped Image Button as back most layer. Lets call that Button A.

On top of that A Button layer, i have some layers that are not buttons.

Now when i click on top of one of those layers that are not buttons, Button A activates.

Is this supposed to be so, or is this a bug?

User avatar
airsoftsoftwair
Posts: 2484
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Makebutton Exactcol active behind layer or bug?

Post by airsoftsoftwair » Tue Aug 15, 2017 7:55 pm

No, that's normal behaviour. Layer buttons currently don't account for layers higher in the z-order that partially block the button layer.

Post Reply