this:RegisterEvent("PLAYER_AURAS_CHANGED"); MiniMapTrackingFrame_OnEvent(); if ( arg1 == "RightButton" ) then CancelTrackingBuff(); end MiniMapTrackingFrame_OnEnter(); GameTooltip:Hide(); this:RegisterEvent("UPDATE_PENDING_MAIL"); this:SetFrameLevel(this:GetFrameLevel()+1) MiniMapMailFrame_OnEvent(); MiniMapMailFrame_OnEnter(); GameTooltip:Hide(); Minimap_OnClick(); 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