From 4bde57d0846cf5e9c64b623ae6df34d01f5b2137 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 30 Jun 2012 00:19:31 +0400 Subject: [PATCH] Additions to the install process. Setting up player and target frames settings + their defaults reseting --- ElvUI_SLE/core/install.lua | 34 +++++++++++++++++++++++++++++++++- ElvUI_SLE/locales/english.lua | 1 + ElvUI_SLE/locales/russian.lua | 1 + 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/ElvUI_SLE/core/install.lua b/ElvUI_SLE/core/install.lua index 3d757dd..0e71e7e 100644 --- a/ElvUI_SLE/core/install.lua +++ b/ElvUI_SLE/core/install.lua @@ -1,4 +1,5 @@ local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB +local UF = E:GetModule('UnitFrames'); local CURRENT_PAGE = 0 local MAX_PAGE = 8 @@ -626,7 +627,33 @@ function E:DarthSetup() --The function to switch from classic ElvUI settings to E.db.unitframe.units.arena.castbar.width = 200; end + --Setting player frame + E.db.unitframe.units.player.lowmana = 0; + E.db.unitframe.units.player.health.position = 'BOTTOMRIGHT'; + E.db.unitframe.units.player.power.position = 'RIGHT'; E.db.unitframe.units.player.name.enable = true; + E.db.unitframe.units.player.name.position = 'TOPLEFT'; + E.db.unitframe.units.player.portrait.enable = true + E.db.unitframe.units.player.portrait.camDistanceScale = 1.5; + E.db.unitframe.units.player.debuffs.enable = false; + E.db.unitframe.units.player.castbar.format = 'CURRENTMAX'; + --Setting target frame + E.db.unitframe.units.target.hideonnpc = false; + E.db.unitframe.units.target.health.position = 'BOTTOMRIGHT'; + E.db.unitframe.units.target.power.position = 'RIGHT'; + E.db.unitframe.units.target.name.enable = true; + E.db.unitframe.units.target.name.position = 'TOPLEFT'; + E.db.unitframe.units.target.portrait.enable = true + E.db.unitframe.units.target.portrait.camDistanceScale = 1.5; + E.db.unitframe.units.target.buffs.perrow = 8; + E.db.unitframe.units.target.buffs.numrows = 2; + E.db.unitframe.units.target.buffs['growth-x'] = 'RIGHT'; + E.db.unitframe.units.target.buffs.initialAnchor = 'BOTTOMLEFT'; + E.db.unitframe.units.target.buffs.anchorPoint = 'TOPLEFT'; + E.db.unitframe.units.target.debuffs.perrow = 8; + E.db.unitframe.units.target.debuffs.useFilter = 'DebuffBlacklist'; + E.db.unitframe.units.target.debuffs.showPlayerOnly = false; + E.db.unitframe.units.target.castbar.format = 'CURRENTMAX'; E:UpdateAll(true) end @@ -640,9 +667,14 @@ function E:RepoocSetup() --The function to switch from classic ElvUI settings to end function E:ElvSetup() --The function to restore defaults. not finished yet lol + InstallStepComplete.message = L["Elv's Defaults Set"] + InstallStepComplete:Show() if not E.db.movers then E.db.movers = {}; end --Move every bar and panel to the defaults. - E:ResetUI() + E:ResetUI() --Reseting positions + StaticPopup3Button1:Click() --this is automatic click on confirm for reseting mivers + UF:ResetUnitSettings('player'); + UF:ResetUnitSettings('target'); end diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua index 0cb8bcb..bac9cdc 100644 --- a/ElvUI_SLE/locales/english.lua +++ b/ElvUI_SLE/locales/english.lua @@ -237,6 +237,7 @@ L["You can now choose if you what to use one of authors' set of options. This wi L["Elv's Defaults button only needs to be clicked if you set one of our configurations and wish to reverse this choise."] = true L["Darth's Defaults Set"] = true L["Repooc's Defaults Set"] = true +L["Elv's Defaults Set"] = true L["Darth's Config"] = true L["Repooc's Config"] = true L["Elv's Defaults"] = true diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua index dbd8b83..26cd604 100644 --- a/ElvUI_SLE/locales/russian.lua +++ b/ElvUI_SLE/locales/russian.lua @@ -219,6 +219,7 @@ L["You can now choose if you what to use one of authors' set of options. This wi L["Elv's Defaults button only needs to be clicked if you set one of our configurations and wish to reverse this choise."] = 'Кнопку "Умолчания ElvUI" требуется нажимать только в том случае, если вы выбрали одну из наших конфигураций и желаете обратить эти изменения.' L["Darth's Defaults Set"] = "Установлены настройки Darth'а" L["Repooc's Defaults Set"] = "Установлены настройки Repooc'а" +L["Elv's Defaults Set"] = "Установлены настройки по умолчанию" L["Darth's Config"] = "Опции Darth'а" L["Repooc's Config"] = "Опции Repooc'а" L["Elv's Defaults"] = "Умолчания ElvUI" -- 1.7.9.5