Hello, does anyone know how to add party frames?
Code:
local function partylayout(self, unit)
self.menu = menu
self:RegisterForClicks('AnyUp')
self:SetScript('OnEnter', UnitFrame_OnEnter)
self:SetScript('OnLeave', UnitFrame_OnLeave)
self:SetAttribute('*type2', 'menu')
self:SetAttribute('initial-height', 38)
self:SetAttribute('initial-width', 42)
CreateBorder(self, 11, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4)
self:SetBackdrop({bgFile = [=[Interface\ChatFrame\ChatFrameBackground]=], insets = {top = -1.5, left = -1.5, bottom = -1.5, right = -1.5}})
self:SetBackdropColor(0, 0, 0, 0.8)
etc..
Code:
local party = oUF:SpawnHeader(nil, nil, 'party',
'showParty', true,
'xoffset', 12,
'yOffset', -5,
'point', 'LEFT',
'maxColumns', 12,
'unitsPerColumn', 5,
'columnSpacing', 12,
'columnAnchorPoint', 'TOP'
)
party:SetPoint('TOPLEFT', UIParent, 10, -8)
Code:
oUF:RegisterStyle('AftermathhParty', Partylayout)
oUF:SetActiveStyle('AftermathhParty'))
Does it work this way?