Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
The color codes are like this: |cff000000Text|r
This will return: Text
Their structure is like this: |cffRRGGBBText|r
So, if you would like to have, for example, the text being red it will look like this: |cffff0000Text|r
There are alot of Colorizer tools out there, where you type in smth, choose your color and then press generate. It will give you the desired results.
JNGP even has a integrated colorizer inside the object editor.
We can change the colour of: Tooltips, Messages, Dialogs, Map names, Ability descriptions, and basically anything else that is identified as text (type: string) in Warcraft 3.
Hex numbers:
The hexadecimal system uses 16 numeric characters: 0 1 2 3 4 5 6 7 8 9 A B C D E F
Numbers 0 through 9 are just like our regular numbers. Then there are 6 extra characters, represented by letters A through F. A=10 B=11 C=12 D=13 E=14 F=15
Using just two digits, you can express 256 different numbers in hex:
* (4) The starting tag is always |cff. |c means start the colour and ff would be the alpha value, but since texts cannot have transparency, these 2 characters are actually obsolete.
* (2) Red tone, determines how much red is in the colour 00-ff
* (2) Green tone, determines how much green is in the colour 00-ff
* (2) Blue tone, determines how much blue is in the colour 00-ff
* (x) The text itself, can be of any length.
* (2) The closing tag is |r it turns the text colour back to white, can be omitted, acts exactly like |cffffffff.
In one sentence: Colours are applied with |cTTRRGGBBx|r, where |c starts the colour, TT is useless, RR is red, GG is green, BB is blue, x is the coloured text itself and |r stops the colour.
Common Colours:
There is no official standard for colour code format, I have seen them in lower-, upper- and even mixed-case. I suggest using lowercase hex codes, because all Blizzard-made tooltips are in lowercase and XHTML strictly enforces lowercase hex codes as well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.