Rev 63 → Rev 64
trunk/PocketPlot/PocketPlot.toc
2,7 → 2,7
## Title: PocketPlot |
## Author: Seerah |
## Notes: Minimap customization |
## Version: 2.10.2 |
## Version: 2.11 |
## X-Category: Minimap |
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets |
## SavedVariables: PocketPlotDB |
trunk/PocketPlot/media/circle-bg.tga
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
trunk/PocketPlot/media/mask.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
trunk/PocketPlot/media/Flower.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
trunk/PocketPlot/media/Circle.tga
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
trunk/PocketPlot/media/Rounded.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
trunk/PocketPlot/media/Square.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
trunk/PocketPlot/media/Torn.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
trunk/PocketPlot/media/Rectangle.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
trunk/PocketPlot/media/Compass.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
trunk/PocketPlot/media/Slanted.blp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes :
Added: svn:mime-type
+ application/octet-stream
trunk/PocketPlot/pocketplot.lua
50,7 → 50,27
"WorldStateAlwaysUpFrame", |
} |
local stratae = {"BACKGROUND", "LOW", "MEDIUM", "HIGH", "DIALOG"} |
local shapes = {"Square", "Circle"} |
local allshapes = { "Square", |
"Rectangle", |
"Rounded", |
"Torn", |
"Slanted", |
"Circle", |
"Compass", |
"Flower" |
} |
local squareMasks = { |
["Square"] = true, |
["Rectangle"] = true, |
["Rounded"] = true, |
["Torn"] = true, |
["Slanted"] = true, |
} |
local roundMasks = { |
["Circle"] = true, |
["Compass"] = true, |
["Flower"] = true, |
} |
local fontFlags = {"None", "Outline", "Thick Outline", "Monochrome"} |
|
local defaults = { |
111,14 → 131,12
end |
|
local function SetShape() |
if db.shape == "Square" then |
Minimap:SetMaskTexture("Interface\\AddOns\\PocketPlot\\media\\mask.blp") |
PocketPlot:SetBackdrop({ bgFile = "Interface\\Buttons\\WHITE8x8" }) |
Minimap:SetMaskTexture("Interface\\AddOns\\PocketPlot\\media\\"..db.shape) |
PocketPlot:SetBackdrop({ bgFile = "Interface\\AddOns\\PocketPlot\\media\\"..db.shape }) |
if squareMasks[db.shape] then |
--so minimap buttons follow the square shape instead of round |
GetMinimapShape = function() return "SQUARE" end |
else |
Minimap:SetMaskTexture("Interface\\AddOns\\PocketPlot\\Media\\circle-bg.tga") |
PocketPlot:SetBackdrop({ bgFile = "Interface\\AddOns\\PocketPlot\\Media\\circle-bg.tga" }) |
elseif roundMasks[db.shape] then |
GetMinimapShape = function() return "ROUND" end |
end |
end |
363,16 → 381,16
name = "Minimap Shape", |
desc = "Set the shape of the minimap.", |
type = "select", |
values = shapes, |
values = allshapes, |
get = function() |
for k, v in pairs(shapes) do |
for k, v in pairs(allshapes) do |
if db.shape == v then |
return k |
end |
end |
end, |
set = function(_,key) |
db.shape = shapes[key] |
db.shape = allshapes[key] |
SetShape() |
ClassColors() |
end, |