View Single Post
09-04-12, 07:27 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Couldn't you just disable showParty, showSolo and showPlayer aswell?
That should remove the party display when you are in a raid that meets the requirements.

Lua Code:
  1. local raidToParty = CreateFrame("Frame")
  2.   raidToParty:RegisterEvent("PLAYER_ENTERING_WORLD")
  3.   raidToParty:RegisterEvent("GROUP_ROSTER_UPDATE")
  4.   raidToParty:SetScript("OnEvent", function()
  5.     if GetNumGroupMembers() > 5 then
  6.       party:SetAttribute("showSolo", false)
  7.       party:SetAttribute("showPlayer", false)
  8.       party:SetAttribute("showParty", false)
  9.       party:SetAttribute("showRaid", false)
  10.       raid:SetAttribute("showSolo", false)
  11.       raid:SetAttribute("showPlayer", false)
  12.       raid:SetAttribute("showParty", false)
  13.       raid:SetAttribute("showRaid", true)
  14.     else
  15.       party:SetAttribute("showSolo", false) -- show player when solo
  16.       party:SetAttribute("showPlayer", true) --show player unit in 5man group
  17.       party:SetAttribute("showParty", true)
  18.       party:SetAttribute("showRaid", true)
  19.       raid:SetAttribute("showSolo", false)
  20.       raid:SetAttribute("showPlayer", false)
  21.       raid:SetAttribute("showParty", false)
  22.       raid:SetAttribute("showRaid", false)
  23.     end
  24.   end)

The macro conditions have its boundaries.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-04-12 at 07:30 AM.
  Reply With Quote