How to get a channel chat color?
Hello,
I found ChangeChatColor("channelname", red, green, blue) tu change a channel chat color, but I didn't find how to retreive a channel's color, something like: Code:
r,g,b = GetChatColor("channelname") |
You can use Chat_GetChannelColor()
For example Code:
local r, g, b = Chat_GetChannelColor(ChatTypeInfo.CHANNEL1) |
Well,
Code:
local r, g, b = Chat_GetChannelColor(ChatTypeInfo.CHANNEL1) Besides, UPDATE_CHAT_COLOR only returns lots of nil values. Any tips of how to get the RGB color of, for instance, "OFFICER" channel? |
There is GetChannelName()
For Officer that would be this, it should be available after at least PLAYER_ENTERING_WORLD Lua Code:
Lua Code:
|
Great, just what I needed :)
Thank you very much Ketho! |
All times are GMT -6. The time now is 09:18 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI