so i did it like so but it just doesen't spawn...
Lua Code:
local create = function(self)
self.unitType = "party"
self:SetSize(300, 81)
self:SetPoint("RIGHT", 0, 0)
self.colors = ns.colors
self:RegisterForClicks('AnyUp')
-- -----------------------------------
-- > SPAWN UNIT
-- -----------------------------------
oUF:RegisterStyle("Party Frame", create)
oUF:SetActiveStyle("Party Frame")
local party = self:SpawnHeader(
nil, nil, 'party,solo',
'showParty', true,
'showPlayer', true,
'showSolo', false,
'xOffset', 0,
'yoffset', 0,
'oUF-initialConfigFunction', [[
self:SetHeight(19)
self:SetWidth(70)
]],
'maxColumns', 5,
'unitsperColumn', 1,
'columnSpacing', 5,
'columnAnchorPoint', "TOP"
)
party:SetPoint("BOTTOM", UIParent, 0, 140)
end
what im douing wrong?
And is there a way to make it just for party1, party2 etc?