Skip to content

Commit

Permalink
Fix the buttons not auto hiding when moving the mouse away from the m…
Browse files Browse the repository at this point in the history
…inimap, if the last thing your mouse was over was the zone text, fixes #165
  • Loading branch information
funkydude committed Nov 4, 2020
1 parent 9e2fdf8 commit 3f4ee17
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ZoneText.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function mod:OnEnable()
end)
end

zoneTextButton = CreateFrame("Frame", "SexyMapZoneTextButton", Minimap, "BackdropTemplate") -- Create our own zone text
zoneTextButton = CreateFrame("Button", "SexyMapZoneTextButton", Minimap, "BackdropTemplate") -- Create our own zone text
zoneTextButton:SetPoint("BOTTOM", Minimap, "TOP", mod.db.xOffset, mod.db.yOffset)
zoneTextButton:SetClampedToScreen(true)
zoneTextButton:SetClampRectInsets(4,-4,-4,4) -- Allow kissing the edge of the screen when hiding the backdrop border (size 4)
Expand All @@ -208,8 +208,6 @@ function mod:OnEnable()
zoneTextFont:SetJustifyH("CENTER")
zoneTextButton:SetBackdrop(sm.backdrop)

sm.buttons:NewFrame(zoneTextButton) -- Buttons module

--do
-- local zoneTextFlags = nil
-- if self.db.profile.zoneTextConfig.monochrome and self.db.profile.zoneTextConfig.outline ~= "NONE" then
Expand Down Expand Up @@ -283,6 +281,7 @@ function mod:OnEnable()
end

self:UpdateLayout()
sm.buttons:NewFrame(zoneTextButton) -- Buttons module
end

function mod:UpdateLayout()
Expand Down

0 comments on commit 3f4ee17

Please sign in to comment.