unitframes: always refresh regular portraits alpha

This commit is contained in:
shagu
2020-03-05 18:37:17 +01:00
parent c37907305e
commit 30ef7e3e5d
+3
View File
@@ -1204,6 +1204,7 @@ function pfUI.uf:RefreshUnit(unit, component)
end
local C = pfUI_config
-- show groupframes as raid
if strsub(unit:GetName(),0,6) == "pfRaid" then
local id = tonumber(strsub(unit:GetName(),7,8))
@@ -1520,6 +1521,8 @@ function pfUI.uf:RefreshUnit(unit, component)
else
if unit.config.portrait == "bar" then
unit.portrait:SetAlpha(C.unitframes.portraitalpha)
else
unit.portrait:SetAlpha(1)
end
unit.portrait.tex:Hide()
unit.portrait.model:Show()