Quantcast

Not hiding BGs option for skins. This closes #301

Darthpred [08-25-16 - 07:20]
Not hiding BGs option for skins. This closes #301
Filename
ElvUI_SLE/defaults/private.lua
ElvUI_SLE/locales/english.lua
ElvUI_SLE/locales/russian.lua
ElvUI_SLE/options/skins_c.lua
ElvUI_SLE/skins/blizzard/objectiveTracker.lua
diff --git a/ElvUI_SLE/defaults/private.lua b/ElvUI_SLE/defaults/private.lua
index 32618b9..500c28c 100644
--- a/ElvUI_SLE/defaults/private.lua
+++ b/ElvUI_SLE/defaults/private.lua
@@ -161,6 +161,7 @@ V["sle"] = {
 			["class"] = false,
 			["color"] = {r = 0.26, g = 0.42, b = 1},
 			["underlineHeight"] = 1,
+			["scenarioBG"] = false,
 		},
 		["petbattles"] = {
 			["enable"] = true,
diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua
index e266074..bb93d1a 100644
--- a/ElvUI_SLE/locales/english.lua
+++ b/ElvUI_SLE/locales/english.lua
@@ -698,6 +698,7 @@ L["Item Info Font"] = true
 L["Item Info Size"] = true
 L["Item Info Outline"] = true
 L["Remove Parchment"] = true
+L["Stage Background"] = true

 --Toolbars
 L["We are sorry, but you can't do this now. Try again after the end of this combat."] = true
diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua
index 0fcf44b..aaf3145 100644
--- a/ElvUI_SLE/locales/russian.lua
+++ b/ElvUI_SLE/locales/russian.lua
@@ -688,6 +688,7 @@ L["Item Info Font"] = "Шрифт информации"
 L["Item Info Size"] = "Размер информации"
 L["Item Info Outline"] = "Граница информации"
 L["Remove Parchment"] = "Удалить пергамент"
+L["Stage Background"] = "Фон стадии"

 --Toolbars
 L["We are sorry, but you can't do this now. Try again after the end of this combat."] = "Извините, но Вы не можете этого сделать сейчас. Попробуйте снова после окончания текущего боя."
diff --git a/ElvUI_SLE/options/skins_c.lua b/ElvUI_SLE/options/skins_c.lua
index 1cfd6ff..e93499b 100644
--- a/ElvUI_SLE/options/skins_c.lua
+++ b/ElvUI_SLE/options/skins_c.lua
@@ -154,6 +154,11 @@ local function configTable()
 						get = function(info) return E.db.sle.skins.objectiveTracker[ info[#info] ] end,
 						set = function(info, value) E.db.sle.skins.objectiveTracker[ info[#info] ] = value; E:UpdateBlizzardFonts() end,
 					},
+					scenarioBG = {
+						order = 15,
+						type = "toggle",
+						name = L["Stage Background"],
+					},
 				},
 			},
 			merchant = {
diff --git a/ElvUI_SLE/skins/blizzard/objectiveTracker.lua b/ElvUI_SLE/skins/blizzard/objectiveTracker.lua
index bf848f6..b49f1b5 100644
--- a/ElvUI_SLE/skins/blizzard/objectiveTracker.lua
+++ b/ElvUI_SLE/skins/blizzard/objectiveTracker.lua
@@ -112,11 +112,13 @@ local function SkinScenarioButtons()

 	-- we have to independently resize the artwork
 	-- because we're messing with the tracker width >_>
-	-- pop-up artwork
-	block.NormalBG:Hide()
+	if not E.private.sle.skins.objectiveTracker.scenarioBG then
+		-- pop-up artwork
+		block.NormalBG:Hide()

-	-- pop-up final artwork
-	block.FinalBG:Hide()
+		-- pop-up final artwork
+		block.FinalBG:Hide()
+	end

 	-- pop-up glow
 	block.GlowTexture:SetSize(width+20, 75)