Thread Tools Display Modes
03-11-09, 10:03 AM   #1
rossman
A Cyclonian
 
rossman's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 39
N52te button layout

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.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_012509_105647.jpg
Views:	2053
Size:	424.0 KB
ID:	2347  

Last edited by spiel2001 : 03-11-09 at 10:19 AM.
 
05-18-09, 07:19 PM   #2
Tondef
A Cyclonian
 
Tondef's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 40
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.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_051809_201211.jpg
Views:	1326
Size:	148.9 KB
ID:	2667  
__________________
The strength of the wolf is the pack, and the strength of the pack is the wolf.
 
01-29-11, 12:29 AM   #3
bgdish
A Deviate Faerie Dragon
Join Date: Dec 2009
Posts: 10
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.
 
01-29-11, 03:09 AM   #4
Chmee
A Molten Giant
Join Date: Dec 2006
Posts: 960
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.
 
02-01-11, 07:41 AM   #5
Twis_Ted
A Murloc Raider
Join Date: Oct 2009
Posts: 7
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.
 
02-02-11, 09:10 AM   #6
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
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.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
02-04-11, 05:07 AM   #7
Twis_Ted
A Murloc Raider
Join Date: Oct 2009
Posts: 7
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.
 
02-04-11, 07:47 AM   #8
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
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,
};
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
02-04-11, 10:24 AM   #9
Twis_Ted
A Murloc Raider
Join Date: Oct 2009
Posts: 7
Thanks. I will figure it out tomarrow. I back everything up, can't mess it up to bad that way =)
 
02-04-11, 11:19 AM   #10
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
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]
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/

Last edited by spiel2001 : 02-04-11 at 11:23 AM.
 
02-05-11, 07:02 AM   #11
Twis_Ted
A Murloc Raider
Join Date: Oct 2009
Posts: 7
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?
 
02-05-11, 01:07 PM   #12
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
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.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
02-06-11, 03:54 AM   #13
Twis_Ted
A Murloc Raider
Join Date: Oct 2009
Posts: 7
Ohhhh.. Ok thank's. I can live with this, its not that big of a thing anyway =)
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Customizing Layouts » N52te button layout

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off