Quantcast
Download
(12 Kb)
Download
Updated: 07-23-16 08:17 PM
Pictures
File Info
Updated:07-23-16 08:17 PM
Created:02-13-09 03:58 PM
Downloads:13,742
Favorites:155
MD5:

Class Colors  Updated Today!  Popular! (More than 5000 hits)

Version: 7.0.3.0
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 繁體中文. You can add or update translations for any language on the CurseForge project page.

Feedback

Post a ticket on GitHub or post a comment on this page.

Reporting a bug? Please make sure you have the latest version of the addon from this page, and then include detailed instructions I can follow to reproduce the bug myself, whether the bug still happens when all other addons are disabled, and the exact text of the accompanying error message, if any.

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 the CUSTOM_CLASS_COLORS documentation for more details!

Version 7.0.3.0
  • Updated for WoW 7.0 (Legion)

Version 6.2.2.0
  • Updated for WoW 6.2.2
  • Added coloring for heirloom journal class filter dropdown
  • Added coloring for loot recipients in the boss banner frame

Version 6.0.3.24
  • Fixed coloring on the character frame level text
  • Added a workaround for some addons passing invalid GUIDs to GetColoredName

Version 6.0.3.23
  • Updated for Warlords of Draenor

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 CUSTOMCLASSCOLORS implementation, and want to propigate their changes to other addons through the CUSTOMCLASSCOLORS 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 CUSTOMCLASSCOLORS

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 (4)
File Name
Version
Size
Author
Date
6.2.2.0
12kB
Phanx
11-05-15 01:39 PM
6.0.3.24
11kB
Phanx
01-02-15 10:45 PM
6.0.3.23
14kB
Phanx
11-12-14 03:50 AM
5.4.8.101
12kB
Phanx
08-18-14 03:45 PM


Post A Reply Comment Options
Unread Today, 02:49 AM  
siweia
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 53
File comments: 66
Uploads: 6
Code:
Interface\AddOns\!ClassColors\ClassColorsBlizz.lua:516: Usage: GetClassInfo(ID)
Count: 1

Call Stack:
[C]: ?
[C]: in function `GetClassInfoByID'
Interface\AddOns\!ClassColors\ClassColorsBlizz.lua:516: in function `UpdateClassFilterDropDownText'
...Blizzard_Collections\Blizzard_HeirloomCollection.lua:43: in function <...Blizzard_Collections\Blizzard_HeirloomCollection.lua:19>
[C]: in function `SetShown'
...AddOns\Blizzard_Collections\Blizzard_Collections.lua:53: in function `CollectionsJournal_UpdateSelectedTab'
...AddOns\Blizzard_Collections\Blizzard_Collections.lua:86: in function <...AddOns\Blizzard_Collections\Blizzard_Collections.lua:80>
[C]: in function `Show'
Interface\FrameXML\UIParent.lua:2336: in function `SetUIPanel'
Interface\FrameXML\UIParent.lua:2177: in function `ShowUIPanel'
Interface\FrameXML\UIParent.lua:2048: in function <Interface\FrameXML\UIParent.lua:2044>
[C]: in function `SetAttribute'
Interface\FrameXML\UIParent.lua:2830: in function `ShowUIPanel'
Interface\FrameXML\UIParent.lua:2814: in function `ToggleFrame'
Interface\FrameXML\UIParent.lua:820: in function `ToggleCollectionsJournal'
[string "TOGGLECOLLECTIONS"]:1: in function <[string "TOGGLECOLLECTIONS"]:1>

I add a line "if not self.classFilter then return end" to fix it.
Last edited by siweia : 07-24-16 at 02:52 AM.
Report comment to moderator  
Reply With Quote
Unread 01-28-15, 09:15 PM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5274
File comments: 2212
Uploads: 46
Multiply by 255.
__________________
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!
Report comment to moderator  
Reply With Quote
Unread 01-28-15, 08:01 PM  
Minerv
A Black Drake
 
Minerv's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 89
File comments: 31
Uploads: 2
Heyo, been wanting to use this AddOn for a while, but with some other colors used in !LynColors, the ones Led++ used in Led v1, but he was using 0-1.0 RGB values and i have no idea on how to figure out how to get the same colors in 0-255 values.

Just asking here if you/someone has any idea about that?
Last edited by Minerv : 01-28-15 at 08:02 PM.
Report comment to moderator  
Reply With Quote
Unread 01-02-15, 10:44 PM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5274
File comments: 2212
Uploads: 46
Ah yeah, that's my fault, the Curse packager was being too slow and I had to leave, but didn't want to forget, so I just grabbed the ZIP from GitHub and (thought I) fixed it up to work. Fixed now!
__________________
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!
Report comment to moderator  
Reply With Quote
Unread 01-02-15, 06:00 PM  
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view AddOns

Forum posts: 646
File comments: 266
Uploads: 23
You made a typo when naming the AddOn folder, it's ClassColors instead of !ClassColors in the latest version.
__________________
All I see is strobe lights blinding me in my hindsight.
Report comment to moderator  
Reply With Quote
Unread 11-12-14, 03:50 AM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5274
File comments: 2212
Uploads: 46
Version 6.0.3.24
  • Fixed coloring on the character frame level text
  • Added a workaround for some addons passing invalid GUIDs to GetColoredName

Version 6.0.3.23
  • Updated for Warlords of Draenor
__________________
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 : 01-02-15 at 08:24 AM.
Report comment to moderator  
Reply With Quote
Unread 10-16-14, 08:44 AM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5274
File comments: 2212
Uploads: 46
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!
Report comment to moderator  
Reply With Quote
Unread 08-18-14, 03:46 PM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5274
File comments: 2212
Uploads: 46
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!
Report comment to moderator  
Reply With Quote
Unread 03-31-14, 08:23 PM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5274
File comments: 2212
Uploads: 46
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!
Report comment to moderator  
Reply With Quote
Unread 03-23-14, 06:30 PM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5274
File comments: 2212
Uploads: 46
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!
Report comment to moderator  
Reply With Quote
Unread 03-23-14, 07:10 AM  
Mayron
A Cobalt Mageweaver
 
Mayron's Avatar
AddOn Author - Click to view AddOns

Forum posts: 205
File comments: 1122
Uploads: 7
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.
Report comment to moderator  
Reply With Quote
Unread 12-23-13, 12:12 AM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5274
File comments: 2212
Uploads: 46
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!
Report comment to moderator  
Reply With Quote
Unread 12-22-13, 05:59 PM  
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 123
File comments: 93
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
Report comment to moderator  
Reply With Quote
Unread 12-21-13, 11:10 PM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5274
File comments: 2212
Uploads: 46
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.
Report comment to moderator  
Reply With Quote
Unread 12-12-13, 04:45 AM  
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5274
File comments: 2212
Uploads: 46
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!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: