[13 Feb 2010] FeatureRequest: OnMouseOver returns highest LayerID

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
nexus
Posts: 150
Joined: Sun Mar 07, 2010 11:54 am

[13 Feb 2010] FeatureRequest: OnMouseOver returns highest LayerID

Post 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
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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 :)
Locked