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: {{ClassIcon|Death Knight|Large}}  {{ClassIcon|Death Knight|Small}}
;Similar icons
* → spell_deathknight_classicon.png
;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: {{ClassIcon|Demon Hunter|Large}}  {{ClassIcon|Demon Hunter|Small}}
== 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: {{ClassIcon|Druid|Large}}  {{ClassIcon|Druid|Small}}
;Similar icons
* → inv_misc_monsterclaw_04.png
* → inv_misc_monsterclaw_03.png
* → inv_gauntlets_02.png
;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: {{ClassIcon|Hunter|Large}}  {{ClassIcon|Hunter|Small}}
;Similar icons
* → inv_weapon_bow_07.png
;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: {{ClassIcon|Mage|Large}}  {{ClassIcon|Mage|Small}}
;Similar icons
* → inv_staff_13.png
* → inv_staff_14.png
;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: {{ClassIcon|Monk|Large}}  {{ClassIcon|Monk|Small}}
== 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: {{ClassIcon|Paladin|Large}}  {{ClassIcon|Paladin|Small}}
;Similar icons
* → ability_thunderbolt.png
* → inv_hammer_01.png
;SwagDog custom icon
== Priest ==
The class icon of the Priest is also a staff.
*File names: Ui-charactercreate-classes_priest.png
*As a template: {{ClassIcon|Priest|Large}}  {{ClassIcon|Priest|Small}}
;Similar icons
* → inv_staff_30.png
* → inv_staff_29.png
;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: {{ClassIcon|Rogue|Large}}  {{ClassIcon|Rogue|Small}}
;Similar icons
* → inv_throwingknife_04.png
;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: {{ClassIcon|Shaman|Large}}  {{ClassIcon|Shaman|Small}}
;Similar icons
* → inv_jewelry_talisman_04.png
;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: {{ClassIcon|Warlock|Large}}  {{ClassIcon|Warlock|Small}}
;Similar icons
* → spell_nature_drowsy.png
* → spell_nature_faeriefire.png
;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: {{ClassIcon|Warrior|Large}}  {{ClassIcon|Warrior|Small}}
;Similar icons
* → inv_sword_27.png
;SwagDog custom icon