I did not see your post earlier but I made some quick test yesterday evening and got this error:
Code:
Interface\\FrameXML\\RestrictedExecution.lua:397: Call failed: [string \" local header = self:GetParent()...\"]:15: attempt to index local 'groupFilter' (a number value):
Interface\\FrameXML\\RestrictedExecution.lua:397: in function <Interface\\FrameXML\\RestrictedExecution.lua:390>:
(tail call): ?:
Interface\\FrameXML\\SecureGroupHeaders.lua:108: in function `SetupUnitButtonConfiguration':
Interface\\FrameXML\\SecureGroupHeaders.lua:158: in function <Interface\\FrameXML\\SecureGroupHeaders.lua:115>:
Interface\\FrameXML\\SecureGroupHeaders.lua:392: in function <Interface\\FrameXML\\SecureGroupHeaders.lua:381>:
<in C code>: in function `Show'
oUF_Bibi4-4\\oUF_Bibi4.lua:851: in function `spawnHeader'
oUF_Bibi4-4\\oUF_Bibi4.lua:857: in function `func'
oUF_Bibi4-4\\oUF\\factory.lua:17: in function <Interface\\AddOns\\oUF_Bibi4\\oUF\\factory.lua:13>
(tail call): ?:
workingEnv = <userdata>
ctrlHandle = <userdata>
pcallFlag = false
LOCAL_Function_Environment_Manager = <function> defined @Interface\\FrameXML\\RestrictedExecution.lua:209
error = <function> defined =[C]:-1
tostring = <function> defined =[C]:-1
here is my call to SpawnHeader:
Code:
self:SetActiveStyle('oUF_Bibi4 - Raid')
local function spawnHeader(point, xOffset, yOffset, name, template, visibility, ...)
local header = oUF:SpawnHeader(
name,
template,
visibility,
'oUF-initialConfigFunction', ([[
self:SetAttribute('*type1', 'target')
self:SetAttribute('*type2', nil)
self:SetWidth(%d)
self:SetHeight(%d)]]):format(RAID_WIDTH, RAID_HEIGHT),
...
)
header:SetPoint(point, xOffset, yOffset)
header:Show()
end
--spawn raid frames
for i = 1, 8 do
local point, xOffset, yOffset = unpack(bibi4Config['raid'..i])
spawnHeader(
point,
xOffset,
yOffset,
strformat('oUF_Bibi4_Raid%d', i),
'SecureGroupHeaderTemplate',
'custom [@raid6,noexists] hide;show',
'point', 'BOTTOM',
'yOffset', RAID_GAP,
'sortMethod', 'INDEX',
'groupFilter', i,
'showRaid', true
)
end
I'm currently at work so I'm not able to do any more test before this evening.