Mercurial > wow > worldplan
comparison QuestPOI.lua @ 8:802abb8a10ea
Fixed loss of mission progress data while changing zones by using `GARRISON_LANDINGPAGE_SHIPMENTS' as the trigger point for mission scoops.
* `MISSION_LIST_UPDATE' fires before all data is available, and if this is happens on a loading screen, then several landing page items may get snipped.
| author | Nenue |
|---|---|
| date | Sun, 23 Oct 2016 07:19:53 -0400 |
| parents | 34d9fbf7af20 |
| children | a2b623043970 |
comparison
equal
deleted
inserted
replaced
| 7:34d9fbf7af20 | 8:802abb8a10ea |
|---|---|
| 208 self.MouseGlow:Show() | 208 self.MouseGlow:Show() |
| 209 else | 209 else |
| 210 self.MouseGlow:Hide() | 210 self.MouseGlow:Hide() |
| 211 end | 211 end |
| 212 end | 212 end |
| 213 | |
| 214 | |
| 215 function WorldPlanFilterPinMixin:OnEnter () | |
| 216 local filter = WorldPlan.FilterOptions[self:GetID()] | |
| 217 local mapID = GetCurrentMapAreaID() | |
| 218 local quests = (mapID == WorldPlan.BrokenIsleID) and WorldPlan.QuestsByID or WorldPlan.QuestsByZone[mapID] | |
| 219 if quests then | |
| 220 GameTooltip:SetOwner(self, 'ANCHOR_RIGHT') | |
| 221 GameTooltip:AddLine(filter.label) | |
| 222 local filterKey = self.filterKey | |
| 223 local filterValue = self.filterValue | |
| 224 if filterKey then | |
| 225 for questID, pin in pairs(quests) do | |
| 226 if pin.used and not pin.filtered then | |
| 227 if pin[filterKey] == filterValue then | |
| 228 local style = pin.style or WorldPlan.FilterStyle | |
| 229 | |
| 230 if familiars[questID] then | |
| 231 GameTooltip:AddLine(pin.title,0,1,0) | |
| 232 else | |
| 233 GameTooltip:AddLine(pin.title,1,1,1) | |
| 234 end | |
| 235 | |
| 236 end | |
| 237 end | |
| 238 end | |
| 239 else | |
| 240 GameTooltip:AddLine('Reset all filters') | |
| 241 end | |
| 242 GameTooltip:Show() | |
| 243 end | |
| 244 end |
