WoWInterface SVN SplitItemsOnTheFly

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 9 to Rev 10
    Reverse comparison

Rev 9 → Rev 10

trunk/core.lua
61,18 → 61,22
local events = { }
function events:ITEM_LOCK_CHANGED(...)
--Get Count (initial Count)
_,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)
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
end
end