Code:
-- Hide the panel so it's not shown until we want it to
THIS:Hide()
-- Change our panel's visibility when in/out of a raid
function eePanels2:RaidPanelVisibility(self, event, ...)
-- If we're in a raid
if GetNumPartyMembers() > 0 and not ((select(2, IsInInstance()) == "pvp" or select(2, IsInInstance()) == "arena")
or GetNumRaidMembers() > 0 and not ((select(2, IsInInstance()) == "pvp" or select(2, IsInInstance()) == "arena")
-- Show the panel this script is attached to
then THIS:Show()
-- If we're not in a raid, hide the panel this script is attached to
else THIS:Hide()
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)
I tryd this code to Use when i am in party so i can make a Eepanel for my grid but it dosnt work any one got a tip ?
and i tryed to change Raid -> party