- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
6,152 Addons
-
Popular Downloads
- Top World of Warcraft Addons
- Top Minecraft Bukkit Plugins
- Top Rift Addons
- Top Skyrim Mods
- Top World of Tanks Skins
- Top Terraria Maps
- Top StarCraft II Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top The Secret World Mods
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Forums
- Store
Class Portraits ( ClassPortraitsFinal )
- 3 Likes
- World of Warcraft
- 2,265 Monthly Downloads
- Supports: 5.2.0
- 46,808 Total Downloads
- Updated 03/09/2013
- Created 10/26/2010
- 60 Favorites
- Project Site
- Comments
- Release Type: Release
- License: Public Domain
- Newest File: 5.2
About Class Portraits ( ClassPortraitsFinal )
=== Works with any patch version from 4.0.0 and up so far ===
A very small addon which shows class icon instead of a portrait for player-controlled characters (both your and opposing faction). Does not change portraits of pets, mobs and NPCs.
Here is the complete sourcecode (yes it is THAT small):
hooksecurefunc("UnitFramePortrait_Update",function(self)
if self.portrait then
if UnitIsPlayer(self.unit then
local t = CLASS_ICON_TCOORDS[select(2,UnitClass(self.unit]
if t then
self.portrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
self.portrait:SetTexCoord(unpack(t))
end
else
self.portrait:SetTexCoord(0,1,0,1)
end
end
end);
Should work with any localization. This addon is a lightweight alternative to ClassPortraits (currently not working for me in 4.0.1) and ClassIcons_Reborn addons. I found original script for this addon on Arena Junkies and modified it a bit (better textures, player characters filter).
NOTE:
Asignupsucks said (Sun Nov 28 2010, see in comments below):
If you add this after the second line [in World of Warcraft\Interface\Addons\ClassPortraitsFinal\ClassPortraitsFinal.lua], you will not see your own classicon, but still those of others:
if self.unit == "player" or self.unit == "pet" then return end
WoW version update to 5.2.
Addon Packs Containing This...
Top Downloads
-
- Deadly Boss Mods
- Combat, PvP, and Boss Encounters
- 1,578,120 Monthly Downloads
-
- Recount
- Combat
- 1,073,354 Monthly Downloads
-
- AtlasLoot Enhanced
- Map & Minimap, Professions, Arena, and Boss Encounters
- 688,848 Monthly Downloads
-
- Deadly Boss Mods - Burning Crusade and Vanilla mods
- Combat and Boss Encounters
- 548,392 Monthly Downloads
-
- Tidy Plates
- Artwork, Combat, Tank, and Unit Frames
- 466,499 Monthly Downloads

Comments
For me this addon is no longer showing what CC is on the target ie. Fear, sheep etc. I have only noticed this starting today. Anyone else have this issue or know how to fix it?
Same for me? any news?
same here man.. anyone got FIX?
I have conflic with addon oqueue and classportrait option.
Can you check this plz ? :)
anyone know how to swap your own class icon to any other pic. Say like watchmeblink have a trollface. Anyone?
Otherwise, great freaking addon. Best so far
Is it possible not to see your own class icon, if you are in target of your target or if you are in target of your focus?
Hey. I don't know anything about making Addons, but with the help of google I think I found a solution for this:
hooksecurefunc("UnitFramePortrait_Update",function(self)
if self.portrait then
if UnitIsPlayer(self.unit) and UnitName(self.unit)~="Mario" and UnitName(self.unit)~="Luigi" and UnitName(self.unit)~="Peach" then
local t = CLASS_ICON_TCOORDS[select(2,UnitClass(self.unit))] (...etc.)
Obviously, you'd have to manually add all your characters to this list and I'm sure there's an easier way to do this, but it works for me. I guess if you encounter a player from a different server with the same name, you'd be seeing his normal portrait aswell. Also, since I don't play a hunter atm I don't know about the pets, you might want to also add Asignupsucks's line. ~
This should work too (for line 3):
if UnitIsPlayer(self.unit) and UnitGUID(self.unit)~=UnitGUID("player") then
if self.unit == "player" or self.unit == "pet" then return end
Had this working before for just my pet. (if self.unit == "pet" then return end), but now I can't get it to work for the life of me. Anyone willing to help?