![]() |
Circular progress meters, the hard way
4 Attachment(s)
Be very afraid of the things I decide to do to kill time at work. ;) Very (VERY) large circular health meter as a proof of concept for circular progress bars. In order to try it out you'll need to add an include to your eq2ui_mainhud.xml for the eq2ui_mainhud_health.xml, then just /show_window MainHUD.Health. The alignment of the progress bars isn't perfect, but it's good enough to show that the idea works in practice. Enjoy!
P.S. I may, at some point, turn this into a player window mod...I've got an idea for the layout, but after doing all the math required to get this thing working right I'm in no hurry to do it again. ;) Edit: Special thanks to Perdition for pointing me in the right direction with the progress bar styles and Deathbane27 for helping me rid myself of the annoying overhang problem I was having. |
Great job :)
Would like to make some tests with bigger health (smaller hole in the middle) |
1 Attachment(s)
The math would be different, and you'd need more "foreground" images to block overlapping portions of the progressbars, but the theory remains the same.
For myself, my end goal is something like the mockup image attached to this message. |
Wow!
This looks really cool!
I am impressed that you did it! I imagine this will be in high demand once it gets to looking like your mock-up! |
2 Attachment(s)
Here's another proof of concept.. Empty's Differnt and doesn't use a overlay..
Install it the same way as the first post if you want to check it out.. |
Ah...very interesting approach, Talyns. I was thinking of how to do it with resizable progress bars, but I think I like your approach better. :)
|
so does it only update every 25% or does it still slowly deplenish as you take damage?
|
It slowly empties..
|
Quote:
Glad ya like it.. I started looking into this a week ago when another post metioned it.. But couldn't get it working, I didn't think it was possible.. Your post convinced me otherwise :) |
Pretty Cool ger!
Are you using the the code for the HO's Window? That has ciruclar progress bar also. doesn't it? |
I didn't mean resizeable in-game so much as in the underlying code. If I understand your code correctly, each guage would have to be coded at actual size, meaning you'd have to define image and progressbar sets for every size. I was shooting for a model where the image and progressbar definitions are only done once but the code for the rest of the objects changes. I think in the long run your method saves on a lot of really annoying math.
|
Quote:
As each individual bar moves out of its own visible areas the next one moves into it, giving the illusion of one continuous bar instead of the 5 individual bars it actually is. Each bar is a rectangular area, but the masked overlay only displays a semi-circular portion of each progressbar, again giving the illusion of a single, circular progressbar. Hope that made some kind of sense. |
The 2nd paragraph makes most sense to me :)
|
Quote:
Yes, I understand what you are saying. The Heroic Oportunity window that pops up has a circular progress bar on it. I haven't even looked to see if we even have a file for that window. But seems like you might be able to use something in there. That's a pretty neat idea the way you worked it thouugh. I was thinking something like that might be possible for the compass also, but decided there was not enough demand for a round compass. not to mention the other issues involed with that. I'll stick to the stuff I think people can use on a daily bases. Your a real glutten for punishment with this project!! lol |
Quote:
My upcoming release includes a WAY slicker version of the XP window, though its not round ;) |
Quote:
It uses 3 images for Horizontal PBs that are 480x120 and 2 images for Vertical PBs that are 120x480.. as long as you kept the ratios for the sizes 1/4 and 4/1 the same and reposistioned it corectly it should work.. What I mean is if you change the Size of all the vertical PBs to say 60x240 and reposistion it correctly.. Then change the sizes of the horizontal PBs to 240x60 and reposistioned them correctly.. They should look ok.. However if you wanted one to empty clockwise and another to empty counter clockwise you would need another set of images and styles.. Again not 100% sure.. I will check it out if I get a chance.. |
Quote:
Quote:
|
Quote:
|
1 Attachment(s)
Quote:
I shrunk the actual images in half (The sizes above).. I made 2 different sized gauges from one set of images and PB styles.. Installed like first post again: |
2 Attachment(s)
Well, it seems this is going to be a bit of a bloatpost since I made 2 styles (one for health, one for power) when I only needed one. Oh well. Ladies and gentlemen, to my knowledge, the first fully functional circular-progress mod. (I don't think I'll be using it personally, but it was a lot of fun to make it)
Talyns, I ended up using your version since it's just so much easier to manipulate than mine. :D Edit: Oops, ignore the ammo window shown in the screenshot--that's Sunthas' ammo window overlaid on the player window. I forgot to Photoshop it out when I cropped the screenshot. |
| All times are GMT -5. The time now is 07:28 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI