You could put this below your UnitSpecific code
Code:
-- raid, party
do
UnitSpecific.party = function(self, ...)
Shared(self, ...)
-- your party stuff here
end
UnitSpecific.raid = function(self, ...)
Shared(self, ...)
-- your raid stuff here
end
end
spawn them ...
Code:
oUF:Factory(function(self)
-- spawn party
self:SetActiveStyle'YOUROUFLAYOUT - Party'
local party = self:SpawnHeader('oUF_Party', nil, 'custom [group:party,nogroup:raid][@raid6,noexists,group:raid] show;hide',
'showParty', true,
--'showPlayer', true,
'yOffset', -10,
'template', 'oUF_SlimRaid', -- party pets
'oUF-initialConfigFunction', ([[
self:SetWidth(%d)
self:SetHeight(%d)
]]):format(WIDTH, HEIGHT))
party:SetScale(YOURScale)
party:SetPoint("TOPLEFT", player, "BOTTOMLEFT", 0, -40)
end
-- spawn raid
self:SetActiveStyle"YOUROUFLAYOUT - Raid"
local raid = self:SpawnHeader('oUF_Raid', nil, 'raid',
'showRaid', true,
'showPlayer', true,
'groupFilter', '1,2,3,4,5',
'groupingOrder', '1,2,3,4,5',
'groupBy', 'GROUP',
'maxColumns', 5,
'unitsPerColumn', 5,
'column', 4,
'columnAnchorPoint', "RIGHT",
'columnSpacing', 6,
'yOffset', -6,
'oUF-initialConfigFunction', ([[
self:SetWidth(%d)
self:SetHeight(%d)
]]):format(WIDTH, HEIGHT))
raid:SetScale(YOURScale)
raid:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 30, -30)
end
Obviously, all that stuff in the spawn function is custom code. You have to change it to whatever you want your group frames to look like.
€: The raid code is for a 25 man raid, btw.