Added enable/disable option for questguru skin. disabled by default. This fixes #312
Darthpred [08-30-16 - 05:31]
Added enable/disable option for questguru skin. disabled by default. This fixes #312
diff --git a/ElvUI_SLE/defaults/private.lua b/ElvUI_SLE/defaults/private.lua
index 500c28c..8a0f4c3 100644
--- a/ElvUI_SLE/defaults/private.lua
+++ b/ElvUI_SLE/defaults/private.lua
@@ -172,6 +172,7 @@ V["sle"] = {
["subpages"] = 2,
},
["questguru"] = {
+ ["enable"] = false,
["removeParchment"] = false,
},
},
diff --git a/ElvUI_SLE/options/skins_c.lua b/ElvUI_SLE/options/skins_c.lua
index e93499b..0bcd802 100644
--- a/ElvUI_SLE/options/skins_c.lua
+++ b/ElvUI_SLE/options/skins_c.lua
@@ -274,6 +274,11 @@ local function configTable()
get = function(info) return E.private.sle.skins.questguru[ info[#info] ] end,
set = function(info, value) E.private.sle.skins.questguru[ info[#info] ] = value; E:StaticPopup_Show("PRIVATE_RL") end,
args = {
+ enable = {
+ name = L["Enable"],
+ order = 1,
+ type = "toggle",
+ },
removeParchment = {
order = 1,
type = "toggle",
diff --git a/ElvUI_SLE/skins/addons/questguru.lua b/ElvUI_SLE/skins/addons/questguru.lua
index 760d3d0..88c167c 100644
--- a/ElvUI_SLE/skins/addons/questguru.lua
+++ b/ElvUI_SLE/skins/addons/questguru.lua
@@ -5,6 +5,7 @@ local _G = _G
local unpack = unpack
local function LoadSkin()
+ if not E.private.sle.skins.questguru.enable then return end
_G["QuestGuru"]:StripTextures()
_G["QuestGuruPortraitFrame"]:Kill()
_G["QGC_FramePortrait"]:Kill()