Originally Posted by galzohar
Is there any way to make grid sort same way ctra and the classic ui work, as in sort by class and also make it possible to move each class to its own place on the screen?
|
Sort by class is possible, it is not possible to separate the Grid into several different parts (groups or classes). Think of Grid as "The Grid", if that's any help.
Originally Posted by galzohar
I want something like:
warrior hunter
warrior hunter
warrior hunter
mage priest
mage priest
mage shaman
warlock shaman
warlock shaman
warlock
And when the group makeup changes to set it up appropriately.
Any way grid can do this?
|
Yes, it can.
Add the following to the GridLayoutLayouts.lua
GridLayout:AddLayout("My Layout", {
[1] = {
groupFilter = "1,2,3,4,5,6,7,8,WARRIOR,MAGE,WARLOCK",
strictFiltering = true,
groupBy = "CLASS",
groupingOrder = "WARRIOR,MAGE,WARLOCK",
},
[2] = {
groupFilter = "1,2,3,4,5,6,7,8,HUNTER,PRIEST,SHAMAN",
strictFiltering = true,
groupBy = "CLASS",
groupingOrder = "HUNTER,PRIEST,SHAMAN",
},
})
Missing here are the 3 last classes, but you get the idea. Each entry corresponds to a column in the layout. the
groupFilter controls which unit is shown, and
groupingOrder their order.