* Added support to CreateRaidFrame() for sorted/grouped/multicolumn frames
James Whitehead II [01-02-07 - 15:50]
* Added support to CreateRaidFrame() for sorted/grouped/multicolumn frames
diff --git a/PerfectRaid.lua b/PerfectRaid.lua
index f6fe613..3b8eb72 100644
--- a/PerfectRaid.lua
+++ b/PerfectRaid.lua
@@ -147,7 +147,7 @@ local function OnDragStop(frame)
PerfectRaid.moving = nil
end
-function PerfectRaid:CreateRaidFrame(name, title, filter, strict, dragparent)
+function PerfectRaid:CreateRaidFrame(name, title, filter, strict, dragparent, group, order, columns, coloffset, colanchor)
local frame = CreateFrame("Frame", name, UIParent, "SecureRaidGroupHeaderTemplate")
frame.title = frame:CreateFontString(nil, "ARTWORK", "GameFontNormalSmall")
frame.title:SetPoint("BOTTOM", frame, "TOP", 0, 3)
@@ -159,6 +159,11 @@ function PerfectRaid:CreateRaidFrame(name, title, filter, strict, dragparent)
frame:SetAttribute("yOffset", -2)
frame:SetAttribute("sortMethod", "NAME")
frame:SetAttribute("strictFiltering", strict)
+ frame:SetAttribute("groupBy", group)
+ frame:SetAttribute("groupingOrder", order)
+ frame:SetAttribute("maxColumns", columns)
+ frame:SetAttribute("columnSpacing", coloffset)
+ frame:SetAttribute("columnAnchorPoint", colanchor)
frame.dragparent = dragparent or frame
frame.initialConfigFunction = PerfectRaid.ConfigureButton
frame:SetMovable(true)