Quantcast

Added ability to add to global filter stuff as a test until i get the filter options from Affinitii.

Repooc [03-01-13 - 01:58]
Added ability to add to global filter stuff as a test until i get the filter options from Affinitii.
Filename
ElvUI_SLE/modules/install/ElvUIFilters.lua
ElvUI_SLE/modules/install/load_install.xml
diff --git a/ElvUI_SLE/modules/install/ElvUIFilters.lua b/ElvUI_SLE/modules/install/ElvUIFilters.lua
new file mode 100644
index 0000000..f30ad89
--- /dev/null
+++ b/ElvUI_SLE/modules/install/ElvUIFilters.lua
@@ -0,0 +1,42 @@
+local E, L, V, P, G, _ = unpack(ElvUI);
+local AI = E:GetModule('AddonInstaller')
+
+local ace3   = false              -- whether or not this database is a Ace3 profile
+local name   = 'ElvUI'          -- the name of the addon
+local dbname = 'ElvDB'       -- name of the addon database
+
+local function OnDemand(profile)  -- function that creates the "load on demand" database
+	local database
+	if profile == "Affinitii" then
+		database = {
+			["global"] = {
+				["unitframe"] = {
+					["buffwatch"] = {
+						["MONK"] = {
+							nil,
+							nil,
+							nil,
+							{
+								["displayText"] = true,
+								["style"] = "NONE",
+							},
+						},
+					},
+				},
+			},
+		}
+	end
+
+	if profile == "Repooc" then
+		-- No Settings
+	end
+
+	if profile == "Darth" then
+		-- No Settings
+	end
+
+	return database
+end
+
+-- register the profile with the engine
+AI:RegisterAddonProfile(name, ace3, dbname, OnDemand)
\ No newline at end of file
diff --git a/ElvUI_SLE/modules/install/load_install.xml b/ElvUI_SLE/modules/install/load_install.xml
index c1350a1..4825a0e 100644
--- a/ElvUI_SLE/modules/install/load_install.xml
+++ b/ElvUI_SLE/modules/install/load_install.xml
@@ -5,6 +5,7 @@
 	<Script file='BigWigsFights.lua'/>
 	<Script file='BigWigsIcon.lua'/>
 	<Script file='Clique.lua'/>
+	<Script file='ElvUIFilters.lua'/>
 	<Script file='Hermes.lua'/>
 	<Script file='xCT+.lua'/>
 </Ui>
\ No newline at end of file