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) |
if SI.count then |
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 |
end |
end |