GridCustomLayouts
An extension for Grid.
GridLayoutLayouts.lua file contains many "Layouts" to arrange the unit buttons. Sometimes we may find it doesn't meet the needs.
This extension makes it possible to add new layouts in game. And it simplified the code to describe a layout.
Click "Grid - Layouts - Custom Layouts" to bring up a edit frame.
Each line stands for a Unit Button Group. The Grammer is:
attribute1=value1;attribute2=value2;...;attributeN=valueN;
List of the attributes
================================================
showRaid = [BOOLEAN] - true if the header should be shown while in a raid
showParty = [BOOLEAN] - true if the header should be shown while in a party and not in a raid
showPlayer = [BOOLEAN] - true if the header should show the player when not in a raid
showSolo = [BOOLEAN] - true if the header should be shown while not in a group (implies showPlayer)
nameList = [STRING] - a comma separated list of player names (not used if 'groupFilter' is set)
groupFilter = [1-8, STRING] - a comma seperated list of raid group numbers and/or uppercase class names and/or uppercase roles
strictFiltering = [BOOLEAN] - if true, then characters must match both a group and a class from the groupFilter list
sortMethod = ["INDEX", "NAME"] - defines how the group is sorted (Default: "INDEX")
sortDir = ["ASC", "DESC"] - defines the sort order (Default: "ASC")
groupBy = [nil, "GROUP", "CLASS", "ROLE"] - specifies a "grouping" type to apply before regular sorting (Default: nil)
groupingOrder = [STRING] - specifies the order of the groupings (ie. "1,2,3,4,5,6,7,8")
maxColumns = [NUMBER] - maximum number of columns the header will create (Default: 1)
unitsPerColumn = [NUMBER or nil] - maximum units that will be displayed in a singe column, nil is infinate (Default: nil)
The simplify is:
You don't need the entire class/role name, just the start part of it :
WARLOCK or WARLOC or WARL or WL -> "WARLOCK"
WARRIOR or WARR -> "WARRIOR"
MAINT or MT -> "MAINTANK"
MAINA or MA -> "MAINASSIST"
5/2 -> unitsPerColumn="5";maxColumns="2"
PET -> isPetGroup=true
INDEX or NAME -> sortMethod="INDEX" or sortMethod="NAME"
ASC or DESC -> sortDir="ASC" or sortDir="DESC"
STRICT -> strictFiltering="true"
GROUP or CLASS or ROLE -> groupBy="GROUP" or groupBy="CLASS" or groupBy="ROLE"
You don't need to write "groupFilter=", for example:
1,2,3,4,5 is just the same as groupFilter="1,2,3,4,5"
WARR,PAL,DRU is just the same as groupFilter="WARRIOR,PALADIN,DRUID"
If the group name is not group ids and not class or role names, for example:
Abcde,Xyz will be parsed to nameList="Abcde,Xyz"
That's all. A little complicated though. Advanced user only :(
Actually, I don't use this much, just put it here for sharing.
Attribute: noRepeat = true
Now you can add a NOREPEAT(NOREP,NOR and NR is just the same) attribute to non-pet group header, for example
WARRIOR,PAL;NOREPEAT 1;NOREPEAT 2;NOREPEAT 3;NOREPEAT 4;NOREPEAT 5;NOREPEAT Someone,Anotherone
In the above layout, the first group will contains WARRIORs and PALADINs, but not Someone or Anotherone.
And the next 5 groups will contains team 1-5 members, but not Someone or Anotherone, neither any WARRIORs or PALs.
Actually, group headers with NOREPEAT are parsed to specified nameList groups, therefore the 'groupBy' attribute will be ignore.
So i play arenas with the layout: By group5 w/ pets.
My question is: Can I make my player boxes and Pet box to line up on 1 line.
Like this:
[player]
[player]
[pet]
Not like it is currently
[player][pet]
[player]
I'm trying to set it up so that my group (group 3) will be displayed first, followed by the other groups (making the order 3,1,2,4,5). And also for me to be listed at the top of my group. The overall effect being that my healthbox is in the topleft corner.
Ive been fiddling with it for a while now but I am still confused by the syntax.
Anyone who can help me with this config? So what do I want?
Setup 1) 25 man with ora2 mt's
I want to show MT's and OT's that is set by oRA2 in group one. Rest of players including tanks in group 2-6. So 6 columns and 5 rows.
Setup 2) 25 man with ora2 mt's and pets
I want to show MT's and OT's that is set by oRA2 in group one. Rest of players including tanks in group 2-6. Pets in group 7-8. So 7-8 columns and 5 rows.
Example: http://img20.imageshack.us/img20/6676/gridora2mtpet25.jpg
Setup 3) 10 man with ora2 mt's
I want to show MT's and OT's that is set by oRA2 in group one. Rest of players including tanks in group 2-3. So 3 columns and 5 rows.
Setup 4) 10 man with ora2 mt's and pets
I want to show MT's and OT's that is set by oRA2 in group one. Rest of players including tanks in group 2-3. Pets group 4. So 4 columns and 5 rows.
Example: http://img534.imageshack.us/img534/7972/gridora2mtpet10.jpg
Is this possible to make? Can you capture oRA2 tanks or must it be Blizzard's MT's? I used to use GridoRA2Layouts but the newest versions of grid don't work together with that mod it seams.
I'm back to WOW these days :)
thanks alot
Pets can't be together with players, they must in separate groups. By adding ";PET" to the end of a line, you will make a pets group of those players.
For example,
these are players.
these are pets, the first group only shows mages and warlocks' pets, the second group shows pets whose master is in party 1/2/3/4
FAQ is a good suggestion. But with my poor english, I can't easily describe a layout well...
I have a custom layout to sort party order but I cannot figure out how to add pets to my group. Is the an FAQ that might help?
Please tell me if it dosen't work as I don't play wow now.
I love this addon so much!
Could you please update for patch 3.3? ^___^
Group 1 = MTs from ORA2, and/or names I enter manually
Groups 2-6 = Groups 1-5 as they are set-up by the raid leader.
Can I get that layout properly using this add-on?