mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
unitframes: only hide units if not unlocked
This commit is contained in:
+10
-8
@@ -555,16 +555,18 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
unit.lastUnit = UnitName(unit.label .. unit.id)
|
unit.lastUnit = UnitName(unit.label .. unit.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
if UnitName(unit.label .. unit.id) or (pfUI.gitter and pfUI.gitter:IsShown()) or unit.unitname then
|
if not ( pfUI.gitter and pfUI.gitter:IsShown() ) then
|
||||||
if pfUI_config["unitframes"]["group"]["hide_in_raid"] == "1" and strsub(unit.label,0,5) == "party" and UnitInRaid("player") then
|
if UnitName(unit.label .. unit.id) or unit.unitname then
|
||||||
unit:Hide()
|
if pfUI_config["unitframes"]["group"]["hide_in_raid"] == "1" and strsub(unit.label,0,5) == "party" and UnitInRaid("player") then
|
||||||
elseif strsub(unit.label,0,8) == "partypet" and not UnitIsVisible(unit.label .. unit.id) then
|
unit:Hide()
|
||||||
unit:Hide()
|
elseif strsub(unit.label,0,8) == "partypet" and not UnitIsVisible(unit.label .. unit.id) then
|
||||||
|
unit:Hide()
|
||||||
|
else
|
||||||
|
unit:Show()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
unit:Show()
|
unit:Hide()
|
||||||
end
|
end
|
||||||
else
|
|
||||||
unit:Hide()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if not unit.cache then unit.cache = {} end
|
if not unit.cache then unit.cache = {} end
|
||||||
|
|||||||
Reference in New Issue
Block a user