WoWInterface SVN PocketPlot

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 68 to Rev 69
    Reverse comparison

Rev 68 → Rev 69

trunk/PocketPlot/pocketplot.lua
22,6 → 22,7
coordframe:EnableMouse(true)
local coords = coordframe:CreateFontString(nil, "OVERLAY")
coords:SetParent(coordframe)
coords:SetFont("Interface\\AddOns\\PocketPlot\\media\\negotiate_free.ttf", 12) --temporary
local frames = { "None",
"Minimap",
"DurabilityFrame",
77,6 → 78,7
bg = {r = 0, g = 0, b = 0}, --border colors (red, green, blue) -- values are a range from 0-1 (0,0,0 is black and 1,1,1 is white)
mmAlpha = 1,
combHide = false,
--mouseover = true, --set to false!
alpha = 1,
top = false,
coords = true,
84,6 → 86,7
coordSize = 16,
classbg = false,
classfont = false,
textOffset = 0,
insets = 4,
strata = "BACKGROUND",
level = 2,
122,6 → 125,25
end
end
 
--[[local function ShowOnMouseover()
MinimapZoneTextButton:SetAlpha(1)
--MiniMapTrackingButton:SetAlpha(1)
MiniMapTrackingButton:Show()
MiniMapBattlefieldFrame:SetAlpha(1)
MiniMapMailFrame:SetAlpha(1)
MiniMapVoiceChatFrame:SetAlpha(1)
MiniMapLFGFrame:SetAlpha(1)
end
local function HideOnMouseOut()
MinimapZoneTextButton:SetAlpha(0)
--MiniMapTrackingButton:SetAlpha(0)
MiniMapTrackingButton:Hide()
MiniMapBattlefieldFrame:SetAlpha(0)
MiniMapMailFrame:SetAlpha(0)
MiniMapVoiceChatFrame:SetAlpha(0)
MiniMapLFGFrame:SetAlpha(0)
end]]
 
local function SetShape()
Minimap:SetMaskTexture("Interface\\AddOns\\PocketPlot\\media\\"..db.shape)
PocketPlot:SetBackdrop({ bgFile = "Interface\\AddOns\\PocketPlot\\media\\"..db.shape })
260,7 → 282,8
end)
 
--TRACKING ICON/MENU
MiniMapTrackingButton:SetAlpha(0)
--MiniMapTrackingButton:SetAlpha(0)
MiniMapTrackingButtonBorder:SetAlpha(0)
MiniMapTrackingBackground:Hide()
MiniMapTracking:ClearAllPoints()
MiniMapTracking:SetPoint("BOTTOMLEFT", Minimap, "BOTTOMLEFT", -4, -5) --where the tracking icon/menu is located
296,6 → 319,10
MinimapBorderTop:Hide()
 
CombatHide() --Check to see if we should hide the minimap in combat
 
--hide icons and zone text til mouseover
--Minimap:SetScript("OnEnter", function() if db.mouseover then ShowOnMouseover() end end)
--Minimap:SetScript("OnLeave", function() if db.mouseover then HideOnMouseOut() end end)
 
MinimapCluster:EnableMouse(false) --so you can still click the game world/turn in the upper right corner
 
320,33 → 347,33
coordframe:ClearAllPoints()
if not db.top then
if clockshown and not coordshown then
TimeManagerClockButton:SetPoint("TOP", Minimap, "BOTTOM", 0, 0)
TimeManagerClockButton:SetPoint("TOP", Minimap, "BOTTOM", 0, 0 + db.textOffset)
clockTime:SetJustifyH("CENTER")
end
if coordshown and not clockshown then
coords:SetJustifyH("CENTER")
coordframe:SetPoint("TOP", Minimap, "BOTTOM", 0, 0)
coordframe:SetPoint("TOP", Minimap, "BOTTOM", 0, 0 + db.textOffset)
end
if clockshown and coordshown then
TimeManagerClockButton:SetPoint("TOPLEFT", Minimap, "BOTTOMLEFT", 2, 0)
TimeManagerClockButton:SetPoint("TOPLEFT", Minimap, "BOTTOMLEFT", 2, 0 + db.textOffset)
clockTime:SetJustifyH("LEFT")
coords:SetJustifyH("RIGHT")
coordframe:SetPoint("TOPRIGHT", Minimap, "BOTTOMRIGHT", 0, 0)
coordframe:SetPoint("TOPRIGHT", Minimap, "BOTTOMRIGHT", 0, 0 + db.textOffset)
end
else
if clockshown and not coordshown then
TimeManagerClockButton:SetPoint("BOTTOM", Minimap, "TOP", 2, 0)
TimeManagerClockButton:SetPoint("BOTTOM", Minimap, "TOP", 2, 0 + db.textOffset)
clockTime:SetJustifyH("CENTER")
end
if coordshown and not clockshown then
coords:SetJustifyH("CENTER")
coordframe:SetPoint("BOTTOM", Minimap, "TOP", 0, 0)
coordframe:SetPoint("BOTTOM", Minimap, "TOP", 0, 0 + db.textOffset)
end
if clockshown and coordshown then
TimeManagerClockButton:SetPoint("BOTTOMLEFT", Minimap, "TOPLEFT", 0, 0)
TimeManagerClockButton:SetPoint("BOTTOMLEFT", Minimap, "TOPLEFT", 0, 0 + db.textOffset)
clockTime:SetJustifyH("LEFT")
coords:SetJustifyH("RIGHT")
coordframe:SetPoint("BOTTOMRIGHT", Minimap, "TOPRIGHT", 0, 0)
coordframe:SetPoint("BOTTOMRIGHT", Minimap, "TOPRIGHT", 0, 0 + db.textOffset)
end
end
end
699,6 → 726,20
end,
order = 23,
},
textOffset = {
name = "Offset",
desc = "Vertical offset for the clock and coordinates.",
type = "range",
min = -25,
max = 25,
step = 1,
get = function() return db.textOffset end,
set = function(_,offset)
db.textOffset = offset
CoordPosition()
end,
order = 23.5,
},
header3 = {
name = "Frame Locations",
type = "header",
trunk/PocketPlot/PocketPlot.toc
2,7 → 2,7
## Title: PocketPlot
## Author: Seerah
## Notes: Minimap customization
## Version: 2.12.1
## Version: 2.13
## X-Category: Minimap
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets
## SavedVariables: PocketPlotDB