Move modules from toc to xml file
Scott Sibley [08-18-10 - 04:23]
Move modules from toc to xml file
diff --git a/Modules/LCDDisplay.lua b/Modules/LCDDisplay.lua
index 9d81833..7da9372 100644
--- a/Modules/LCDDisplay.lua
+++ b/Modules/LCDDisplay.lua
@@ -16,14 +16,14 @@ local defaults = {profile= {cores={}}}
function mod:OnInitialize()
self.db = StarTip.db:RegisterNamespace(self:GetName(), defaults)
-
+
+end
+
+function mod:OnEnable()
self.lcd = LibDriverQTip:New(self, "display_startip", StarTip.config, StarTip.db.profile.errorLevel)
self.lcd.core:CFGSetup()
self.lcd.core:BuildLayouts()
-
-end
-function mod:OnEnable()
self.lcd.core:Start()
self.lcd:Show()
end
@@ -31,6 +31,7 @@ end
function mod:OnDisable()
self.lcd.core:Stop()
self.lcd:Hide()
+ self.lcd:Del()
end
function mod:AddLCD(core)
diff --git a/StarTip.lua b/StarTip.lua
index 308adac..ab217f9 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -1,4 +1,4 @@
-StarTip = LibStub("AceAddon-3.0"):NewAddon("StarTip: @project-version@", "AceConsole-3.0", "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0")
+StarTip = LibStub("AceAddon-3.0"):NewAddon("StarTip: @project-version@", "AceConsole-3.0", "AceHook-3.0", "AceEvent-3.0")
StarTip.version = GetAddOnMetadata("StarTip", "X-StarTip-Version") or ""
local LibDBIcon = LibStub("LibDBIcon-1.0")
local LSM = _G.LibStub("LibSharedMedia-3.0")
@@ -246,7 +246,6 @@ end
StarTip:SetDefaultModuleState(false)
function StarTip:OnInitialize()
-
self.db = LibStub("AceDB-3.0"):New("StarTipDB", defaults, "Default")
LibStub("AceConfig-3.0"):RegisterOptionsTable("StarTip", options)
diff --git a/StarTip.toc b/StarTip.toc
index 2ac1a67..caed89d 100644
--- a/StarTip.toc
+++ b/StarTip.toc
@@ -21,17 +21,8 @@ Libs\StarLibs-1.0\StarLibs-1.0.xml
embeds.xml
StarTip.lua
-Modules\Fade.lua
-Modules\Appearance.lua
-Modules\Bars.lua
-Modules\Position.lua
-Modules\PvP.lua
-Modules\RaidIcon.lua
-Modules\Targeting.lua
-Modules\Text.lua
-Modules\DeadlyAnnounce.lua
-Modules\Talents.lua
-Modules\LCDDisplay.lua
+
+modules.xml
config.lua
diff --git a/modules.xml b/modules.xml
new file mode 100644
index 0000000..bba3df1
--- /dev/null
+++ b/modules.xml
@@ -0,0 +1,16 @@
+<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
+..\FrameXML\UI.xsd">
+
+<Script file = "Modules\Fade.lua"/>
+<Script file = "Modules\Appearance.lua"/>
+<Script file = "Modules\Bars.lua"/>
+<Script file = "Modules\Position.lua"/>
+<Script file = "Modules\PvP.lua"/>
+<Script file = "Modules\RaidIcon.lua"/>
+<Script file = "Modules\Targeting.lua"/>
+<Script file = "Modules\Text.lua"/>
+<Script file = "Modules\DeadlyAnnounce.lua"/>
+<Script file = "Modules\Talents.lua"/>
+<Script file = "Modules\LCDDisplay.lua"/>
+
+</Ui>