Quantcast

Removed Elv Default button on S&L Install page.

Repooc [11-11-12 - 07:44]
Removed Elv Default button on S&L Install page.
Filename
ElvUI_SLE/locales/english.lua
ElvUI_SLE/modules/install.lua
diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua
index b946d1a..2637d5a 100644
--- a/ElvUI_SLE/locales/english.lua
+++ b/ElvUI_SLE/locales/english.lua
@@ -28,9 +28,9 @@ L["Your version of ElvUI is older than recommended to use with Shadow & Light Ed

 --Install--
 L["Shadow & Light Settings"] = true
-L["You can now choose if you what to use one of authors' set of options. This will change not only the positioning of some elements but also change a bunch of other options."] = true
-L["SLE_Install_Text2"] = [=[Elv's Defaults button only needs to be clicked if you set one of our configurations and wish to reverse this choise.
-|cffFF0000Warning:|r this will reset everything to the high resolution normal layout.]=]
+L["You can now choose if you what to use one of authors' set of options. This will change the positioning of most elements but also change a bunch of other options within ElvUI's config."] = true
+L["SLE_Install_Text2"] = [=[This step is optional and only to be used if you are wanting to use one of our configurations.
+|cffFF0000Warning:|r Please not that the authors' may or may not use any of the layout/theme you have selected as they may not have utilized the options.]=]
 L["Darth's Config"] = true
 L["Darth's Defaults Set"] = true
 L["Elv's Defaults"] = true
diff --git a/ElvUI_SLE/modules/install.lua b/ElvUI_SLE/modules/install.lua
index 90af599..343da9b 100644
--- a/ElvUI_SLE/modules/install.lua
+++ b/ElvUI_SLE/modules/install.lua
@@ -1,4 +1,4 @@
-local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
+local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
 local UF = E:GetModule('UnitFrames');

 local CURRENT_PAGE = 0
@@ -1435,29 +1435,6 @@ function E:RepoocSetup() --The function to switch from classic ElvUI settings to
 	E:UpdateAll(true)
 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
-	--Set to defaults. Every module is listed just in case.
-	E:CopyTable(E.db.general, P.general) --General options
-	E:CopyTable(E.db.nameplate, P.nameplate) --Nameplates
-	E:CopyTable(E.db.datatexts, P.datatexts) --Datatexts
-	E:CopyTable(E.db.actionbar, P.actionbar) --Actionbars
-	E:CopyTable(E.db.tooltip, P.tooltip) --Tooltip
-	E:CopyTable(E.db.unitframe, P.unitframe) --Unitframes
-	E:CopyTable(E.db.skins, P.skins) --Skins
-	E:CopyTable(E.db.bags, P.bags) --Bags
-	E:CopyTable(E.db.chat, P.chat) --Chat
-	E:CopyTable(E.db.sle, P.sle) --Edit's main defaults
-	E:CopyTable(E.db.microbar, P.microbar) --Microbar
-	--Move every bar and panel to the defaults.
-	E:ResetUI() --Reseting positions
-	StaticPopup3Button1:Click() --this is automatic click on confirm for reseting movers
-
-	E:UpdateAll(true)
-end
-
 function E:HudSimple()
 	local H = E:GetModule('HUD')
 	InstallStepComplete.message = L["Simple Layout Set"]
@@ -1507,7 +1484,6 @@ local function ResetAll()
 end

 local function SetPage(PageNum)
-	--Elv Has
 	CURRENT_PAGE = PageNum
 	ResetAll()
 	InstallStatus:SetValue(PageNum)
@@ -1629,9 +1605,6 @@ local function SetPage(PageNum)
 		InstallOption2Button:Show()
 		InstallOption2Button:SetScript('OnClick', function() E:RepoocSetup() end)
 		InstallOption2Button:SetText(L["Repooc's Config"])
-		InstallOption3Button:Show()
-		InstallOption3Button:SetScript('OnClick', function() E:ElvSetup() end)
-		InstallOption3Button:SetText(L["Elv's Defaults"])
 	elseif PageNum == 9 and IsAddOnLoaded("ElvUI_Hud") then --Hud's page if enabled
 		f.SubTitle:SetText("ElvUI Hud")
 		f.Desc1:SetText(L["Thank you for using ElvUI Hud!"])