option to hide group while in raid

This commit is contained in:
shagu
2016-10-23 15:07:32 +02:00
parent 94f0a9203b
commit eb78d9e9c5
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -28,6 +28,11 @@ pfUI:RegisterModule("group", function ()
PartyMemberBackground:Hide()
for i=1, 5 do
if pfUI_config.unitframes.group.hide_in_raid == "1" and UnitInRaid("player") then
pfUI.uf.group[i]:Hide()
return
end
if GetNumPartyMembers() >= i then
pfUI.uf.group[i]:Show()
if UnitIsConnected("party"..i) or not UnitName("party"..i) then