Class icons on nameplates

I’m partially colorblind and the default UI with all the class colors on nameplates gets really confusing.

All I want is a simple addon (preferably a macro script) that lets me add a class icon to the nameplates of enemy players in PvP.

I tried threatplates and it’s excessively overbloated with features I really don’t care about. It works okay in arena with a few players but is a pain to set up in BGs and Raids. I ended up deleting it.

I’ve been using this macro to get class icons to show up on portraits. Is there something similar to get those class icons to show up on nameplates?


/run hooksecurefunc(“SetPortraitTexture”,function(t,u) local c=CLASS_ICON_TCOORDS[select(2,UnitClass(u))] if c and UnitIsPlayer(u) then t:SetTexture(“Interface\TargetingFrame\UI-Classes-Circles”) else c={0,1,0,1} end t:SetTexCoord(unpack(c)) end)

https://wago.io/P1aKl8fSn

1 Like

Noob question.

Is that the full code for the program under the embed tab?

It’s a link to a Weak Aura import that will do what you want.

Nope. Just the instructions that tell the WA addon what to do.

Does anyone have the code for it?

You can see the code on the Editor tab (lines 6, 52, 103), it’s a lot more than what will fit in a macro.

Okay, thanks. If that’s too complicated, than what about the name colors? Is there a script that changes friendly nameplates to a single color like light blue while keeping the enemy nameplates with class specific colors? Something along the lines of this:

/console ShowClassColorInNameplate 1
/console ShowClassColorInEnemyNameplate 1
/reload

Is there something like that which will keep my friendly player nameplates the exact same color and keep the enemy nameplate color based on classes?

Just try the WeakAura, it’s not going to bite you. The literal worst case scenario is that it doesn’t do what you want.

I just don’t like all the bloat that comes with those addons.

The only thing I really want is a way to easily distinguish my enemies from my own team. If my team nameplates were all the same color while keeping the enemy nameplates like they are in the default user interface, I’d be happy.

1 Like

Then write your own addon to do it instead: https://addon.bool.no/
It’s more code than will fit in a macro.

/run C_CVar.SetCVar("ShowClassColorFriendlyInNameplate",0) C_CVar.SetCVar("ShowClassColorInEnemyNameplate",1)

That’ll disable friendly colors and enable enemy colors.

Okay, thanks.

That’s the best option for me until Blizzard adds class icons to nameplates.

Makes doing BGs easier.