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",
|
['contested'] = "ffb200",
|
||||||
}
|
}
|
||||||
local function pvpColor(txt)
|
local function pvpColor(txt)
|
||||||
local col
|
local pvpType = GetZonePVPInfo()
|
||||||
local pvpType, isFFA, faction = GetZonePVPInfo()
|
|
||||||
if(colorlist[pvpType]) then
|
if(colorlist[pvpType]) then
|
||||||
col = colorlist[pvpType]
|
return child:colorize(txt, 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"?
|
|
||||||
end
|
end
|
||||||
return child:colorize(txt, col)
|
return txt
|
||||||
end
|
end
|
||||||
local function OnDataUpdate()
|
local function OnDataUpdate()
|
||||||
setPlayerCoords()
|
setPlayerCoords()
|
||||||
|
|
Loading…
Reference in New Issue