View Single Post
  #1  
Unread 10-12-2010, 08:19 PM
SanDBoX's Avatar
SanDBoX SanDBoX is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Location: Idaho
Posts: 40
Drag/Drop operations

I am trying to setup a window so that it will accept a drag&drop item, I have figured out how to see when it happens, but cant figure out how to get the item that was dropped, I really dont want to use a quickslot for this (could cause issues latter)

So far I have :
Quote:
Window = class( Turbine.UI.Window )

function Window:Constructor( )
Turbine.UI.Lotro.Window.Constructor( self )
self:SetSize( 100, 100 )
self:SetPosition( 100, 100 )
self:SetText( "Testing Grounds" )
self:SetAllowDrop( true )
end


function selfragDrop(sender, args)
Turbine.Shell.WriteLine( "Received Item" )
end
but when I cycle through the information from sender all I get is the y,x coords and a seemingly unused "dragdropinfo" table which just has an __implementation atribute that is blank.

Anyone know how to collect the dropped item?
Reply With Quote