11 lines
888 B
Lua
11 lines
888 B
Lua
---@diagnostic disable: missing-return, lowercase-global
|
|
|
|
---@param unit string
|
|
---@param name string
|
|
---@return number red
|
|
---@return number green
|
|
---@return number blue
|
|
---@return number alpha
|
|
---Returns a color indicating hostility and related status of a unit. This color is used in various places in the default UI, such as the background behind a unit's name in the target and focus frames. For NPCs, the color reflects hostility and reputation, ranging from red (hostile) to orange or yellow (unfriendly or neutral) to green (friendly). When the unit is a player, a blue color is used unless the player is active for PvP, in which case the color may be red (he can attack you and you can attack him), yellow (you can attack him but he can't attack you) or green (ally). Color component values are floating point numbers between 0 and 1.
|
|
function UnitSelectionColor(unit, name) end
|