this:RegisterEvent("PLAYER_AURAS_CHANGED");
if ( event == "PLAYER_AURAS_CHANGED" ) then
local icon = GetTrackingTexture();
if ( icon ) then
MiniMapTrackingIcon:SetTexture(icon);
MiniMapTrackingFrame:Show();
else
MiniMapTrackingFrame:Hide();
end
end
if ( arg1 == "RightButton" ) then
CancelTrackingBuff();
end
GameTooltip:SetOwner(this, "ANCHOR_BOTTOMLEFT");
GameTooltip:SetTrackingSpell();
GameTooltip:Hide();
this:RegisterEvent("UPDATE_PENDING_MAIL");
this:SetFrameLevel(this:GetFrameLevel()+1)
MiniMapMailFrame_OnEvent();
MiniMapMailFrame_OnEnter();
GameTooltip:Hide();
Minimap_Update();
-- Seed the +/- state from the live zoom (default index 3 ⇒ both enabled) rather than
-- hardcoding a zoom-0 "can't zoom out" — the client's default is 3, not the widest.
Minimap_UpdateZoom();
this:RegisterEvent("MINIMAP_ZONE_CHANGED");
this:RegisterEvent("MINIMAP_UPDATE_ZOOM");
if ( event == "MINIMAP_UPDATE_ZOOM" ) then
Minimap_UpdateZoom();
else
Minimap_Update();
end