Thread Tools Display Modes
05-19-10, 12:26 PM   #1
Belechannas
A Warpwood Thunder Caller
Join Date: May 2010
Posts: 86
Vertically centered HUD bars

Currently the HUD bars for shrink/empty from top to bottom. While this is certainly a reasonable way to do it, I was thinking a nice option would be to have them shrink from both ends (toward the center); this might help keep the visual focus on the middle of the display.

Conceptually, it's a simple change - the filled length of the bar stays the same, but it is always vertically centered, so unfilled space appears at both ends (top and bottom) as damage is taken, instead of only at the top. Pet bars would also be vertically centered, and half the full length, as now.
 
05-19-10, 12:29 PM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
The existing HUD can be easily customized to do this... it just requires new texture art and a minor change to the layout file (change the dimensions of the bars and change the bar orientation from top-to-bottom to left-to-right, etc.
__________________

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/
 
05-19-10, 06:45 PM   #3
Belechannas
A Warpwood Thunder Caller
Join Date: May 2010
Posts: 86
OK, thanks - after poking around a bit, I think I understand what you mean and how to make it work.
 
05-20-10, 06:00 AM   #4
Belechannas
A Warpwood Thunder Caller
Join Date: May 2010
Posts: 86
Well, it seems I was a bit over-optimistic...

I have actually managed to get it to work for the full-sized bars, without changing the artwork, by using the "CENTER" orientation and adding a litte bit of code to deal with it.

This looks better than the alternative of treating the bars as horizontal, since with CENTER, the edge of the filled region is the same as now (a horizontal edge, whereas making the bars horizontal would give the filled region a vertical edge).

Unfortunately, this doesn't work for the smaller bars (Pet, ToT) however, since they are not centered, so it looks like I'll have to replace the art anyway...
 
05-20-10, 06:10 AM   #5
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
You should not have to change any code, only the layout data in the [ Interface > AddOns > nUI > Layouts > Default > HUDLayouts > {hud mode} ] folder (where {hud mode} is one of PlayerTarget, HealthPower, etc.). If you're changing code somewhere else to make this work, then you're doing something wrong.

I'm at work atm, so I don't have access to my code base to show you the things that need changing, I'll try to remember to do that tonight. In the meantime, suffice it to say that the files in the HUDLayout directory are the only place you should be making any changes.
__________________

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/
 
05-20-10, 08:40 PM   #6
Belechannas
A Warpwood Thunder Caller
Join Date: May 2010
Posts: 86
Originally Posted by spiel2001 View Post
You should not have to change any code, only the layout data in the [ Interface > AddOns > nUI > Layouts > Default > HUDLayouts > {hud mode} ] folder (where {hud mode} is one of PlayerTarget, HealthPower, etc.). If you're changing code somewhere else to make this work, then you're doing something wrong.

I'm at work atm, so I don't have access to my code base to show you the things that need changing, I'll try to remember to do that tonight. In the meantime, suffice it to say that the files in the HUDLayout directory are the only place you should be making any changes.
I will take your word for it, but I am pretty sure (from trying it that way) that doing what you suggested (making the bars fill from left to right) will produce a slightly different result than I was after (the bars will have a vertical edge when not full, like all horizontal bars do).

Anyway, I got it to work (perhaps the hard way, but it looks the way I wanted it to...):



The only thing I changed was allowing the code to handle orient = "CENTER" inside if blocks. The other orientations use the same code they did before.

(Seems from the screenshot that I unintentionally swapped the Power/Health order of the smaller bars when I changed art files...looks better after fixing that...)
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_052010_192539.jpg
Views:	1065
Size:	531.8 KB
ID:	4279  

Last edited by Belechannas : 05-20-10 at 09:20 PM.
 
05-21-10, 04:03 AM   #7
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
AH... now that I see your screen shot I understand what you were trying to do... I had misunderstood your intent. I had never considered having the status bars collapse to the center like that. I'll keep that in mind in nUI6.
__________________

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/
 
05-21-10, 04:24 AM   #8
whereswaldo
A Chromatic Dragonspawn
 
whereswaldo's Avatar
Join Date: May 2008
Posts: 167
Would you mind posting the changes you made?
 
05-21-10, 11:50 AM   #9
Belechannas
A Warpwood Thunder Caller
Join Date: May 2010
Posts: 86
Originally Posted by spiel2001 View Post
AH... now that I see your screen shot I understand what you were trying to do... I had misunderstood your intent. I had never considered having the status bars collapse to the center like that. I'll keep that in mind in nUI6.
I am liking how it plays, especially for rage-powered classes where the bar starts empty.

Originally Posted by whereswaldo View Post
Would you mind posting the changes you made?
I don't mind at all, if it is allowed. I was going to make it toggle-able through the console like the other HUD modes, but that will take a bit more work. Right now it replaces the normal Player/Target option. It also requires a few megabytes of new artwork.
 
05-21-10, 01:16 PM   #10
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
If you want to e-mail your changes to me at [email protected] I'll integrate them into what I have and put out a release to support 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/
 
05-21-10, 05:27 PM   #11
Belechannas
A Warpwood Thunder Caller
Join Date: May 2010
Posts: 86
Originally Posted by spiel2001 View Post
If you want to e-mail your changes to me at [email protected] I'll integrate them into what I have and put out a release to support it.
Awesome, done!
 
05-21-10, 06:50 PM   #12
voodoodad
Large, Friendly Letters!
 
voodoodad's Avatar
Join Date: Oct 2008
Posts: 1,632
That's a great look! Bars collapsing to the center instead of one end or the other. Huh, surprised I haven't seen that before.
__________________

~ no need to make the message completely obnoxious - Cairenn
 
05-22-10, 09:49 AM   #13
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I have added this functionality to nUI5 and created a plugin to implement the HUD changes. I'll be releasing both later today.
__________________

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 » Support » nUI: Suggestion Box » Vertically centered HUD bars

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