View Single Post
01-01-10, 12:06 AM   #13
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Originally Posted by MoonWitch View Post
Well that's because the script Seerah provided you with isn't supposed to hide when you join a group, but when you engage in combat.
That link points to code that will show a frame in a raid. Just follow the directions on the page, noting the change to make it hide when not solo:

In each Panel set the OnLoad script

lua Code:
  1. self:RegisterEvent("PLAYER_ENTERING_WORLD")
  2. self:RegisterEvent("PARTY_MEMBERS_CHANGED")
  3. self:RegisterEvent("RAID_ROSTER_UPDATE")

Then in each Panel OnEvent script:
lua Code:
  1. if GetNumPartyMembers() < 1 then
  2.     ChatFrame2:Show()
  3. else
  4.     ChatFrame2:Hide()
  5. end

Last edited by Akryn : 01-01-10 at 12:14 AM.
  Reply With Quote