Makebutton Exactcol active behind layer or bug?

Discuss any general programming issues here

Makebutton Exactcol active behind layer or bug?

Postby 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?
Bugala
 
Posts: 645
Joined: Sun Feb 14, 2010 8:11 pm

Re: Makebutton Exactcol active behind layer or bug?

Postby 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.
User avatar
airsoftsoftwair
 
Posts: 2233
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to General programming

Who is online

Users browsing this forum: No registered users and 5 guests