Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » The Dung Heap

 
 
LinkBack Thread Tools
Old 03/11/08, 7:32 AM   #1
nife
Von Kaiser
 
Night Elf Druid
 
Skywall
oUF/pUF

Is there a LUA hack that will only show the party frames when I am arena or a 5 man raid and not the raid frames?
Loving pUF this is the only thing that I still need.

Offline
Old 03/11/08, 2:26 PM   #2
Rieux
Von Kaiser
 
Night Elf Druid
 
Vashj
This is code derived from rUnits, so I don't know if it's exactly compatible to pUF/oUF, but you can try it.

local temptoggle = CreateFrame"Frame"
  temptoggle:SetScript("OnEvent", function(self, event, ...)
      if GetNumRaidMembers() > 1 then
          if GetNumRaidMembers() > 6 then
              raid:Show()
              party:Hide()
          if GetNumRaidMembers() < 6 then
              party:Show()
              raid:Hide()
          end
      elseif GetNumPartyMembers() > 1  then
          party:Show()
      end
  end)
This should show any raid over 6 members as raid frames, and anything under 6 people as party frames. Party frames will always show if you're in a party.

This is located in the layout file.

Offline
Old 03/11/08, 5:20 PM   #3
nife
Von Kaiser
 
Night Elf Druid
 
Skywall
Awesome thanks I will go try it now.

Offline