Quantcast

Second take on install.

Darthpred [10-14-14 - 13:19]
Second take on install.
DPS layout is more or less done
Filename
ElvUI_SLE/core/install.lua
diff --git a/ElvUI_SLE/core/install.lua b/ElvUI_SLE/core/install.lua
index c0c17d7..3b47683 100644
--- a/ElvUI_SLE/core/install.lua
+++ b/ElvUI_SLE/core/install.lua
@@ -9,10 +9,11 @@ local MAX_PAGE = 5
 local function DarthSetup() --The function to switch from classic ElvUI settings to Darth's
 	SLEInstallStepComplete.message = L["Darth's Defaults Set"]
 	SLEInstallStepComplete:Show()
+	local layout = E.db.layoutSet --To know if some sort of layout was choosed before
+
 	if not E.db.movers then E.db.movers = {}; end
-	if not E.db.loclite then E.db.loclite = {} end

-	local layout = E.db.layoutSet --To know if some sort of layout was choosed before
+

 	if SLE:Auth() then
 		E.db.hideTutorial = 1
@@ -157,7 +158,7 @@ local function DarthSetup() --The function to switch from classic ElvUI settings
 	E.db["auras"] = {
 		["font"] = "ElvUI Font",
 		["fontOutline"] = "OUTLINE",
-		["consolidatedBuffs"] = {
+		["consolidatedBuffs"] = {
 			["fontSize"] = 11,
 			["filter"] = false,
 			["font"] = "ElvUI Font",
@@ -170,18 +171,17 @@ local function DarthSetup() --The function to switch from classic ElvUI settings
 			["size"] = 30,
 		},
 	}
-	--Don't forget to set if LocLite is enabled
+
 	E.db["movers"] = {
 		["DP_6_Mover"] = "BOTTOMElvUIParentBOTTOM3170",
 		["ElvUF_FocusCastbarMover"] = "BOTTOMElvUIParentBOTTOM0178",
 		["PetAB"] = "BOTTOMLEFTElvUIParentBOTTOMLEFT55152",
-		["LocationLiteMover"] = "TOPElvUIParentTOP0-19",
 		["LeftChatMover"] = "BOTTOMLEFTElvUIParentBOTTOMLEFT019",
 		["GMMover"] = "TOPLEFTElvUIParentTOPLEFT00",
 		["BuffsMover"] = "TOPRIGHTElvUIParentTOPRIGHT-2000",
 		["BossButton"] = "BOTTOMElvUIParentBOTTOM-1200",
 		["ElvUF_FocusMover"] = "BOTTOMElvUIParentBOTTOM29421",
-		["MicrobarMover"] = "TOPElvUIParentTOP0-38",
+		["MicrobarMover"] = "TOPElvUIParentTOP0-18",
 		["VehicleSeatMover"] = "BOTTOMLEFTElvUIParentBOTTOMLEFT420205",
 		["ElvUF_TargetMover"] = "BOTTOMElvUIParentBOTTOM304140",
 		["ElvUF_Raid40Mover"] = "BOTTOMLEFTElvUIParentBOTTOMLEFT0211",
@@ -205,7 +205,7 @@ local function DarthSetup() --The function to switch from classic ElvUI settings
 		["RaidUtility_Mover"] = "TOPElvUIParentTOP-3060",
 		["ArenaHeaderMover"] = "TOPLEFTElvUIParentTOPLEFT0-209",
 		["ElvAB_6"] = "BOTTOMRIGHTElvUIParentBOTTOMRIGHT-11210",
-		["PvPMover"] = "TOPElvUIParentTOP0-70",
+		["PvPMover"] = "TOPElvUIParentTOP0-50",
 		["BossHeaderMover"] = "TOPLEFTElvUIParentTOPLEFT0-209",
 		["ElvUF_PetMover"] = "BOTTOMLEFTElvUIParentBOTTOMLEFT551100",
 		["PetBattleABMover"] = "BOTTOMElvUIParentBOTTOM020",
@@ -260,6 +260,7 @@ local function DarthSetup() --The function to switch from classic ElvUI settings
 					["overlay"] = true,
 					["enable"] = true,
 					["camDistanceScale"] = 3,
+					["rotation"] = 345,
 				},
 				["castbar"] = {
 					["height"] = 20,
@@ -309,6 +310,7 @@ local function DarthSetup() --The function to switch from classic ElvUI settings
 					["overlay"] = true,
 					["enable"] = true,
 					["camDistanceScale"] = 3,
+					["rotation"] = 345,
 				},
 				["classbar"] = {
 					["fill"] = "spaced",
@@ -396,7 +398,7 @@ local function DarthSetup() --The function to switch from classic ElvUI settings
 			},
 		},
 		["fontOutline"] = "OUTLINE",
-	},
+	}

 	E.db["datatexts"] = {
 		["minimapPanels"] = false,
@@ -502,16 +504,46 @@ local function DarthSetup() --The function to switch from classic ElvUI settings
 		["panelWidth"] = 425,
 	}
 	--Hide under is addon loaded check
-	E.db["loclite"] = {
-		["dig"] = false,
-		["lpwidth"] = 300,
-		["lpauto"] = false,
-		["lpfontsize"] = 10,
-		["lpfontflags"] = "OUTLINE",
-		["dtheight"] = 20,
+
+	if IsAddOnLoaded("ElvUI_LocLite") then
+		E.db["loclite"] = {
+			["dig"] = false,
+			["lpwidth"] = 300,
+			["lpauto"] = false,
+			["lpfontsize"] = 10,
+			["lpfontflags"] = "OUTLINE",
+			["dtheight"] = 20,
+		}
+		E.db["movers"]["LocationLiteMover"] = "TOPElvUIParentTOP0-19"
+		E.db["movers"]["MicrobarMover"] = "TOPElvUIParentTOP0-38"
+		E.db["movers"]["PvPMover"] = "TOPElvUIParentTOP0-70"
+	end
+
+	E.private["general"]["normTex"] = "Polished Wood"
+	E.private["general"]["glossTex"] = "Polished Wood"
+
+	E.private["sle"]["inspectframeoptions"]["enable"] = true
+	E.private["sle"]["characterframeoptions"]["enable"] = true
+	E.private["sle"]["minimap"]["mapicons"]["enable"] = true
+	E.private["sle"]["equip"]["spam"] = true
+
+	if AddOnSkins then
+		E.private["addonskins"] = {
+			["Blizzard_WorldStateCaptureBar"] = true,
+			["EmbedOoCDelay"] = 5,
+			["EmbedOoC"] = true,
+			["DBMFontSize"] = 10,
+			["DBMSkinHalf"] = true,
+			["DBMFont"] = "ElvUI Font",
+			["EmbedLeftWidth"] = 213,
+			["EmbedSystemDual"] = true,
+		}
+	end
+	E.private["ElvUI_Currency"] = {
+		["Unused"] = false,
 	}

-	E:UpdateAll(true)
+	E:UpdateAll()
 end

 local function RepoocSetup() --The function to switch from classic ElvUI settings to Repooc's