diff FilterBar.lua @ 32:e8679ecb48d8

ClassPlan: - Available missions are now recorded; the mission list can be toggled between in-progress and available by clicking the heading.
author Nenue
date Tue, 01 Nov 2016 10:48:50 -0400
parents d0114b51cdea
children be4db60219ca
line wrap: on
line diff
--- a/FilterBar.lua	Fri Oct 28 19:54:00 2016 -0400
+++ b/FilterBar.lua	Tue Nov 01 10:48:50 2016 -0400
@@ -68,6 +68,7 @@
 
 
 function WorldPlanSummaryMixin:OnEvent(event)
+  self:Refresh()
 end
 
 local bountyIndex
@@ -81,6 +82,11 @@
 function WorldPlanSummaryMixin:OnEvent(event,...)
   self.isStale = true
 end
+function WorldPlanSummaryMixin:OnUpdate()
+  if self.isStale then
+    self:Refresh()
+  end
+end
 
 function WorldPlanSummaryMixin:OnShow()
   self:Refresh()
@@ -196,6 +202,7 @@
       wipe(questResults[i])
     end
   end
+  self.isStale = nil
 end
 
 function WorldPlanSummaryMixin:Cleanup()
@@ -213,7 +220,7 @@
       GameTooltip:AddLine(pin.title ..(pin.cheevos and " |cFFFFFF00!|R" or ''), colorInfo.r, colorInfo.g, colorInfo.b)
       GameTooltip:AddTexture(pin.itemTexture)
       local cLine = GameTooltip:NumLines() - 1
-      print(cLine, _G['GameTooltipTexture'..cLine]:GetTexture())
+      --print(cLine, _G['GameTooltipTexture'..cLine]:GetTexture())
       if type(pin.itemTexture) == 'number' then
         --- voodoo workaround for IDs getting coerced to string
         _G['GameTooltipTexture'..cLine]:Show()