comparison 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
comparison
equal deleted inserted replaced
31:d0114b51cdea 32:e8679ecb48d8
66 66
67 end 67 end
68 68
69 69
70 function WorldPlanSummaryMixin:OnEvent(event) 70 function WorldPlanSummaryMixin:OnEvent(event)
71 self:Refresh()
71 end 72 end
72 73
73 local bountyIndex 74 local bountyIndex
74 local debug_headers = {} 75 local debug_headers = {}
75 76
78 end 79 end
79 80
80 81
81 function WorldPlanSummaryMixin:OnEvent(event,...) 82 function WorldPlanSummaryMixin:OnEvent(event,...)
82 self.isStale = true 83 self.isStale = true
84 end
85 function WorldPlanSummaryMixin:OnUpdate()
86 if self.isStale then
87 self:Refresh()
88 end
83 end 89 end
84 90
85 function WorldPlanSummaryMixin:OnShow() 91 function WorldPlanSummaryMixin:OnShow()
86 self:Refresh() 92 self:Refresh()
87 end 93 end
194 end 200 end
195 if questResults[i] then 201 if questResults[i] then
196 wipe(questResults[i]) 202 wipe(questResults[i])
197 end 203 end
198 end 204 end
205 self.isStale = nil
199 end 206 end
200 207
201 function WorldPlanSummaryMixin:Cleanup() 208 function WorldPlanSummaryMixin:Cleanup()
202 -- hide trailing buttons 209 -- hide trailing buttons
203 end 210 end
211 for index, pin in ipairs(self.questList) do 218 for index, pin in ipairs(self.questList) do
212 local colorInfo = (pin.quality and ITEM_QUALITY_COLORS[pin.quality]) or rgbWhite 219 local colorInfo = (pin.quality and ITEM_QUALITY_COLORS[pin.quality]) or rgbWhite
213 GameTooltip:AddLine(pin.title ..(pin.cheevos and " |cFFFFFF00!|R" or ''), colorInfo.r, colorInfo.g, colorInfo.b) 220 GameTooltip:AddLine(pin.title ..(pin.cheevos and " |cFFFFFF00!|R" or ''), colorInfo.r, colorInfo.g, colorInfo.b)
214 GameTooltip:AddTexture(pin.itemTexture) 221 GameTooltip:AddTexture(pin.itemTexture)
215 local cLine = GameTooltip:NumLines() - 1 222 local cLine = GameTooltip:NumLines() - 1
216 print(cLine, _G['GameTooltipTexture'..cLine]:GetTexture()) 223 --print(cLine, _G['GameTooltipTexture'..cLine]:GetTexture())
217 if type(pin.itemTexture) == 'number' then 224 if type(pin.itemTexture) == 'number' then
218 --- voodoo workaround for IDs getting coerced to string 225 --- voodoo workaround for IDs getting coerced to string
219 _G['GameTooltipTexture'..cLine]:Show() 226 _G['GameTooltipTexture'..cLine]:Show()
220 _G['GameTooltipTexture'..cLine]:SetTexture(pin.itemTexture) 227 _G['GameTooltipTexture'..cLine]:SetTexture(pin.itemTexture)
221 end 228 end