Code format
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
---@diagnostic disable: missing-return, lowercase-global
|
||||
|
||||
---@param unit string
|
||||
---@return string class
|
||||
---@return string classFileName
|
||||
---@return number classIndex
|
||||
---@param unit string
|
||||
---@return string class
|
||||
---@return string classFileName
|
||||
---@return number classIndex
|
||||
---Returns a unit's class. The second return (classFileName) can be used for locale-independent verification of a unit's class, or to look up class-related data in various global tables: RAID_CLASS_COLORS provides a standard color for each class (as seen in the default who, guild, calendar, and raid UIs) CLASS_ICON_TCOORDS provides coordinates to locate each class' icon within the "Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes" texture For non-player units, the first return (class) will be the unit's name; to always get a localized class name regardless of unit type, use UnitClassBase instead.
|
||||
---@overload fun(name: string)
|
||||
function UnitClass(unit) end
|
||||
function UnitClass(unit) end
|
||||
|
Reference in New Issue
Block a user