Mercurial > wow > worldplan
comparison QuestPOI.lua @ 91:77013bd72adb v1.4.8
- Fixed reward info getting erased when it suddenly becomes unavailable
author | Nenue |
---|---|
date | Tue, 11 Apr 2017 00:44:05 -0400 |
parents | df733f2174b7 |
children | 98b5e08b75ed |
comparison
equal
deleted
inserted
replaced
90:d04a1c0acc95 | 91:77013bd72adb |
---|---|
395 end | 395 end |
396 | 396 |
397 local ID_RESOURCES = 1220 | 397 local ID_RESOURCES = 1220 |
398 local ID_LEGIONFALL = 1342 | 398 local ID_LEGIONFALL = 1342 |
399 | 399 |
400 function QuestPOI:Reset() | |
401 self.isActive = nil | |
402 self.complete = nil | |
403 self.used = nil | |
404 self.dataLoaded = nil | |
405 self.rewardType = nil | |
406 self.itemTexture = nil | |
407 self.itemName = nil | |
408 self.itemNumber = nil | |
409 self:SetShown(false) | |
410 end | |
411 | |
400 --- Returns true if data has changed (either from loading in or qualifications changed) | 412 --- Returns true if data has changed (either from loading in or qualifications changed) |
401 function QuestPOI:UpdateRewards() | 413 function QuestPOI:UpdateRewards() |
402 local questID = self.questID | 414 local questID = self.questID |
403 if not HaveQuestRewardData(questID) then | 415 if not HaveQuestRewardData(questID) then |
404 C_TaskQuest.RequestPreloadRewardData(questID); | 416 C_TaskQuest.RequestPreloadRewardData(questID); |
616 self:ShowFrames() | 628 self:ShowFrames() |
617 end | 629 end |
618 | 630 |
619 function QuestPOI:OnEvent(event) | 631 function QuestPOI:OnEvent(event) |
620 if not TQ_IsActive(self.questID) then | 632 if not TQ_IsActive(self.questID) then |
621 | |
622 self:UnregisterEvent('QUEST_LOG_UPDATE') | 633 self:UnregisterEvent('QUEST_LOG_UPDATE') |
623 | |
624 self.hideReason = 'Hiding self because quest is inactive.' | 634 self.hideReason = 'Hiding self because quest is inactive.' |
625 self:SetShown(false) | 635 self:SetShown(false) |
626 end | 636 end |
627 end | 637 end |
628 | 638 |