Quantcast

Added a single column, sorted by class with no seperators (they're gonna be tough) instead of the group listing

James Whitehead II [01-11-07 - 05:04]
Added a single column, sorted by class with no seperators (they're gonna be tough) instead of the group listing
Filename
PerfectRaid.lua
diff --git a/PerfectRaid.lua b/PerfectRaid.lua
index 8995087..d2ecdc5 100644
--- a/PerfectRaid.lua
+++ b/PerfectRaid.lua
@@ -88,6 +88,7 @@ function PerfectRaid:Enable()
 		local header = self:CreateRaidFrame(name, "Group "..i, tostring(i), nil, PRHeader1)
 	end

+--[[
 	PRHeader1:ClearAllPoints()
 	self:RestorePosition("PRHeader1")
 	PRHeader2:SetPoint("TOP", PRHeader1, "BOTTOM", 0, -20)
@@ -97,8 +98,19 @@ function PerfectRaid:Enable()
 	PRHeader6:SetPoint("TOP", PRHeader5, "BOTTOM", 0, -20)
 	PRHeader7:SetPoint("TOP", PRHeader6, "BOTTOM", 0, -20)
 	PRHeader8:SetPoint("TOP", PRHeader7, "BOTTOM", 0, -20)
-	--local header = self:CreateRaidFrame("PRHeader1", "1,2,3,4,5,6,7,8", nil, nil, "CLASS", "WARRIOR,PRIEST,PALADIN,DRUID,SHAMAN,ROGUE,MAGE,WARLOCK,HUNTER", 2, 10, "LEFT")
-	--self:RestorePosition("PRHeader1")
+--]]
+
+	self.db.profile.headers["PRHeaderColumn"] = setmetatable({}, {__index=self.headerDefaults})
+	local column = self:CreateRaidFrame("PRHeaderColumn", nil, "1,2,3,4,5,6,7,8", nil)
+	column:Hide()
+	column:SetAttribute("groupBy", "CLASS")
+	column:SetAttribute("groupingOrder", "WARRIOR,PRIEST,DRUID,SHAMAN,PALADIN,MAGE,ROGUE,WARLOCK,HUNTER")
+	column:SetAttribute("maxColumns", 2)
+	column:SetAttribute("unitsPerColumn", 20)
+	column:SetAttribute("columnSpacing", 10)
+	column:SetAttribute("columnAnchorPoint", "LEFT")
+	self:RestorePosition("PRHeaderColumn")
+	column:Show()
 end

 function PerfectRaid:SavePosition(name)