WoWInterface SVN SplitItemsOnTheFly

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 13 to Rev 14
    Reverse comparison

Rev 13 → Rev 14

core.lua
86,16 → 86,18
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