This article is outdated.

Class icon

From Warcraft Wiki
Jump to navigation Jump to search

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.

See also: Crest

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

Similar icons
  • Spell deathknight classicon.pngspell_deathknight_classicon.png
SwagDog custom icon
Swagdog Custom T-shirt Death Knight Class Icon.jpg

Demon Hunter Demon Hunter

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

Druid Druid

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

Similar icons
  • Inv misc monsterclaw 04.pnginv_misc_monsterclaw_04.png
  • Inv misc monsterclaw 03.pnginv_misc_monsterclaw_03.png
  • Inv gauntlets 02.pnginv_gauntlets_02.png
SwagDog custom icon
Swagdog Custom T-shirt Druid Class Icon.jpg

Hunter Hunter

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

Similar icons
  • Inv weapon bow 07.pnginv_weapon_bow_07.png
SwagDog custom icon
Swagdog Custom T-shirt Hunter Class Icon.jpg

Mage Mage

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

Similar icons
  • Inv staff 13.pnginv_staff_13.png
  • Inv staff 14.pnginv_staff_14.png
SwagDog custom icon
Swagdog Custom T-shirt Mage Class Icon.jpg

Monk Monk

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

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

Similar icons
  • Ability thunderbolt.pngability_thunderbolt.png
  • Inv hammer 01.pnginv_hammer_01.png
SwagDog custom icon
Swagdog Custom T-shirt Paladin Class Icon.jpg

Priest Priest

The class icon of the Priest is also a staff.

Similar icons
  • Inv staff 30.pnginv_staff_30.png
  • Inv staff 29.pnginv_staff_29.png
SwagDog custom icon
Swagdog Custom T-shirt Priest Class Icon.jpg

Rogue Rogue

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

Similar icons
  • Inv throwingknife 04.pnginv_throwingknife_04.png
SwagDog custom icon
Swagdog Custom T-shirt Rogue Class Icon.jpg

Shaman Shaman

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

Similar icons
  • Inv jewelry talisman 04.pnginv_jewelry_talisman_04.png
SwagDog custom icon
Swagdog Custom T-shirt Shaman Class Icon.jpg

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

Similar icons
  • Spell nature drowsy.pngspell_nature_drowsy.png
  • Spell nature faeriefire.pngspell_nature_faeriefire.png
SwagDog custom icon
Swagdog Custom T-shirt Warlock Class Icon.jpg

Warrior Warrior

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

Similar icons
  • Inv sword 27.pnginv_sword_27.png
SwagDog custom icon
Swagdog Custom T-shirt Warrior Class Icon.jpg