Thanks for your reply, haste. I'll try to spawn them as a header with no worry. =)
Btw, I was going to spawn them as singles because I was failed to spawn party-target header.
Code:
oUF:Factory(function (self)
self:SetActiveStyle('MyPartyTargetStyle')
local partytarget = self:SpawnHeader(
nil, nil, nil,
'showParty', true, 'showPlayer', true,
'point', 'TOP', 'yOffset', -36,
'oUF-initialConfigFunction', [[
self:SetAttribute('unitsuffix', 'target')
self:SetWidth(84)
self:SetHeight(24)
]]
)
partytarget:SetPoint('LEFT', 30, 0)
partytarget:Show()
end)
I think it was because of my fault but:
- These party-targets have not 'partytarget' as 'oUF-guessUnit' attribute.
- It seems 'enableTargetUpdate' function not works correctly. Though 'OnShow' update works.
(I mean when I have no target and then target someone, it's updated correctly. But when I chenge the target to the another one, it's not updated correctly)
Anyway, I'm sure I need farther testing. I'll post again when I find something useful to share.