Mercurial > wow > worldplan
diff QuestPOI.lua @ 48:c0b88bd1e40b
- Fixed frame update flagging after proper reward data is processed, which probably also fixes the issue of loaded data mysteriously vanishing.
author | Nenue |
---|---|
date | Tue, 27 Dec 2016 19:46:40 -0500 |
parents | 733785e306a3 |
children | dbd81d49af02 |
line wrap: on
line diff
--- a/QuestPOI.lua Tue Dec 27 17:29:23 2016 -0500 +++ b/QuestPOI.lua Tue Dec 27 19:46:40 2016 -0500 @@ -302,10 +302,8 @@ tagAtlas = "worldquest-icon-dungeon" end self.worldQuestType = worldQuestType - self.tagAtlas = tagAtlas - self:SetRewardInfo() -- force throttle on success @@ -317,6 +315,7 @@ self.isPending = nil self.throttle = 1 self.updateRate = PIN_REFRESH_DELAY + self.isStale = true end end @@ -360,7 +359,7 @@ -- flag unresolved info if not (rewardIcon and rewardName) then self.isPending = true - return true, nil + self.isStale = nil --WorldPlan:print('|cFFFFFF00'..tostring(self.title)..'|r waiting on texture info') else if (rewardIcon and rewardName) and self.isPending then @@ -371,8 +370,6 @@ end end - return self.isStale, self.isPending - end -- run from OnShow if .isNew is set @@ -398,9 +395,6 @@ end function QuestPOI:OnShow () - if self.isNew or self.isStale then - self:Refresh() - end if self.isNew then qprint('|cFFFFFF00'..tostring(self:GetName())..':OnShow()|r update:', self.isStale, 'new:', self.isNew, 'animation:', self.isAnimating) @@ -410,6 +404,9 @@ self:SetAlpha(1) -- fix stuck alpha end + if self.isNew or self.isStale then + self:Refresh() + end --WorldPlan:print(self:GetAlpha()) end