Quantcast

5.0.5 part 2

Munglunch [10-16-14 - 15:26]
5.0.5 part 2
Filename
Interface/AddOns/SVUI/scripts/questwatch.lua
Interface/AddOns/SVUI/system/configs.lua
Interface/AddOns/SVUI_ConfigOMatic/components/dock.lua
diff --git a/Interface/AddOns/SVUI/scripts/questwatch.lua b/Interface/AddOns/SVUI/scripts/questwatch.lua
index 332f9c5..c200206 100644
--- a/Interface/AddOns/SVUI/scripts/questwatch.lua
+++ b/Interface/AddOns/SVUI/scripts/questwatch.lua
@@ -174,22 +174,22 @@ local function CreateQuestFrame()
 		ObjectiveTrackerFrame.SetWidth = SV.fubar;

 		ObjectiveTrackerFrame.BlocksFrame.QuestHeader:SetWidth((WIDTH - 60))
-		ObjectiveTrackerFrame.BlocksFrame.QuestHeader:RemoveTextures(true)
-		ObjectiveTrackerFrame.BlocksFrame.QuestHeader:SetFixedPanelTemplate("Headline", true)
-  		--ObjectiveTrackerFrame.BlocksFrame.QuestHeader:SetPanelColor("unique")
-  		ObjectiveTrackerFrame.BlocksFrame.QuestHeader:SetBackdropColor(0, 0, 0, 0.5)
-
-  		ObjectiveTrackerFrame.BlocksFrame.AchievementHeader:SetWidth((WIDTH - 60))
-		ObjectiveTrackerFrame.BlocksFrame.AchievementHeader:RemoveTextures(true)
-		ObjectiveTrackerFrame.BlocksFrame.AchievementHeader:SetFixedPanelTemplate("Headline", true)
-  		--ObjectiveTrackerFrame.BlocksFrame.AchievementHeader:SetPanelColor("unique")
-  		ObjectiveTrackerFrame.BlocksFrame.AchievementHeader:SetBackdropColor(0, 0, 0, 0.5)
-
-  		ObjectiveTrackerFrame.BlocksFrame.ScenarioHeader:SetWidth((WIDTH - 60))
-		ObjectiveTrackerFrame.BlocksFrame.ScenarioHeader:RemoveTextures(true)
-		ObjectiveTrackerFrame.BlocksFrame.ScenarioHeader:SetFixedPanelTemplate("Headline", true)
-  		--ObjectiveTrackerFrame.BlocksFrame.ScenarioHeader:SetPanelColor("unique")
-  		ObjectiveTrackerFrame.BlocksFrame.ScenarioHeader:SetBackdropColor(0, 0, 0, 0.5)
+		ObjectiveTrackerFrame.BlocksFrame.AchievementHeader:SetWidth((WIDTH - 60))
+		ObjectiveTrackerFrame.BlocksFrame.ScenarioHeader:SetWidth((WIDTH - 60))
+
+		if(SV.db.general.questHeaders) then
+			ObjectiveTrackerFrame.BlocksFrame.QuestHeader:RemoveTextures(true)
+			ObjectiveTrackerFrame.BlocksFrame.QuestHeader:SetFixedPanelTemplate("Headline", true)
+	  		ObjectiveTrackerFrame.BlocksFrame.QuestHeader:SetBackdropColor(0, 0, 0, 0.5)
+
+			ObjectiveTrackerFrame.BlocksFrame.AchievementHeader:RemoveTextures(true)
+			ObjectiveTrackerFrame.BlocksFrame.AchievementHeader:SetFixedPanelTemplate("Headline", true)
+	  		ObjectiveTrackerFrame.BlocksFrame.AchievementHeader:SetBackdropColor(0, 0, 0, 0.5)
+
+			ObjectiveTrackerFrame.BlocksFrame.ScenarioHeader:RemoveTextures(true)
+			ObjectiveTrackerFrame.BlocksFrame.ScenarioHeader:SetFixedPanelTemplate("Headline", true)
+	  		ObjectiveTrackerFrame.BlocksFrame.ScenarioHeader:SetBackdropColor(0, 0, 0, 0.5)
+	  	end


 		ObjectiveTrackerFrame.HeaderMenu.MinimizeButton:Hide()
diff --git a/Interface/AddOns/SVUI/system/configs.lua b/Interface/AddOns/SVUI/system/configs.lua
index 0ba0b51..f5e1f41 100644
--- a/Interface/AddOns/SVUI/system/configs.lua
+++ b/Interface/AddOns/SVUI/system/configs.lua
@@ -51,7 +51,8 @@ SV.configs["general"] = {
     ["bubbles"] = true,
     ["comix"] = true,
     ["bigComix"] = true,
-    ["questWatch"] = true,
+    ["questWatch"] = true,
+    ["questHeaders"] = true,
     ["woot"] = true,
     ["pvpinterrupt"] = true,
     ["lookwhaticando"] = false,
diff --git a/Interface/AddOns/SVUI_ConfigOMatic/components/dock.lua b/Interface/AddOns/SVUI_ConfigOMatic/components/dock.lua
index a1fe33d..1dbed74 100644
--- a/Interface/AddOns/SVUI_ConfigOMatic/components/dock.lua
+++ b/Interface/AddOns/SVUI_ConfigOMatic/components/dock.lua
@@ -250,6 +250,21 @@ SV.Options.args.SVDock.args["rightDockGroup"] = {
 				}
 			}
 		},
+		questHeaders = {
+			order = 4,
+			type = "group",
+			name = L['Quest Header Styled'],
+			args = {
+				enable = {
+					order = 1,
+					type = "toggle",
+					name = L["Enable"],
+					get = function()return SV.db.general.questHeaders end,
+				 	set = function(j, value) SV.db.general.questHeaders = value; SV:StaticPopup_Show("RL_CLIENT") end,
+				 	disabled = function()return (not SV.db.general.questWatch) end,
+				}
+			}
+		},
 		docklets = {
 			order = 100,
 			type = 'group',