Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(14 Kb)
Download
Updated: 11-12-14 03:50 AM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.3)
Updated:11-12-14 03:50 AM
Created:02-13-09 03:58 PM
Downloads:11,767
Favorites:153
MD5:
6.0.3

Class Colors  Popular! (More than 5000 hits)

Version: 6.0.3.23
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 6.0.3.23
  • Updated for Warlords of Draenor
Archived Files (1)
File Name
Version
Size
Author
Date
5.4.8.101
12kB
Phanx
08-18-14 03:45 PM


Post A Reply Comment Options
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
Unread 10-25-12, 12:13 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4747
File comments: 2139
Uploads: 43
This addon is called Class Colors for a reason. I have no plans to extend it to change reaction colors, reputation colors, power colors, or any other colors. The whole reason this addon exists is that you can't just overwrite values in the normal class colors table, or parts of the default UI stop working. That problem does not exist for other color tables, so you can just overwrite the values directly, and other addons don't need to include any special code to support it.

Reaction colors can be changed by overwriting the GameTooltip_UnitColor function and/or overwiting values in the FACTION_BAR_COLORS table. If you need help, post in the Lua/XML Help forum.
__________________
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-24-12, 06:36 PM  
daeger
A Murloc Raider

Forum posts: 4
File comments: 167
Uploads: 0
What I really need is a way to change reaction colors. That blinding neon blue for friendly player is a real eyesore.
daeger is offline Report comment to moderator  
Reply With Quote
Unread 10-21-12, 08:45 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4747
File comments: 2139
Uploads: 43
@Stanzilla:

Please don't post 500 lines of local variables and other junk in a comment. I deleted it, because it's not relevant (only the actual error message is relevant in 9999999999999/10000000000000 cases) and I don't want to have to scroll through it.

Anyway, that error can only occur if one of your other addons is doing something wrong, and calling ChatFrameN:AddMessage without actually providing a message. I know AtlasLoot used to cause that error years ago. I don't know what addon might be causing the problem for you (it may even be AtlasLoot) but it is caused by some other addon.
__________________
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-29-12, 02:14 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4747
File comments: 2139
Uploads: 43
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.
__________________
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-17-11, 08:07 AM  
devilArt
An Aku'mai Servant
 
devilArt's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 32
File comments: 123
Uploads: 1
raid/party member on the minimap and world map are still default color
devilArt is offline Report comment to moderator  
Reply With Quote
Unread 07-09-11, 10:37 AM  
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view AddOns

Forum posts: 115
File comments: 64
Uploads: 1
I posted a bug about the PaperDollFrame level being broken. Not sure if it tells you when you have new bugs on here or not. There's also a fix for it with it to make your life easier.
Dainton is offline Report comment to moderator  
Reply With Quote
Unread 07-01-11, 07:12 AM  
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 122
Uploads: 2
Version 4.2.0.51
  • Updated for WoW 4.2
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.” — Serbian proverb
Akkorian is offline Report comment to moderator  
Reply With Quote
Unread 06-29-11, 02:28 PM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1195
File comments: 781
Uploads: 82
4.2

Code:
local PLAYER_LEVEL = (PLAYER_LEVEL:gsub( "\124c%%s", "|cff%%02x%%02x%%02x"))
local PLAYER_LEVEL_NO_SPEC = (PLAYER_LEVEL_NO_SPEC:gsub( "\124c%%s", "|cff%%02x%%02x%%02x" ))
near the top of ClassColorsBlizz.lua should fix it for 4.2 (string.replace was removed)
Dridzt is offline Report comment to moderator  
Reply With Quote
Unread 11-26-10, 12:36 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4747
File comments: 2139
Uploads: 43
Version 4.0.3.40
  • Fixed raid panel coloring
Last edited by Phanx : 11-26-10 at 12:37 AM.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 11-20-10, 02:38 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4747
File comments: 2139
Uploads: 43
I'm not raiding currently, but I'll see if I can get some people together to check that out.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 11-19-10, 11:56 PM  
Grungra
A Murloc Raider

Forum posts: 8
File comments: 25
Uploads: 0
Class colors in blizzard's raid window

Since the last patch, the raid window was getting the colors wrong, if I moved people around from group to group they would take the same color as my character... if I played on mage they would all turn light blue, as hunter they would go all green. Did they change something on their code that would make that happen? No errors at all, just the coloring of all raiders regardless of class would end up being the same color as the character I had in raid at the time. It looks funny to have a raid full of the same class.

Disabled ClassColors and the problem went away.
Grungra is offline Report comment to moderator  
Reply With Quote
Unread 11-07-10, 12:11 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4747
File comments: 2139
Uploads: 43
Fixed. Someday I will remember to turn off debugging before posting a release...
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 11-06-10, 10:53 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9710
File comments: 607
Uploads: 25
debug print() statements were accidentally left in

For users: to get rid of the messages spamming your chat frame, open up ClassColorsBlizz.lua in any text editor, find each instance of the word print and place two dashes -- in front of it. There are about 13 of them.
__________________
"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 11-05-10, 03:57 AM  
Haleth
This Space For Rent
 
Haleth's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1173
File comments: 1140
Uploads: 31
That's fair enough. However, the character frame does have a class colored text in the default UI since 4.0.1. Ignore the missing textures in the screenshot.



Code:
function PaperDollFrame_SetLevel()
	local primaryTalentTree = GetPrimaryTalentTree();
	local classDisplayName, class = UnitClass("player"); 
	local classColor = CUSTOM_CLASS_COLORS[class];
	local classColorString = format("ff%.2x%.2x%.2x", classColor.r * 255, classColor.g * 255, classColor.b * 255);
	local specName;
	
	if (primaryTalentTree) then
		_, specName = GetTalentTabInfo(primaryTalentTree);
	end
	
	if (specName and specName ~= "") then
		CharacterLevelText:SetFormattedText(PLAYER_LEVEL, UnitLevel("player"), classColorString, specName, classDisplayName);
	else
		CharacterLevelText:SetFormattedText(PLAYER_LEVEL_NO_SPEC, UnitLevel("player"), classColorString, classDisplayName);
	end
end
As for the nameplates, it's strange that you've never seen them class colored. They should be for enemy players.
Last edited by Haleth : 11-05-10 at 04:11 AM.
Haleth is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: