Mercurial > wow > dependencyloader
diff DependencyLoader/Addon.lua @ 17:f825ccf94a89
fixed an indexing issue in Addon.lua
moved most of the code in DependencyLoader.lua to Core.lua, and renamed the former to frontend.lua
updated load.xml
rearranged stuff in start.lua
author | mckenziemc |
---|---|
date | Sat, 11 Dec 2010 03:32:04 -0800 |
parents | a46bf694050c |
children | e7995d599184 |
line wrap: on
line diff
--- a/DependencyLoader/Addon.lua Sat Dec 11 01:54:15 2010 -0800 +++ b/DependencyLoader/Addon.lua Sat Dec 11 03:32:04 2010 -0800 @@ -184,9 +184,9 @@ function addon:Enable() if IsLoggedIn() then - addonTable.interface:QueueEnable(self.name) + addonTable.classes.Core:QueueEnable(self.name) else - addonTable.interface:RawEnableAddOn(self.name) + addonTable.classes.Core:RawEnableAddOn(self.name) end end @@ -195,8 +195,8 @@ function addon:Load() assert(self:CanLoD()) - addonTable.interface:RawEnableAddOn(self.name) - addonTable.interface:RawLoadAddOn(self.name) + addonTable.classes.Core:RawEnableAddOn(self.name) + addonTable.classes.Core:RawLoadAddOn(self.name) end @@ -204,7 +204,7 @@ assert(self:CanForceLoad()) -- TODO: make sure force-loading is available at this time - addonTable.interface:RawEnableAddOn(self.name) -- This should cause the game to also load this addon + addonTable.Core:RawEnableAddOn(self.name) -- This should cause the game to also load this addon end