Hello there, I finally managed to change freebgrid layout to fit my needs and i'm quite happy with a result
Though there is still one thing I would like to add. Nowadays when it comes down to raiding we need only first 5 groups to be shown, but there are few occasions when you want to see whole 40 people raid (e.g. Wintergrasp, Alterac Valley, etc.). So my idea was to make a function that is spawning groups 6-8 and make a slash command for it.
For example: /raid40 would spawn 8 groups raid and /raid25 - 5 groups raid.
I tried to implement this feature myself, but did not succeed, so for now I just made a simple config option for enabling raid40 layout via editing lua file.
Code:
local raid = {}
for i = 1, 5 do
local raidg = oUF:Spawn('header', 'oUF_Raid'..i)
raidg:SetManyAttributes('groupFilter', tostring(i),
'showRaid', true,
'point', 'LEFT',
'xOffset', 5)
table.insert(raid, raidg)
if(i == 1) then
raidg:SetPoint('TOPLEFT', UIParent, 'CENTER', -105, -356)
else
raidg:SetPoint('TOPLEFT', raid[i-1], 'BOTTOMLEFT', 0, -4)
end
end
----------------------------------------- specific spawning place for groups 6,7,8
if(raid40==true) then -- for config section
for i = 6, 8 do
local raidg = oUF:Spawn('header', 'oUF_Raid'..i)
raidg:SetManyAttributes('groupFilter', tostring(i),
'showRaid', true,
'yOffset', -4)
table.insert(raid, raidg)
if(i == 6) then
raidg:SetPoint('TOPLEFT', UIParent, 'CENTER', 120.5, -356)
else
raidg:SetPoint('TOPLEFT', raid[i-1], 'TOPRIGHT', 4, 0)
end
end
end
So any help with implementing this feature would be appreciated.