Mercurial > wow > worldplan
diff WorldPlan.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 |
line wrap: on
line diff
--- a/WorldPlan.lua Sat Oct 22 15:36:25 2016 -0400 +++ b/WorldPlan.lua Sun Oct 23 07:19:53 2016 -0400 @@ -177,6 +177,10 @@ { filterKey= 'worldQuestType', filterValue = LE_QUEST_TAG_TYPE_PET_BATTLE, label = 'Pet Battle', texture = "Interface\\Icons\\PetJournalPortrait", }, { filterKey= 'worldQuestType', filterValue = LE_QUEST_TAG_TYPE_DUNGEON, label = 'Dungeon', texture = "Interface\\LFGFRAME\\UI-LFR-PORTRAIT", }, } +WorldPlanCore.BrokenIsleID = BROKEN_ISLES_ID +WorldPlanCore.FilterOptions = POI_FILTER_OPTIONS +WorldPlanCore.FilterStyle = POI_FILTER_STYLE + local numPins = 0 local QuestsByZone = {} @@ -190,6 +194,8 @@ local NotificationTypes = {} local ZoneInfo = {} local SummaryHeaders = {} +WorldPlanCore.QuestsByID = QuestsByID +WorldPlanCore.QuestsByZone = QuestsByZone local FreePins = {} local NumPinFrames = 1 @@ -1157,30 +1163,6 @@ end -function FilterPin:OnEnter () - local filter = POI_FILTER_OPTIONS[self:GetID()] - local mapID = GetCurrentMapAreaID() - local quests = (mapID == BROKEN_ISLES_ID) and QuestsByID or QuestsByZone[mapID] - if quests then - GameTooltip:SetOwner(self, 'ANCHOR_RIGHT') - GameTooltip:AddLine(filter.label) - local filterKey = self.filterKey - local filterValue = self.filterValue - if filterKey then - for questID, pin in pairs(quests) do - if pin.used and not pin.filtered then - if pin[filterKey] == filterValue then - local style = pin.style or POI_FILTER_STYLE - GameTooltip:AddLine(pin.title) - end - end - end - else - GameTooltip:AddLine('Reset all filters') - end - GameTooltip:Show() - end -end function FilterPin:OnLeave () if GameTooltip:IsOwned(self) then GameTooltip:Hide()