local events = { } |
function events:ITEM_LOCK_CHANGED(...) |
--Get Count (initial Count) |
local arg1,arg2=... |
print(arg1,arg2) |
if arg1 and arg2 then |
_,SI.count,lock = GetContainerItemInfo(...) |
--Item is splitable and got picked up |
if SI.count > 1 and lock and CursorHasItem() then |
--print('EnableMouseWheel') |
SI.Cursor.text:SetPoint('BOTTOMLEFT',SI.Cursor,'BOTTOMLEFT',GetScaledCursorPosition(0,0) ) |
SI.Cursor:EnableMouseWheel(1) |
SI.bagID,SI.bagSlot = ... |
SI.Cursor.text:SetText("") |
--Item isn't splitable and got dropped |
else |
SI.Cursor.text:SetText("") |
SI.Cursor:EnableMouseWheel(0) |
end |
_,SI.count,lock = GetContainerItemInfo(...) |
--Item is splitable and got picked up |
if SI.count > 1 and lock and CursorHasItem() then |
--print('EnableMouseWheel') |
SI.Cursor.text:SetPoint('BOTTOMLEFT',SI.Cursor,'BOTTOMLEFT',GetScaledCursorPosition(0,0) ) |
SI.Cursor:EnableMouseWheel(1) |
SI.bagID,SI.bagSlot = ... |
SI.Cursor.text:SetText("") |
--Item isn't splitable and got dropped |
else |
SI.Cursor.text:SetText("") |
SI.Cursor:EnableMouseWheel(0) |
end |
end |
|