Grid

715 - Add tanks first for layout options

I have made changes to my GridLayoutLayouts.lua to do tanks first for raids. Not sure if this has been requested before or if you want to implement but I would like to see it in the mainstream addon.

My code is:


GridLayout:AddLayout(L["By Group 10 Tanks First"], {
    [1] = {
        groupFilter = "1",
        groupBy = "ROLE",
        groupingOrder = "MAINTANK,MAINASSIST", 
    },
    [2] = {
        groupFilter = "2",
        groupBy = "ROLE",
        groupingOrder = "MAINTANK,MAINASSIST", 
    },
})

GridLayout:AddLayout(L["By Group 25 Tanks First"], {
    [1] = {
        groupFilter = "1",
        groupBy = "ROLE",
        groupingOrder = "MAINTANK,MAINASSIST", 
    },
    [2] = {
        groupFilter = "2",
        groupBy = "ROLE",
        groupingOrder = "MAINTANK,MAINASSIST", 
    },
    [3] = {
        groupFilter = "3",
        groupBy = "ROLE",
        groupingOrder = "MAINTANK,MAINASSIST", 
    },
    [4] = {
        groupBy = "ROLE",
        groupingOrder = "MAINTANK,MAINASSIST", 
        groupFilter = "4",
    },
    [5] = {
        groupBy = "ROLE",
        groupingOrder = "MAINTANK,MAINASSIST", 
        groupFilter = "5",
    },
})
User When Change
Phanx Nov 12, 2013 at 00:09 UTC Changed status from New to Declined
Phanx Oct 30, 2013 at 03:15 UTC Changed description:
  My code is:

+ <pre><code>
  GridLayout:AddLayout(L["By Group 10 Tanks First"], {
  	[1] = {
  		groupFilter = "1",
----------------------------------------
  		groupFilter = "5",
  	},
  })
+ </code></pre>
Annihilation Oct 29, 2013 at 21:07 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of Annihilation Annihilation Oct 30, 2013 at 20:46 UTC - 0 likes

    @Phanx: Go

    Thanks Phanx. I will do that.

  • Avatar of Phanx Phanx Oct 30, 2013 at 02:58 UTC - 0 likes

    I don't plan to add any additional layouts to the core. It's trivial to add your layouts from a plugin. Just add this to the top of your code:

    local GridLayout = Grid:GetModule("GridLayout")
    

    Then paste all your code into this page:

    http://addon.bool.no/

    Enter whatever addon title you want to use, eg. "GridMyLayouts", in the addon folder name box.

    Finally, click the yellow "advanced TOC options" button at the bottom and add this line in the additional box that appears:

    ## Dependencies: Grid
    

    Now click the green button to get your addon.

  • 2 comments

Facts

Last updated
Nov 12, 2013
Reported
Oct 29, 2013
Status
Declined - We decided not to take action on this ticket.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees