WoWInterface SVN PocketPlot

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/PocketPlot
    from Rev 64 to Rev 65
    Reverse comparison

Rev 64 → Rev 65

pocketplot.lua
25,16 → 25,7
local TimeManagerClockFrame = TimeManagerClockFrame
PP_oldMinimap, PP_oldDurabilityFrame, PP_oldVehicleSeatIndicator = nil --, PP_oldWatchFrame = nil
local _G = _G
local mover = CreateFrame("Frame", nil, UIParent)
mover:SetBackdrop({bgFile ="Interface\\Buttons\\WHITE8x8",})
mover:SetBackdropColor(.2,.2,.9,.6)
mover:SetMovable(1)
mover:SetFrameStrata("HIGH")
mover:Hide()
local moverText = mover:CreateFontString(nil, "OVERLAY")
moverText:SetFont("Fonts\\ARIALN.ttf", 14)
moverText:SetParent(mover)
moverText:SetPoint("CENTER")
local mover
local coordframe = CreateFrame("Frame", nil, Minimap)
coordframe:SetHeight(28) --height of clock button
coordframe:SetWidth(100)
142,6 → 133,21
end
 
local function MoveFrames(frame)
local moverText
if not mover then
mover = CreateFrame("Frame", nil, UIParent)
mover:SetBackdrop({bgFile ="Interface\\Buttons\\WHITE8x8",})
mover:SetBackdropColor(.2,.2,.9,.6)
mover:SetMovable(1)
mover:SetFrameStrata("HIGH")
mover:Hide()
moverText = mover:CreateFontString(nil, "OVERLAY")
moverText:SetFont("Fonts\\ARIALN.ttf", 14)
moverText:SetParent(mover)
moverText:SetPoint("CENTER")
mover:SetScript("OnMouseDown", function() mover:StartMoving() end)
mover:SetScript("OnMouseUp", function() mover:StopMovingOrSizing() SetPosition(movershown) end)
end
if frame == "None" then
mover:Hide()
mover:EnableMouse(0)
156,7 → 162,7
end
 
local function SetPosition(frame)
if mover:IsShown() then
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
247,18 → 253,10
local oldOnClick = Minimap:GetScript("OnMouseUp")
Minimap:SetScript("OnMouseUp", function(self, click)
if click == "RightButton" then
--[[if not CalendarFrame then
LoadAddOn("Blizzard_Calendar")
end
if CalendarFrame:IsShown() then
CalendarFrame:Hide()
else
CalendarFrame:Show()
end
return]]
ToggleCalendar()
else
oldOnClick(self)
end
oldOnClick(self)
end)
 
--TRACKING ICON/MENU
526,11 → 524,6
end,
order = 3.5,
},
-- div1 = {
-- name = " ",
-- type = "description",
-- order = 4,
-- },
header2 = {
name = "Text options",
type = "header",
543,15 → 536,9
dialogControl = "LSM30_Font",
values = fonts,
get = function()
--[[for k,v in pairs(fonts) do
if v == db.lsmfont then
return k
end
end]]
return db.lsmfont
end,
set = function(_,font)
--db.lsmfont = fonts[font]
db.lsmfont = font
clockTime:SetFont(LSM:Fetch("font", db.lsmfont), db.clockSize, db.fontFlag)
MinimapZoneText:SetFont(LSM:Fetch("font", db.lsmfont), db.zoneSize, db.fontFlag)
690,11 → 677,6
end,
order = 13,
},
-- div2 = {
-- name = " ",
-- type = "description",
-- order = 13,
-- },
header3 = {
name = "Frame Locations",
type = "header",
821,11 → 803,6
type = "header",
order = 22,
},
--[[ warning = {
name = "\n|c00E30016WARNING:|r Changing any of the following options will cause your UI to be reloaded in the process!\n",
type = "description",
order = 22.5,
},]]--
charSpec = {
name = "Character specific settings",
desc = "Have this character use their own profile. If checked, any changes made will not affect other characters.\n\n|c00E30016WARNING:|r Your UI will be reloaded in the process!",
898,14 → 875,7
 
MapSetup()
CoordPosition()
 
-- --restore moved frame positions--
-- for i=1, #frames do
-- if db[frames[i]] then
-- SetPosition(frames[i])
-- end
-- end
 
 
PocketPlot:UnregisterEvent("PLAYER_LOGIN")
end
 
913,9 → 883,6
LSM:Register("font", "Negotiate Free", "Interface\\AddOns\\PocketPlot\\media\\negotiate_free.ttf")
 
 
mover:SetScript("OnMouseDown", function() mover:StartMoving() end)
mover:SetScript("OnMouseUp", function() mover:StopMovingOrSizing() SetPosition(movershown) end)
 
coordframe:SetScript("OnEnter", function(self)
GameTooltip:SetOwner(self, "ANCHOR_LEFT")
GameTooltip:AddLine("Location Functions", 1,1,1)
PocketPlot.toc
2,7 → 2,7
## Title: PocketPlot
## Author: Seerah
## Notes: Minimap customization
## Version: 2.11
## Version: 2.11.1
## X-Category: Minimap
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets
## SavedVariables: PocketPlotDB
libs/AceGUI-3.0/AceGUI-3.0.xml
1,26 → 1,28
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<Script file="AceGUI-3.0.lua"/>
<!-- Container -->
<Script file="widgets\AceGUIContainer-BlizOptionsGroup.lua"/>
<Script file="widgets\AceGUIContainer-DropDownGroup.lua"/>
<Script file="widgets\AceGUIContainer-Frame.lua"/>
<Script file="widgets\AceGUIContainer-InlineGroup.lua"/>
<Script file="widgets\AceGUIContainer-ScrollFrame.lua"/>
<Script file="widgets\AceGUIContainer-SimpleGroup.lua"/>
<Script file="widgets\AceGUIContainer-TabGroup.lua"/>
<Script file="widgets\AceGUIContainer-TreeGroup.lua"/>
<Script file="widgets\AceGUIContainer-Window.lua"/>
<!-- Widgets -->
<Script file="widgets\AceGUIWidget-Button.lua"/>
<Script file="widgets\AceGUIWidget-CheckBox.lua"/>
<Script file="widgets\AceGUIWidget-ColorPicker.lua"/>
<Script file="widgets\AceGUIWidget-DropDownGroup.lua"/>
<Script file="widgets\AceGUIWidget-DropDown.lua"/>
<Script file="widgets\AceGUIWidget-DropDown-Items.lua"/>
<Script file="widgets\AceGUIWidget-EditBox.lua"/>
<Script file="widgets\AceGUIWidget-Frame.lua"/>
<Script file="widgets\AceGUIWidget-Window.lua"/>
<Script file="widgets\AceGUIWidget-Heading.lua"/>
<Script file="widgets\AceGUIWidget-InlineGroup.lua"/>
<Script file="widgets\AceGUIWidget-Keybinding.lua"/>
<Script file="widgets\AceGUIWidget-ScrollFrame.lua"/>
<Script file="widgets\AceGUIWidget-SimpleGroup.lua"/>
<Script file="widgets\AceGUIWidget-Slider.lua"/>
<Script file="widgets\AceGUIWidget-TabGroup.lua"/>
<Script file="widgets\AceGUIWidget-TreeGroup.lua"/>
<Script file="widgets\AceGUIWidget-Heading.lua"/>
<Script file="widgets\AceGUIWidget-Icon.lua"/>
<Script file="widgets\AceGUIWidget-InteractiveLabel.lua"/>
<Script file="widgets\AceGUIWidget-Keybinding.lua"/>
<Script file="widgets\AceGUIWidget-Label.lua"/>
<Script file="widgets\AceGUIWidget-MultiLineEditBox.lua"/>
<Script file="widgets\AceGUIWidget-BlizOptionsGroup.lua"/>
<Script file="widgets\AceGUIWidget-InteractiveLabel.lua"/>
<Script file="widgets\AceGUIWidget-Icon.lua"/>
</Ui>
\ No newline at end of file +