Mercurial > wow > worldplan
comparison 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 |
comparison
equal
deleted
inserted
replaced
56:0749e38081e7 | 57:54aa7f8ebca8 |
---|---|
85 WorldPlan:AddTypeInfo(self,index, info) | 85 WorldPlan:AddTypeInfo(self,index, info) |
86 end | 86 end |
87 end | 87 end |
88 | 88 |
89 | 89 |
90 function Module:OnEvent(event) | 90 function Module:OnEvent(event, arg) |
91 print('|cFF00FF88'..self:GetName()..':OnEvent()', event) | 91 print('|cFF00FF88'..self:GetName()..':OnEvent()', event) |
92 if (event == 'QUEST_LOG_UPDATE') and arg then | |
93 if db.QuestsByID[arg] then | |
94 if db.QuestsByID[arg].factionID then | |
95 | |
96 end | |
97 end | |
98 end | |
99 | |
92 self.isStale = true | 100 self.isStale = true |
93 end | 101 end |
94 | 102 |
95 local bountyIndex | 103 local bountyIndex |
96 local debug_headers = {} | 104 local debug_headers = {} |
181 | 189 |
182 local layout = db.DefaultFilterType | 190 local layout = db.DefaultFilterType |
183 local borderWidth = layout.iconWidth + (layout.borderWidth * 2) | 191 local borderWidth = layout.iconWidth + (layout.borderWidth * 2) |
184 local highlightWidth = borderWidth + (layout.highlightWidth * 2) | 192 local highlightWidth = borderWidth + (layout.highlightWidth * 2) |
185 local mapQuests = db.QuestsByZone[db.currentMapID] or db.QuestsByID | 193 local mapQuests = db.QuestsByZone[db.currentMapID] or db.QuestsByID |
186 local firstCvar, lastCvar | 194 local firstCvar, lastCvar |
187 for index, info in ipairs(self.filterList) do | 195 for index, info in ipairs(self.filterList) do |
188 local numQuestsHere = 0 | 196 local numQuestsHere = 0 |
189 local numQuestsTotal = 0 | 197 local numQuestsTotal = 0 |
190 info.questList = info.questList or {} | 198 info.questList = info.questList or {} |
191 wipe(info.questList) | 199 wipe(info.questList) |
251 | 259 |
252 self.numHeaders = numHeaders | 260 self.numHeaders = numHeaders |
253 for i = numHeaders + 1, #blocks do | 261 for i = numHeaders + 1, #blocks do |
254 if blocks[i] then | 262 if blocks[i] then |
255 blocks[i]:Hide() | 263 blocks[i]:Hide() |
256 end | 264 wipe(blocks[i].questList) |
257 if questResults[i] then | |
258 wipe(questResults[i]) | |
259 end | 265 end |
260 end | 266 end |
261 | 267 |
262 | 268 |
263 | 269 |