I don't have any real code for this yet, as I'm trying to even determine if this is possible. If I want to have a "party" set of frames that shows up when I'm in a party or raid and there are 5 or less people be a certain size and location, and then have a different location and size when there is a raid with 6-25 people and then have yet another location and size when there is a raid with 25-40 people, could I have several self:SpawnHeaders one for each conditional?
Something like
Lua Code:
oUF:Factory(function(self)
self:SetActiveStyle('Terenna')
self:SpawnHeader('Party', nil,
--header lay out type 1
)
self:SpawnHeader('SmallRaid', nil,
--header lay out type 2
)
self:SpawnHeader('LargeRaid', nil,
--header lay out type 3
)
end)