hey again, im still trying to fix the problem with partyframes in pitbull and eePanels. Heres the script that ive got up so far:
Code:
function eePanels2:RaidPanelVisibility(self, event, ...)
if GetNumPartyMembers() < 1 then
eePanel13:Hide()
eePanel14:Hide()
eePanel15:Hide()
eePanel16:Hide()
elseif GetNumPartyMembers() == 1 then
eePanel13:Show()
eePanel14:Hide()
eePanel15:Hide()
eePanel16:Hide()
elseif GetNumPartyMembers() == 2 then
eePanel13:Show()
eePanel14:Show()
eePanel15:Hide()
eePanel16:Hide()
elseif GetNumPartyMembers() == 3 then
eePanel13:Show()
eePanel14:Show()
eePanel15:Show()
eePanel16:Hide()
elseif GetNumPartyMembers() == 4 then
eePanel13:Show()
eePanel14:Show()
eePanel15:Show()
eePanel16:Show()
end
end
-- Ace2 event listeners; can't do this in more than one script
eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.RaidPanelVisibility)
eePanels2:RegisterEvent("PARTY_MEMBERS_CHANGED", eePanels2.RaidPanelVisibility)
eePanels2:RegisterEvent("RAID_ROSTER_UPDATE", eePanels2.RaidPanelVisibility)
But the problem that ive gotten now is that these frames are shown when im in a raid group and what i want is to hide all these frames whenever im in a raid group. Ive searched around but i couldnt find anything that works:S Anyone know a solution?