Mercurial > wow > worldplan
comparison WorldQuests.lua @ 55:6a2e85836219
- Re-color the outer border of pins when their quest is bounty-related (blue), or time remaining is under 2 hours (red).
- Respond to SUPER_TRACKED_QUEST_CHANGED correctly
author | Nenue |
---|---|
date | Sat, 31 Dec 2016 17:48:25 -0500 |
parents | b289eb3e6a32 |
children | 0749e38081e7 |
comparison
equal
deleted
inserted
replaced
54:b289eb3e6a32 | 55:6a2e85836219 |
---|---|
127 db.QuestsByZone[areaID] = {} | 127 db.QuestsByZone[areaID] = {} |
128 end | 128 end |
129 | 129 |
130 -- WORLD_MAP_UPDATE and PLAYER_ENTERING_WORLD are passed down from a higher level | 130 -- WORLD_MAP_UPDATE and PLAYER_ENTERING_WORLD are passed down from a higher level |
131 self:RegisterEvent('WORLD_QUEST_COMPLETED_BY_SPELL') | 131 self:RegisterEvent('WORLD_QUEST_COMPLETED_BY_SPELL') |
132 self:RegisterEvent('SUPER_TRACKED_QUEST_CHANGED') | |
132 self:RegisterEvent('SKILL_LINES_CHANGED') | 133 self:RegisterEvent('SKILL_LINES_CHANGED') |
133 end | 134 end |
134 | 135 |
135 function Module:OnMapInfo(isBrokenIsle, isContinent, mapAreaID) | 136 function Module:OnMapInfo(isBrokenIsle, isContinent, mapAreaID) |
136 print('|cFFFFFF00'..self:GetName()..':OnMapInfo()|r visible =', self:IsVisible()) | 137 print('|cFFFFFF00'..self:GetName()..':OnMapInfo()|r visible =', self:IsVisible()) |
146 end | 147 end |
147 | 148 |
148 function Module:OnEvent (event, ...) | 149 function Module:OnEvent (event, ...) |
149 | 150 |
150 print('|cFFFFFF00'..self:GetName()..':OnEvent() '..event..'|r', GetTime(), ...) | 151 print('|cFFFFFF00'..self:GetName()..':OnEvent() '..event..'|r', GetTime(), ...) |
151 if event == 'QUEST_LOG_UPDATE' then | 152 if (event == 'QUEST_LOG_UPDATE') or (event == 'SUPER_TRACKED_QUEST_CHANGED') then |
152 local questID, added = ... | 153 local questID, added = ... |
153 if questID and added then | 154 if questID and added then |
154 local questPOI = self:AcquirePin(questID) | 155 local questPOI = self:AcquirePin(questID) |
155 questPOI:GetQuestInfo() | 156 questPOI:GetQuestInfo() |
156 questPOI.isStale = true | 157 questPOI.isStale = true |