Skip to content

Commit

Permalink
1.2.20-Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Norberg committed Sep 19, 2021
1 parent b604f93 commit 7912ccb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. All notable
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.2.20-Release] 2021-09-19
### Changed
- Our "Fog of War" button should now get out of the way when Questie's "Hide Questie" button decides to move into the upper right corner.

## [1.2.19-Release] 2021-09-01
- Bump TOC for BCC 2.5.2.

Expand Down
29 changes: 28 additions & 1 deletion ClassicWorldMapEnhanced/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,32 @@ Private.SetUpMapReveal = function(self)
Overlay_UpdateTextures()
end)

if Private:IsAddOnEnabled("Questie") then
local isHooked

local UpdatePosition = function()
local qbutton = _G.Questie_Toggle
if (qbutton) then
local point, anchor, rpoint, x, y = qbutton:GetPoint()
if (point == "RIGHT" and rpoint == "LEFT" and anchor == _G.WorldMapFrameCloseButton) then
button:SetPoint("TOPRIGHT", -(24 + 10 + button.msg:GetWidth() + 10 + qbutton:GetWidth()), 0)
end
end
end

local Update = function()
local qbutton = _G.Questie_Toggle
if (qbutton) then
if (not isHooked) then
hooksecurefunc(qbutton, "SetPoint", UpdatePosition)
isHooked = true
end
UpdatePosition()
end
end
button:HookScript("OnShow", Update)
end

button:Show()

for pin in WorldMapFrame:EnumeratePinsByTemplate("MapExplorationPinTemplate") do
Expand Down Expand Up @@ -625,9 +651,10 @@ Private.OnInit = function(self)
if Private:IsAddOnEnabled("Leatrix_Maps") then
return
end

-- Check whether or not the worldmap addon has been loaded,
-- and if its ADDON_LOADED event has fired.
local loaded, finished = IsAddOnLoaded("Blizzard_WorldMap")
loaded, finished = IsAddOnLoaded("Blizzard_WorldMap")
if (loaded and finished) then
self:OnEnable()
else
Expand Down

0 comments on commit 7912ccb

Please sign in to comment.