Updating with some suggested changes
MilleXIV [08-08-16 - 13:18]
Updating with some suggested changes
diff --git a/XIV_Databar.toc b/XIV_Databar.toc
index f95de73..151081b 100644
--- a/XIV_Databar.toc
+++ b/XIV_Databar.toc
@@ -6,7 +6,16 @@
## SavedVariables: TEST_CONFIG, XIVBarDB
## X-Issues: https://github.com/MilleXIV/XIV_Databar/issues
-embeds.xml
+Libs\LibStub\LibStub.lua
+Libs\AceAddon-3.0\AceAddon-3.0.xml
+Libs\AceConfig-3.0\AceConfig-3.0.xml
+Libs\AceConsole-3.0\AceConsole-3.0.xml
+Libs\AceDB-3.0\AceDB-3.0.xml
+Libs\AceDBOptions-3.0\AceDBOptions-3.0.xml
+Libs\AceEvent-3.0\AceEvent-3.0.xml
+Libs\AceLocale-3.0\AceLocale-3.0.xml
+Libs\LibSharedMedia-3.0\lib.xml
+
locales\locales.xml
core.lua
modules\load_modules.xml
diff --git a/core.lua b/core.lua
index 5bf6bec..2523f06 100644
--- a/core.lua
+++ b/core.lua
@@ -58,7 +58,7 @@ XIVBar.constants = {
playerClass = select(2, UnitClass("player"))
}
-P = {};
+local P = {};
Engine[1] = XIVBar;
Engine[2] = L;
@@ -71,7 +71,8 @@ _G[AddOnName] = Engine;
function XIVBar:OnInitialize()
self.db = LibStub("AceDB-3.0"):New("XIVBarDB", self.defaults)
- self.LSM:Register(self.LSM.MediaType.FONT, L['Homizio Bold'], self.constants.mediaPath.."homizio_bold.ttf")
+ self.LSM:Register(self.LSM.MediaType.FONT, 'Homizio Bold', self.constants.mediaPath.."homizio_bold.ttf")
+ self.frames = {}
local options = {
name = "XIV Bar",
@@ -118,7 +119,7 @@ function XIVBar:OnInitialize()
--LibStub("AceConfig-3.0"):RegisterOptionsTable(AddOnName.."-Profiles", )
options.args.profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db)
- self.profilesOptionFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions(AddOnName, L['Profiles'], "XIV Bar", "profiles")
+ self.profilesOptionFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions(AddOnName, 'Profiles', "XIV Bar", "profiles")
@@ -126,7 +127,6 @@ function XIVBar:OnInitialize()
end
function XIVBar:OnEnable()
- self.frames = {}
self:CreateMainBar()
self:Refresh()
end
diff --git a/embeds.xml b/embeds.xml
index 450cdb1..e69de29 100644
--- a/embeds.xml
+++ b/embeds.xml
@@ -1,11 +0,0 @@
-<Ui xmlns="http://www.blizzard.com/wow/ui/">
- <Script file="Libs\LibStub\LibStub.lua" />
- <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml"/>
- <Include file="Libs\AceConfig-3.0\AceConfig-3.0.xml"/>
- <Include file="Libs\AceConsole-3.0\AceConsole-3.0.xml"/>
- <Include file="Libs\AceDB-3.0\AceDB-3.0.xml"/>
- <Include file="Libs\AceDBOptions-3.0\AceDBOptions-3.0.xml"/>
- <Include file="Libs\AceEvent-3.0\AceEvent-3.0.xml"/>
- <Include file="Libs\AceLocale-3.0\AceLocale-3.0.xml"/>
- <Include file="Libs\LibSharedMedia-3.0\lib.xml"/>
-</Ui>
diff --git a/locales/enUS.lua b/locales/enUS.lua
index ee8810a..f18a70e 100644
--- a/locales/enUS.lua
+++ b/locales/enUS.lua
@@ -6,7 +6,6 @@ if not L then return; end
L['General'] = true;
L['Text'] = true;
-L['Profiles'] = true;
L['Modules'] = true;
-- General
@@ -34,7 +33,3 @@ L['Hover'] = true;
L['Test Module'] = true;
L['Micromenu'] = true;
-
-
------------- PROPER NOUNS - DO NOT LOCALIZE ------------
-L['Homizio Bold'] = true;