From 4c287d60572171383361e80b33c5f3c536b507d2 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 3 Mar 2013 10:34:54 +0400 Subject: [PATCH] Lazy Repooc --- ElvUI_SLE/dev/staticpopups.lua | 30 ------------------------------ ElvUI_SLE/modules/install/install.lua | 8 ++------ 2 files changed, 2 insertions(+), 36 deletions(-) diff --git a/ElvUI_SLE/dev/staticpopups.lua b/ElvUI_SLE/dev/staticpopups.lua index 96a2885..e2fe86f 100644 --- a/ElvUI_SLE/dev/staticpopups.lua +++ b/ElvUI_SLE/dev/staticpopups.lua @@ -1,35 +1,5 @@ local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore -E.PopupDialogs["ELVUI_SLE_AFFINITII"] = { - text = L["Would you like to load additional addon settings from this profile's author? Note: This will add a new profile in the addons that he has settings for and set your current profile to the newly made profile."], - button1 = YES, - button2 = NO, - OnAccept = function(self) - E:AffinitiiSetup(true) - end, - OnCancel = function(self) - E:AffinitiiSetup(false) - end, - timeout = 0, - whileDead = 1, - hideOnEscape = false, -} - -E.PopupDialogs["ELVUI_SLE_DARTH"] = { - text = L["Would you like to load additional addon settings from this profile's author? Note: This will add a new profile in the addons that he has settings for and set your current profile to the newly made profile."], - button1 = YES, - button2 = NO, - OnAccept = function(self) - E:DarthSetup(true) - end, - OnCancel = function(self) - E:DarthSetup(false) - end, - timeout = 0, - whileDead = 1, - hideOnEscape = false, -} - E.PopupDialogs["ELVUI_SLE_REPOOC"] = { text = L["Repooc configuration requires PixelPerfect to be enabled. Hit accept to enable Pixel Perfect, hit cancel to not use Repooc's Config."], button1 = ACCEPT, diff --git a/ElvUI_SLE/modules/install/install.lua b/ElvUI_SLE/modules/install/install.lua index d5f583f..4a47510 100644 --- a/ElvUI_SLE/modules/install/install.lua +++ b/ElvUI_SLE/modules/install/install.lua @@ -751,7 +751,7 @@ local function SetupAuras(style) end -function E:DarthSetup(loadAddons) --The function to switch from classic ElvUI settings to Darth's +function E:DarthSetup() --The function to switch from classic ElvUI settings to Darth's InstallStepComplete.message = L["Darth's Defaults Set"] InstallStepComplete:Show() E:CopyTable(E.db, P) @@ -1371,10 +1371,6 @@ function E:DarthSetup(loadAddons) --The function to switch from classic ElvUI se E.db.movers.FarmSeedMover = "BOTTOMRIGHTElvUIParentBOTTOMRIGHT-300211" E.db.movers.FarmToolMover = "BOTTOMRIGHTElvUIParentBOTTOMRIGHT-175211" end - - if loadAddons then - AI:LoadAddons("Darth, All") - end E:UpdateAll(true) end @@ -2398,7 +2394,7 @@ local function SetPage(PageNum) f.Desc3:SetText(L["Importance: |cffFF0000Low|r"]) InstallOption1Button:Show() - InstallOption1Button:SetScript('OnClick', function() E:StaticPopup_Show("ELVUI_SLE_DARTH") end) + InstallOption1Button:SetScript('OnClick', function() E:DarthSetup() end) InstallOption1Button:SetText(L["Darth's Config"]) InstallOption2Button:Show() -- 1.7.9.5