From f0493edda9a3d783eaad314b740d7cd96087bf6d Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 2 Jan 2007 15:50:22 +0000 Subject: [PATCH] * Added support to CreateRaidFrame() for sorted/grouped/multicolumn frames --- PerfectRaid.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 1.7.9.5