WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Suggestion Box (https://www.wowinterface.com/forums/forumdisplay.php?f=91)
-   -   Vertically centered HUD bars (https://www.wowinterface.com/forums/showthread.php?t=32598)

Belechannas 05-19-10 12:26 PM

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.

spiel2001 05-19-10 12:29 PM

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.

Belechannas 05-19-10 06:45 PM

OK, thanks - after poking around a bit, I think I understand what you mean and how to make it work.

Belechannas 05-20-10 06:00 AM

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...

spiel2001 05-20-10 06:10 AM

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.

Belechannas 05-20-10 08:40 PM

1 Attachment(s)
Quote:

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

spiel2001 05-21-10 04:03 AM

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.

whereswaldo 05-21-10 04:24 AM

Would you mind posting the changes you made?

Belechannas 05-21-10 11:50 AM

Quote:

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

Quote:

Originally Posted by whereswaldo (Post 188708)
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.

spiel2001 05-21-10 01:16 PM

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.

Belechannas 05-21-10 05:27 PM

Quote:

Originally Posted by spiel2001 (Post 188778)
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!

voodoodad 05-21-10 06:50 PM

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.

spiel2001 05-22-10 09:49 AM

I have added this functionality to nUI5 and created a plugin to implement the HUD changes. I'll be releasing both later today.


All times are GMT -6. The time now is 03:57 PM.

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