Get an Epic Experience with Premium

Class Portraits ( ClassPortraitsFinal )

PvP Login to Add Favorites
  • 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
or

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...

Comments

First Previous Page 1 of 2 Next Last
  • #19

    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?

  • #21
    Quote from BladeCDN1 »

    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?

     

  • #20

     

    same here man.. anyone got  FIX?

  • #18

    I have conflic with addon oqueue and classportrait option.

    Can you check this plz ? :)

  • #17

    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

    Last edited by Tojjota on 12/29/2012 7:38:57 PM
  • #14

    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?

     

  • #15

    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. ~

  • #16

    This should work too (for line 3):

            if UnitIsPlayer(self.unit) and UnitGUID(self.unit)~=UnitGUID("player") then   

    Last edited by Veev on 7/4/2012 11:46:05 PM
  • #13
    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

    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?
  • #12
    is that possible to use this addon when am already using X-pearl? Id rly like have them both!
  • #8
    I'd like to have an addon that just puts a little square with the color of the class near the main frame to be able to see the faces of the players and the class at the same time. It's possible?
  • #9
    Try this addon http://wow.curse.com/downloads/wow-addons/details/classicon.aspx
  • #7
    Thx!
  • #11
    You're welcome ;).
  • #6
    it is not doing what it says in the screenshot for me in 4.0.6, i still get my portrait and then this addon puts another little on in the corner of it...i want it like in the screenshot, how do i do this or have you changed it?
  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Maingear

ENTER NOW