Code format

This commit is contained in:
2025-05-04 14:32:03 +02:00
parent c0337ef97f
commit 93b45ac12e
3012 changed files with 8372 additions and 9301 deletions

View File

@@ -1,10 +1,10 @@
---@diagnostic disable: missing-return, lowercase-global
---@param unit string
---@param name string
---@return number red
---@return number green
---@return number blue
---@return number alpha
---@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
function UnitSelectionColor(unit, name) end