From ed0259eec5245ea8867ba40382300b84738d1786 Mon Sep 17 00:00:00 2001 From: Repooc Date: Thu, 28 Feb 2013 20:03:50 -0500 Subject: [PATCH] Added Clique file for Repooc's later use, removed fixTo for text as elv add x/y position for that now --- ElvUI_SLE/ElvUI_SLE.lua | 6 --- ElvUI_SLE/ElvUI_SLE.toc | 2 +- ElvUI_SLE/config/profile.lua | 8 +-- ElvUI_SLE/modules/install/Clique.lua | 27 +++++++++++ ElvUI_SLE/modules/install/install.lua | 3 -- ElvUI_SLE/modules/install/load_install.xml | 1 + ElvUI_SLE/modules/unitframes/options.lua | 54 --------------------- ElvUI_SLE/modules/unitframes/units/load_units.xml | 5 -- ElvUI_SLE/modules/unitframes/units/player.lua | 9 ++-- 9 files changed, 36 insertions(+), 79 deletions(-) create mode 100644 ElvUI_SLE/modules/install/Clique.lua diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua index b6717be..5266cc9 100644 --- a/ElvUI_SLE/ElvUI_SLE.lua +++ b/ElvUI_SLE/ElvUI_SLE.lua @@ -156,12 +156,6 @@ function SLE:Reset(all, uf, dt, bg, mark) if uf then E.db.sle.combatico.pos = 'TOP' E:CopyTable(E.db.unitframe.units.player.classbar, P.unitframe.units.player.classbar) - E.db.unitframe.units.player.fixTo = "health" - E.db.unitframe.units.target.fixTo = "health" - E.db.unitframe.units.targettarget.fixTo = "health" - E.db.unitframe.units.focus.fixTo = "health" - E.db.unitframe.units.arena.fixTo = "health" - E.db.unitframe.units.boss.fixTo = "health" E.db.sle.powtext = false end if dt then diff --git a/ElvUI_SLE/ElvUI_SLE.toc b/ElvUI_SLE/ElvUI_SLE.toc index dd3f695..7a2e857 100644 --- a/ElvUI_SLE/ElvUI_SLE.toc +++ b/ElvUI_SLE/ElvUI_SLE.toc @@ -7,7 +7,7 @@ ## eMail: darthpred@gmail.com, repooc@tukui.org ## URL: http://tukui.org/ ## RequiredDeps: ElvUI -## OptionalDeps: iFilger_ConfigUI, BigWigs, Hermes, xCT+ +## OptionalDeps: iFilger_ConfigUI, BigWigs, Clique, Hermes, xCT+ ## DefaultState: Enabled libs\load_libs.xml diff --git a/ElvUI_SLE/config/profile.lua b/ElvUI_SLE/config/profile.lua index c02fdff..d970f18 100644 --- a/ElvUI_SLE/config/profile.lua +++ b/ElvUI_SLE/config/profile.lua @@ -372,10 +372,4 @@ end P.unitframe.units.player.classbar.xOffset = 0 P.unitframe.units.player.classbar.yOffset = 0 -P.unitframe.units.player.classbar.offset = false -P.unitframe.units.player.fixTo = "health" -P.unitframe.units.target.fixTo = "health" -P.unitframe.units.targettarget.fixTo = "health" -P.unitframe.units.focus.fixTo = "health" -P.unitframe.units.arena.fixTo = "health" -P.unitframe.units.boss.fixTo = "health" +P.unitframe.units.player.classbar.offset = false \ No newline at end of file diff --git a/ElvUI_SLE/modules/install/Clique.lua b/ElvUI_SLE/modules/install/Clique.lua new file mode 100644 index 0000000..652e78f --- /dev/null +++ b/ElvUI_SLE/modules/install/Clique.lua @@ -0,0 +1,27 @@ +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 = 'Clique' -- the name of the addon +local dbname = 'CliqueDB3' -- name of the addon database + +local function OnDemand(profile) -- function that creates the "load on demand" database + local database + if profile == "Affinitii" then + -- No Settings + end + + if profile == "Repooc" then + --database = { + --} + 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/install.lua b/ElvUI_SLE/modules/install/install.lua index 344691d..ebe9507 100644 --- a/ElvUI_SLE/modules/install/install.lua +++ b/ElvUI_SLE/modules/install/install.lua @@ -947,7 +947,6 @@ function E:DarthSetup(private) --The function to switch from classic ElvUI setti E.db.unitframe.units.player.health.text_format = "[healthcolor][health:current-percent:sl]" E.db.unitframe.units.player.power.text_format = "[powercolor][power:current:sl]"; E.db.unitframe.units.player.power.height = 8 - E.db.unitframe.units.player.fixTo = "power" E.db.unitframe.units.player.name.text_format = "[name] [level]"; E.db.unitframe.units.player.name.position = 'TOPLEFT'; E.db.unitframe.units.player.pvp.text_format = "||cFFB04F4F[pvptimer]||r" @@ -980,7 +979,6 @@ function E:DarthSetup(private) --The function to switch from classic ElvUI setti E.db.unitframe.units.target.power.hideonnpc = false; E.db.unitframe.units.target.power.text_format = "[powercolor][power:current:sl]" E.db.unitframe.units.target.power.height = 8 - E.db.unitframe.units.target.fixTo = "power" E.db.unitframe.units.target.name.text_format = "[name:medium] [level] [shortclassification]"; E.db.unitframe.units.target.name.position = 'TOPLEFT'; E.db.unitframe.units.target.portrait.enable = true @@ -2126,7 +2124,6 @@ function E:AffinitiiSetup(loadAddons) --The function to switch from class ElvUI end if loadAddons then - print("attempt to load addons") AI:LoadAddons("Affinitii, All") end E:UpdateAll(true) diff --git a/ElvUI_SLE/modules/install/load_install.xml b/ElvUI_SLE/modules/install/load_install.xml index 6a69aad..c1350a1 100644 --- a/ElvUI_SLE/modules/install/load_install.xml +++ b/ElvUI_SLE/modules/install/load_install.xml @@ -4,6 +4,7 @@