View Single Post
03-25-14, 05:13 AM   #8
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
Originally Posted by 10leej View Post
So then just do something like this?
Lua Code:
  1. local party = self:SpawnHeader(nil, nil, 'raid,party',
  2.     'groupFilter', 1, --Groups 1-8 set manually
  3.     'showPlayer', true,
  4.     'yOffset', cfg.group.offsety,
  5.     'maxColumns', 5,
  6.     'unitsPerColumn', 1,
  7.     'columnAnchorPoint', cfg.group.growth,
  8.     'sortMethod', cfg.group.sortmethod,
  9.     'groupBy', cfg.group.groupby,
  10.     'columnSpacing', cfg.group.offsetx,
  11.     'oUF-initialConfigFunction', [[
  12.         self:SetWidth(45)
  13.         self:SetHeight(50)
  14.     ]]
  15. )
You obviously need a loop and use the iterator index instead of setting the groupFilter manually 8 times. You also need to separate your party header from your raid group headers, as you don't want "showPlayer" for the raid header (it will display the player in every raid group) and "groupFilter" will prevent your party frames from spawning (I believe, haven't tested though).
  Reply With Quote