mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 22:20:00 +00:00
minimap/panel: consistent player coordinates
This commit is contained in:
+6
-2
@@ -352,14 +352,18 @@ pfUI:RegisterModule("panel", function ()
|
||||
|
||||
function pfUI.panel:UpdateZone ()
|
||||
local tooltip = function ()
|
||||
local posX, posY = GetPlayerMapPosition("player")
|
||||
local real = GetRealZoneText()
|
||||
local sub = GetSubZoneText()
|
||||
GameTooltip:ClearLines()
|
||||
GameTooltip_SetDefaultAnchor(GameTooltip, this)
|
||||
GameTooltip:AddLine("|cffffffff" .. real)
|
||||
GameTooltip:AddLine(sub)
|
||||
GameTooltip:AddLine("|cffaaaaaa" .. round(posX*100,1) .. " / " .. round(posY*100,1))
|
||||
|
||||
local posX, posY = GetPlayerMapPosition("player")
|
||||
if posX ~= 0 and posY ~= 0 then
|
||||
GameTooltip:AddLine("|cffaaaaaa" .. round(posX * 100, 1) .. ", " .. round(posY * 100, 1))
|
||||
end
|
||||
|
||||
GameTooltip:Show()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user