Help

Class Colors

Miscellaneous Login to Add Favorites
  • 0 Likes
  • World of Warcraft
  • 17,064 Downloads
  • Supports: 4.2
  • 6 Average Daily Downloads
  • Created 2/7/2009 7:30:47 PM
  • Updated 7/1/2011 8:30:32 AM
  • 44 Favorites
  • Project Site
  • License: Some Rights Reserved
  • Release Type: Release
  • Newest File: 4.2.0.51
or

About Class Colors

Class Colors allows you to change class colors without tainting the Blizzard UI.

It is supported by many pouplar addons, and also applies your custom colors to parts of the default UI that are normally class-colored.

Options are available in the Interface Options window. You can type “/classcolors” to open the window directly to the Class Colors panel.

Localization

Class Colors is compatible with English, Deutsch, Español, Français, Русский, 한국어, 简体中文, and 正體中文 clients.

Frequently Asked Questions

If you have a question that isn’t answered here, feel free to post a comment!

How do I get class colors on my friends list?

Class Colors only colors parts of the default UI which are already colored. If you want to see names in other parts of the default UI colored by class, install an addon like Awbee’s FriendColor or yleaf’s yClassColor. Both of them will use any custom colors you set through Class Colors.

What’s wrong with addons like !ReTeal?

Addons like !ReTeal directly alter the Blizzard class color table, which causes all code which reads from that table to become “tainted”. Once this happens, Blizzard restrictions on code security cause certain parts of the UI to stop working. Some examples of problems caused by tainting the Blizzard class color table include being unable to view the raid panel while in combat, and being unable to set main tanks and main assists from the right-click menu in the raid panel.

Class Colors solves this problem by not touching Blizzard’s table at all. Instead, it creates a new table. Since this new table isn’t created or used by any Blizzard code, it doesn’t taint anything, and its values can be changed as much as you like. The downside is that any addon that would normally read from Blizzard’s table must be updated to check for the new table, and read from it instead if it exists.

How can I make my addon support Class Colors?

Essentially, all you need to do is check for and read from CUSTOM_CLASS_COLORS instead of RAID_CLASS_COLORS. However, due to the vagaries of addon load order, and the fact that Class Colors users can change class colors at any time, it is strongly recommended that you register for a callback when colors change, and delay caching class colors until the PLAYER_LOGIN event. See the API documentation for more details!

Bug Reports

If you encounter a problem with Class Colors, please submit a bug report ticket with the following information:

  • Addon version (ex: 4.0.1.11)
  • WoW client version and locale (ex: 4.0.1 enUS)
  • Description of the problem
  • Steps to reproduce the problem
  • Whether the problem occurs when all other addons are disabled
  • Exact text of any related error messages (without lists of local variables or installed addons, please!)
  • Screenshot, if the problem is graphical

Remember to check on your ticket after a few days, as I may need more information or ask you to try a possible solution.

Version 4.2.0.51
  • Updated for WoW 4.2
Version 4.1.0.49
  • Updated for WoW 4.1
  • Removed the IterateClasses metamethod since nobody uses it
  • Changed the GetColoredName override to more closely emulate the original Blizzard function, as requested by Funkydude on WowAce
Version 4.0.3.43
  • Fixed LFR browser and who list coloring
Version 4.0.3.40
  • Fixed raid panel coloring
Version 4.0.1.36
  • Someday I will remember to turn off debugging before posting a release...
Version 4.0.1.35
  • Updated Blizzard UI coloring for WoW 4.0
Version 4.0.1.33
  • Removed a function that no longer exists in WoW 4.0
  • Guild panel coloring hasn't been updated yet
Version 3.3.3.29
  • Player names in the raid panel will now always be colored correctly
  • Added additional checks to prevent GetPlayerInfoByGUID usage errors
Version 3.3.0.26
  • Added coloring of class names in the channel pane of the chat config window
Version 3.3.0.24
  • Added coloring of names in the LookingForRaid interface
  • Fixed drycode errors
Version 3.3.0.22
  • Updated for WoW 3.3
  • Removed coloring for parts of the UI that aren't normally colored. This functionality may or may not reappear in a separate addon at a later date.
Learn how to disable ads
Learn how to disable ads
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster Addon Downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse.com Experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Minecraft 3D Print Giveaway

Enter Now!