Quantcast

Additions to the install process.

Darthpred [06-29-12 - 20:19]
Additions to the install process.
Setting up player and target frames settings + their defaults reseting
Filename
ElvUI_SLE/core/install.lua
ElvUI_SLE/locales/english.lua
ElvUI_SLE/locales/russian.lua
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"