WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Customizing Layouts (https://www.wowinterface.com/forums/forumdisplay.php?f=95)
-   -   Can target be changed to name? (https://www.wowinterface.com/forums/showthread.php?t=33587)

Gryphandor 06-29-10 09:26 AM

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.

spiel2001 06-29-10 09:41 AM

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.

Xrystal 06-29-10 09:49 AM

Almost there Scott :D

Either Focus or Target or ToT but theres no FocusTarget :D

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.

Gryphandor 06-29-10 10:18 AM

Quote:

Originally Posted by spiel2001 (Post 195036)
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.

spiel2001 06-29-10 01:46 PM

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.

spiel2001 06-29-10 05:24 PM

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,





All times are GMT -6. The time now is 10:06 AM.

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