View Single Post
02-19-23, 11:51 AM   #4
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Code:
colorChatNamesByClass
is the CVar controlling class colors on player names.

The actual color information you can get for any player unit where you can get to their baseClass
through
Code:
_, baseClass = GetPlayerInfoByGUID(guid)
or
Code:
 _, baseClass = UnitClass(unit)
then
Code:
local classColorTable = RAID_CLASS_COLORS[baseClass]
So when you have a valid UnitId or GUID you can get their class information and from that the color information.
  Reply With Quote