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,488
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 11-01-10, 10:34 AM  
Haleth
This Space For Rent
 
Haleth's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1171
File comments: 1130
Uploads: 30
Is there any chance to extend the functionality to map blips, nameplates, and the character frame player name?
Haleth is online now Report comment to moderator  
Reply With Quote
Unread 10-16-10, 03:15 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4400
File comments: 2036
Uploads: 40
Version 4.0.1.33
  • Removed a function that no longer exists in WoW 4.0
  • Guild panel coloring hasn't been updated yet

I'll try to get an update for the guild panel out soon.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 10-15-10, 10:55 AM  
eiszeit
A Flamescale Wyrmkin
 
eiszeit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 141
File comments: 159
Uploads: 9
Using it. Loving it. <3
__________________
Lyn • I'm a mess of unfinished thoughts
eiszeit is offline Report comment to moderator  
Reply With Quote
Unread 07-16-10, 07:50 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4400
File comments: 2036
Uploads: 40
You are using an outdated, and thus unsupported, version of !ClassColors. The current version does not even have a file named ClassColorsExtras.lua. I just downloaded it myself from this page to verify, since your addon list claims you are running 3.3.3.29, but as expected, that file does not exist in the ZIP. Completely delete the addon, download a fresh copy, and reinstall it from that fresh copy.

__
Last edited by Phanx : 07-16-10 at 07:53 PM.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 07-16-10, 02:30 PM  
Elegant
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
3.3.5 Issue

Date: 2010-07-16 16:29:30
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\!ClassColors\ClassColorsExtras.lua line 107:
attempt to index field '?' (a nil value)
Debug:
[C]: ?
!ClassColors\ClassColorsExtras.lua:107:
!ClassColors\ClassColorsExtras.lua:94
[C]: FriendsList_Update()
..\FrameXML\FriendsFrame.lua:2053: FriendsFrame_CheckBattlenetStatus()
..\FrameXML\FriendsFrame.lua:1256: FriendsFrame_OnEvent()
[string "*:OnEvent"]:1:
[string "*:OnEvent"]:1
AddOns:
ClassColors, v3.3.3.29
Swatter, v5.8.4723 (CreepyKangaroo)
NPCScan, v3.3.5.3
NPCScanOverlay, v3.3.5.1
acbAuras, v09.12.16
acbCastBar, v09.12.16
acbFlightTimes, v09.12.16
acbGlobalCooldown, v09.12.16
acbMirror, v09.12.16
Acer2, v6.4
Achieved, v0.4
AckisRecipeList, v2.0-rc2
Align, v
AucAdvanced, v5.8.4723 (CreepyKangaroo)
AucDb, v5.1.DEV.3583
AucFilterBasic, v5.8.4723 (CreepyKangaroo)
AucFilterOutlier, v5.8.4723.2531
AucMatchUndercut, v5.8.4723.2531
AucStatClassic, v5.7.4568 (KillerKoala)
AucStatHistogram, v5.8.4723 (CreepyKangaroo)
AucStatiLevel, v5.8.4723 (CreepyKangaroo)
AucStatPurchased, v5.8.4723 (CreepyKangaroo)
AucStatSales, v5.8.4723.2842
AucStatSimple, v5.8.4723 (CreepyKangaroo)
AucStatStdDev, v5.8.4723 (CreepyKangaroo)
AucStatWOWEcon, v5.8.4723.2530
AucUtilAHWindowControl, v5.8.4723.3311
AucUtilAppraiser, v5.8.4723.2530
AucUtilAskPrice, v5.8.4723.3175
AucUtilAutoMagic, v5.8.4723.3142
AucUtilCompactUI, v5.8.4723.2530
AucUtilEasyBuyout, v5.8.4723.3583
AucUtilGlypher, v5.8.4723.2545
AucUtilItemSuggest, v5.8.4723.3108
AucUtilPriceLevel, v5.8.4723.2545
AucUtilScanButton, v5.8.4723.2530
AucUtilScanFinish, v5.8.4723.3576
AucUtilScanProgress, v5.8.4723.2530
AucUtilScanStart, v5.8.4723.2530
AucUtilSearchUI, v5.8.4723.3655
AucUtilSimpleAuction, v5.8.4723.4546
AucUtilVendMarkup, v5.8.4723.2530
AzCastBar, v10.06.27
Bagnon, v2.13.2
BagnonForever, v1.1.2
BagnonTooltips, v
Bartender4, v4.4.2-2-g3b02ee4
BeanCounter, v5.8.4723 (CreepyKangaroo)
BigBrother, v
BigBrotherReady, v
BonusScanner, v5.3
ButtonFacade, v3.3.325
ButtonFacadeApathy, v3.3.79
caelNamePlates, v
Cellular, v3.3.004
Chicchai, v3.3.1
Clique, v143
ColorTools, v
Configator, v5.1.DEV.130
CowTip, v
Cromulent, vv1.5.1
DamnChatTabs, v$Revision$
DBMBurningCrusade, v
DBMCore, v
DockingStation, v0.4.3 (Beta)
ElitistGroup, v
Enchantrix, v5.8.4723 (CreepyKangaroo)
EnchantrixBarker, v5.8.4723 (CreepyKangaroo)
EnhTooltip, v5.1.3715 (SnaggleTooth)
EnsidiaFails, v
EventAlert, v4.3.0
EveryQuest, v2.3r161-release
Factionizer, v30300.4
FishingBuddy, v0.9.8o
ForteCasting, v
ForteCooldown, v
ForteCore, v1.959.8
FortePaladin, v
ForteTimer, v
ForteVehicle, v
GatherMate, vv1.23
GBoT, v1.3.4a
GearScore, v3.1.17 - Release
Grid, v1.30300.1304
GupPet, v1.230
GupPetButtonFacade, v0.1
GupPetCollectMe, v
Informant, v5.8.4723 (CreepyKangaroo)
kgPanels, vv1.5
LibSharedMedia30, v3.0-50
LootFilter, v3.13.1
Mapster, v1.3.9
MoveAnything, v3.3.5-10
oGlow, v1.12
Omen, v3.0.9
OmniCC, v2.5.9
OPie, v
oRA3, v
Outfitter, v5.0b8
Overachiever, v0.54
PallyPower, vb3.2.16
Panda, v3.3.0.28
Parrot, vv1.10.17
pError, v30300.4-Release
PetListPlus, v
PitBull4, vv4.0.0-beta10
PitBull4Aggro, vv4.0.0-beta10
PitBull4Background, vv4.0.0-beta10
PitBull4BlankSpace, vv4.0.0-beta10
PitBull4CastBar, vv4.0.0-beta10
PitBull4CastBarLatency, vv4.0.0-beta10
PitBull4CombatFader, vv4.0.0-beta10
PitBull4CombatIcon, vv4.0.0-beta10
PitBull4CombatText, vv4.0.0-beta10
PitBull4DogTagTexts, vv4.0.0-beta10
PitBull4ExperienceBar, vv4.0.0-beta10
PitBull4HealthBar, vv4.0.0-beta10
PitBull4HideBlizzard, vv4.0.0-beta10
PitBull4HostilityFader, vv4.0.0-beta10
PitBull4LeaderIcon, vv4.0.0-beta10
PitBull4ManaSpark, vv4.0.0-beta10
PitBull4MasterLooterIcon, vv4.0.0-beta10
PitBull4Portrait, vv4.0.0-beta10
PitBull4PowerBar, vv4.0.0-beta10
PitBull4RaidTargetIcon, vv4.0.0-beta10
PitBull4RangeFader, vv4.0.0-beta10
PitBull4ReadyCheckIcon, vv4.0.0-beta10
PitBull4RoleIcon, vv4.0.0-beta10
PitBull4Sounds, vv4.0.0-beta10
pMinimap, v30300.8-Release
Postal, v3.3.2
Prat30, v3.3.22
Prat30HighCPUUsageModules, v
Prat30Libraries, v
QuestMyMap, v1.2.1
RaidAchievement, v1.034
RaidTracker, v2.2.62
RatingBuster, v
RealIDToons, vr40
Recount, v
SatrinaBuffFrame, v3.1
SharedMedia, v3.0
SharedMediaLib, v1.0
Skinner, vb3.12340.4
SLDataText, v3.2.5
SLDTStatline, v1.1.1
SlideBar, v5.8.4723 (CreepyKangaroo)
SnowfallKeyPress, v
Stubby, v5.8.4723 (CreepyKangaroo)
TimeToDie, v0.1 beta
WoWTexasHoldem, vv3.4.2
XLoot, v0.91.1
XLootMaster, v0.81
BlizRuntimeLib_enUS v3.3.5.30300 <us>
(ck=10c9)
Elegant is offline Report comment to moderator  
Reply With Quote
Unread 01-24-10, 06:59 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4400
File comments: 2036
Uploads: 40
No. As I've said previously, !ClassColors is about changing player class colors; functionality to change other colors falls outside of the scope, and will never be added. Other colors, such as power bar colors, and reaction colors (what are used for NPC unit colors) can be changed by overriding values in the default tables created and used by Blizzard code, as altering these tables does not taint any secure code paths. If you want to change them, simply do what you're already doing -- add your overrides to any addon's Lua file, or create a separate personal addon and stick the overrides in there.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 01-23-10, 07:35 AM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar

Forum posts: 142
File comments: 430
Uploads: 0
No errors, worked fine. I updated to latest. Any chance you can add a color picker for mana? For now, I added this code at the bottom of classcolors.lua to tweak the color and it's working:

Code:
PowerBarColor.MANA.r = 26/255
PowerBarColor.MANA.g = 139/255
PowerBarColor.MANA.b = 255/255
Also, is there a way to change the bar color for pets and NPCs? I have a warlock and my Felguard shows as a green health bar, but not sure technically which class he aligns to. Most NPCs show as a green bar too. Do you know what code would be needed to adjust that color (perhaps similar to above)?
Last edited by Toran : 01-23-10 at 07:38 AM.
Toran is offline Report comment to moderator  
Reply With Quote
Unread 01-23-10, 04:21 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4400
File comments: 2036
Uploads: 40
You're several versions out of date, then, and your copy should be generating tons of errors in WoW 3.3. That commented stuff was just left over from before the addon was developed for public release, and wasn't intended to stick around as long as it did. I do change the mana bar color in my UI, but not from !ClassColors, nor is that something !ClassColors will ever (intentionally) do.
Last edited by Phanx : 01-23-10 at 04:22 AM.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 01-22-10, 04:00 PM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar

Forum posts: 142
File comments: 430
Uploads: 0
Hi Phanx. Noticed a commented area at the bottom of classcolors.lua. I uncommented it out and it gave me a much softer blue for the mana bar, whicih I liked from !Lyncolors. I assume you left it there so we could uncomment it and use? Seems like a much better default color than the standard darker blue mana color.
Toran is offline Report comment to moderator  
Reply With Quote
Unread 01-11-10, 11:30 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4400
File comments: 2036
Uploads: 40
Version 3.3.0.26
  • Added coloring of class names in the channel pane of the chat config window
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 12-13-09, 04:20 AM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1191
File comments: 780
Uploads: 82
Bug report filed for 3.3.0.22.
Dridzt is offline Report comment to moderator  
Reply With Quote
Unread 12-08-09, 10:54 PM  
ElphieRAWR
A Deviate Faerie Dragon
 
ElphieRAWR's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 36
Uploads: 8
3.3

It appears 3.3 hasn't quite broken it, just made a lua error regarding LFMFrame_Update not existing appear on every reload/login.
Commenting out lines 244-266 of ClassColorsBlizz.lua "fixes" it.
Code:
--[[		hooksecurefunc("LFMFrame_Update", function()
			-- print("LFMFrame_Update")
			local button, class, color, _

			local n = GetNumLFGResultsProxy()
			local offset = FauxScrollFrame_GetOffset(LFMListScrollFrame)

			for i = 1, LFGS_TO_DISPLAY do
				if offset <= n then
					button = _G["LFMFrameButton"..i]
					if button:IsShown() then
						name, _, _, _, _, _, _, _, _, _, class = GetLFGResultsProxy(offset + i)
						if class then
							color = CUSTOM_CLASS_COLORS[class]
							if color then
								_G["LFMFrameButton"..i.."Class"]:SetTextColor(color.r, color.g, color.b)
							end
						end
					end
				end
			end
		end)
--]]
__________________
-- Elphie --
[Matanya of Arthas]
ElphieRAWR is offline Report comment to moderator  
Reply With Quote
Unread 11-14-09, 06:57 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4400
File comments: 2036
Uploads: 40
Re: healthbar

Originally posted by questionn
can i active this addon for the default ui bar ?
i need the healthbar colored by class
The purpose of this addon is to change class colors. Applying class colors to parts of the UI that are not colored by default, and whose function may be significantly altered by such application, is outside the scope of this addon. It would be fairly simple for you (or a programmer friend) to write an addon to apply class coloring to the default health bars, but it isn't something I'll add to Class Colors.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 10-22-09, 08:53 AM  
questionn
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
healthbar

hi,

can i active this addon for the default ui bar ?
i need the healthbar colored by class
questionn is offline Report comment to moderator  
Reply With Quote
Unread 09-07-09, 06:38 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
Replied to your bug report. Also, if you're expecting someone to change something for your sake, beginning your request with an insult is probably not the best approach.
I'm sorry, I wasn't aware it is seen that rude. English is not my first language.
Zergreth is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: