Created
January 18, 2015 22:19
-
-
Save nefftd/6ff5b879eae475fec48e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nametext:Listen('name',function(self,name,realm) | |
name = mod.abbrev_shortname(name) | |
if UnitCanAttack('player','targettarget') then | |
name = '|cff993333>|r '..name | |
else | |
name = '|cffffffff>|r '..name | |
end | |
self:SetText(name) | |
end) | |
nametext:Listen('class',function(self,_,enclass,isplayer) | |
if isplayer then | |
self:SetTextColor(mod.classcolor(enclass)) | |
else | |
self:SetTextColor(unpack(mod.color_npc)) | |
end | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment