Originally Posted by duhwhat
Two questions:
1. How can I hide raid groups 6 through 8?
|
Code:
local Raid = {}
for i = 1, NUM_RAID_GROUPS do
local RaidGroup = oUF:Spawn("header", "oUF_Raid" .. i)
RaidGroup:SetAttribute("groupFilter", tostring(i))
RaidGroup:SetAttribute("yOffset", -4)
RaidGroup:SetAttribute("point", "TOP")
RaidGroup:SetAttribute("showRaid", true)
table.insert(Raid, RaidGroup)
if i == 1 then
RaidGroup:SetPoint("TOPLEFT", UIParent, 20, -40)
else
RaidGroup:SetPoint("TOPLEFT", Raid[i-1], "TOPRIGHT", 8, 0)
end
RaidGroup:Show()
end
Just change the start of the spawn function from
for i = 1, NUM_RAID_GROUPS do
to something like
for i = 1, 5 do