diff FilterBar.lua @ 57:54aa7f8ebca8 v1.0-release

- fix profession quests showing when not enabled - fix profession quest time borders always coloring as urgent
author Nenue
date Fri, 20 Jan 2017 19:57:13 -0500
parents db570c6a0ffb
children bc09961d5a98
line wrap: on
line diff
--- a/FilterBar.lua	Tue Jan 03 20:04:16 2017 -0500
+++ b/FilterBar.lua	Fri Jan 20 19:57:13 2017 -0500
@@ -87,8 +87,16 @@
 end
 
 
-function Module:OnEvent(event)
+function Module:OnEvent(event, arg)
   print('|cFF00FF88'..self:GetName()..':OnEvent()', event)
+  if (event == 'QUEST_LOG_UPDATE') and arg then
+    if db.QuestsByID[arg] then
+      if db.QuestsByID[arg].factionID then
+
+      end
+    end
+  end
+
   self.isStale = true
 end
 
@@ -183,7 +191,7 @@
   local borderWidth = layout.iconWidth + (layout.borderWidth * 2)
   local highlightWidth = borderWidth + (layout.highlightWidth * 2)
   local mapQuests = db.QuestsByZone[db.currentMapID] or db.QuestsByID
-    local firstCvar, lastCvar
+  local firstCvar, lastCvar
   for index, info in ipairs(self.filterList) do
     local numQuestsHere = 0
     local numQuestsTotal = 0
@@ -253,9 +261,7 @@
   for i = numHeaders + 1, #blocks do
     if blocks[i] then
       blocks[i]:Hide()
-    end
-    if questResults[i] then
-      wipe(questResults[i])
+      wipe(blocks[i].questList)
     end
   end