Download
(15Kb)
Download
Updated: 07-28-18 11:07 PM
Pictures
File Info
Updated:07-28-18 11:07 PM
Created:02-13-09 03:58 PM
Downloads:33,389
Favorites:160
MD5:

Class Colors  Popular! (More than 5000 hits)

Version: 8.0.0.1
by: Phanx, Akkorian

I am no longer developing or maintaining World of Warcraft addons. I haven't played in years, and don't have the time or interest to continue working on addons for a game I don't play anymore. If you are an addon author interested in continuing one of my addons, please see https://phanx.net/addons/. If you are an addon user, sorry, but there won't be any more fixes or updates from me.
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 8.0.0.0
  • Updated default UI coloring module to remove code for parts of the UI removed in BFA.

Version 7.3.5.1
  • Removed debug messages

Version 7.3.5.0
  • Fixed an error when showing nameplates on enemy players
  • Moved the default UI coloring to a separate module that can be enabled or disabled independently of the main addon

Version 7.2.0.0
  • Updated for WoW 7.2

Version 7.1.0.0
  • Updated for WoW 7.1

Version 7.0.3.4
  • Fixed an error when opening the Mythic Dungeons window

Version 7.0.3.3
  • Fixed an error when opening the Mythic Dungeons window
  • Fixed enemy NPC nameplates using the warrior class color

Version 7.0.3.2
  • Fixed the appearance of the color swatches in the options panel

Version 7.0.3.1
  • Fixed an error when opening or changing the class filter in the heirloom journal

Version 7.0.3.0
  • Updated for WoW 7.0 (Legion)
Post A Reply Comment Options
Unread 01-23-10, 04:21 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
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.
Report comment to moderator  
Reply With Quote
Unread 01-22-10, 04:00 PM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar
Premium Member

Forum posts: 143
File comments: 433
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.
Report comment to moderator  
Reply With Quote
Unread 01-11-10, 11:30 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Version 3.3.0.26
  • Added coloring of class names in the channel pane of the chat config window
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: 1360
File comments: 829
Uploads: 56
Bug report filed for 3.3.0.22.
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: 7
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]
Report comment to moderator  
Reply With Quote
Unread 11-14-09, 06:57 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
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.
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
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: 12
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.
Report comment to moderator  
Reply With Quote
Unread 09-06-09, 07:16 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
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.
Report comment to moderator  
Reply With Quote
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: 12
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.
Report comment to moderator  
Reply With Quote
Unread 08-08-09, 04:52 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
@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.
Report comment to moderator  
Reply With Quote
Unread 08-08-09, 02:18 PM  
Strongbow
A Deviate Faerie Dragon
 
Strongbow's Avatar

Forum posts: 12
File comments: 95
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-
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: 1360
File comments: 829
Uploads: 56
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.
Report comment to moderator  
Reply With Quote
Unread 05-24-09, 05:33 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Fixed, along with the nil value error related to coloring the arena team list.
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?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: