WoWInterface SVN PocketPlot

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 86 to Rev 87
    Reverse comparison

Rev 86 → Rev 87

trunk/PocketPlot/PocketPlot.toc
2,7 → 2,7
## Title: PocketPlot
## Author: Seerah
## Notes: Minimap customization
## Version: 3.1
## Version: 3.1.1
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets
## SavedVariables: PocketPlotDB
## SavedVariablesPerCharacter: PocketPlotPCDB
trunk/PocketPlot/pocketplot.lua
86,12 → 86,12
end
end
 
local throttle, posData = 0
local throttle = 0
local function UpdateCoords(self, elapsed)
throttle = throttle + elapsed
if throttle >= .3 then
local mapID = GetBestMapForUnit("player")
posData = GetPlayerMapPosition(mapID, "player") --posData:GetXY() ?
local posData = GetPlayerMapPosition(mapID, "player")
if posData then
coords:SetFormattedText("%.1f/%.1f", posData.x*100, posData.y*100)
else
224,11 → 224,10
ChatFrame1EditBox:SetFocus()
ChatFrame1EditBox:Insert("["..coords:GetText().."]")
else
ToggleFrame(WorldMapFrame)
ToggleWorldMap()
end
end)
coordframe:Hide() --prevent OnUpdate from running until we're ready
SetMapToCurrentZone() --force update for GetPlayerMapPosition()
coordframe:SetScript("OnUpdate", UpdateCoords)
if db.coords then
coordframe:Show()