Rev 66 → Rev 67
PocketPlot/media/PPblips3.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
PocketPlot/media/PPblips bigger.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
PocketPlot/media/PPblips comic bigger.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
PocketPlot/media/PPblips sharp.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
PocketPlot/media/PPblips.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
PocketPlot/media/default light.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
PocketPlot/media/default soft.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
PocketPlot/media/default sharp.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
PocketPlot/media/PPblips comic.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
PocketPlot/media
Property changes :
Modified: svn:ignore
- PPblips.png
PPblips2.png
PPblips3.png
PPblips3.psd
+ *.png
*.psd
OBJECTICONS.png
OBJECTICONS2.png
OBJECTICONS4.png
PPblips.png
PPblips2.png
PPblips3 2.png
PPblips3 bigger.png
PPblips3 comic bigger.png
PPblips3 comic.png
PPblips3.png
PPblips3.psd
PocketPlot/pocketplot.lua
1,17 → 1,7
------------------------------------------------------------------------------------------- |
-- WANT TO CHANGE THE STYLE OF THE MINIMAP BLIPS? -- |
------------------------------------------------------------------------------------------- |
--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 instead, then use "Interface\\Minimap\\OBJECTICONS.blp" |
|
local blips = "Interface\\AddOns\\PocketPlot\\media\\PPblips3.blp" |
------------------------------------------------------------------------------------------------------------------------------------- |
|
local PocketPlot = CreateFrame("Frame", nil, Minimap) |
local LSM = LibStub("LibSharedMedia-3.0") |
local widgetLists = AceGUIWidgetLSMlists |
local fonts = widgetLists.font |
--local fonts = LSM:List("font") |
local class = select(2, UnitClass("player")) |
local classColor, movershown, clockFrame, clockTime, db, options |
local Minimap = Minimap |
23,9 → 13,9
local MiniMapVoiceChatFrame = MiniMapVoiceChatFrame |
local MiniMapMeetingStoneFrame = MiniMapMeetingStoneFrame |
local TimeManagerClockFrame = TimeManagerClockFrame |
PP_oldMinimap, PP_oldDurabilityFrame, PP_oldVehicleSeatIndicator = nil --, PP_oldWatchFrame = nil |
PP_oldMinimap, PP_oldDurabilityFrame, PP_oldVehicleSeatIndicator = nil |
local _G = _G |
local mover |
local mover, moverText |
local coordframe = CreateFrame("Frame", nil, Minimap) |
coordframe:SetHeight(28) --height of clock button |
coordframe:SetWidth(100) |
63,9 → 53,20
["Flower"] = true, |
} |
local fontFlags = {"None", "Outline", "Thick Outline", "Monochrome"} |
local blips = { "default", |
"default light", |
"default soft", |
"default sharp", |
"PPblips", |
"PPblips sharp", |
"PPblips bigger", |
"PPblips comic", |
"PPblips comic bigger", |
} |
|
local defaults = { |
shape = "Square", |
blips = "PPblips", |
lsmfont = "Blue Highway", |
fontFlag = "Outline", |
zoneText = true, |
135,12 → 136,6
local function SetPosition(frame) |
if mover and mover:IsShown() then |
local r,_,a,x,y = mover:GetPoint() |
--frames lose their reference anchor frame when dragging... :/ |
if movershown == "Minimap" then |
p = "UIParent" |
else |
p = "MinimapCluster" |
end |
db[frame] = {["r"]=r, ["p"]="UIParent",["a"]=a,["x"]=x,["y"]=y} |
end |
_G[frame]:ClearAllPoints() |
155,7 → 150,6
end |
|
local function MoveFrames(frame) |
local moverText |
if not mover then |
mover = CreateFrame("Frame", nil, UIParent) |
mover:SetBackdrop({bgFile ="Interface\\Buttons\\WHITE8x8",}) |
171,6 → 165,7
mover:SetScript("OnMouseUp", function() mover:StopMovingOrSizing() SetPosition(movershown) end) |
end |
if frame == "None" then |
mover:SetScale(1) |
mover:Hide() |
mover:EnableMouse(0) |
return |
178,6 → 173,7
mover:Show() |
moverText:SetText(frame) |
mover:EnableMouse(1) |
mover:SetScale(_G[frame]:GetScale()) |
mover:ClearAllPoints() |
mover:SetAllPoints(frame) |
end |
210,7 → 206,11
end |
|
--MINIMAP ICONS/BLIPS |
Minimap:SetBlipTexture(blips) --custom texture for blips |
if db.blips == "default" then |
Minimap:SetBlipTexture("Interface\\Minimap\\OBJECTICONS") |
else |
Minimap:SetBlipTexture("Interface\\AddOns\\PocketPlot\\media\\"..db.blips) |
end |
|
--MAKE THE MINIMAP SQUARE WITH A THIN BORDER |
MinimapBorder:Hide() |
392,8 → 392,30
SetShape() |
ClassColors() |
end, |
order = 0.1, |
order = 1, |
}, |
blips = { |
name = "Tracking Blips", |
desc = "Set the style of tracking blips (POI) on the minimap.", |
type = "select", |
values = blips, |
get = function() |
for k, v in pairs(blips) do |
if db.blips == v then |
return k |
end |
end |
end, |
set = function(_,key) |
db.blips = blips[key] |
if db.blips == "default" then |
Minimap:SetBlipTexture("Interface\\Minimap\\OBJECTICONS") |
else |
Minimap:SetBlipTexture("Interface\\AddOns\\PocketPlot\\media\\"..db.blips) |
end |
end, |
order = 2, |
}, |
scale = { |
name = "Minimap Scale", |
desc = "Set the scale of the minimap.", |
406,7 → 428,7
db.scale = value |
Minimap:SetScale(value) |
end, |
order = 0.2, |
order = 3, |
}, |
mmAlpha = { |
name = "Minimap Alpha", |
420,19 → 442,8
db.mmAlpha = value |
Minimap:SetAlpha(value) |
end, |
order = 0.25, |
order = 4, |
}, |
combHide = { |
name = "Hide in Combat", |
desc = "Hide the minimap when in combat.", |
type = "toggle", |
get = function() return db.combHide end, |
set = function() |
db.combHide = not db.combHide |
CombatHide() |
end, |
order = 0.275, |
}, |
strata = { |
name = "Minimap Strata", |
desc = "Set the strata of the minimap and how it layers with other elements in your interface.", |
449,7 → 460,7
db.strata = stratae[key] |
Minimap:SetFrameStrata(db.strata) |
end, |
order = 0.3, |
order = 5, |
}, |
level = { |
name = "Strata Level", |
463,12 → 474,23
db.level = value |
Minimap:SetFrameLevel(db.level) |
end, |
order = 0.4, |
order = 6, |
}, |
combHide = { |
name = "Hide in Combat", |
desc = "Hide the minimap when in combat.", |
type = "toggle", |
get = function() return db.combHide end, |
set = function() |
db.combHide = not db.combHide |
CombatHide() |
end, |
order = 7, |
}, |
header1 = { |
name = "Border options", |
type = "header", |
order = 0.5, |
order = 8, |
}, |
border = { |
name = "Border Color", |
481,7 → 503,7
db.bg.r,db.bg.g,db.bg.b = r,g,b |
ClassColors() |
end, |
order = 1, |
order = 9, |
}, |
classbg = { |
name = "Class colored border", |
492,7 → 514,7
db.classbg = not db.classbg |
ClassColors() |
end, |
order = 2, |
order = 10, |
}, |
insets = { |
name = "Border size", |
508,7 → 530,7
PocketPlot:SetHeight(dims + value) |
PocketPlot:SetWidth(dims + value) |
end, |
order = 3, |
order = 11, |
}, |
alpha = { |
name = "Border Alpha", |
522,12 → 544,12
db.alpha = alpha |
ClassColors() |
end, |
order = 3.5, |
order = 12, |
}, |
header2 = { |
name = "Text options", |
type = "header", |
order = 5, |
order = 13, |
}, |
font = { |
name = "Font", |
544,7 → 566,7
MinimapZoneText:SetFont(LSM:Fetch("font", db.lsmfont), db.zoneSize, db.fontFlag) |
coords:SetFont(LSM:Fetch("font",db.lsmfont), db.coordSize, db.fontFlag) |
end, |
order = 6, |
order = 14, |
}, |
fontFlag = { |
name = "Font Flag", |
564,7 → 586,7
MinimapZoneText:SetFont(LSM:Fetch("font", db.lsmfont), db.zoneSize, db.fontFlag) |
coords:SetFont(LSM:Fetch("font",db.lsmfont), db.coordSize, db.fontFlag) |
end, |
order = 6.5, |
order = 15, |
}, |
zonesize = { |
name = "Zone Text Size", |
578,7 → 600,7
db.zoneSize = size |
MinimapZoneText:SetFont(LSM:Fetch("font",db.lsmfont), db.zoneSize, db.fontFlag) |
end, |
order = 7, |
order = 16, |
}, |
clocksize = { |
name = "Clock Text Size", |
592,7 → 614,7
db.clockSize = size |
clockTime:SetFont(LSM:Fetch("font",db.lsmfont), db.clockSize, db.fontFlag) |
end, |
order = 8, |
order = 17, |
}, |
coordsize = { |
name = "Coords Text Size", |
606,7 → 628,7
db.coordSize = size |
coords:SetFont(LSM:Fetch("font",db.lsmfont), db.coordSize, db.fontFlag) |
end, |
order = 9, |
order = 18, |
}, |
classfont = { |
name = "Class colored text", |
617,7 → 639,7
db.classfont = not db.classfont |
ClassColors() |
end, |
order = 10, |
order = 19, |
}, |
coords = { |
name = "Display coords", |
633,7 → 655,7
end |
CoordPosition() |
end, |
order = 11, |
order = 20, |
}, |
clock = { |
name = "Display clock", |
649,7 → 671,7
end |
CoordPosition() |
end, |
order = 11.5, |
order = 21, |
}, |
zoneText = { |
name = "Display zone text", |
664,7 → 686,7
MinimapZoneTextButton:Hide() |
end |
end, |
order = 12, |
order = 22, |
}, |
top = { |
name = "Clock/coords on top", |
675,12 → 697,12
db.top = not db.top |
CoordPosition() |
end, |
order = 13, |
order = 23, |
}, |
header3 = { |
name = "Frame Locations", |
type = "header", |
order = 14, |
order = 24, |
}, |
movers = { |
name = "Enable mover for...", |
702,7 → 724,7
movershown = frames[frame] |
MoveFrames(movershown) |
end, |
order = 15, |
order = 25, |
}, |
reset = { |
name = "Restore Positions", |
715,7 → 737,7
end |
ReloadUI() |
end, |
order = 16, |
order = 26, |
}, |
nudgeL = { |
name = "Left", |
734,7 → 756,7
mover:ClearAllPoints() |
mover:SetAllPoints(frame) |
end, |
order = 17, |
order = 27, |
}, |
nudgeR = { |
name = "Right", |
753,7 → 775,7
mover:ClearAllPoints() |
mover:SetAllPoints(frame) |
end, |
order = 18, |
order = 28, |
}, |
nudgeU = { |
name = "Up", |
772,7 → 794,7
mover:ClearAllPoints() |
mover:SetAllPoints(frame) |
end, |
order = 19, |
order = 29, |
}, |
nudgeD = { |
name = "Down", |
791,17 → 813,17
mover:ClearAllPoints() |
mover:SetAllPoints(frame) |
end, |
order = 20, |
order = 30, |
}, |
div3 = { |
name = " ", |
type = "description", |
order = 21, |
order = 31, |
}, |
header4 = { |
name = "Profile", |
type = "header", |
order = 22, |
order = 32, |
}, |
charSpec = { |
name = "Character specific settings", |
814,7 → 836,7
PocketPlotPCDB.charSpec = not PocketPlotPCDB.charSpec |
ReloadUI() |
end, |
order = 23, |
order = 33, |
}, |
copyProfile = { |
name = "Copy from Default", |
827,7 → 849,7
PocketPlotPCDB.charSpec = true |
ReloadUI() |
end, |
order = 24, |
order = 34, |
}, |
resetProfile = { |
name = "Profile Reset", |
842,7 → 864,7
end |
ReloadUI() |
end, |
order = 25, |
order = 35, |
}, |
}, |
} |
894,17 → 916,16
coordframe:SetScript("OnMouseUp", function() |
if IsShiftKeyDown() then |
ChatFrame1EditBox:Insert("["..coords:GetText().."]") |
elseif WorldMapFrame:IsShown() then |
WorldMapFrame:Hide() |
else |
WorldMapFrame:Show() |
ToggleFrame(WorldMapFrame) |
end |
end) |
local throttle = 0 |
local coordx, coordy |
coordframe:SetScript("OnUpdate", function(self, elapsed) |
throttle = throttle + elapsed |
if throttle >= .3 then |
local coordx,coordy = GetPlayerMapPosition("player") |
coordx,coordy = GetPlayerMapPosition("player") |
coords:SetFormattedText("%.1f/%.1f", coordx*100, coordy*100) |
throttle = 0 |
end |
PocketPlot/PocketPlot.toc
2,7 → 2,7
## Title: PocketPlot |
## Author: Seerah |
## Notes: Minimap customization |
## Version: 2.11.2 |
## Version: 2.12 |
## X-Category: Minimap |
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets |
## SavedVariables: PocketPlotDB |