Quantcast

Making use of locked settings.

Darthpred [02-23-13 - 14:58]
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.
Filename
ElvUI_SLE/ElvUI_SLE.lua
ElvUI_SLE/modules/install.lua
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()