Class icon

Class icons are images used to symbolize each class. A "second version" of class icons were designed by SwagDog for the SwagDog Class Icon Custom T-Shirt Contest.

Set texture of a frame to a class icon in LUA
The following code example displays the class icon of the player on myframe:

myframe.icon = myframe:CreateTexture(nil,"CENTER"); -- create texture as child of myframe

myframe.icon:SetAllPoints(myframe); -- copy dimensions of myframe to icon

local _,class = UnitClass("player"); -- get non-localized class name

myframe.icon:SetTexture("Interface\\GLUES\\CHARACTERCREATE\\UI-CHARACTERCREATE-CLASSES"); -- this is the image containing all class icons

local coords = CLASS_ICON_TCOORDS[class]; -- get the coordinates of the class icon we want

myframe.icon:SetTexCoord(unpack(coords)); -- cut out the region with our class icon according to coords

Death Knight
The class icon of the Death Knight is an axe with a skull on it, referring to how Death Knights are brutal and undead beings.


 * File names: Ui-charactercreate-classes_deathknight.png
 * As a template:  ·


 * Similar icons
 * spell_deathknight_classicon.png &rarr;


 * SwagDog custom icon

Demon Hunter
The class icon of the Demon Hunter is a glaive, referring to the demon hunter's choice of weapon.


 * File names: Ui-charactercreate-classes demonhunter.png
 * As a template:  ·

Druid
The class icon of the Druid is a bear paw, referring to a druid's ability to shapeshift into different animals.


 * File names: Ui-charactercreate-classes_druid.png
 * As a template:  ·


 * Similar icons
 * inv_misc_monsterclaw_04.png &rarr;
 * inv_misc_monsterclaw_03.png &rarr;
 * inv_gauntlets_02.png &rarr;


 * SwagDog custom icon

Hunter
The class icon of the Hunter is a bow, referring to how most of a Hunter's abilities make use of ranged weapons.


 * File names: Ui-charactercreate-classes_hunter.png
 * As a template:  ·


 * Similar icons
 * inv_weapon_bow_07.png &rarr;


 * SwagDog custom icon

Mage
The class icon of the Mage is a staff, referring to how spellcasters like wizards and sorcerers are traditionally depicted wielding staffs.


 * File names: Ui-charactercreate-classes_mage.png
 * As a template:  ·


 * Similar icons
 * inv_staff_13.png &rarr;
 * inv_staff_14.png &rarr;


 * SwagDog custom icon

Monk
The class icon of the Monk is a gourd tied to a staff.


 * File names: Ui-charactercreate-classes monk.png
 * As a template:  ·

Paladin
The class icon of the Paladin is a hammer, referring to how Paladins in the WarCraft-universe lore-wise fight using huge, two-handed "paladin hammers".


 * File names: Ui-charactercreate-classes_paladin.png
 * As a template:  ·


 * Similar icons
 * ability_thunderbolt.png &rarr;
 * inv_hammer_01.png &rarr;


 * SwagDog custom icon

Priest
The class icon of the Priest is also a staff.


 * File names: Ui-charactercreate-classes_priest.png
 * As a template:  ·


 * Similar icons
 * inv_staff_30.png &rarr;
 * inv_staff_29.png &rarr;


 * SwagDog custom icon

Rogue
The class icon of the Rogue is a dagger, referring to how rogues and assassins traditionally use daggers to kill their foes.


 * File names: Ui-charactercreate-classes_rogue.png
 * As a template:  ·


 * Similar icons
 * inv_throwingknife_04.png &rarr;


 * SwagDog custom icon

Shaman
The class icon of the Shaman is a talisman dripping with blood, referring to a shaman's totems.


 * File names: Ui-charactercreate-classes_shaman.png
 * As a template:  ·


 * Similar icons
 * inv_jewelry_talisman_04.png &rarr;


 * SwagDog custom icon

Warlock
The class icon of the Warlock is a hand engulfed in magic, referring to the powerful and dangerous forces which Warlocks make use of.


 * File names: Ui-charactercreate-classes_warlock.png
 * As a template:  ·


 * Similar icons
 * spell_nature_drowsy.png &rarr;
 * spell_nature_faeriefire.png &rarr;


 * SwagDog custom icon

Warrior
The class icon of the Warrior is a sword, referring to how Warriors are traditionally depicted wielding swords.


 * File names: Ui-charactercreate-classes_warrior.png
 * As a template:  ·


 * Similar icons
 * inv_sword_27.png &rarr;


 * SwagDog custom icon