------------------------------------------------------------------------------ |
--SETTING UP... THESE ARE YOUR OPTIONS TO EDIT!!!-- |
------------------------------------------------------------------------------ |
local font = "Interface\\AddOns\\PocketPlot\\BLUEHIGH.ttf" --file path to a .ttf font |
local size = 14 --font size (clock is size + 2) |
local scale = .9 --scale of the minimap |
local x,y = -10, -10 --offset of the minimap from the top right corner. If you wish to change where the minimap is anchored, see the "Minimap Location and Size" section below Note: this will move the quest tracker, etc, unless you use other addons to control those frames. |
local blips = "Interface\\AddOns\\PocketPlot\\PPblips2.blp" --file path to blip textures (2 styles are included with this addon, or you can find/create your own. If you like the default blips, then use "Interface\\Minimap\\OBJECTICONS.blp") |
local r,g,b = 0,0,0 --border colors (red, green, blue) -- values are a range from 0-1 (0,0,0 is black and 1,1,1 is white) |
|
|
------------------------------------------------------------------------------------------------ |
|
local PocketPlot = CreateFrame("Frame") |
|
|
--so minimap buttons follow the square shape instead of round(?) |
function GetMinimapShape() |
return "SQUARE" |
end |
|
--MINIMAP LOCATION AND SIZE |
Minimap:ClearAllPoints() |
Minimap:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", x, y) --this says that the topright of the minimap is anchored to the topright of your screen (UIParent), with offsets of 10 to the left and 10 down |
Minimap:SetScale(scale) --this says that the minimap is set to 90% scale |
|
--ZONE TEXT |
MinimapZoneTextButton:SetParent("Minimap") |
MinimapZoneTextButton:SetPoint("TOP", Minimap, "TOP", 0, -1) --where the zone text is located |
MinimapZoneTextButton:SetFrameLevel(5) |
MinimapZoneText:SetFont(font, size, "OUTLINE") --font and font size for zone text |
|
--MINIMAP ICONS/BLIPS |
Minimap:SetBlipTexture(blips) --custom texture for blips |
|
--MAKE THE MINIMAP SQUARE WITH A THIN BORDER |
MinimapBorder:Hide() |
Minimap:SetMaskTexture("Interface\\AddOns\\PocketPlot\\mask.blp") |
PocketPlot:SetParent(Minimap) |
PocketPlot:SetFrameLevel(1) |
PocketPlot:SetBackdrop({ --border is actually a background frame that's slightly larger than minimap |
bgFile ="Interface\\Tooltips\\UI-Tooltip-Background", |
insets = {left = -2, right = -2, top = -2, bottom = -2}, |
}) |
PocketPlot:SetBackdropColor(r,g,b) |
PocketPlot:SetAllPoints(Minimap) |
|
--MAKE THE MINIMAP ZOOM WITH MOUSEWHEEL |
MinimapZoomIn:Hide() |
MinimapZoomOut:Hide() |
Minimap:EnableMouseWheel(true) |
Minimap:SetScript("OnMouseWheel", function(_, zoom) |
if zoom > 0 then |
Minimap_ZoomIn() |
else |
Minimap_ZoomOut() |
end |
end) |
|
--CLOCK FRAME |
if not IsAddOnLoaded("Blizzard_TimeManager") then |
LoadAddOn("Blizzard_TimeManager") |
end |
local clockFrame, clockTime = TimeManagerClockButton:GetRegions() |
clockFrame:Hide() |
clockTime:SetFont(font, size + 3, "OUTLINE") |
TimeManagerClockButton:SetPoint("TOP", Minimap, "BOTTOM", 0, 0) |
|
--CALENDAR BUTTON/FRAME |
GameTimeFrame:SetAlpha(0) --calendar button (old day/night indicator) --Set alpha to 0 so that it's still hidden, but we'll see the ? flash for new invites |
Minimap:SetScript("OnMouseDown", function(_,click) |
if click == "RightButton" then |
if not CalendarFrame then |
LoadAddOn("Blizzard_Calendar") |
end |
CalendarFrame:Show() |
end |
end) |
GameTimeCalendarInvitesTexture:SetParent("Minimap") |
|
--TRACKING ICON/MENU |
MiniMapTrackingButton:SetAlpha(0) |
MiniMapTrackingBackground:Hide() |
MiniMapTracking:ClearAllPoints() |
MiniMapTracking:SetPoint("BOTTOMLEFT", Minimap, "BOTTOMLEFT", -5, -5) --where the tracking icon/menu is located |
|
--BATTLEGROUND QUEUE ICON |
MiniMapBattlefieldBorder:Hide() |
MiniMapBattlefieldFrame:ClearAllPoints() |
MiniMapBattlefieldFrame:SetPoint("BOTTOM", Minimap, "BOTTOM", 0, -1) --where the battleground icon is located |
|
--NEW MAIL ICON |
MiniMapMailBorder:Hide() |
MiniMapMailFrame:ClearAllPoints() |
MiniMapMailFrame:SetPoint("BOTTOMRIGHT", Minimap, "BOTTOMRIGHT", 5, -6) --where the mail icon is located |
MiniMapMailIcon:SetTexCoord(0.05,0.95,0.05,0.95) |
|
--VOICE CHAT ICON |
MiniMapVoiceChatFrameBorder:Hide() |
MiniMapVoiceChatFrameBackground:Hide() |
MiniMapVoiceChatFrame:ClearAllPoints() |
MiniMapVoiceChatFrame:SetPoint("BOTTOMRIGHT", Minimap, "BOTTOMRIGHT", -20, -5) |
|
--LFG ICON |
MiniMapMeetingStoneBorder:Hide() |
MiniMapMeetingStoneFrame:SetPoint("BOTTOMLEFT", Minimap, "BOTTOMLEFT", 55, 30) |
|
--MISC. THINGS TO HIDE |
MiniMapWorldMapButton:Hide() --default keybinding for world map is M |
MinimapNorthTag:SetAlpha(0) --Hide() wasn't working, but SetAlpha() is... |
MinimapBorderTop:Hide() |
MinimapToggleButton:Hide() |