forked from rilgamon/zz_Coords
Cleanup pvpColor function
This commit is contained in:
parent
997d689db5
commit
ff37e7abcb
12
core.lua
12
core.lua
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue