Originally Posted by Mischback
Could you please show us
a) how you spawn them
b) the function to style them
It's hard to say anything by only seeing fragments.
Oh, and to range-checking on pets: I got something on my mind, that oUFs default-range-checking is only working for player-controlled units in party/raid, perhaps it's not working for pets. You can deactivate range-checking for the pets, if you find out, how to address the frames.
|
Spawning:
Code:
local raid = {}
for i = 1, oUF_Neav.units.raid.numGroups do
table.insert(raid, self:SpawnHeader('oUF_Neav_Raid'..i, nil, 'solo,party,raid',
'showParty', true,
'showPlayer', true,
'showSolo', true,
'showRaid', true,
'columnSpacing', 7,
'unitsPerColumn', 1,
'maxColumns', 5,
'columnAnchorPoint', 'TOP',
'groupFilter', i,
'template', 'oUF_NoobRaid'
)
)
Range-checking code:
Code:
-- range check
self.Range = {
insideAlpha = 1,
outsideAlpha = 0.3,
}
self.SpellRange = {
insideAlpha = 1,
outsideAlpha = 0.3,
}
return self
end
And not sure what the function to style them is, but I think it's the following:
Code:
oUF:RegisterStyle('oUF_Neav_Raid', CreateRaidLayout)
oUF:Factory(function(self)
self:SetActiveStyle('oUF_Neav_Raid')