Added actor:IsFriendlyNpc()

This commit is contained in:
Tercio Jose
2021-03-01 16:19:00 -03:00
parent 2daf700d02
commit b1dd10f166
8 changed files with 97 additions and 8 deletions
+6
View File
@@ -106,6 +106,12 @@ do
function _detalhes:GetName (actor)
return self.nome or actor and actor.nome
end
function _detalhes:GetNameNoRealm(actor)
local name = self.nome or actor and actor.nome
return Details:GetOnlyName(name)
end
function _detalhes:GetDisplayName (actor)
return self.displayName or actor and actor.displayName
end
+4
View File
@@ -11,6 +11,10 @@ do
local _unpack = unpack
local unknown_class_coords = {0.75, 1, 0.75, 1}
function Details:GetUnknownClassIcon()
return [[Interface\AddOns\Details\images\classes_small]], unpack(unknown_class_coords)
end
function _detalhes:GetIconTexture (iconType, withAlpha)
iconType = string.lower (iconType)