WoWInterface SVN zz_Wb_Pandaria

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 5 to Rev 6
    Reverse comparison

Rev 5 → Rev 6

trunk/zz_Wb_Pandaria/index.lua
459,9 → 459,15
},
}
local f = CreateFrame("FRAME")
addon:RegisterEvent("ADDON_LOADED")
addon:SetScript("OnEvent", function(self,event,arg1)
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", function(self,event,arg1)
if(arg1==name and event=="ADDON_LOADED") then
local db = zz_Worldboss['profiles']['Default']['zz_Worldboss']
for a, b in pairs({'quests','expansions'}) do
for k,v in pairs(defaults[b]) do
db[b][k] = v
end
end
SELECTED_CHAT_FRAME:AddMessage("DB installed into zz_Worldboss.\nTo speed up loading process you can delete the addon "..name.." now.")
self:UnregisterEvent(event)
end