WoWInterface SVN SplitItemsOnTheFly

Compare Revisions

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

Rev 14 → Rev 15

core.lua
3,13 → 3,19
##Subfile : core.lua
##Author : Hati-EK
--]]
SplitItemsOnTheFly = { }
SplitItemsOnTheFly = { } --just for personal debugging issues
local SI = SplitItemsOnTheFly
SI.name = 'SplitItemsOnTheFly'
SI.ver = GetAddOnMetadata( SI.name, 'Version')
if SI.ver=='rwowi:revision' then SI.ver='SVN' end
 
--some running vars
local handling = nil
SI.modifiers = {
LSHIFT=0,
LCTRL=0,
LALT=0,
}
 
local function GetScaledCursorPosition(xOffset,yOffset)
if not xOffset then xOffset=0 end
47,9 → 53,9
SI.handler:UnregisterEvent('CURSOR_UPDATE')
end
if not i then
c=arg1%SI.count
c=(arg1*(1+SI.modifiers.LSHIFT*4+SI.modifiers.LCTRL*9+SI.modifiers.LALT*19))%SI.count
else
c=(i+arg1)%SI.count
c=(i+(arg1*(1+SI.modifiers.LSHIFT*4+SI.modifiers.LCTRL*9+SI.modifiers.LALT*19)))%SI.count
end
--if c<0 then it would drop automaticly
if c==1 then
177,11 → 183,16
self:UnregisterEvent('CURSOR_UPDATE')
end
 
function events:MODIFIER_STATE_CHANGED(modifier,state)
SI.modifiers[modifier]=state
end
 
SI.handler = CreateFrame('Frame',SI.name.."_Handler",nil)
SI.handler:RegisterEvent('ITEM_LOCK_CHANGED')
SI.handler:RegisterEvent('GUILDBANK_ITEM_LOCK_CHANGED')
SI.handler:RegisterEvent('MERCHANT_SHOW')
SI.handler:RegisterEvent('MERCHANT_CLOSED')
SI.handler:RegisterEvent('MODIFIER_STATE_CHANGED')
SI.handler:SetScript('OnEvent',function(self,event,...)
handling = event
--print(...)