View Single Post
06-17-09, 02:37 PM   #1062
saulhudson
A Deviate Faerie Dragon
 
saulhudson's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 10
Originally Posted by duhwhat View Post
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
__________________
The Jack bauer of all trades