WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Customizing Layouts (https://www.wowinterface.com/forums/forumdisplay.php?f=95)
-   -   N52te button layout (https://www.wowinterface.com/forums/showthread.php?t=21028)

rossman 03-11-09 10:03 AM

N52te button layout
 
1 Attachment(s)
I use the n52te with a custom button config for the top 3 bars. I tried the other addons but in the end I like this the best and it is one less addon needed. Until Spiel creates the nui custom button bars you can only have 12 buttons per bar or it doesnt work well.

First I use the n52te with a config of one keymap setup with the left column set as my modifiers. Key 1 is my n52te keymap cycle button. Key 6 is my alt button. Key 11 is my shift button. This leaves 12 buttons for keybindings.

second You need to modify the nui_layout_default_dashboard.lua file. The section called default button bar configurations needs a few changes. Modify btn_size, rows & cols to match what I have below.

Code:

-- default button bar configurations

nUI_DefaultConfig.ButtonBars =
{
    ["nUI_ActionBar"] =
    {
        btn_size = 43,
        gap      = 2,
        anchor  = "BOTTOM",
        xOfs    = 0,
        yOfs    = 123,
        rows    = 3,
        cols    = 4,
        page    = 1,
        nuibind  = "nUI_ACTIONBAR",
        binding  = "ACTIONBUTTON",
        label    = nUI_L["nUI_ActionBar"],
    },

    -- the Bliz "bottom left" bar

    ["nUI_TopLeftBar"] =
    {       
        btn_size = 43,
        gap      = 2,
        anchor  = "TOPRIGHT",
        yOfs    = 122,
        xOfs    = 0,
        rows    = 3,
        cols    = 4,
        page    = 6,
        nuibind  = "nUI_TOPLEFTBAR",
        binding  = "MULTIACTIONBAR1BUTTON",
        label    = nUI_L["nUI_TopLeftBar"],
    },
   
    -- the Bliz "bottom right" bar

    ["nUI_TopRightBar"] =
    {       
        btn_size = 43,
        gap      = 2,
        anchor  = "TOPLEFT",
        yOfs    = 122,
        xOfs    = 0,
        rows    = 3,
        cols    = 4,
        page    = 5,
        nuibind  = "nUI_TOPRIGHTBAR",
        binding  = "MULTIACTIONBAR2BUTTON",
        label    = nUI_L["nUI_TopRightBar"],
    },

Finally in WOW setup keybindings on your new layout by using the ctrl-alt-right-click and match your n52te 12 key config.

Hopefully you can follow this if not just ask.

Here is my solo questing layout.

Tondef 05-18-09 07:19 PM

1 Attachment(s)
Awesome.
I had to make a few tweaks to mine to make it all fit. Here are my files.

nUI_Layout_Default_Dashboard.lua
Code:

-------------------------------------------------------------------------------
-- default button bar configurations

nUI_DefaultConfig.ButtonBars =
{
        ["nUI_ActionBar"] =
        {
                btn_size = 48,
                gap      = 2,
                anchor  = "BOTTOM",
                xOfs    = 0,
                yOfs    = 122,
                rows    = 3,
                cols    = 5,
                page    = 1,
                nuibind  = "nUI_ACTIONBAR",
                binding  = "ACTIONBUTTON",
                label    = nUI_L["nUI_ActionBar"],
        },

        -- the Bliz "bottom left" bar

        ["nUI_TopLeftBar"] =
        {               
                btn_size = 50,
                gap      = 2,
                anchor  = "TOPLEFT",
                yOfs    = 117,
                xOfs    = 0,
                rows    = 1,
                cols    = 12,
                page    = 6,
                nuibind  = "nUI_TOPLEFTBAR",
                binding  = "MULTIACTIONBAR1BUTTON",
                label    = nUI_L["nUI_TopLeftBar"],
        },
       
        -- the Bliz "bottom right" bar

        ["nUI_TopRightBar"] =
        {               
                btn_size = 50,
                gap      = 2,
                anchor  = "TOPRIGHT",
                yOfs    = 117,
                xOfs    = 0,
                rows    = 1,
                cols    = 12,
                page    = 5,
                nuibind  = "nUI_TOPRIGHTBAR",
                binding  = "MULTIACTIONBAR2BUTTON",
                label    = nUI_L["nUI_TopRightBar"],
        },


And moving the Class/Pet/Stance Bar to the side.
Code:

-------------------------------------------------------------------------------
-- pet bar, stance bar, shapeshift bar, aura bar, possession bar

nUI_DefaultConfig.SpecialBars =
{
        enabled = true;
       
        anchor =
        {
                anchor_pt  = "BOTTOM",
                relative_to = "nUI_Dashboard",
                relative_pt = "CENTER",
                xOfs        = -350,
                yOfs        = 125,
        },
        options =
        {
                enabled  = true,
                strata    = nil,
                level    = 2,
                btn_size  = 36,
                block_gap = 10,
                btn_gap  = 1,
                inset    = 3,
               
                border =
                {
                        backdrop =
                        {
                                bgFile  = "Interface\\AddOns\\nUI\\Layouts\\Default\\Art\\nUI_BevelboxBg.blp",
                                edgeFile = "Interface\\AddOns\\nUI\\Layouts\\Default\\Art\\nUI_BevelboxBorder.blp",
                                tile    = true,
                                tileSize = 1,
                                edgeSize = 12,
                                insets  = {left = 0, right = 0, top = 0, bottom = 0},
                        },
                        border_color = { r = 1, g = 1, b = 1, a = 1 },
                        backdrop_color = { r = 0, g = 0, b = 0, a = 0.35 },
                }
        },
};

Comes out as this for solo play:
Also shown G15 Keys, and Carbonite running.

bgdish 01-29-11 12:29 AM

Is it possible for this to be done for just a certain character without having to change the lua file each time you switch toons?

Thanks in advance.

Chmee 01-29-11 03:09 AM

Duplicate the stock nUI+ folder in the addons folder, and name the copy nUI++. Edit the copy's .lua file. In the Addons list at the login screen, enable nUI+, and disable nUI++, for all toons. then go into your one toon's addon list, and disable nUI+, and enable nUI++. That should work.:cool:

Twis_Ted 02-01-11 07:41 AM

I play with an N52 also, with the same 6, 11 as Shift and Ctrl also, and I like the idea of what you have done. One question though, is there a way to make it so the cast bar is 5 on top, 4 in the middle, and 3 underneath like the N52 is when it is set up that way.
Code:

[  1  ][  2  ][  3  ][  4  ][  5  ]
      [  6  ][  7  ][  8  ][  9  ]
      [ 10  ][ 11  ][ 12  ]

That way it is more visual / tactile what we are hitting?

And just out of curiosity what do you have the other buttons and wheel set up as. I use the Thumb button for Vent, and Up D-pad For Mumble, and the wheel up for tab, and down for next PvP target, click last target.

spiel2001 02-02-11 09:10 AM

At present there's no way to have the action bars have a different number of buttons on each row, nor is that planned for nUI6. It's something I'll keep in mind for future development, but at this time, the best you could do would be 5, 5 and 2 or 6 and 6.

Twis_Ted 02-04-11 05:07 AM

Actually, i figured out how to do what I wanted. I made them 3 x 5, and changed them to Page 1, 3, and 5. Now the 13th, 14th, and 15th slots are actually the first 3 slots of page 2, 4, and 6 respectively. Now i have one more question. How would I make the two side boxes, the 6 x 2 ones fill from the bottom up. IE.
Code:

[ 11 ][ 12 ]
[  9 ][ 10 ]
[  7 ][  8 ]
[  5 ][  6 ]
[  3 ][  4 ]
[  1 ][  2 ]

That way the duplicated buttons would be on the bottom. Since these are always clicked on, where 1 and 12 are will not matter to me.

If I figure that out, I will post my code and a picture.

Thanks for the help, and awsome job spiel. Can't wait for V6 to be out.

spiel2001 02-04-11 07:47 AM

Unfortunately, nUI5 does not have an option to support that capability. nUI6 does... you would have to edit [ Interface > AddOns > nUI6 > Layouts > DPS > ActionBarSet.lua ] and modify the values of "origin" and "orientation" for the bars according to how you want the bars to fill.

Details of each option are as follows...

Code:

barSet.Bars["nUI6_MainActionBar"] =
{
    barType    = "ActionBar",
    actionPage  = 1,            -- which action bar page is this bar replicating? 1-10 or nil for a standalone bar, default = nil
    rows        = 1,            -- number of rows of buttons to display (default is 1)
    columns    = 12,            -- number of columns of buttons to display (default is 12)
    origin      = "TOPLEFT",    -- where does the first button go? One of "TOPLEFT", "TOPRIGHT", "BOTTOMLEFT" or "BOTTOMRIGHT", default is "TOPLEFT"
    orientation = "HORIZONTAL",    -- how are buttons oriented on the bar? One of "HORIZONTAL" or "VERTICAL", default is "HORIZONTAL"
    inset      = 0,            -- how far are the edge buttons inset from the edge of the bar frame? Default = 0
    gap        = 0,            -- how much space is there between each button? Default = 0
    pageBar    = true,            -- set true to have this bar page with the main action bar, false otherwise

    anchors =                    -- one or more anchor points for the frame
    {
        [0] =
        {
            anchorPt  = "BOTTOM",                -- which point in the frame to anchor (TOPLEFT, TOP, TOPRIGHT, LEFT, CENTER, RIGHT, BOTTOMLEFT, BOTTOM, BOTTOMRIGHT)
            relativeTo = "nUI6_UpperLeftBar",    -- the name of the frame this anchor point is anchored to
            relativePt = "TOPRIGHT",            -- which point on the anchor frame is this frame being anchored to (TOPLEFT, TOP, TOPRIGHT, LEFT, CENTER, etc...)
            xOfs      = 0,                        -- the horizontal offset between the two anchor points (negative values move the frame left, positive move right)
            yOfs      = 5,                        -- the vertical offset between the two anchor points( negative values move the frame down, positive move up)
        }
    },

    buttonConfig = defaultMainButtonConfig,
   
    border  = nil,
    labels  = nil,
    textures = nil,
};


Twis_Ted 02-04-11 10:24 AM

Thanks. I will figure it out tomarrow. I back everything up, can't mess it up to bad that way =)

spiel2001 02-04-11 11:19 AM

No worries.

By way of example, if you go with rows = 5 and cols = 3 setting origin = "BOTTOMLEFT" and orientation = "VERTICAL" then the buttons would number like this...

Code:

[5] [10] [15]
[4]  [9] [14]
[3]  [8] [13]
[2]  [7] [12]
[1]  [6] [11]

.
If you change that to orientation = "HORIZONTAL" then the bars would fill like this...

Code:

[13] [14] [15]
[10] [11] [12]
 [7]  [8]  [9]
 [4]  [5]  [6]
 [1]  [2]  [3]

.
Change the origin to "BOTTOMRIGHT" and the numbers would reverse depending on the orientation...

Code:

[15] [10] [5]      or      [15] [14] [13]
[14]  [9] [4]              [12] [11] [10]
[13]  [8] [3]              [9]  [8]  [7]
[12]  [7] [2]              [6]  [5]  [4]
[11]  [6] [1]              [3]  [2]  [1]


Twis_Ted 02-05-11 07:02 AM

OK since you've been so nice to help with this, I thought this would work, but no change.
Code:

-- the Bliz "right 1" bar (aka "left" bar in the Bliz code)

        ["nUI_LeftUnitBar"] =
        {               
                btn_size    = 48,
                gap        = 2,
                anchor      = "BOTTOMLEFT",       
                origin      = "BOTTOMLEFT",
                orientation = "HORIZONTAL",       
                yOfs        = -250,
                xOfs        = -680,
                rows        = 6,
                cols        = 2,
                page        = 6,
                nuibind    = "nUI_LEFTUNITBAR",
                binding    = "MULTIACTIONBAR3BUTTON",
                label      = nUI_L["nUI_LeftUnitBar"],
        },

Am I missing something?

spiel2001 02-05-11 01:07 PM

The instructions I was giving were for nUI6, not nUI5. As I stated previously, there is no capability to do what you're asking for in nUI5.

Twis_Ted 02-06-11 03:54 AM

Ohhhh.. Ok thank's. I can live with this, its not that big of a thing anyway =)


All times are GMT -6. The time now is 09:04 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI