Thread: Hud question
View Single Post
Old 10-28-12, 08:40 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yes... it does.

The HUD is a little different from the other bars, since it's curved it has to use custom graphics to represent the bars rather than just using a color like the other bars. So, to change the bar color in the HUD, you need to modify the graphic texture rather than modify the color setting in the Lua files.

Look in [ Interface\AddOns\nUI\Layouts\Default\Art ] at the various nUI_HUD files. Those are the graphics for the HUD bars. You'll need to grab BlpConverter or an app like that to convert those files from BLP to PNG so you can edit them. Open them up in a graphics tool, modify the bar color to be what you would like and save them back out. Then convert them back to BLP and you're all set.

As for disabling the ToT bars. You can do that, as well. Edit [ Interface\AddOns\nUI\Layouts\Default\HUDLayouts\PlayerTarget\nUI_HUDLayout_PlayerTarget.lua ] with a plain text editor and look for this section...

Code:
            [nUI_HUDUNIT_PLAYERTARGET_TOT] =
            {
                options = 
                {
                    skinName   = nUI_HUDSKIN_PLAYERTARGET_TOT,
                    enabled    = true,
                    
                    strata     = nil,
                    level      = nil,
                    
                    unit_id    = "targettarget",
                    party_id   = nil,
                    raid_id       = nil,
                    visibility = "[target=targettarget, exists] show; hide";
                    
                    scale      = 1,
                    clickable  = false,
                    fade       = true,
                },
            },
            [nUI_HUDUNIT_PLAYERTARGET_FOCUSTARGET] =
            {
                options = 
                {
                    skinName   = nUI_HUDSKIN_PLAYERTARGET_TOT,
                    enabled    = true,
                    
                    strata     = nil,
                    level      = nil,
                    
                    unit_id    = "focustarget",
                    party_id   = nil,
                    raid_id       = nil,
                    visibility = "hide";
                    
                    scale      = 1,
                    clickable  = false,
                    fade       = true,
                },
            },
You need to change the two lines I highlights to read enabled = false; and then save the file. That should do it.
__________________

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/
spiel2001 is offline