PDA

View Full Version : Custom Draginfo



Nose66
August 22nd, 2019, 07:06
I have implemented onDragStart to update the draginfo with a custom type.

How/where do I add code to accept that custom type into the shortcuts bar? I can't seem to find it anywhere.

I have tried to register "onHotKeyDrop":


function onInit()
Interface.onHotkeyDrop = onHotkeyDrop;
end

function onHotkeyDrop(draginfo)
Debug.console("onHotkeyDrop", draginfo);
end


But I never see anything.

Trenloe
August 22nd, 2019, 15:45
Have a look in the PS Skill roll hotkey extension available here: https://www.fantasygrounds.com/forums/showthread.php?22381-HotKey-Party-Sheet-Skill-Roll-Extension

At the bottom of ps\scripts\ps_roll_skill.lua is some code that sets up the type etc. in onDragStart