forked from rilgamon/zz_Coords
Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Robin Hüskes | ff37e7abcb | |
robin | 997d689db5 | |
Gnarfoz (Christian Wissel) | 08a7819fcb |
20
core.lua
20
core.lua
|
@ -27,21 +27,19 @@ local function setPlayerCoords()
|
|||
child['playerCoords'] = playerCoords
|
||||
end
|
||||
local colorlist = {
|
||||
['friendly'] = "00ff00",
|
||||
['arena'] = "ffff00",
|
||||
['sanctuary'] = "9999ff",
|
||||
['arena'] = "ff1919",
|
||||
['combat'] = "ff1919",
|
||||
['hostile'] = "ff1919",
|
||||
['friendly'] = "19ff19",
|
||||
['sanctuary'] = "68ccef",
|
||||
['contested'] = "ffb200",
|
||||
}
|
||||
local function pvpColor(txt)
|
||||
local col
|
||||
local pvpType, isFFA, faction = GetZonePVPInfo()
|
||||
local pvpType = GetZonePVPInfo()
|
||||
if(colorlist[pvpType]) then
|
||||
col = colorlist[pvpType]
|
||||
elseif(pvpType == "hostile" or pvpType == "combat" or pvpType=="contested") then
|
||||
col = faction == select(2,UnitFactionGroup('player')) and "886600" or "ff0000"
|
||||
else
|
||||
return txt
|
||||
return child:colorize(txt, colorlist[pvpType])
|
||||
end
|
||||
return child:colorize(txt, col)
|
||||
return txt
|
||||
end
|
||||
local function OnDataUpdate()
|
||||
setPlayerCoords()
|
||||
|
|
Loading…
Reference in New Issue