Cleanup pvpColor function

This commit is contained in:
Robin Hüskes 2022-12-09 17:04:08 +01:00
parent 997d689db5
commit ff37e7abcb
1 changed files with 3 additions and 9 deletions

View File

@ -35,17 +35,11 @@ local colorlist = {
['contested'] = "ffb200",
}
local function pvpColor(txt)
local col
local pvpType, isFFA, faction = GetZonePVPInfo()
local pvpType = GetZonePVPInfo()
if(colorlist[pvpType]) then
col = colorlist[pvpType]
else
col = "ffd100"
--ffecc1 from ZoneText.lua, the one in the middle of the screen when changing areas
--ffd100 from MiniMap.lua, which uses NORMAL_FONT_COLOR
--Which one is "more correct"?
return child:colorize(txt, colorlist[pvpType])
end
return child:colorize(txt, col)
return txt
end
local function OnDataUpdate()
setPlayerCoords()