Quantcast

QuestGurur renamed some buttons. This fixes #357

Darthpred [10-09-16 - 14:22]
QuestGurur renamed some buttons. This fixes #357
Filename
ElvUI_SLE/skins/addons/questguru.lua
ElvUI_SLE/skins/blizzard/objectiveTracker.lua
diff --git a/ElvUI_SLE/skins/addons/questguru.lua b/ElvUI_SLE/skins/addons/questguru.lua
index 88c167c..fe603ca 100644
--- a/ElvUI_SLE/skins/addons/questguru.lua
+++ b/ElvUI_SLE/skins/addons/questguru.lua
@@ -27,10 +27,10 @@ local function LoadSkin()

 	_G["QuestGuru"].abandon.RightSeparator:Kill()
 	_G["QuestGuru"].push.RightSeparator:Kill()
-	_G["QuestGuru"].track.RightSeparator:Kill()
+	_G["QuestGuru"].TrackButton.RightSeparator:Kill()
 	S:HandleButton(_G["QuestGuru"].abandon)
 	S:HandleButton(_G["QuestGuru"].push)
-	S:HandleButton(_G["QuestGuru"].track)
+	S:HandleButton(_G["QuestGuru"].TrackButton)
 	S:HandleCloseButton(_G["QuestGuruCloseButton"])

 	local CloseButton = _G["QuestGuruText"]:GetParent()
diff --git a/ElvUI_SLE/skins/blizzard/objectiveTracker.lua b/ElvUI_SLE/skins/blizzard/objectiveTracker.lua
index 69a9081..817cd00 100644
--- a/ElvUI_SLE/skins/blizzard/objectiveTracker.lua
+++ b/ElvUI_SLE/skins/blizzard/objectiveTracker.lua
@@ -251,6 +251,26 @@ local function ObjectiveReskin()

 		Sk:Update_ObjectiveTrackerUnderlinesVisibility()
 		Sk:Update_ObjectiveTrackerUnderlinesColor()
+
+		hooksecurefunc(WORLD_QUEST_TRACKER_MODULE, "AddObjective", function(_, block)
+			local item = block.itemButton
+			if item and not item.sle_skinned then
+				-- item:SetSize(25, 25)
+				-- item:SetTemplate("Transparent")
+				-- item:StyleButton()
+				-- item:SetNormalTexture(nil)
+				-- item.icon:SetTexCoord(unpack(E.TexCoords))
+				-- item.icon:SetPoint("TOPLEFT", item, 2, -2)
+				-- item.icon:SetPoint("BOTTOMRIGHT", item, -2, 2)
+				-- item.Cooldown:SetAllPoints(item.icon)
+				-- item.Count:ClearAllPoints()
+				-- item.Count:SetPoint("TOPLEFT", 1, -1)
+				-- item.Count:SetFont(E["media"].normFont, 14, "OUTLINE")
+				-- item.Count:SetShadowOffset(5, -5)
+				E:RegisterCooldown(item.Cooldown)
+				item.sle_skinned = true
+			end
+		end)
 	end
 end
 hooksecurefunc(S, "Initialize", ObjectiveReskin)
\ No newline at end of file