LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   Lua Programming Help (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=50)
-   -   Quickslots, aliases and drag&drop issue (https://www.lotrointerface.com/forums/showthread.php?t=1508)

Equendil 05-28-2011 10:30 PM

Quickslots, aliases and drag&drop issue
 
I've been playing with quickslots quite a bit, and cannot get "aliases" to drag & drop properly. I can make a functioning "alias" quickslot:

Code:

quickslot = Turbine.UI.Lotro.Quickslot();
shortcut = Turbine.UI.Lotro.Shortcut( Turbine.UI.Lotro.ShortcutType.Alias, "/slap" );
quickslot:SetShortcut( shortcut );

It'll work as an alias *but* drag & drop onto another quickslot (native or API created) will not replace that quickshot's content. To track the problem I tried to drag & drop onto a custom control, and it appears that DragDropInfo:GetShortcut() returns nil, which, well, is obviously why that fails.

Note that it does not matter how the shortcut was initialized, I've tried initializing with data copied from native shortcuts (created with /shortcut), I've tried both constructors, no difference.

I've checked TonicBars and it seems to exhibit the same problem with aliases.

Any insight appreciated.


All times are GMT -5. The time now is 09:42 AM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI