comparison WorldQuests.lua @ 59:bc09961d5a98

fix attempts for lingering quest text and filter bar data
author Nenue
date Wed, 01 Feb 2017 17:44:20 -0500
parents 54aa7f8ebca8
children 3d8e83ddf603
comparison
equal deleted inserted replaced
58:68a695d725ed 59:bc09961d5a98
169 self:ReleasePin(db.QuestsByID[questID]) 169 self:ReleasePin(db.QuestsByID[questID])
170 rprint('|cFFFF4400release|r', questID) 170 rprint('|cFFFF4400release|r', questID)
171 end 171 end
172 elseif event == 'SKILL_LINES_CHANGED' then 172 elseif event == 'SKILL_LINES_CHANGED' then
173 self:Refresh(true) 173 self:Refresh(true)
174 elseif event == 'ARTIFACT_UPDATE' then
175 local ak = C_ArtifactUI.GetArtifactKnowledgeMultiplier()
176 if ak and (ak ~= self.akLevel) then
177 self.akLevel = ak
178 self.ArtifactPowerDirty = true
179 -- artifact knowledge changed
180 self:Refresh(true)
181 end
174 end 182 end
175 end 183 end
176 184
177 local totalPins = 0 185 local totalPins = 0
178 local TQ_GetQuestLocation = C_TaskQuest.GetQuestLocation 186 local TQ_GetQuestLocation = C_TaskQuest.GetQuestLocation
225 pin.y = info.y or pin.y 233 pin.y = info.y or pin.y
226 rprint('|cFFFF4400coords|r', info.x, info.y) 234 rprint('|cFFFF4400coords|r', info.x, info.y)
227 end 235 end
228 end 236 end
229 237
230 if not pin.dataLoaded then 238 if (not pin.dataLoaded) or self.ArtifactPowerDirty then
231 pin:GetData() 239 pin:GetData()
232 end 240 end
233 241
234 pin:CheckFilterRules() 242 pin:CheckFilterRules()
235 pin.isStale = true 243 pin.isStale = true
441 449
442 self:UpdateAnchors(nil, fromUser) 450 self:UpdateAnchors(nil, fromUser)
443 self:Cleanup (fromUser) 451 self:Cleanup (fromUser)
444 self.isStale = nil 452 self.isStale = nil
445 self.sizesDirty = nil 453 self.sizesDirty = nil
454
455 self.ArtifactPowerDirty = nil
446 end 456 end
447 457
448 -- update visibility states of all pins 458 -- update visibility states of all pins
449 function Module:MarkAllPins(pins) 459 function Module:MarkAllPins(pins)
450 print(' |cFFFFFF00'..self:GetName()..':MarkAllPins()|r', pins) 460 print(' |cFFFFFF00'..self:GetName()..':MarkAllPins()|r', pins)
537 if pin.used then 547 if pin.used then
538 pin.throttle = 1 548 pin.throttle = 1
539 if oV == false then 549 if oV == false then
540 print('|cFF00FF00cleanup +|r', questID, pin.title) 550 print('|cFF00FF00cleanup +|r', questID, pin.title)
541 end 551 end
552 pin:Show()
542 else 553 else
543 if oV == true then 554 if oV == true then
544 print('|cFFFF4400 -|r', questID, pin.title) 555 print('|cFFFF4400 -|r', questID, pin.title)
545 end 556 end
546 pin.isStale = true 557 pin:Hide()
547 pin:SetShown(false) 558 end
548 end 559 end
549 end 560 end
550 end 561
551