Page 1 of 1

[13 Feb 2010] FeatureRequest: OnMouseOver returns highest LayerID

Posted: Sat Jun 13, 2020 5:32 pm
by nexus
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 13 Feb 2010 19:36:19 +0100

The event handler should not only deliver the x,y position of the mouse but also the ID of the layer with the highest value and which is beneath the mouse pointer :-)

Would be handy :-)

Thanks. Tom

[13 Feb 2010] Re: FeatureRequest: OnMouseOver returns highest LayerID

Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 13 Feb 2010 23:00:51 +0100
The event handler should not only deliver the x,y position of the mouse but also the ID of the layer with the highest value and which is beneath the mouse pointer :-)

Would be handy :-)
Well, OnMouseOver has nothing to do with layers on an abstract level. I'd rather prefer a GetLayerForPos() function to which you can pass mouse coordinates and it returns the highest layer at this position :)