- Fixed custom display 'Dynamic Overall Data'.

- Fixed friendly fire for some dungeon bosses.
- New API: Details:GetSpecByGUID (unitGUID)
This commit is contained in:
Tercio
2018-08-28 13:03:08 -03:00
parent c76e830a0b
commit 4b7beb1469
5 changed files with 35 additions and 83 deletions
+10 -2
View File
@@ -93,9 +93,13 @@ do
end
end
function _detalhes:GetSpecIcon (spec)
function _detalhes:GetSpecIcon (spec, useAlpha)
if (spec) then
return [[Interface\AddOns\Details\images\spec_icons_normal]], unpack (_detalhes.class_specs_coords [spec])
if (useAlpha) then
return [[Interface\AddOns\Details\images\spec_icons_normal_alpha]], unpack (_detalhes.class_specs_coords [spec])
else
return [[Interface\AddOns\Details\images\spec_icons_normal]], unpack (_detalhes.class_specs_coords [spec])
end
end
end
@@ -212,6 +216,10 @@ do
end
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function _detalhes:GetSpecByGUID (unitSerial)
return _detalhes.cached_specs [unitSerial]
end
-- try get the spec from actor name
function _detalhes:GetSpec (name)