Download
(12 Kb)
Download
Updated: 08-18-14 03:45 PM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:08-18-14 03:45 PM
Created:02-13-09 03:58 PM
Downloads:11,302
Favorites:148
MD5:
5.4
Class Colors  Popular! (More than 5000 hits)
Version: 5.4.8.101
by: Phanx [More]
Class Colors lets you change class colors without breaking parts of the Blizzard UI.
Class Colors erlaubt das Ändern der Klassenfarben ohne Interferenzen mit dem Blizzard UI.
Cambiar los colores de clase sin romper la interfaz de usario de Blizzard.
Mudar as cores de classes sem quebrar a interface do usuário da Blizzard.
Изменение цветов класса не вмешиваясь в Blizzard UI.

It is supported by many popular addons, and also applies your custom colors to all parts of the Blizzard UI that are normally class-colored. If you want to colorize more parts of the Blizzard UI, check out yClassColors by yleaf.

Type “/classcolors” for options, or open the Class Colors panel in the Interface Options window.

Language Support

Works in all languages. The options panel is completely translated into English, Deutsch, Español, Português, and Русский; and partially translated into Français, Italiano, 한국어, 简体中文, and 繁體中文. If you can provide new or updated translations for any language, please post a comment.

Feedback

To report a bug, please make sure you have the latest version from this page, and then submit a ticket. Be sure to include detailed instructions I can follow to reproduce the bug myself; the exact text of the error message if there is one; and a screenshot if you think it may help.

For general comments or questions, post a comment.

How to make your addon support Class Colors

Basically, any time your addon would read a value from the RAID_CLASS_COLORS table, just look for a CUSTOM_CLASS_COLORS table and read from it instead.

If your addon uses a local upvalue for RAID_CLASS_COLORS, or builds a local cache table of class colors, you should update your upvalue or cache in response to the PLAYER_LOGIN event, and register for a callback to be notified when the user changes a class color.

Please do not check for the !ClassColors addon by name — eg. with GetAddOnInfo or IsAddOnLoaded — or set !ClassColors as a dependency for your addon. Use the methods described above.

See see the CUSTOM_CLASS_COLORS documentation for more details!
Version 5.4.8.101
  • Added Russian translations from Yafis

Version 5.4.7.94
  • Updated chat player name coloring for realm name changes in WoW 5.4.7

Version 5.4.2.90
  • Added a NotifyChanges method for addons that provide their own class color options UI, but not their own CUSTOM_CLASS_COLORS implementation, and want to propigate their changes to other addons through the CUSTOM_CLASS_COLORS system.
  • Added support for female-specific class names to the GetClassToken method, though I suspect nobody has ever actually used this method.

Version 5.4.2.88
  • Fixed an issue preventing player specialization names from appearing the inspect frame

Version 5.4.1.87
  • Fixed an error on the PTR caused by Blizzard fixing a typo in a function name

Version 5.4.1.86
  • Updated for WoW 5.4
  • Fixed coloring in the LFG cooldown list

Version 5.3.0.83
  • Updated for WoW 5.3
  • Fixed coloring in Challenge Mode best times tooltips

Version 5.2.0.80
  • Updated for WoW 5.2

Version 5.1.0.78
  • Updated for WoW 5.1

Version 5.0.4.76
  • Updated for WoW 5.0.4
  • Added better compatibility with other implementations of CUSTOM_CLASS_COLORS

Version 4.3.4.56
  • Raid and party member blips on the world map will now be recolored using your custom colors.
  • Due to Blizzard restrictions, it is not possible to recolor blips on the minimap.
  • Added Português (ptBR) localization.

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.
Archived Files (10)
File Name
Version
Size
Author
Date
5.4.7.94
12kB
Phanx
03-31-14 08:23 PM
5.4.2.90
12kB
Phanx
12-21-13 11:40 PM
5.4.2.89
12kB
Phanx
12-21-13 11:09 PM
5.4.2.88
12kB
Phanx
12-12-13 04:44 AM
5.4.1.87
12kB
Phanx
12-08-13 05:48 AM
5.4.1.86
12kB
Phanx
11-30-13 12:23 PM
5.3.0.83
12kB
Phanx
07-08-13 08:01 PM
5.2.0.80
12kB
Phanx
03-05-13 06:36 AM
5.1.0.78
11kB
Phanx
12-05-12 06:10 AM
5.0.4.76
11kB
Phanx
08-29-12 02:12 AM


Post A Reply Comment Options
Unread 09-06-09, 03:40 AM  
Zergreth
A Fallenroot Satyr
 
Zergreth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 24
File comments: 101
Uploads: 13
The implementation of the unit frame coloring is a bit poor, don't you think? By using SetTextColor() and only executing that bit of code when the unit is a player, you change the color to a class color permanently, resulting in random class colors if you target an NPC, depending on the class of your last player target.

Edit: Also submitted it as a bug.
Last edited by Zergreth : 09-06-09 at 03:44 AM.
Zergreth is offline Report comment to moderator  
Reply With Quote
Unread 08-08-09, 04:52 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4136
File comments: 1940
Uploads: 39
@Strongbow:

Please test with all other addons disabled; I see Factionizer at least mentioned in the error's stack trace, and Blizzard code shouldn't be calling the relevant function without parameters. If the error persists, post a bug report using the Bug Report button underneath the Download button. Otherwise, track down which addon is causing the problem by enabling addons until the problem comes back, and ask its author to fix it.
Last edited by Phanx : 08-08-09 at 04:54 PM.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 08-08-09, 02:18 PM  
Strongbow
A Deviate Faerie Dragon
 
Strongbow's Avatar

Forum posts: 11
File comments: 111
Uploads: 0
Getting this error with the latest version

Date: 2009-08-08 22:13:04
ID: 2
Error occured in: Global
Count: 20
Message: ..\AddOns\!ClassColors\ClassColorsBlizz.lua line 171:
Usage: GetPlayerInfoByGUID("playerGUID")
Debug:
[C]: ?
[C]: GetPlayerInfoByGUID()
!ClassColors\ClassColorsBlizz.lua:171: GetColoredName()
..\FrameXML\ChatFrame.lua:2490:
..\FrameXML\ChatFrame.lua:2471
[C]: ChatFrame_MessageEventHandler()
..\FrameXML\ChatFrame.lua:2288: FIZ_Orig_ChatFrame_OnEvent()
Factionizer\Factionizer.lua:5007: ChatFrame_OnEvent()
[string "*:OnEvent"]:1:
[string "*:OnEvent"]:1


I'm using Chatter as my addon but I think it has to do with the new name colouring that blizz put in 3.2.

-Strongbow-
Strongbow is offline Report comment to moderator  
Reply With Quote
Unread 05-25-09, 04:55 AM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1190
File comments: 784
Uploads: 82
Used the "Report Bug" feature to file a bug for the recent v3.1.2.13

Related to unitframe coloring when accepting a party invite.

Edit: 3.1.2.14 fixed this error.
Last edited by Dridzt : 05-28-09 at 02:45 AM.
Dridzt is online now Report comment to moderator  
Reply With Quote
Unread 05-24-09, 05:33 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4136
File comments: 1940
Uploads: 39
Fixed, along with the nil value error related to coloring the arena team list.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 05-23-09, 10:52 PM  
raskul
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
FriendsList_Update constantly being spammed in my chat box with the new update. Anyone else?
raskul is offline Report comment to moderator  
Reply With Quote
Unread 05-23-09, 10:16 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4136
File comments: 1940
Uploads: 39
3.1.2.11
  • Add coloring for friends list (online friends only)
  • Add coloring for arena team list (untested)
  • Add coloring for trade frame (player names)
  • Add coloring for inspect frame (player name)
  • Add coloring for unit frames (player names only)
Went ahead and finished up some extra goodies I've been working on. Note that arena team list coloring is untested, since I'm not on any arena teams. Please report any issues with it.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 05-23-09, 06:19 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4136
File comments: 1940
Uploads: 39
3.1.1.8a
  • Update license terms (see README)
This change was made primarily to prevent WoWMatrix from distributing my addon. If you are a compilation uploader whose compilation currently includes !ClassColors, please send an email "addons AT phanx DOT net" with the URL(s) where your compilation is available for permission to continue distributing my addon.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 02-15-09, 01:31 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4136
File comments: 1940
Uploads: 39
Originally posted by Zergreth
Edit: By the way, there's a locale error in the deDE table. The proper translation of death knight is Todesritter, not Todestritter.
Hah. I guess Babble has it wrong, then. Will fix soon.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 02-15-09, 05:12 AM  
Zergreth
A Fallenroot Satyr
 
Zergreth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 24
File comments: 101
Uploads: 13
Originally posted by Phanx
You can no longer view the raid panel while in combat, and you can no longer set main tanks or main assists from the raid panel right-click menu, for example. This occurs because all of the raid panel code is "secure", and in order for it to remain secure, everything that touches it must also be secure. RAID_CLASS_COLORS comes from Blizzard code, and is thus secure by default, but if an addon touches it, it becomes tainted, and taints anything else that's secure that uses it.

Addons that modify the friends frame can cause the same kind of taint, because they touch the social window (which the raid panel is part of). Basically, that whole part of Blizzard's code is written rather poorly, and is extremely susceptible to taint from a multitude of greatly varied sources.

I suspect that modifying RAID_CLASS_COLORS may also have something to do with the "action blocked" errors people receive that name random addons as having attempted to call the protected function LFGQuery()... since I haven't been modifying RAID_CLASS_COLORS, I haven't seen a single occurrence, while previously they occurred quite regularly at a rate of several per hour.
Ah, quite interesting. Thanks for the information. Guess I will use Class Colors instead of ReTeal then (:

Edit: By the way, there's a locale error in the deDE table. The proper translation of death knight is Todesritter, not Todestritter.
Last edited by Zergreth : 02-15-09 at 06:02 AM.
Zergreth is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 05:14 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4136
File comments: 1940
Uploads: 39
Originally posted by Zergreth
I would like to have some details here. What does it break, and why (if possible)?
You can no longer view the raid panel while in combat, and you can no longer set main tanks or main assists from the raid panel right-click menu, for example. This occurs because all of the raid panel code is "secure", and in order for it to remain secure, everything that touches it must also be secure. RAID_CLASS_COLORS comes from Blizzard code, and is thus secure by default, but if an addon touches it, it becomes tainted, and taints anything else that's secure that uses it.

Addons that modify the friends frame can cause the same kind of taint, because they touch the social window (which the raid panel is part of). Basically, that whole part of Blizzard's code is written rather poorly, and is extremely susceptible to taint from a multitude of greatly varied sources.

I suspect that modifying RAID_CLASS_COLORS may also have something to do with the "action blocked" errors people receive that name random addons as having attempted to call the protected function LFGQuery()... since I haven't been modifying RAID_CLASS_COLORS, I haven't seen a single occurrence, while previously they occurred quite regularly at a rate of several per hour.
Last edited by Phanx : 02-14-09 at 05:18 PM.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 03:34 PM  
Zergreth
A Fallenroot Satyr
 
Zergreth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 24
File comments: 101
Uploads: 13
Originally posted by Seerah
Yes, changing RAID_CLASS_COLORS taints the raid UI immensely. Which is precisely why this addon was developed (so that you're not doing that).
I would like to have some details here. What does it break, and why (if possible)?
Zergreth is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 11:24 AM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9564
File comments: 584
Uploads: 25
Yes, changing RAID_CLASS_COLORS taints the raid UI immensely. Which is precisely why this addon was developed (so that you're not doing that).
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

[SIGPIC][/SIGPIC]
Seerah is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 09:22 AM  
Zergreth
A Fallenroot Satyr
 
Zergreth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 24
File comments: 101
Uploads: 13
Still not completely sure about this. Would changing the RAID_CLASS_COLORS global break any Blizzard UI elements?
Last edited by Zergreth : 02-14-09 at 09:22 AM.
Zergreth is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 08:39 AM  
MoonWitch
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 342
File comments: 147
Uploads: 8
Very much so.

MoonWitch is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: