diff FilterBar.lua @ 117:a4dfdd4f1cf3 v7.3.2-20171215

- Fixed filter pins not working on Argus maps - More taint counter-measures
author Nenue
date Fri, 15 Dec 2017 16:38:09 -0500
parents b67ba1078824
children b528ba7c239c
line wrap: on
line diff
--- a/FilterBar.lua	Fri Nov 24 23:51:44 2017 -0500
+++ b/FilterBar.lua	Fri Dec 15 16:38:09 2017 -0500
@@ -416,14 +416,18 @@
     GameTooltip:AddLine(self.info.label)
     wipe(found)
 
+
+
     if self.numQuestsHere >= 1 then
       if self.numQuestsHere < self.numQuestsTotal then
         GameTooltip:AddLine('This Zone', 1, 1, 0)
       end
       for index, pin in ipairs(self.LocalMatches) do
-        local colorInfo = (pin.quality and ITEM_QUALITY_COLORS[pin.quality]) or rgbWhite
-        found[pin] = pin
-        GameTooltip:AddLine('|T'.. tostring(pin.itemTexture)..':16:16|t ' .. tostring(pin.title) ..(pin.cheevos and " |cFFFFFF00!|R" or ''), 0, 1, 0)
+        if not IsQuestFlaggedCompleted(pin.questID) then
+          local colorInfo = (pin.quality and ITEM_QUALITY_COLORS[pin.quality]) or rgbWhite
+          found[pin] = pin
+          GameTooltip:AddLine('|T'.. tostring(pin.itemTexture)..':16:16|t ' .. tostring(pin.title) ..(pin.cheevos and " |cFFFFFF00!|R" or ''), 0, 1, 0)
+        end
       end
     end
 
@@ -431,12 +435,14 @@
       if self.numQuestsHere >= 1 then
         GameTooltip:AddLine(' ')
       end
-      GameTooltip:AddLine('Other Maps', 1, 1, 0)
+      GameTooltip:AddLine('Other Zones', 1, 1, 0)
       for index, pin in ipairs(self.GlobalMatches) do
-        if not found[pin] then
-          local colorInfo = (pin.quality and ITEM_QUALITY_COLORS[pin.quality]) or rgbWhite
-          found[pin] = pin
-          GameTooltip:AddLine('|T'.. tostring(pin.itemTexture)..':16:16|t ' .. tostring(pin.title) ..(pin.cheevos and " |cFFFFFF00!|R" or ''), 1, 1, 1)
+        if not IsQuestFlaggedCompleted(pin.questID) then
+          if not found[pin] then
+            local colorInfo = (pin.quality and ITEM_QUALITY_COLORS[pin.quality]) or rgbWhite
+            found[pin] = pin
+            GameTooltip:AddLine('|T'.. tostring(pin.itemTexture)..':16:16|t ' .. tostring(pin.title) ..(pin.cheevos and " |cFFFFFF00!|R" or ''), 1, 1, 1)
+          end
         end
       end
     end