/SpartanUI/Orig
-- end |
-- @class file |
-- @name AceAddon-3.0.lua |
-- @release $Id: AceAddon-3.0.lua 1036 2011-08-16 22:45:05Z nevcairiel $ |
-- @release $Id: AceAddon-3.0.lua 1084 2013-04-27 20:14:11Z nevcairiel $ |
local MAJOR, MINOR = "AceAddon-3.0", 11 |
local MAJOR, MINOR = "AceAddon-3.0", 12 |
local AceAddon, oldminor = LibStub:NewLibrary(MAJOR, MINOR) |
if not AceAddon then return end -- No Upgrade needed. |
-- used in the addon metatable |
local function addontostring( self ) return self.name end |
-- Check if the addon is queued for initialization |
local function queuedForInitialization(addon) |
for i = 1, #AceAddon.initializequeue do |
if AceAddon.initializequeue[i] == addon then |
return true |
end |
end |
return false |
end |
--- Create a new AceAddon-3.0 addon. |
-- Any libraries you specified will be embeded, and the addon will be scheduled for |
-- its OnInitialize and OnEnable callbacks. |
-- MyModule:Enable() |
function Enable(self) |
self:SetEnabledState(true) |
return AceAddon:EnableAddon(self) |
-- nevcairiel 2013-04-27: don't enable an addon/module if its queued for init still |
-- it'll be enabled after the init process |
if not queuedForInitialization(self) then |
return AceAddon:EnableAddon(self) |
end |
end |
--- Disables the Addon, if possible, return true or false depending on success. |
## Interface: 50300 |
## Title: SpartanUI |CFF0070DDCore|r |
## Notes: User Interface combining elegant artwork with well designed features. |
## Version: 3.1.5 |
## Version: 3.1.6 |
## Author: Wutname1 |
## Former-Authors: Atriace, Beladona, Zilver |
## OptionalDeps: Bartender4 |
## SavedVariables: SpartanUIDB |
## X-Curse-Packaged-Version: 3.1.5 |
## X-Curse-Packaged-Version: 3.1.6 |
## X-Curse-Project-Name: SpartanUI |
## X-Curse-Project-ID: spartan-ui |
## X-Curse-Repository-ID: wow/spartan-ui/mainline |
## X-Category: User Interfaces |
## X-oUF: oUF |
## RequiredDeps: SpartanUI |
## X-Curse-Packaged-Version: 3.1.5 |
## X-Curse-Packaged-Version: 3.1.6 |
## X-Curse-Project-Name: SpartanUI |
## X-Curse-Project-ID: spartan-ui |
## X-Curse-Repository-ID: wow/spartan-ui/mainline |
## RequiredDeps: SpartanUI |
## OptionalDeps: SpartanUI_PlayerFrames |
## X-oUF: oUF |
## X-Curse-Packaged-Version: 3.1.5 |
## X-Curse-Packaged-Version: 3.1.6 |
## X-Curse-Project-Name: SpartanUI |
## X-Curse-Project-ID: spartan-ui |
## X-Curse-Repository-ID: wow/spartan-ui/mainline |
## X-oUF: oUF |
## RequiredDeps: SpartanUI |
## OptionalDeps: SpartanUI_PlayerFrames |
## X-Curse-Packaged-Version: 3.1.5 |
## X-Curse-Packaged-Version: 3.1.6 |
## X-Curse-Project-Name: SpartanUI |
## X-Curse-Project-ID: spartan-ui |
## X-Curse-Repository-ID: wow/spartan-ui/mainline |