Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 24 lines (21 sloc) 0.675 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
--make the minimap scrollable via the mousewheel
local scroll = CreateFrame('Frame', nil, Minimap)
scroll:SetAllPoints(Minimap)
scroll:EnableMouse(false)
scroll:EnableMouseWheel(true)
scroll:SetScript('OnMouseWheel', function(self, arg1)
if (Minimap:GetZoom() + arg1 <= Minimap:GetZoomLevels()) and (Minimap:GetZoom() + arg1 >= 0) then
Minimap:SetZoom(Minimap:GetZoom() + arg1)
end
end)

--hide excess buttons
MiniMapWorldMapButton:Hide()
MinimapZoomIn:Hide()
MinimapZoomOut:Hide()

MinimapZoneTextButton:Hide()
if MinimapToggleButton then
MinimapToggleButton:Hide()
end
MinimapBorderTop:Hide()

MinimapCluster:ClearAllPoints()
MinimapCluster:SetPoint('TOPRIGHT', 0, 12)
Something went wrong with that request. Please try again.