Retrieving chat message color code
I would like to download from the system the color code of messages in the chat window, e.g. the color of WHISPER or YELL messages. I think in the function GetCVar() it can do it, just I don't know the right parameter. Can anyone help?
|
Quote:
|
Yes, it is helpful. Thank you.
How about determining the color of the player's link? |
Code:
colorChatNamesByClass The actual color information you can get for any player unit where you can get to their baseClass through Code:
_, baseClass = GetPlayerInfoByGUID(guid) Code:
_, baseClass = UnitClass(unit) Code:
local classColorTable = RAID_CLASS_COLORS[baseClass] |
Thank you, Dridzt. It's work.
|
All times are GMT -6. The time now is 01:10 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI