Commit 394211c2 authored by Simpy's avatar Simpy 🐹
Browse files

tweak for d42e33c9

parent b9556fc3
......@@ -154,11 +154,17 @@ function M:GetLocTextColor()
end
end
function M:SetupHybridMinimap()
_G.HybridMinimap.MapCanvas:SetMaskTexture('Interface/Buttons/WHITE8X8')
end
function M:ADDON_LOADED(_, addon)
if addon == 'Blizzard_TimeManager' then
_G.TimeManagerClockButton:Kill()
elseif addon == 'Blizzard_FeedbackUI' then
_G.FeedbackUIButton:Kill()
elseif addon == 'Blizzard_HybridMinimap' then
M:SetupHybridMinimap()
end
end
......@@ -323,21 +329,6 @@ function M:SetGetMinimapShape()
Minimap:Size(E.db.general.minimap.size, E.db.general.minimap.size)
end
function M:SetupHybridMinimap()
local MapCanvas = _G.HybridMinimap.MapCanvas
MapCanvas:SetMaskTexture('Interface\\Buttons\\WHITE8X8')
MapCanvas:SetScript('OnMouseWheel', M.Minimap_OnMouseWheel)
MapCanvas:SetScript('OnMouseDown', M.Minimap_OnMouseDown) -- HybridMinimap seems not able to use ping see: Blizzard_HybridMinimap @Simpy
MapCanvas:SetScript('OnMouseUp', E.noop)
end
function M:HybridMinimapOnLoad(addon)
if addon == 'Blizzard_HybridMinimap' then
M:SetupHybridMinimap()
E:UnregisterEvent(self, M.HybridMinimapOnLoad)
end
end
function M:Initialize()
if not E.private.general.minimap.enable then return end
self.Initialized = true
......@@ -422,7 +413,6 @@ function M:Initialize()
self:RegisterEvent('ZONE_CHANGED_INDOORS', 'Update_ZoneText')
self:RegisterEvent('ZONE_CHANGED', 'Update_ZoneText')
self:RegisterEvent('ADDON_LOADED')
self:RegisterEvent('ADDON_LOADED', M.HybridMinimapOnLoad)
self:UpdateSettings()
end
......
......@@ -3,8 +3,6 @@ local S = E:GetModule('Skins')
local _G = _G
local pairs, unpack = pairs, unpack
local C_Spell_GetMawPowerBorderAtlasBySpellID = C_Spell.GetMawPowerBorderAtlasBySpellID
local hooksecurefunc = hooksecurefunc
local headers = {
......
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