-
Yesterday, 02:03 #1
- Join Date
- Feb 2021
- Posts
- 420
How to I get the source from draginfo in manager_item.lua?
this is the function
function handleAnyDrop(vTarget, draginfo)
local sDragType = draginfo.getType();
local sClass2, sRecord2 = draginfo.getShortcutData();
I am doing auto purchasing of items when they are dragged into the inventory, however, I only want to deduct the coins when the source from the items table, not from when they are dragging items around in their inventory. How can I find this info? Thanks!
-
Yesterday, 02:10 #2
As always do a
Code:Debug.chat("draginfo: ", draginfo);
Then you can work out what and how to pull the data you need.
Thread Information
Users Browsing this Thread
There are currently 4 users browsing this thread. (1 members and 3 guests)
Bookmarks