mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
unitframes: always refresh regular portraits alpha
This commit is contained in:
@@ -1204,6 +1204,7 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local C = pfUI_config
|
local C = pfUI_config
|
||||||
|
|
||||||
-- show groupframes as raid
|
-- show groupframes as raid
|
||||||
if strsub(unit:GetName(),0,6) == "pfRaid" then
|
if strsub(unit:GetName(),0,6) == "pfRaid" then
|
||||||
local id = tonumber(strsub(unit:GetName(),7,8))
|
local id = tonumber(strsub(unit:GetName(),7,8))
|
||||||
@@ -1520,6 +1521,8 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
else
|
else
|
||||||
if unit.config.portrait == "bar" then
|
if unit.config.portrait == "bar" then
|
||||||
unit.portrait:SetAlpha(C.unitframes.portraitalpha)
|
unit.portrait:SetAlpha(C.unitframes.portraitalpha)
|
||||||
|
else
|
||||||
|
unit.portrait:SetAlpha(1)
|
||||||
end
|
end
|
||||||
unit.portrait.tex:Hide()
|
unit.portrait.tex:Hide()
|
||||||
unit.portrait.model:Show()
|
unit.portrait.model:Show()
|
||||||
|
|||||||
Reference in New Issue
Block a user