Quantcast
WoWInterface - View Single Post - Hide frames in Raid
View Single Post
02-07-19, 07:56 AM   #2
Lolzen
An Aku'mai Servant
 
Lolzen's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 36
You could use UnitInRaid, however oUF can handle this for you.

here's an example of party
Lua Code:
  1. local party = self:SpawnHeader(
  2.     nil, nil, 'party,solo',
  3.     'showParty', true,
  4.     'showPlayer', true,
  5.     'showSolo', false,
  6.     'xOffset', 0,
  7.     'yoffset', 0,
  8.     'oUF-initialConfigFunction', [[
  9.         self:SetHeight(19)
  10.         self:SetWidth(70)
  11.     ]],
  12.     'maxColumns', 5,
  13.     'unitsperColumn', 1,
  14.     'columnSpacing', 5,
  15.     'columnAnchorPoint', "TOP"
  16. )
  17. party:SetPoint("BOTTOM", UIParent, 0, 140)

where this is an example for a raidgroup
Lua Code:
  1. local raid = self:SpawnHeader(
  2.     nil, nil, 'raid,party,solo',
  3.     'showPlayer', true,
  4.     'showSolo', false,
  5.     'showParty', false,
  6.     'showRaid', true,
  7.     'xoffset', 7,
  8.     'yOffset', -5,
  9.     'oUF-initialConfigFunction', [[
  10.         self:SetHeight(19)
  11.         self:SetWidth(50)
  12.     ]],
  13.     'groupFilter', '1,2,3,4,5,6,7,8',
  14.     'groupingOrder', '8,7,6,5,4,3,2,1',
  15.     'sortMethod', 'NAME',
  16.     'groupBy', 'GROUP',
  17.     'maxColumns', 8,
  18.     'unitsPerColumn', 5,
  19.     'columnSpacing', 7,
  20.     'columnAnchorPoint', "RIGHT"
  21. )
  22. raid:SetPoint("LEFT", UIParent, 20, 0)

notice 'showRaid' in particular.
I'd suggest to look into other people's layouts to see how they handle party/raid. oUF is VERY flexible.
  Reply With Quote