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,213
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 08-02-16, 04:52 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
I'll look into it when I get a chance, but I still have addons that are completely broken to update, and it doesn't affect the nameplate addon I use (Kui Nameplates), so it's not a high priority right now, sorry.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 08-01-16, 07:34 AM  
Päron
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hey there, got a minor issue that's bothering me a tiny bit.
The enemy nameplates of dummies and mobs are taking on the warrior classcolor. If i change that in anyway it also changes the colors of those, even with default settings.

I'm not using any addons that could interfere with nameplates since I'm using blizzard default nameplates. But just incase I also disabled every other addon and with only just classcolors on it's still acting this way.
Cleared the cache and went through the troubleshooting guide, and I got no luck there. Not getting any LUA errors of any kind.
Report comment to moderator  
Reply With Quote
Unread 07-24-16, 02:49 AM  
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view AddOns

Forum posts: 126
File comments: 195
Uploads: 14
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
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Multiply by 255.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
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
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
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!
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
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: 648
File comments: 204
Uploads: 4
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
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
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
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
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
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Update is coming. Just need to do a quick grep through the Blizz UI code and account for any changes.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 08-18-14, 03:46 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Version 5.4.8.101
  • Added Russian translations from Yafis
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 03-31-14, 08:23 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Version 5.4.7.94
  • Updated chat player name coloring for realm name changes in WoW 5.4.7
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 03-23-14, 06:30 PM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Report comment to moderator  
Reply With Quote
Unread 03-23-14, 07:10 AM  
Mayron
A Frostmaul Preserver
 
Mayron's Avatar
AddOn Author - Click to view AddOns

Forum posts: 275
File comments: 1200
Uploads: 12
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
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
That sounds better!
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
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: 131
File comments: 126
Uploads: 8
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
Post A Reply



Category Jump: