PDA

View Full Version : Dropping an item onto a list, but finding the item under the dropped item



MadBeardMan
March 10th, 2019, 23:30
Folks,

In VTM you have Disciplines, those are all dragged onto a list and all appear nicely.

Now each Discipline may have a Power/Ritual.

So what I need to do is drag the Power over the top of a Discipline and know which Discipline was under the cursor.

How can I do this?

As far as I know the event that fires, only allows access to these parameters:

function onDrop(x, y, draginfo)

Cheers,
Col

Moon Wizard
March 11th, 2019, 21:52
Have you looked at the windowlist.getWindowAt API yet?
https://www.fantasygrounds.com/refdoc/windowlist.xcp#getWindowAt

Regards,
JPG