Emulator Server Guides Guides for working with World of Warcraft Emulator servers. Learn how to create a WoW Server here.
[NO QUESTIONS HERE]
06-27-2009
Master Sergeant
Join Date: Jul 2008
Posts: 96
Reputation: 55
Level up: 2%, 494 Points needed
[Tutorial] How to have colors on your menu (LUA)
Here is a guide on how to add colors to your npc menu.
I will be showing you how to put color text on your menu without having to do c++ scripting.
Its very simple.
Menu->AddItem(0, "
|cffff6060 NameOfThePlace
|r ", 3);
Notice the text in red?
This is what you add into to change the color of the text.
cffff6060 is the color of the text. Which is a bright red almost a pink.
Here's another example.
unit:GossipMenuAddItem(2, "
|cFF00FFFF Nothing Personal Mall", 4, 0)
Notice after "Nothing Personal Mall" I didn't put a "lr"
Well this is not needed to have color text.
If you want to change the color so something different here is a list of different colors.
Code:
GREY "|cff888888"
WHITE "|cffffffff"
SUBWHITE "|cffbbbbbb"
MAGENTA "|cffff00ff"
YELLOW "|cffffff00"
CYAN "|cff00ffff"
LIGHTRED "|cffff6060"
LIGHTBLUE "|cff00ccff"
BLUE "|cff0000ff"
GREEN "|cff00ff00"
RED "|cffff0000"
GOLD "|cffffcc00"
ALICEBLUE"|cFFF0F8FF"
ANTIQUEWHITE"|cFFFAEBD7"
AQUA "|cFF00FFFF"
AQUAMARINE "|cFF7FFFD4"
AZURE "|cFFF0FFFF"
BEIGE "|cFFF5F5DC"
BISQUE"|cFFFFE4C4"
BLACK "|cFF000000"
BLANCHEDALMOND "|cFFFFEBCD"
BLUE "|cFF0000FF"
BLUEVIOLET "|cFF8A2BE2"
BROWN "|cFFA52A2A"
BURLYWOOD"|cFFDEB887"
CADETBLUE"|cFF5F9EA0"
CHARTREUSE "|cFF7FFF00"
CHOCOLATE"|cFFD2691E"
CORAL "|cFFFF7F50"
CORNFLOWERBLUE "|cFF6495ED"
CORNSILK "|cFFFFF8DC"
CRIMSON "|cFFDC143C"
CYAN "|cFF00FFFF"
DARKBLUE "|cFF00008B"
DARKCYAN "|cFF008B8B"
DARKGOLDENROD "|cFFB8860B"
DARKGRAY "|cFFA9A9A9"
DARKGREEN"|cFF006400"
DARKKHAKI"|cFFBDB76B"
DARKMAGENTA "|cFF8B008B"
DARKOLIVEGREEN "|cFF556B2F"
DARKORANGE "|cFFFF8C00"
DARKORCHID "|cFF9932CC"
DARKRED "|cFF8B0000"
DARKSALMON "|cFFE9967A"
DARKSEAGREEN"|cFF8FBC8B"
DARKSLATEBLUE "|cFF483D8B"
DARKSLATEGRAY "|cFF2F4F4F"
DARKTURQUOISE "|cFF00CED1"
DARKVIOLET "|cFF9400D3"
DEEPPINK "|cFFFF1493"
DEEPSKYBLUE "|cFF00BFFF"
DIMGRAY "|cFF696969"
DODGERBLUE "|cFF1E90FF"
FIREBRICK"|cFFB22222"
FLORALWHITE "|cFFFFFAF0"
FORESTGREEN "|cFF228B22"
FUCHSIA "|cFFFF00FF"
GAINSBORO"|cFFDCDCDC"
GHOSTWHITE "|cFFF8F8FF"
GOLD "|cFFFFD700"
GOLDENROD"|cFFDAA520"
GRAY "|cFF808080"
GREEN "|cFF008000"
GREENYELLOW "|cFFADFF2F"
HONEYDEW "|cFFF0FFF0"
HOTPINK "|cFFFF69B4"
INDIANRED"|cFFCD5C5C"
INDIGO"|cFF4B0082"
IVORY "|cFFFFFFF0"
KHAKI "|cFFF0E68C"
LAVENDER "|cFFE6E6FA"
LAVENDERBLUSH "|cFFFFF0F5"
LAWNGREEN"|cFF7CFC00"
LEMONCHIFFON"|cFFFFFACD"
LIGHTBLUE"|cFFADD8E6"
LIGHTCORAL "|cFFF08080"
LIGHTCYAN"|cFFE0FFFF"
LIGHTGRAY"|cFFD3D3D3"
LIGHTGREEN "|cFF90EE90"
LIGHTPINK"|cFFFFB6C1"
LIGHTRED "|cFFFF6060"
LIGHTSALMON "|cFFFFA07A"
LIGHTSEAGREEN "|cFF20B2AA"
LIGHTSKYBLUE"|cFF87CEFA"
LIGHTSLATEGRAY "|cFF778899"
LIGHTSTEELBLUE "|cFFB0C4DE"
LIGHTYELLOW "|cFFFFFFE0"
LIME "|cFF00FF00"
LIMEGREEN"|cFF32CD32"
LINEN "|cFFFAF0E6"
MAGENTA "|cFFFF00FF"
MAROON"|cFF800000"
MEDIUMAQUAMARINE "|cFF66CDAA"
MEDIUMBLUE "|cFF0000CD"
MEDIUMORCHID"|cFFBA55D3"
MEDIUMPURPLE"|cFF9370DB"
MEDIUMSEAGREEN "|cFF3CB371"
MEDIUMSLATEBLUE"|cFF7B68EE"
MEDIUMSPRINGGREEN "|cFF00FA9A"
MEDIUMTURQUOISE"|cFF48D1CC"
MEDIUMVIOLETRED"|cFFC71585"
MIDNIGHTBLUE"|cFF191970"
MINTCREAM"|cFFF5FFFA"
MISTYROSE"|cFFFFE4E1"
MOCCASIN "|cFFFFE4B5"
NAVAJOWHITE "|cFFFFDEAD"
NAVY "|cFF000080"
OLDLACE "|cFFFDF5E6"
OLIVE "|cFF808000"
OLIVEDRAB"|cFF6B8E23"
ORANGE"|cFFFFA500"
ORANGERED"|cFFFF4500"
ORCHID"|cFFDA70D6"
PALEGOLDENROD "|cFFEEE8AA"
PALEGREEN"|cFF98FB98"
PALETURQUOISE "|cFFAFEEEE"
PALEVIOLETRED "|cFFDB7093"
PAPAYAWHIP "|cFFFFEFD5"
PEACHPUFF"|cFFFFDAB9"
PERU "|cFFCD853F"
PINK "|cFFFFC0CB"
PLUM "|cFFDDA0DD"
POWDERBLUE "|cFFB0E0E6"
PURPLE"|cFF800080"
RED"|cFFFF0000"
ROSYBROWN"|cFFBC8F8F"
ROYALBLUE"|cFF4169E1"
SADDLEBROWN "|cFF8B4513"
SALMON"|cFFFA8072"
SANDYBROWN "|cFFF4A460"
SEAGREEN "|cFF2E8B57"
SEASHELL "|cFFFFF5EE"
SIENNA"|cFFA0522D"
SILVER"|cFFC0C0C0"
SKYBLUE "|cFF87CEEB"
SLATEBLUE"|cFF6A5ACD"
SLATEGRAY"|cFF708090"
SNOW "|cFFFFFAFA"
SPRINGGREEN "|cFF00FF7F"
STEELBLUE"|cFF4682B4"
TAN"|cFFD2B48C"
TEAL "|cFF008080"
THISTLE "|cFFD8BFD8"
TOMATO"|cFFFF6347"
TRANSPARENT "|c00FFFFFF"
TURQUOISE"|cFF40E0D0"
VIOLET"|cFFEE82EE"
WHEAT "|cFFF5DEB3"
WHITE "|cFFFFFFFF"
WHITESMOKE "|cFFF5F5F5"
YELLOW"|cFFFFFF00"
YELLOWGREEN "|cFF9ACD32"
Credits go to Skreem of ac-web
Original post : [Only registered and activated users can see links. ]
Last edited by [pwn]age; 07-18-2009 at 12:36 PM .
Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.
06-27-2009
Contributor
Join Date: Jul 2007
Location: Sweden
Posts: 328
Reputation: 250
Level up: 6%, 659 Points needed
Ah nice, I like this + rep
06-27-2009
Master Sergeant
Join Date: Jul 2008
Posts: 96
Reputation: 55
Level up: 2%, 494 Points needed
thanks
, its always nice to add color to things
06-27-2009
Sergeant Major
Join Date: Mar 2009
Posts: 171
Reputation: 11
Level up: 82%, 92 Points needed
Shove a
Cookie down your throat.
06-27-2009
Master Sergeant
Join Date: Jul 2008
Posts: 96
Reputation: 55
Level up: 2%, 494 Points needed
he, so brutal :P
07-02-2009
New User
Join Date: Aug 2008
Posts: 14
Reputation: 0
just what i was searching for ages of this! tnx for the guide + rep
07-02-2009
Contributor
Join Date: Mar 2008
Posts: 61
Reputation: 81
Level up: 32%, 343 Points needed
I think you can also choose your own color which is not in the list by looking up the hex color(
[Only registered and activated users can see links. ] ) and adding the prefix |cff
Anyways good work
07-03-2009
Master Sergeant
Join Date: Jul 2008
Posts: 96
Reputation: 55
Level up: 2%, 494 Points needed
thanks
. glad this helped
07-06-2009
New User
Join Date: Aug 2007
Location: Memphis, TN
Posts: 29
Reputation: 2
Level up: 16%, 424 Points needed
07-17-2009
Sergeant
Join Date: Apr 2007
Posts: 54
Reputation: 17
Umm thanks for giving me credit for my post.. You completly ripped this off from me. I do not mind if people post my work, but they need to atleast give credit to me. I will be requesting for a mod to take this post down... Or just simply give me credit for my post....
07-18-2009
Master Sergeant
Join Date: Jul 2008
Posts: 96
Reputation: 55
Level up: 2%, 494 Points needed
edited for credits. and onesbronson. stfu and dont be a dick
07-18-2009
Web Developer
Legendary User Join Date: Jun 2007
Location: British Columbia
Posts: 2,270
Reputation: 627
Points: 18,578, Level: 18
Level up: 52%, 722 Points needed
Shame for ripping!
For those that don't know, this is just standard C++-colors, just like seen in the core;
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -4. The time now is 09:10 PM .