WoWInterface SVN zz_UI

Compare Revisions

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

Rev 12 → Rev 13

zz_UI/core.lua
30,6 → 30,10
local rosterOfficer = {}
local rosterNotice = {}
local db
local postmaster = {
['Der Postmeister'] = true,
['The Postmaster'] = true,
}
local itemList = {
"52306","52307","52308","52309","43248","52492", -- cata
"83793","83794" -- mop
329,6 → 333,25
end
end
updateClassColor("player")
elseif(event == 'MAIL_SHOW') then
 
for i=GetInboxNumItems(),1,-1 do
local packageIcon, stationeryIcon, sender, subject, money, CODAmount, daysLeft, hasItem, wasRead, wasReturned, textCreated, canReply, isGM =GetInboxHeaderInfo(i)
if(postmaster[sender]) then
if(money and money >0) then
TakeInboxMoney(i)
end
if(hasItem) then
for j = 1, ATTACHMENTS_MAX_RECEIVE do
local name, texture, count, quality, canUse = GetInboxItem(i, j)
if(name) then
TakeInboxItem(i,j)
end
end
end
C_Timer.After(5, function(i) DeleteInboxItem(i) end)
end
end
elseif(event == 'CHAT_MSG_SYSTEM') then -- http://www.wowinterface.com/downloads/info23035-AFKQuit.html
if(arg1 and arg1 == IDLE_MESSAGE) then
ForceQuit()
351,7 → 374,7
end
end
addon['startup'](addon, name, childName, init, true, defaults)
addon['RegisterFunc']({'PLAYER_TARGET_CHANGED','PLAYER_FOCUS_CHANGED','UPDATE_CHAT_WINDOWS','ADDON_LOADED','PLAYER_ENTERING_WORLD','CHAT_MSG_SYSTEM'},"OnEvent", OnEvent)
addon['RegisterFunc']({'PLAYER_TARGET_CHANGED','PLAYER_FOCUS_CHANGED','UPDATE_CHAT_WINDOWS','ADDON_LOADED','PLAYER_ENTERING_WORLD','CHAT_MSG_SYSTEM','MAIL_SHOW'},"OnEvent", OnEvent)
addon['RegisterEventThrottle'](childName,'UNIT_INVENTORY_CHANGED', 0.07, OnEvent)