From 2c3a181d9356d109036f0940bc726afc2c8f6395 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 23 Feb 2013 18:58:42 +0400 Subject: [PATCH] Making use of locked settings. Basically it asks if user wants to get my private settings like modules activated, skin options and stuff. Possibly will need to change the popup text a little. --- ElvUI_SLE/ElvUI_SLE.lua | 16 ++++++++++++++++ ElvUI_SLE/modules/install.lua | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua index 3a0348d..0b2a972 100644 --- a/ElvUI_SLE/ElvUI_SLE.lua +++ b/ElvUI_SLE/ElvUI_SLE.lua @@ -81,6 +81,22 @@ E.PopupDialogs["ELVUI_SLE_REPOOC"] = { timeout = 0, whileDead = 1, } + +E.PopupDialogs["ELVUI_SLE_DARTH"] = { + text = L["Do you want to also apply character based settings?"], + button1 = YES, + button2 = NO, + OnAccept = function(self) + E:DarthSetup(true) + end, + OnCancel = function(self) + E:DarthSetup(false) + end, + timeout = 0, + whileDead = 1, + hideOnEscape = false, +} + --Showing warning message about too old versions of ElvUI if tonumber(E.version) < 5.32 then E:StaticPopup_Show("VERSION_MISMATCH") diff --git a/ElvUI_SLE/modules/install.lua b/ElvUI_SLE/modules/install.lua index f7de709..024f088 100644 --- a/ElvUI_SLE/modules/install.lua +++ b/ElvUI_SLE/modules/install.lua @@ -2279,7 +2279,7 @@ local function SetPage(PageNum) f.Desc3:SetText(L["Importance: |cffFF0000Low|r"]) InstallOption1Button:Show() - InstallOption1Button:SetScript('OnClick', function() E:DarthSetup() end) + InstallOption1Button:SetScript('OnClick', function() E:StaticPopup_Show("ELVUI_SLE_DARTH") end) InstallOption1Button:SetText(L["Darth's Config"]) InstallOption2Button:Show() -- 1.7.9.5