Advertisement
Guest User

Class Icons only

a guest
Feb 12th, 2015
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. hooksecurefunc("UnitFramePortrait_Update",function(self)
  2. if self.portrait then
  3. if UnitIsPlayer(self.unit then
  4. local t = CLASS_ICON_TCOORDS[select(2,UnitClass(self.unit]
  5. if t then
  6. self.portrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
  7. self.portrait:SetTexCoord(unpack(t))
  8. end
  9. else
  10. self.portrait:SetTexCoord(0,1,0,1)
  11. end
  12. end
  13. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement