Mercurial > wow > worldplan
comparison QuestPOI.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 |
|---|---|
| 427 end | 427 end |
| 428 | 428 |
| 429 if not self.isAnimating then | 429 if not self.isAnimating then |
| 430 self:SetAlpha(db.PinAlpha) -- fix stuck alpha | 430 self:SetAlpha(db.PinAlpha) -- fix stuck alpha |
| 431 end | 431 end |
| 432 self.Overlay:SetShown(true) | 432 if self.used then |
| 433 self.Overlay:Show() | |
| 434 end | |
| 435 | |
| 433 end | 436 end |
| 434 function QuestPOI:OnHide() | 437 function QuestPOI:OnHide() |
| 435 qprint('|cFFFFFF00'..self:GetID()..'r:OnHide()') | 438 qprint('|cFFFFFF00'..self:GetID()..'r:OnHide()') |
| 439 | |
| 440 -- reset flags | |
| 441 self:SetAlpha(db.PinAlpha) | |
| 436 self.isAnimating = nil | 442 self.isAnimating = nil |
| 437 self:SetAlpha(db.PinAlpha) | 443 self.isStale = true |
| 438 self.Overlay:SetShown(false) | 444 self.Overlay:Hide() |
| 439 end | 445 end |
| 440 | 446 |
| 441 -- different from owningFrame | 447 -- different from owningFrame |
| 442 function QuestPOI:SetAnchor(owner, dX, dY, mapWidth, mapHeight) | 448 function QuestPOI:SetAnchor(owner, dX, dY, mapWidth, mapHeight) |
| 443 wqprint(self:GetName()..':SetAnchor', self.filtered, self.used) | 449 wqprint(self:GetName()..':SetAnchor', self.filtered, self.used) |
| 499 self.throttle = self.throttle - self.updateRate | 505 self.throttle = self.throttle - self.updateRate |
| 500 else | 506 else |
| 501 return | 507 return |
| 502 end | 508 end |
| 503 if self.isNew then | 509 if self.isNew then |
| 504 print('|cFFFFFF00push new poi stuff') | 510 --print('|cFFFFFF00push new poi stuff') |
| 505 self:OnNew() | 511 self:OnNew() |
| 506 elseif (self.isStale or (not self.title)) and not self.isAnimating then | 512 elseif (self.isStale or (not self.title)) and not self.isAnimating then |
| 507 wprint('|cFFFFFF00push poi update') | 513 --wprint('|cFFFFFF00push poi update') |
| 508 self:Refresh() | 514 self:Refresh() |
| 509 return | 515 return |
| 510 end | 516 end |
| 511 | 517 |
| 512 -- query for reward data if it wasn't found in the original scan | 518 -- query for reward data if it wasn't found in the original scan |
| 513 local questID = self.questID | 519 local questID = self.questID |
| 514 if self.isPending then | 520 if self.isPending then |
| 515 print('|cFFFF4400'..self:GetID()..':|r polling reward info') | 521 --print('|cFFFF4400'..self:GetID()..':|r polling reward info') |
| 516 if not (self.isAnimating) then | 522 if not (self.isAnimating) then |
| 517 self.PendingFade:Play() | 523 self.PendingFade:Play() |
| 518 end | 524 end |
| 519 self:GetData() | 525 self:GetData() |
| 520 return | 526 return |
| 552 self.HighlightBorder:SetVertexColor(.25,.5,1,1) | 558 self.HighlightBorder:SetVertexColor(.25,.5,1,1) |
| 553 else | 559 else |
| 554 self.HighlightBorder:SetVertexColor(0,0,0,0.7) | 560 self.HighlightBorder:SetVertexColor(0,0,0,0.7) |
| 555 end | 561 end |
| 556 self.alertLevel = tl | 562 self.alertLevel = tl |
| 563 else | |
| 564 WorldPlan:print('|cFFFFFF00'..tostring(self.title).. '|r is no longer active.') | |
| 565 self:Hide() | |
| 557 end | 566 end |
| 558 self.timeLabel:SetShown(self.worldQuest and (self.maxAlertLevel >= 1)) | 567 self.timeLabel:SetShown(self.worldQuest and (self.maxAlertLevel >= 1)) |
| 559 end | 568 end |
| 560 | 569 |
| 561 function QuestPOI:Refresh (fromUser) | 570 function QuestPOI:Refresh (fromUser) |
