/trunk/PocketPlot
--SETTING UP... |
------------------------------------------------------------------------------ |
--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 |
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) |
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(?) |
--MINIMAP LOCATION AND SIZE |
Minimap:ClearAllPoints() |
Minimap:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -10, -10) --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(.9) --this says that the minimap is set to 90% scale |
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:SetPoint("TOP", Minimap, "TOP", 0, -1) --where the zone text is located |
MinimapZoneTextButton:SetFrameLevel(5) |
MinimapZoneText:SetFont("Interface\\AddOns\\PocketPlot\\BLUEHIGH.ttf", 14) --font and font size for zone text |
MinimapZoneText:SetFont(font, size) --font and font size for zone text |
--MINIMAP ICONS/BLIPS |
Minimap:SetBlipTexture("Interface\\AddOns\\PocketPlot\\PPblips2.blp") --custom texture for blips |
Minimap:SetBlipTexture(blips) --custom texture for blips |
--MAKE THE MINIMAP SQUARE WITH A THIN BLACK BORDER |
--MAKE THE MINIMAP SQUARE WITH A THIN BORDER |
MinimapBorder:Hide() |
Minimap:SetMaskTexture("Interface\\AddOns\\PocketPlot\\mask.blp") |
PocketPlot:SetParent(Minimap) |
bgFile ="Interface\\Tooltips\\UI-Tooltip-Background", |
insets = {left = -2, right = -2, top = -2, bottom = -2}, |
}) |
PocketPlot:SetBackdropColor(0,0,0) |
PocketPlot:SetBackdropColor(r,g,b) |
PocketPlot:SetAllPoints(Minimap) |
--MAKE THE MINIMAP ZOOM WITH MOUSEWHEEL |
end |
end) |
--CLOCK FRAME |
local clockFrame, clockTime = TimeManagerClockButton:GetRegions() |
clockFrame:Hide() |
clockTime:SetFont(font, size + 2, "OUTLINE") |
TimeManagerClockButton:SetPoint("TOP", Minimap, "BOTTOM", 0, 0) |
TimeManagerClockButton:SetScript("OnClick", function() |
if TimeManagerFrame:IsVisible() then |
TimeManagerFrame:Hide() |
else |
TimeManagerFrame:Show() |
end |
end) |
--TRACKING ICON/MENU |
MiniMapTrackingBorder:Hide() |
MiniMapTrackingBackground:Hide() |
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 |
GameTimeFrame:Hide() --day/night indicator |
MinimapNorthTag:SetAlpha(0) --Hide() wasn't working, but SetAlpha() is... |
MinimapBorderTop:Hide() |
MinimapToggleButton:Hide() |
MiniMapMeetingStoneFrame:Hide() --LFG icon |
MiniMapVoiceChatFrame:Hide() --voice chat icon |
BattlegroundShine:Hide() --the bg icon's flash(?) |
## Interface: 20400 |
## Interface: 30000 |
## Title: PocketPlot |
## Author: Seerah |
## Notes: Minimap customization |
## Version: 1.2 |
## X-Category: Minimap |
## RequiredDeps: Blizzard_TimeManager |
pocketplot.lua |