From d80d1f819ad99a88d751e1551400b143649dd853 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 24 Jul 2016 21:50:14 +0300 Subject: [PATCH] Attempt to fix coordinates panel being a bitch when GetPlayerMapPosition returns real coords too late. --- ElvUI_SLE/modules/minimap/minimapcoords.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/modules/minimap/minimapcoords.lua b/ElvUI_SLE/modules/minimap/minimapcoords.lua index c064ceb..a8f4ac3 100644 --- a/ElvUI_SLE/modules/minimap/minimapcoords.lua +++ b/ElvUI_SLE/modules/minimap/minimapcoords.lua @@ -32,8 +32,9 @@ function MM:UpdateCoords(elapsed) local x, y = CreateCoords() if x == "0" or x == "0.0" or x == "0.00" then x = "-" end if y == "0" or y == "0.0" or y == "0.00" then y = "-" end - MM.coordspanel.Text:SetText(x.." , "..y) - if not MM.coordspanel.FirstLoad then + local cString = x.." , "..y + MM.coordspanel.Text:SetText(cString) + if not MM.coordspanel.FirstLoad and cString ~= "- , -" then MM.coordspanel.FirstLoad = true MM:CoordsSize() end @@ -67,6 +68,7 @@ end function MM:CreateCoordsFrame() MM.coordspanel = CreateFrame('Frame', "SLE_CoordsPanel", E.UIParent) MM.coordspanel:Point("BOTTOM", _G["Minimap"], "BOTTOM", 0, 0) + -- MM.coordspanel:CreateBackdrop() E.FrameLocks["SLE_CoordsPanel"] = true; MM.coordspanel.Text = MM.coordspanel:CreateFontString(nil, "OVERLAY") -- 1.7.9.5