Thread Tools Display Modes
10-19-05, 10:44 AM   #1
Ego
A Deviate Faerie Dragon
 
Ego's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 15
color codes

Can anyone provide documentation or details about the various formatting
codes available for changing color, etc? Something that looks like |CFFFFFFFF.

I'd like to know what options are available and when/where they can be used.

I've looked for resources on it, but everything I've learned is from
looking at source code.

Thanks for the help.
  Reply With Quote
10-19-05, 11:02 AM   #2
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
Only bits I know which you've likely found out:

|cAARRGGBB

AA is alpha 00-FF, RR,GG,BB are red, green, blue

But there are limitations to when it can be used. For instance you can't /say, /emote, etc color codes. And in macros they don't reliably work with a DEFAULT_CHAT_FRAME:AddMessage, but buried in a mod the same command seems to work fine. Never found out why.

Doesn't help much but hopefully someone who knows the format better can explain.
  Reply With Quote
10-19-05, 11:03 AM   #3
Devla
A Cobalt Mageweaver
 
Devla's Avatar
AddOn Compiler - Click to view compilations
Join Date: Mar 2005
Posts: 206
Ta-Da!

http://noz.day-break.net/webcolor/

"|cffff6060blahtext|r"

You need the |c at the beginning and |r at the end

|ccolorblahtext|r
__________________
RETIRED Author

Last edited by Devla : 10-19-05 at 11:07 AM.
  Reply With Quote
10-19-05, 11:37 AM   #4
Ego
A Deviate Faerie Dragon
 
Ego's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 15
Originally Posted by Gello
Only bits I know which you've likely found out:.
I did figure out color already. I've also seen references to something like |h
for hyperlinks (used when sending a linked object through chat so other
people can see it's stats). But I have no use for that one. Mostly
wondering if there are other options available. For instance,
I didn't know |r ended the color until recently. Although I don't
actually use it in my current code.

Anyone know if bold or italic text is possible or other formatting options?

And how can you send a message that has the literal "|c" in it? Does
"||c" work or will all occurances of "|c" be treated as a color markup?
  Reply With Quote
10-19-05, 12:33 PM   #5
Beladona
A Molten Giant
 
Beladona's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 539
might already know this, but color codes work in your toc files. You can color code the title of your mod so that it is colored in the addons window. Useful if you have a suite of addons such as CT mode, where you can color the CT a different color to identify it as the suite id...
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » color codes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off