View Single Post
06-04-09, 10:44 AM   #1050
teddyhart
A Kobold Labourer
Join Date: Jun 2009
Posts: 1
Hello. I have a question about the sorting of the raid frames. I've looked through both this thread and the thread of the layout I'm using (oUF Lyn) and I've come up empty both times. It's possible I missed it, but I don't think so.

The problem I'm having is that I can't figure out how to change how the raid frames sort. Currently it's sorting by groups, but I'm much more used to frames being sorted either alphabetically or by class makeup. Is it possible to implement these two into this layout? The code I'm assuming I need to change is this..

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("showRaid", true)
	RaidGroup:SetAttribute("yOffset", -10)
	RaidGroup:SetAttribute("point", "TOP")
	RaidGroup:SetAttribute("showRaid", true)
	table.insert(Raid, RaidGroup)
	if i == 1 then
		RaidGroup:SetPoint("TOPLEFT", UIParent, 5, -35) 
	else
		RaidGroup:SetPoint("TOPLEFT", Raid[i-1], "BOTTOMLEFT", 0, -10)	
	end
	RaidGroup:Show()
end
But I can't figure out which line it is that is going to need to be changed, or what it's going to be changed to.

Any help would be so appreciated. And I'm sorry if this is a really obvious question, I'm not much of a coder (as you can probably tell).