Commit 0e148ef7 authored by Simpy's avatar Simpy 🐹
Browse files

test 5 - static placement to the hybrid map levels

parent 06568bb7
......@@ -228,13 +228,6 @@ function M:Minimap_OnMouseWheel(d)
end
function M:Update_ZoneText()
local hybrid = _G.HybridMinimap
local canvas = hybrid and hybrid.MapCanvas
if canvas and Minimap.backdrop then
Minimap.backdrop:SetFrameStrata(canvas:GetFrameStrata())
Minimap.backdrop:SetFrameLevel(canvas:GetFrameLevel()-1)
end
if E.db.general.minimap.locationText == 'HIDE' then return end
Minimap.location:FontTemplate(LSM:Fetch('font', E.db.general.minimap.locationFont), E.db.general.minimap.locationFontSize, E.db.general.minimap.locationFontOutline)
Minimap.location:SetText(utf8sub(GetMinimapZoneText(), 1, 46))
......@@ -382,6 +375,11 @@ function M:Initialize()
Minimap:HookScript('OnEnter', function(mm) if E.db.general.minimap.locationText == 'MOUSEOVER' then mm.location:Show() end end)
Minimap:HookScript('OnLeave', function(mm) if E.db.general.minimap.locationText == 'MOUSEOVER' then mm.location:Hide() end end)
if Minimap.backdrop then
Minimap.backdrop:SetFrameLevel(100)
Minimap.backdrop:SetFrameStrata('BACKGROUND')
end
if Minimap.backdrop then
Minimap.backdrop:SetBackdropColor(0, 0, 0, 0)
Minimap.backdrop.callbackBackdropColor = clearBackdrop
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment