Mercurial > wow > worldplan
diff 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 |
line wrap: on
line diff
--- a/WorldQuests.lua Fri Jan 20 19:57:42 2017 -0500 +++ b/WorldQuests.lua Wed Feb 01 17:44:20 2017 -0500 @@ -171,6 +171,14 @@ end elseif event == 'SKILL_LINES_CHANGED' then self:Refresh(true) + elseif event == 'ARTIFACT_UPDATE' then + local ak = C_ArtifactUI.GetArtifactKnowledgeMultiplier() + if ak and (ak ~= self.akLevel) then + self.akLevel = ak + self.ArtifactPowerDirty = true + -- artifact knowledge changed + self:Refresh(true) + end end end @@ -227,7 +235,7 @@ end end - if not pin.dataLoaded then + if (not pin.dataLoaded) or self.ArtifactPowerDirty then pin:GetData() end @@ -443,6 +451,8 @@ self:Cleanup (fromUser) self.isStale = nil self.sizesDirty = nil + + self.ArtifactPowerDirty = nil end -- update visibility states of all pins @@ -539,12 +549,12 @@ if oV == false then print('|cFF00FF00cleanup +|r', questID, pin.title) end + pin:Show() else if oV == true then print('|cFFFF4400 -|r', questID, pin.title) end - pin.isStale = true - pin:SetShown(false) + pin:Hide() end end end