From 359c468b340d206dd319d028e09fdcb92a57a0a0 Mon Sep 17 00:00:00 2001 From: Repooc Date: Thu, 28 Feb 2013 20:58:26 -0500 Subject: [PATCH] Added ability to add to global filter stuff as a test until i get the filter options from Affinitii. --- ElvUI_SLE/modules/install/ElvUIFilters.lua | 42 ++++++++++++++++++++++++++++ ElvUI_SLE/modules/install/load_install.xml | 1 + 2 files changed, 43 insertions(+) create mode 100644 ElvUI_SLE/modules/install/ElvUIFilters.lua 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 @@