Thread Tools Display Modes
06-29-10, 09:26 AM   #1
Gryphandor
A Defias Bandit
Join Date: May 2010
Posts: 2
Can target be changed to name?

This is my first post on the forums but I have been using Nui for a few weeks now. I am wondering if it is possible to change something.

What I would like to change is the Target box. Is it at all possible to change it so I can see the name of the target instead of the word target?

Basically I and many others in my guild use the focus frame for Lich King to see who Defile will be casted on right as target is chosen. The color change is fine but when it switches to lets say a shaman and we see a blue word target. It doesn't tell us which one or if our warrior is tanking and the Lich King switches to a DPS warrior. We can't see specifically who in that situation.

So anyway, I would really like to see target names and not the word "Target" if at all possible.


Another option would be to disable the Nui focus and use the default focus frame if that is easier to set up.

Last edited by Gryphandor : 06-29-10 at 09:32 AM.
 
06-29-10, 09:41 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
It is possible. The word target was used because most names won' fit in the space available and overlap.

That said, if you edit [ Interface > AddOns > nUI > Layouts > Default > UnitPanels > {panel mode} > nUI_UnitSkin_{panel mode}_FocusTarget.lua ] where {panel mode} is which unit frame panel you want to change such as Solo, Party, Raid10, etc. located the label section and remove the fixed name for the label. Then it will use the actual name instead of the fixed word.

PS: I may have the file name wrong, I'm at work and operating from memory.
__________________

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/
 
06-29-10, 09:49 AM   #3
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,877
Almost there Scott

Either Focus or Target or ToT but theres no FocusTarget

Although I personally couldn't find the option.

This is the label section in Target:
Code:
		["Label"] =
		{
			[1] =
			{
				anchor =
				{
					anchor_pt   = "TOP",
					xOfs        = 0,
					yOfs        = 0,
				},		
				options =
				{
					enabled = true,
					height  = 35,
					width   = 194,
					inset   = 7,
					strata  = nil,
					level   = 1,
	
					text          = nil,
					show_reaction = true,
					class_colors  = true,
					
					label =
					{
						enabled     = true,
						fontsize    = 11,
						justifyH    = "LEFT",
						justifyV    = "MIDDLE",
						anchor_pt   = "LEFT",
						xOfs        = 10,
						yOfs        = 0,					
						color       = { r = 1, g = 0.83, b = 0, a = 1 },
					},
				
					border =
					{
						backdrop =
						{
							bgFile   = nil, 
							edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", 
							tile     = true, 
							tileSize = 1, 
							edgeSize = 5, 
							insets   = { left = 0, right = 0, top = 0, bottom = 0 },
						},					
						color =
						{
							border   = { r = 1, g = 1, b = 1, a = 0.5 },
							backdrop = { r = 0, g = 0, b = 0, a = 0 },
						},
					},
				},
			},
			[2] =
			{
				anchor =
				{
					anchor_pt   = "BOTTOMRIGHT",
					relative_to = "$parent_Aura2",
					relative_pt = "TOPRIGHT",
					xOfs        = 0,
					yOfs        = 0,
				},		
				options =
				{
					enabled = true,
					height  = 35,
					width   = 350,
					inset   = 7,
					strata  = nil,
					level   = nil,
	
					text          = nil,
					show_reaction = true,
					class_colors  = true,
					clickable     = false,
					
					label =
					{
						enabled     = true,
						fontsize    = 12,
						justifyH    = "CENTER",
						justifyV    = "MIDDLE",
						xOfs        = 0,
						yOfs        = 0,					
						color       = { r = 1, g = 1, b = 1, a = 1 },
					},
				
					border =
					{
						backdrop =
						{
							bgFile   = "Interface\\Tooltips\\UI-Tooltip-Background", 
							edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", 
							tile     = true, 
							tileSize = 1, 
							edgeSize = 4, 
							insets   = { left = 0, right = 0, top = 0, bottom = 0 },
						},					
						color =
						{
							border   = { r = 1, g = 1, b = 1, a = 0.5 },
							backdrop = { r = 0.25, g = 0.25, b = 0.25, a = 0.5 },
						},
					},
				},
			},
		},
both label and text seem to be what you are talking about but not sure which.
__________________

Last edited by Xrystal : 06-29-10 at 09:55 AM.
 
06-29-10, 10:18 AM   #4
Gryphandor
A Defias Bandit
Join Date: May 2010
Posts: 2
Originally Posted by spiel2001 View Post
It is possible. The word target was used because most names won' fit in the space available and overlap.

That said, if you edit [ Interface > AddOns > nUI > Layouts > Default > UnitPanels > {panel mode} > nUI_UnitSkin_{panel mode}_FocusTarget.lua ] where {panel mode} is which unit frame panel you want to change such as Solo, Party, Raid10, etc. located the label section and remove the fixed name for the label. Then it will use the actual name instead of the fixed word.

PS: I may have the file name wrong, I'm at work and operating from memory.
Ya the file name may be wrong. I can't find anything close to what you said I need to change. Doesn't mean it isn't there and I just don't see it. Will continue to look threw and see what I can find.

Also I am just a melee DPS and can switch to party or seeing myself instead of the raid for the unit frames. So the name of a target running into another thing will not be a real issue for me. Perhaps the target box for focus frame could infact be increased in size for the solo tab.

Last edited by Gryphandor : 06-29-10 at 01:04 PM.
 
06-29-10, 01:46 PM   #5
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I'll be headed home from work soon, I'll pull up the exact file and the exact code segment then. Sorry I couldn't remember the right name off hand.
__________________

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/
 
06-29-10, 05:24 PM   #6
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
OKay... took a while to get home this evening.

So, as promised, the file you're looking for is [ Interface > AddOns > nUI > Layouts > Default > UnitPanels > {panel mode} > nUI_UnitSkin_{panel mode}TgtButton.lua ] -- locate the section copied below and comment out or delete the line I highlighted.

Code:
            options =
            {
                enabled = true,
                height  = 35,
                width   = 72,
                inset   = 3,
                strata  = nil,
                level   = nil,

                text          = nUI_L["Target"],
                show_reaction = true,
                class_colors  = true,
                clickable     = true,


__________________

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/
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Customizing Layouts » Can target be changed to name?

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