GithubHelp home page GithubHelp logo

phanx-wow / classcolors Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 1.0 159 KB

WoW AddOn — Change class colors without breaking parts of the default UI.

Home Page: https://www.curseforge.com/wow/addons/classcolors

License: Other

Lua 100.00%
world-of-warcraft lua

classcolors's Introduction

ClassColors

EN — Change class colors without breaking parts of the default UI.
DE — Ändert die Klassenfarben ohne Interferenzen mit dem Standard-UI.
ES — Cambiar los colores de clases, sin interferir con la interfaz estandár.
FR — Modifier les couleurs de classe sans casser l'interface Blizzard.
IT — Modificare i colori di classe senza rompere l'interfaccia utente Blizzard.
PT — Alterar as cores das classes, sem interferir com a interface padrão.
RU — Изменение цветов класса не вмешиваясь в стандартном интерфейсе.
KR — 블리자드 UI를 변경하지 않고 클래스의 색상을 변경합니다.
CN — 改变职业颜色不会破坏暴雪的界面.
TW — 改變職業顏色而不需破壞暴雪UI。

Details

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 addon panel in the standard Interface Options window.

classcolors's People

Contributors

armordecai avatar fafaraway avatar nebularg avatar phanx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

juemrami

classcolors's Issues

Chat not using class colors.

sins I love this addon so much and realy love costumize colors for class I wanne help out point thing I encounter.

Updated to latest one avalible on twitch/curse
Following parts not using class colors wich did before 8.0
1: Chat general channel, party ect ect.
2: New communitys / guild list including chat history.
3: Worldmap + minimap
4: chat channels window.

Addons that support class colors working fine.

Recent lua errors...

Greetings !

I've been using ClassColors for some time now, without any problems, up until very recently... I now encounter several lua errors each time I come in sight of any other player while friendly (custom class colored) nameplates are 'on'. See below for those errors, which of course stack each time any nameplate is crossed on screen... I don't play PvP much, so I can't tell if it would also affect enemy nameplates or not. Anyway, switching off all nameplates or using " /console ShowClassColorInFriendlyNameplate 0 " does solve that (minor) problem - 'minor', since it doesn't seem to affect much gameplay -, but testing "Class Colors" on any character, without any other addon, even on a fresh WTF (Cache, etc.) folder, doesn't change anything. So I'm left to suspect that a small recent patch change has broken Class Colors' habits...

Thank you in advance for any help ! And thanks for your work anyway... Cheers !
Benjamin

Error 1), the most frequent one, which appears even without any other addon :

Message: Interface\AddOns!ClassColors\ClassColorsBlizz.lua:107: attempt to call method 'SetStatusBarColor' (a nil value)
Time: 12/08/17 00:21:19
Count: 9
Stack: Interface\AddOns!ClassColors\ClassColorsBlizz.lua:107: attempt to call method 'SetStatusBarColor' (a nil value)
[C]: in function SetStatusBarColor' Interface\AddOns\!ClassColors\ClassColorsBlizz.lua:107: in function <Interface\AddOns\!ClassColors\ClassColorsBlizz.lua:100> [C]: in function CompactUnitFrame_UpdateHealthColor'
Interface\FrameXML\CompactUnitFrame.lua:287: in function CompactUnitFrame_UpdateAll' Interface\FrameXML\CompactUnitFrame.lua:174: in function CompactUnitFrame_SetUnit'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:342: in function OnAdded' ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:86: in function OnNamePlateAdded'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:44: in function <...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:35>

Locals:

Error 2) :

Message: Interface\AddOns!ClassColors\ClassColorsBlizz.lua:107: attempt to call method 'SetStatusBarColor' (a nil value)
Time: 12/08/17 00:23:57
Count: 1
Stack: Interface\AddOns!ClassColors\ClassColorsBlizz.lua:107: attempt to call method 'SetStatusBarColor' (a nil value)
[C]: in function SetStatusBarColor' Interface\AddOns\!ClassColors\ClassColorsBlizz.lua:107: in function <Interface\AddOns\!ClassColors\ClassColorsBlizz.lua:100> [C]: in function CompactUnitFrame_UpdateHealthColor'
Interface\FrameXML\CompactUnitFrame.lua:95: in function <Interface\FrameXML\CompactUnitFrame.lua:53>

Locals:

Error 3) :

Message: Interface\AddOns!ClassColors\ClassColorsBlizz.lua:107: attempt to call method 'SetStatusBarColor' (a nil value)
Time: 12/08/17 00:32:45
Count: 1
Stack: Interface\AddOns!ClassColors\ClassColorsBlizz.lua:107: attempt to call method 'SetStatusBarColor' (a nil value)
[C]: in function SetStatusBarColor' Interface\AddOns\!ClassColors\ClassColorsBlizz.lua:107: in function <Interface\AddOns\!ClassColors\ClassColorsBlizz.lua:100> [C]: in function CompactUnitFrame_UpdateHealthColor'
Interface\FrameXML\CompactUnitFrame.lua:287: in function <Interface\FrameXML\CompactUnitFrame.lua:281>
[C]: in function CompactUnitFrame_UpdateAll' Interface\FrameXML\CompactUnitFrame.lua:205: in function CompactUnitFrame_SetUpFrame'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:108: in function ApplyFrameOptions' ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:323: in function UpdateNamePlateOptions'
Interface\FrameXML\InterfaceOptionsPanels.lua:1324: in function setFunc' Interface\FrameXML\InterfaceOptionsPanels.lua:89: in function <Interface\FrameXML\InterfaceOptionsPanels.lua:85> [C]: in function pcall'
Interface\FrameXML\InterfaceOptionsFrame.lua:217: in function <Interface\FrameXML\InterfaceOptionsFrame.lua:216>
[C]: in function `securecall'
Interface\FrameXML\InterfaceOptionsFrame.lua:252: in function <Interface\FrameXML\InterfaceOptionsFrame.lua:248>

Locals:

Error 4) :

Message: Interface\AddOns!ClassColors\ClassColorsBlizz.lua:107: attempt to call method 'SetStatusBarColor' (a nil value)
Time: 12/08/17 23:14:41
Count: 2
Stack: Interface\AddOns!ClassColors\ClassColorsBlizz.lua:107: attempt to call method 'SetStatusBarColor' (a nil value)
[C]: in function SetStatusBarColor' Interface\AddOns\!ClassColors\ClassColorsBlizz.lua:107: in function <Interface\AddOns\!ClassColors\ClassColorsBlizz.lua:100> [C]: in function CompactUnitFrame_UpdateHealthColor'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:186: in function `OnUnitFactionChanged'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:64: in function <...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:35>

Locals:

Error if ClassColorsBlizz enabled but not ClassColors

The former references CUSTOM_CLASS_COLORS which is created by the latter. So, if just the former is enabled, you'll get an error when trying to access that global. Here's a trimmed-down version of the error report I ended up getting from a user as a result:

Message: ...erface/AddOns/!ClassColorsBlizz/ClassColorsBlizz.lua:400: attempt to index global 'CUSTOM_CLASS_COLORS' (a nil value)
Time: 05/21/18 17:54:16 (9798718)
Client: 7.3.5
Locale: enUS
Combat: false
Error Count: 1
Stack Trace:
    erface/AddOns/!ClassColorsBlizz/ClassColorsBlizz.lua:400: <AddMessage>
    TSM/Core/Lib/Addon.lua:138: <Addon.lua:137>
    TSM/Core/Lib/Addon.lua:147: <Addon.lua:145>
    TSM/Core/Lib/Addon.lua:151: <Addon.lua:150>
    TSM/Old_Modules/Mailing/Inbox.lua:577: <PrintOpenMailMessage>
    TSM/Old_Modules/Mailing/Inbox.lua:633: <Inbox.lua:592>
    TSM/Core/Lib/Threading.lua:499: <Threading.lua:496>
Addons:
    Altoholic (r183)
    Auctionator (4.0.19)
    !ClassColorsBlizz (7.3.5.1)
    ConsLegion (1.28)
    DataStore (r64)
    Details ()
    Details_DmgRank ()
    Details_DeathGraphs ()
    Details_DpsTuning ()
    Details_EncounterDetails ()
    Details_RaidCheck ()
    Details_TimeAttack ()
    Details_TinyThreat ()
    Details_Vanguard ()
    Details_Streamer ()
    Details_RaidInfo-EmeraldNightmare ()
    Details_RaidInfo-Nighthold ()
    Details_RaidInfo-TombOfSargeras ()
    Details_RaidInfo-TrialOfValor ()
    Details_ChartViewer ()
    Dominos (7.3.2)
    DontCast (1.4.2)
    HHTD (2.4.6)
    Jamba (5.4.1)
    PartyAbilityBars ()
    TalentSetManager ()
    TomTom (v70300-1.0.0)
    TSM (815786a)
    TSM_AppHelper (a8f2b46)

Addon.lua:138 is doing DEFAULT_CHAT_FRAME:AddMessage("...")

New Update Nice but spam in Gchat tab and FPS drops.

New update is nice, I see custom class colors blibs on world map actualy custom colors (minimap sadly not this is still blizzard class colors) how ever there is spam message in 1 of chat windows says.

GetUnitColor party1 PALADIN
GetUnitColor party1 PALADIN
GetUnitColor party1 PALADIN (for like 50 times, this was only with 1 party member)

message

this is on my shown on my Guid only chat windows not on any other window I use for chats.

says different classes depending on how many are in your group in pvp I had all different classes there.

I also think this causes huge FPS drops when in lage group ( I notice sins today that AV was exremly low FPS wich normal did not had)

Their is no LUA error so gues something should not be like this?

!ClassColors\ClassColorsBlizz.lua:663: hooksecurefunc():

Apologies, I don't know enough about code to know if this is a TradeSkillMaster issue or a ClassColors issue.

Happens when I attempt to open a professions window handled by TSM.

This is on 7.0.3.

4x !ClassColors\ClassColorsBlizz.lua:663: hooksecurefunc(): TradeSkillGuildCraftersFrame_Update is not a function
[C]: in function `hooksecurefunc'
!ClassColors\ClassColorsBlizz.lua:663: in function `func'
!ClassColors\ClassColorsBlizz.lua:702: in function <!ClassColors\ClassColorsBlizz.lua:697>
[C]: in function `resume'
TradeSkillMaster\CoreAPI\Threading.lua:335: in function `RunThread'
TradeSkillMaster\CoreAPI\Threading.lua:440: in function <TradeSkillMaster\CoreAPI\Threading.lua:370>

Locals:

Error 8.0

Message: ...erface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:355: attempt to index global 'ChatConfigChatSettingsClassColorLegend' (a nil value)
Time: Wed Jul 18 23:13:04 2018
Count: 1
Stack: ...erface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:355: attempt to index global 'ChatConfigChatSettingsClassColorLegend' (a nil value)
...erface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:355: in main chunk

Locals: _ = "!ClassColorsBlizz"
ns =

{
}
strfind = defined =[C]:-1
format = defined =[C]:-1
gsub = defined =[C]:-1
strmatch = defined =[C]:-1
strsub = defined =[C]:-1
pairs = defined =[C]:-1
type = defined =[C]:-1
addonFuncs =
{
Blizzard_Calendar = defined @interface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:33
Blizzard_Collections = defined @interface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:131
Blizzard_TradeSkillUI = defined @interface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:320
Blizzard_GuildUI = defined @interface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:204
Blizzard_InspectUI = defined @interface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:218
Blizzard_RaidUI = defined @interface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:252
Blizzard_Commentator = defined @interface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:162
Blizzard_ChallengesUI = defined @interface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:79
}
blizzHexColors =
{
ffc41e3a = "DEATHKNIGHT"
ffc69b6d = "WARRIOR"
ff3fc6ea = "MAGE"
ffff7c0a = "DRUID"
ff8787ed = "WARLOCK"
ffffffff = "PRIEST"
ffa330c9 = "DEMONHUNTER"
fffff468 = "ROGUE"
ff0070dd = "SHAMAN"
ff00ff96 = "MONK"
ffaad372 = "HUNTER"
fff48cba = "PALADIN"
}
ColorLegend = defined @interface\AddOns!ClassColorsBlizz\ClassColorsBlizz.lua:348
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) =
{
colorStr = "fffff468"
GetRGB = defined @interface\SharedXML\Util.lua:615
OnLoad = defined @interface\SharedXML\Util.lua:604
b = 0.41
GenerateHexColorMarkup = defined @interface\SharedXML\Util.lua:646
WrapTextInColorCode = defined @interface\SharedXML\Util.lua:650
GenerateHexColor = defined @interface\SharedXML\Util.lua:642
GetRGBA = defined @interface\SharedXML\Util.lua:623
IsEqualTo = defined @interface\SharedXML\Util.lua:608
g = 0.96
r = 1
SetRGBA = defined @interface\SharedXML\Util.lua:631
GetRGBAsBytes = defined @interface\SharedXML\Util.lua:619
SetRGB = defined @interface\SharedXML\Util.lua:638
GetRGBAAsBytes = defined @interface\SharedXML\Util.lua:627
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index global 'ChatConfigChatSettingsClassColorLegend' (a nil value)"

This Addon is dead see alternative in comment

If anyone looking here for hopes get something like this again.

Well good new my friend made a WeakAuras thingy that changes everything to custom color you want even my long wish mini map and world map blips!

Community/guild chat history does not work sadly probably server side picked and can't be changed.

Link here below
https://wago.io/rTaXwRFqT

Enjoy!

Basic Classic Support

Im looking to get some basic support for classic (starting with classic era) setup.
There are no alternatives to this addon currently and alot of classic players would like to recolor shaman's specifically from pink to blue.

The add-on, on classic, seems to load and work fine after ignoring hooking onto some functions and frames that dont exist on the classic era client.

It shouldnt be too much of a hassle to get proper classic support going. But ,getting it not to error is an okay start.

My goal is to get a release of this addon on curseforge for the 1.15.x client and eventually the upcoming Cata classic client.

!ClassColors\ClassColorsBlizz.lua:516: Usage: GetClassInfo(ID)

Getting this error when going to the heirloom tab and trying to pick a class/spec to filter:

10x !ClassColors\ClassColorsBlizz.lua:516: Usage: GetClassInfo(ID)
[C]: in function `GetClassInfoByID'
!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'
Blizzard_Collections\Blizzard_Collections-1.0.lua:53: in function `CollectionsJournal_UpdateSelectedTab'
Blizzard_Collections\Blizzard_Collections-1.0.lua:7: in function `CollectionsJournal_SetTab'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals:
(*temporary) = nil

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.