From b389b4339b1739c38a4f8777c22d1f6020429ad2 Mon Sep 17 00:00:00 2001 From: Repooc Date: Sun, 11 Nov 2012 02:44:56 -0500 Subject: [PATCH] Removed Elv Default button on S&L Install page. --- ElvUI_SLE/locales/english.lua | 6 +++--- ElvUI_SLE/modules/install.lua | 29 +---------------------------- 2 files changed, 4 insertions(+), 31 deletions(-) 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!"]) -- 1.7.9.5