Mercurial > wow > worldplan
diff 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 |
line wrap: on
line diff
--- a/QuestPOI.lua Fri Jan 20 19:57:42 2017 -0500 +++ b/QuestPOI.lua Wed Feb 01 17:44:20 2017 -0500 @@ -429,13 +429,19 @@ if not self.isAnimating then self:SetAlpha(db.PinAlpha) -- fix stuck alpha end - self.Overlay:SetShown(true) + if self.used then + self.Overlay:Show() + end + end function QuestPOI:OnHide() qprint('|cFFFFFF00'..self:GetID()..'r:OnHide()') + + -- reset flags + self:SetAlpha(db.PinAlpha) self.isAnimating = nil - self:SetAlpha(db.PinAlpha) - self.Overlay:SetShown(false) + self.isStale = true + self.Overlay:Hide() end -- different from owningFrame @@ -501,10 +507,10 @@ return end if self.isNew then - print('|cFFFFFF00push new poi stuff') + --print('|cFFFFFF00push new poi stuff') self:OnNew() elseif (self.isStale or (not self.title)) and not self.isAnimating then - wprint('|cFFFFFF00push poi update') + --wprint('|cFFFFFF00push poi update') self:Refresh() return end @@ -512,7 +518,7 @@ -- query for reward data if it wasn't found in the original scan local questID = self.questID if self.isPending then - print('|cFFFF4400'..self:GetID()..':|r polling reward info') + --print('|cFFFF4400'..self:GetID()..':|r polling reward info') if not (self.isAnimating) then self.PendingFade:Play() end @@ -554,6 +560,9 @@ self.HighlightBorder:SetVertexColor(0,0,0,0.7) end self.alertLevel = tl + else + WorldPlan:print('|cFFFFFF00'..tostring(self.title).. '|r is no longer active.') + self:Hide() end self.timeLabel:SetShown(self.worldQuest and (self.maxAlertLevel >= 1)) end