# HG changeset patch
# User Nenue
# Date 1482765652 18000
# Node ID db570c6a0ffb26dfaa18edf30b1d5ca49bb4c5df
# Parent 59e9d66195dda98331dc4611ec769119fe43885d
- Fixed filter buttons losing their anchor after FlightMap interactions
- Fixed flickering tooltips
- Fixed a source of hangs while opening the world map, particularly in non-Broken-Isle continents.
- Workaround for World Map Action Button: Temporarily activate blizzard POI buttons while a quest-targeting spell is on the cursor.
diff -r 59e9d66195dd -r db570c6a0ffb FilterBar.lua
--- a/FilterBar.lua Sun Dec 25 15:48:24 2016 -0500
+++ b/FilterBar.lua Mon Dec 26 10:20:52 2016 -0500
@@ -74,7 +74,9 @@
local Pin = WorldPlanFilterPinMixin
function Module:OnLoad()
- self:SetParent(WorldMapFrame)
+ self:SetParent(WorldMapFrame.UIElementsFrame)
+ self:ClearAllPoints()
+ self:SetPoint('TOPRIGHT')
WorldPlan:AddHandler(self)
for index, info in ipairs(db.DefaultFilters) do
info.zone = db.DefaultFilterType
@@ -82,7 +84,6 @@
info.pinMask = "Interface\\Minimap\\UI-Minimap-Background"
WorldPlan:AddTypeInfo(self,index, info)
end
-
end
@@ -96,6 +97,7 @@
function Module:Setup()
print('|cFF00FF88'..self:GetName()..':Setup()')
+ self.isStale = true
end
@@ -171,12 +173,7 @@
function Module:Update()
local blocks = self.buttons
- local relativeFrame = WorldMapFrame.UIElementsFrame.TrackingOptionsButton
- if FlightMapFrame and FlightMapFrame:IsVisible() then
- relativeFrame = FlightMapFrame
- end
- self:SetParent(relativeFrame)
- self:SetPoint('TOPRIGHT')
+ local relativeFrame = self
local numHeaders = 0
print('|cFF00FF88'..self:GetName()..':Update()|r', 'currentMap=',WorldPlan.currentMapID)
@@ -194,9 +191,9 @@
wipe(info.questList)
for questID, pin in pairs(db.QuestsByID) do
- print(pin.worldQuestType ~= LE_QUEST_TAG_TYPE_PROFESSION, (db.Config.ShowAllProfessionQuests or pin.isKnownProfession))
+ --print(pin.worldQuestType ~= LE_QUEST_TAG_TYPE_PROFESSION, (db.Config.ShowAllProfessionQuests or pin.isKnownProfession))
if (pin.worldQuestType ~= LE_QUEST_TAG_TYPE_PROFESSION) or (db.Config.ShowAllProfessionQuests or pin.isKnownProfession) then
- print(pin.title)
+ --print(pin.title)
if not info.filterKey then
if mapQuests[questID] then
numQuestsHere = numQuestsHere + 1
@@ -303,17 +300,13 @@
self.itemTexture = self.texture
+ self:ClearAllPoints()
if self.isFirst then
- if FlightMapFrame and FlightMapFrame:IsVisible() then
- self:SetPoint('TOPRIGHT', FlightMapFrame, 'TOPRIGHT', -4, -25)
- else
- self:SetPoint('TOP', self.relativeFrame, 'BOTTOM', 0, -5)
- end
-
+ self:SetPoint('TOPRIGHT', self.relativeFrame, 'TOPRIGHT', -5, -42)
else
- self:SetPoint('TOPRIGHT', self.relativeFrame, 'BOTTOMRIGHT', 0, -(self.spacing or 0))
+ self:SetPoint('TOPLEFT', self.relativeFrame, 'BOTTOMLEFT', 0, -(self.spacing or 0))
end
- print('anchor to', self.relativeFrame:GetName(), info.mask)
+ print('anchor', self.relativeFrame:IsShown(), self:GetPoint(1))
self.icon:SetDesaturated(self.numQuestsHere == 0)
diff -r 59e9d66195dd -r db570c6a0ffb FilterBar.xml
--- a/FilterBar.xml Sun Dec 25 15:48:24 2016 -0500
+++ b/FilterBar.xml Mon Dec 26 10:20:52 2016 -0500
@@ -8,13 +8,8 @@
-
-
-
-
-
-
-
+
+