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.
A new attribute was introduced since r6 :
Now you can add a NOREPEAT(NOREP,NOR and NR is just the same) attribute to some header, for example
1;NOR 2;NOR 3;NOR 4;NOR 5;NOR Someone,Anotherone WARRIOR,PAL;NR
In the above layout, the first 5 group will not show any of Someone or Anotherone, nor anyone of WARRIOR or PALADIN.
The 6th group only shows Someone and Anotherone, and if none of them is here, the entire group will not be shown.
The 7th group will show Warriors and Paladins, but not Someone or Anotherone, even their class is war or pal.
Facts
- Date created
- May 31, 2009
- Categories
- Last update
- May 05, 2011
- Development stage
- Release
- Language
- enUS
- zhCN
- zhTW
- License
- GNU General Public License version 2 (GPLv2)
- Curse link
- GridCustomLayouts
- Downloads
- 43,235
- Recent files
- Reply
- #17
snaomi Dec 21, 2011 at 13:21 UTC - 0 likesHow 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
- Reply
- #16
rhozac May 30, 2011 at 01:59 UTC - 0 likesim 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
- Reply
- #15
ebonyfaye May 01, 2011 at 13:53 UTC - 0 likesAny update for 4.1 the UI goes nuts am sure its a easy fix
really love the addon
- Reply
- #13
VaughnofCen Nov 10, 2010 at 15:48 UTC - 0 likesFirst 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.
- Reply
- #11
warbaby Dec 15, 2009 at 01:14 UTC - 0 likesPets 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...
- Reply
- #10
coltimar Dec 14, 2009 at 21:43 UTC - 0 likesI 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?
- Reply
- #9
Veange Dec 14, 2009 at 14:45 UTC - 0 likesI love this addon so much!
Could you please update for patch 3.3? ^___^
- Reply
- #8
warbaby Jun 12, 2009 at 18:26 UTC - 0 likesThanks for your inspiring comment... I never thought this mod so helpful(shy:).
I think your problem is an usage problem of recent Grid versions. The layout of each "party_state" is set seperately. In menu "Grid - Layout" there are "Solo Layout, Raid Layout, Heroic Layout, etc". When you save CustomLayouts, it only set your layout of CURRENT party_state. If your raid leader changes difficulty to heroic, Grid will change the layout to the former one you use in that party_state.
If that is the situation, you just need to manually choose the layout in Grid - Layout menu. Hope this helpful.
And I made a patch of origin GridLayout.lua, It solves dc in combat, and add a FORCE LAYOUT menu, which will be used by Grid unless it is set to NONE. I post it here: GridLayout.lua
- Reply
- #7
reehay Jun 12, 2009 at 16:35 UTC - 0 likesbug report: been noticing that CustomLayouts arent being recalled by Grid. the Customlayout is still saved, but when joining a heroic raid for instance, the unit frames do not reflect the CustomLayout. usually just toggling between a default layout and then back to the CustomLayout fixes this but tonight i had to delete all custom layouts, re-log, then re-type, save, and choose my CustomLayout.
once again, thanks very very much for your efforts. ive been promoting your addon to all my guild members.
- Reply
- #6
reehay Jun 08, 2009 at 08:55 UTC - 0 likesWarbaby.... thank you sooooo much!!! these examples worked perfectly for what i wanted. and thanks for this addon. i got half my guild using it now.
Grid is now a perfect fit for my UI.