Originally Posted by 10leej
So then just do something like this?
Lua Code:
local party = self:SpawnHeader(nil, nil, 'raid,party', 'groupFilter', 1, --Groups 1-8 set manually 'showPlayer', true, 'yOffset', cfg.group.offsety, 'maxColumns', 5, 'unitsPerColumn', 1, 'columnAnchorPoint', cfg.group.growth, 'sortMethod', cfg.group.sortmethod, 'groupBy', cfg.group.groupby, 'columnSpacing', cfg.group.offsetx, 'oUF-initialConfigFunction', [[ self:SetWidth(45) self:SetHeight(50) ]] )
|
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).