Minion Beta! - Help us test our new AddOn updater. Get it now!
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,460
Favorites:151
MD5:
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 10-16-14, 08:44 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
Update is coming. Just need to do a quick grep through the Blizz UI code and account for any changes.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 08-18-14, 03:46 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
Version 5.4.8.101
  • Added Russian translations from Yafis
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 03-31-14, 08:23 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
Version 5.4.7.94
  • Updated chat player name coloring for realm name changes in WoW 5.4.7
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 03-23-14, 06:30 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
The code in ClassColorsBlizz.lua is just a direct copy and paste of Blizzard's code, stripped down to only the coloring parts, and modified to use the custom colors instead of the default ones. It appears that Blizzard's function has changed a bit, though, so I will need to update. I'll do a quick review of the rest of the functions for changes, and try to get an update out tonight.

However, !ClassColors does not, and will never, add or change any functionality other than coloring. If you want to selectively add/remove server names differently than the default UI, you'll need to do that in your own code using a chat filter or by hooking ChatFrameN.AddMessage.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 03-23-14, 07:10 AM  
Mayron
A Chromatic Dragonspawn
 
Mayron's Avatar
AddOn Author - Click to view AddOns

Forum posts: 162
File comments: 989
Uploads: 6
Hey Phanx!

I found a bug with your addOn and wanted to know if it was happening to you or anyone else. This is a very odd issue as I did not think this addOn should be interfering with the chat box but someone reported while using my UI the following:

Originally Posted by Mightyconan
Also, did a fresh (completely removed old Addons, Fonts & WTF folders) install of latest MayronUI, and nothing else (yet). The chat is still displaying people's names as [Charname-Realmname]. I disabled all addons and its back to [Charname]. Enabled MayronUI/ClassColors only, and realmname returned. Definitely something in Mayron's code doing this, by process of elimination.
And I then found out it was not my addOn but "!ClassColors" as I disabled everything but this addOn and it does what this person described. I have installed the latest version of this addOn and still have the same issue. Is this a bug or is there any way to fix this? Thanks again

EDIT: I edited some code to fix the problem In the ClassColorsBlizz.lua I altered Lines 58-60 from:

Lua Code:
  1. if color then
  2.     return format("|c%s%s|r", color.colorStr, arg2)
  3. end


to:
Lua Code:
  1. if color then
  2.     local name, server = string.split("-", arg2)
  3.     if server == playerRealm then
  4.         return format("|c%s%s|r", color.colorStr, name)
  5.     else
  6.         return format("|c%s%s|r", color.colorStr, arg2)
  7.     end
  8. end

and I added at the very start of the file, below the documentation:
Lua Code:
  1. local playerRealm = GetRealmName()
  2. local arg1, arg2, arg3, arg4 = string.split(" ", playerRealm)
  3. playerRealm = string.join("", arg1, arg2, arg3, arg4)

That way it only shows the server name if the person is from a different server. It seemed annoying to say "TwistingNether" next to the persons name in the guild chat since I know all members are from my server (as well as trade chat).
Last edited by Mayron : 03-23-14 at 11:35 AM.
Mayron is online now Report comment to moderator  
Reply With Quote
Unread 12-23-13, 12:12 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
That sounds better!
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 12-22-13, 05:59 PM  
humfras
A Warpwood Thunder Caller
AddOn Author - Click to view AddOns

Forum posts: 97
File comments: 85
Uploads: 5
Class Colors lets you change class colors without breaking parts of the Blizzard UI.
deDE: Class Colors erlaubt das Ändern der Klassenfarben ohne Interferenzen mit dem Blizzard UI.
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker
humfras is offline Report comment to moderator  
Reply With Quote
Unread 12-21-13, 11:10 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
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.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Last edited by Phanx : 12-21-13 at 11:41 PM.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 12-12-13, 04:45 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
Version 5.4.2.88
  • Fixed an issue preventing player specialization names from appearing the inspect frame
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 12-08-13, 05:48 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
Version 5.4.1.87
  • Fixed an error on the PTR caused by Blizzard fixing a typo in a function name
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 11-30-13, 12:23 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
Version 5.4.1.86
  • Updated for WoW 5.4
  • Fixed coloring in the LFG cooldown list
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 07-08-13, 08:02 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
Version 5.3.0.83
  • Updated for WoW 5.3
  • Fixed coloring in Challenge Mode best times tooltips
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 03-05-13, 06:37 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
Version 5.2.0.80
  • Updated for WoW 5.2

I haven't actually looked around to see if 5.2 adds any new UI parts that need to be colored. If I notice any, or someone reports any, I'll post another update.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 12-05-12, 06:10 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4384
File comments: 2031
Uploads: 40
Version 5.1.0.78
  • Updated for WoW 5.1
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 10-25-12, 10:18 AM  
daeger
A Murloc Raider

Forum posts: 4
File comments: 167
Uploads: 0
Well thanks for pointing me in the right direction, it's just that there really aren't any addons that do status bar color changes and this seemed like the best place to ask.
daeger is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: