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.
-
View User Profile
-
Send Message
Posted Aug 6, 2018What i need to do for showing in a group: MT first, DD and Healer then?
groupFilter=2;groupBy=ROLE;sort=MT don't work.
-
View User Profile
-
Send Message
Posted Dec 21, 2011How to do:
Column 1 (left) with 5 rows: Anyone, Anyone, Anyone, Anyone, Anyone Column 2 (right) with 5 rows: Tank 1, Tank 2, Myself, Anyone, Anyone
-
View User Profile
-
Send Message
Posted Jun 15, 2011Order=NAME
Or
Order=GROUP
Or
Order=ROLE
If I typed one of these out would this work? Could group be changed to Order=1,2,3,4,5
?
-
View User Profile
-
Send Message
Posted Jun 14, 2011I don't want any ordering, just the order that Blizzard has, because I was healing the other day, and by default Grid order by name, and my healers were getting confused as to who I was healing on fights like chimeron.
Is there a way to order like Blizzard without this mod?
-
View User Profile
-
Send Message
Posted May 29, 2011im retarded or something, how can i make a single horizontal row with 1 in each colum? like stacked from up to down in a single row. thought it would be easy but i was wrong ;P
-
View User Profile
-
Send Message
Posted May 1, 2011Any update for 4.1 the UI goes nuts am sure its a easy fix
really love the addon
-
View User Profile
-
Send Message
Posted Jan 26, 2011Before Cata I had my group sorted like this:
Player, Party1, Party2, Party3, Party4
I accidentally deleted my settings =(
Now all I can do is:
Party1, Party2, Party3, Party4, Player
using "1;INDEX"
What am I missing to get the desired order? =/
-
View User Profile
-
Send Message
Posted Nov 18, 2010I was thinking some like:
P P P P P
PT PT PT PT PT
P P P P P
PT PT PT PT PT
-
View User Profile
-
Send Message
Posted Nov 10, 2010First time user to the layouts...
Seeking a single horizontal / vertical row of sleek vertical healthbars / mana bars,
Got what I intially wanted but noticed it wasn't grouping by 1 2 3 4 5 format... after further experimenting I noticed that it will repeat (at -least- my character's frame) for each new line of text.
Any ideas on what code I should try out?
Thanks for you time.
-
View User Profile
-
Send Message
Posted Nov 3, 2010-
View User Profile
-
Send Message
Posted Nov 18, 2010-
View User Profile
-
Send Message
Posted Nov 3, 2010I want the groups in columns like normal, but I want all the pets to group in 1 column in 10 man rather than showing up in 3 columns like they are currently.
What would be the simplest way to do that?
-
View User Profile
-
Send Message
Posted Oct 21, 2010is it possible to use TANK, HEAL, DD for the new raid-roles (since patch 4)?
I want a 5/2 grid for 10-raid and a 5/5 grid for 25-raid and just sort it like this:
TANK
WARR,PALA,DEATH,ROGUE (if no tank or heal)
SHAM,DRU (if no tank or heal)
all other classes (if no heal)
HEAL
is it possible?
-
View User Profile
-
Send Message
Posted Oct 19, 2010Would it be possible to have my five toons appear (alphabetically), in column 1.
And for the remainder of the raid to appear (also alphabetically) in columns 2-5?
-
View User Profile
-
Send Message
Posted Oct 20, 2010ToonA,ToonB,ToonC,ToonD,ToonE;sortMethod = "List"
2;NOR
3;NOR
4;NOR
5;NOR
2,3,4,5/5
-
View User Profile
-
Send Message
Posted Oct 20, 2010ToonA,ToonB,ToonC,ToonD,ToonE;NAME
1,2,3,4,5;5/4;NAME;NR
-
View User Profile
-
Send Message
Posted Oct 20, 2010-
View User Profile
-
Send Message
Posted Oct 18, 2010-
View User Profile
-
Send Message
Posted Oct 18, 2010-
View User Profile
-
Send Message
Posted Oct 18, 2010