Thread Tools Display Modes
06-30-09, 04:03 PM   #1
zoolvamp
A Defias Bandit
Join Date: Mar 2006
Posts: 3
Editing nUI to move elements.

How Hard would it be to edit nUI So that I could move the Center where the Minimap/Focus and Zone Info/Hover info.
And the move everything else to the center. so that i could make the Chat/Combat log bigger (only thing i don't like about addon is how small the chat frame is. otherwise this is going to replace 99% of my addons)

Or is there a way with slash commands to move elemets?
 
06-30-09, 04:09 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,919
As far as I am aware the unit frames aren't moveable as they do not just handle solo play but also party and raid scenarios. Whether the layout files allow this I don't recall noticing. Scott will hopefully be able to confirm one way or another.

Also, /nui movers will allow you move several elements on the screen. Unfortunately the aura and unit frames are not one of them.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
07-01-09, 06:33 AM   #3
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I can be done, but it is a *LOT* of work.

You would have to edit [ Interface > AddOns > nUI > Layouts > Default > nUI_DefaultLayout_Dashboard.lua ] (is that right? Operating from defective memory there) to relocate the minimap and location panels as well as to resize the chat and info panels. Then you would have to edit [ Interface > AddOns > nUI > Layouts > Default > UnitPanels > {panel mode} > nUI_UnitPanel_{panel mode}.lua ] and rearrange all of the elements in that panel.
__________________

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/
 
07-01-09, 10:27 PM   #4
zoolvamp
A Defias Bandit
Join Date: Mar 2006
Posts: 3
Well I've figured out the vaules to move the items, and make the chat bigger im just not seeing where to extend the Background drop.(Picture to show what im talking about. http://bayimg.com/CABPbAAcO ) Any help on this would be greatly appreciate. BTW The code in nUI is the most clean, and organized code I've ever looked at.

--Zigonick
 
07-01-09, 10:35 PM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,919
I've not tried changing it myself but this block of code might be what you want to look at. The height and width values I would guess would resize the chat window:

Code:
nUI_DefaultConfig.ChatFrame =
{	
	anchor =
	{
		anchor_pt   = "BOTTOMRIGHT",
		relative_to = "nUI_Dashboard",
		relative_pt = "CENTER",
		xOfs        = -685,
		yOfs        = -174,
	},	
	
	options = 
	{
		strata   = "BACKGROUND",
		level    = 3,
		scale    = 1,
		height   = 290,
		width    = 585,
		fontsize = 11,
		btn_size = 45,
		btn_gap  = -8,

		background =
		{
			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 },
			},
			
			color =
			{
				border = { r = 1, g = 1, b = 1, a = 1 },
				backdrop = { r = 0, g = 0, b = 0, a = 0.85 },
			},
		},
	},	
};
And this for the info panel window on the right :

Code:
nUI_DefaultConfig.InfoPanel =
{	
	anchor =
	{
		anchor_pt   = "BOTTOMLEFT",
		relative_to = "nUI_Dashboard",
		relative_pt = "CENTER",
		xOfs        = 685,
		yOfs        = -174,
	},	
	
	options = 
	{
		enabled  = true;
		strata   = "BACKGROUND",
		level    = 3,
		scale    = 1,
		height   = 290,
		width    = 585,
		inset    = 6,

		background =
		{
			backdrop =
			{
				bgFile   = "Interface\\AddOns\\nUI\\Layouts\\Default\\Art\\nUI_BevelboxBg", 
				edgeFile = "Interface\\AddOns\\nUI\\Layouts\\Default\\Art\\nUI_BevelboxBorder", 
				tile     = true, 
				tileSize = 1, 
				edgeSize = 12, 
				insets   = { left = 0, right = 0, top = 0, bottom = 0 },
			},
			
			color =
			{
				border = { r = 1, g = 1, b = 1, a = 1 },
				backdrop = { r = 0, g = 0, b = 0, a = 0.85 },
			},
		},
	},	
};
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
07-02-09, 04:03 AM   #6
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
No Xcrystal, he's asking how to change the graphic to match the increased size of his chat frame and info panel.

Zoolvamp, that's not something you program. You have to create a new graphic image to do that. The dashboard is a graphic texture. There are several threads on that subject here in the Customizing Layouts and Plugin Support sections and several people here who are quite good at it... look those sections over. You can find a bit of starting info here http://www.wowinterface.com/forums/s...ad.php?t=21404
__________________

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/
 
07-02-09, 02:45 PM   #7
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,919
*slaps head* .. re-read it and can see the important word I missed off - rofl
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Customizing Layouts » Editing nUI to move elements.

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