View Single Post
01-12-07, 04:01 PM   #25
Laine
A Murloc Raider
Join Date: Oct 2006
Posts: 9
Originally Posted by Lumindeas
Big thanks to Krinla for the FAQ and Huge thanks to Clad for coming up with and continuing work on PRaid!!

Ok, I'm a total noob on this coding thing. I saw how to change to Class view from Group view, but I would like to go back to Group view. When I downloaded yesterday it gave me sorting by class by default. I'm looking at this line:

column:SetAttribute("groupBy", "CLASS")

To view by group, is it as easy as changing "CLASS" to "GROUP"?

Not sure what line I'm on so here's a little of before and after that line:

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") <- this is the line I'm looking at
column:SetAttribute("groupingOrder", "WARRIOR,PRIEST,DRUID,SHAMAN,PALADIN,MAGE,ROGUE,WARLOCK,HUNTER")
column:SetAttribute("maxColumns", 1)
column:SetAttribute("unitsPerColumn", 40)
column:SetAttribute("columnSpacing", 10)
column:SetAttribute("columnAnchorPoint", "LEFT")

Thanks for the help. Keep up the awesome work guys!
Lumi
Lumindeas-

I believe the solution to your question is posted earlier in this thread, but yes indeed change the word "CLASS" to "GROUP" and then comment out (put two hyphens infront of) the line:

column:SetAttribute("groupingOrder", "WARRIOR,PRIEST,DRUID,SHAMAN,PALADIN,MAGE,ROGUE,WARLOCK,HUNTER")

-Laine
  Reply With Quote