WoWInterface SVN zz_Coords

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 71 to Rev 72
    Reverse comparison

Rev 71 → Rev 72

trunk/zz_Coords/core.lua
33,24 → 33,11
end
return info
end
local function bfa_func()
if(C_Map and C_Map.GetPlayerMapPosition) then
local mapID = C_Map.GetBestMapForUnit("player")
if(mapID) then
return C_Map.GetPlayerMapPosition(mapID,"player")
end
else
local x,y = GetPlayerMapPosition("player")
return {
['x'] = x,
['y'] = y
}
end
end
local function setPlayerCoords()
local tab = bfa_func()
if(tab) then
local x,y = tab['x'],tab['y']
local function setPlayerCoords(mapID,x,y)
playerCoords = "-, -"
mapID = C_Map.GetBestMapForUnit("player")
if(mapID) then
x,y = C_Map.GetPlayerMapPosition(mapID,"player"):GetXY()
if(x) then
if(y) then
playerCoords = format("%.1f, %.1f", x*100, y*100)
58,7 → 45,6
end
end
end
 
local function pvpColor(txt)
local pvpType, isFFA, faction = GetZonePVPInfo()
if(pvpType == "friendly") then
trunk/zz_Coords/provider.lua
43,12 → 43,13
end
coordText:SetText(str)
if(not db['hideMapCoords']) then
mapframe:SetWidth(coordText:GetStringWidth()+4)
mapframe:SetPoint("BOTTOMLEFT", WorldMapFrame, "BOTTOMLEFT", db['windowX'], db['windowY'])
mapframe:Show()
else
mapframe:Hide()
end
mapframe:SetWidth(coordText:GetStringWidth()+4)
mapframe:SetPoint("BOTTOMLEFT", WorldMapFrame, "BOTTOMLEFT", db['windowX'], db['windowY'])
 
end
end
function zzDataProvider:OnAdded(owningMap)