PDA

View Full Version : Creating extension to change the way health bars look.



Styrmir
December 24th, 2018, 05:22
Hi,

I am wanting to write an extension that changes the appearance of health bars, to make them more readable and cleared to discern without having to zoom in to far.

I'm contemplating two options.

1) Possibly the easier of the two. Making the health bars a little bit wider and to be of equal height as the token at start. Ideally with some sort of border around it so the total original height of it is easy to see. And push it a little to the side so it's not actually on top of the token.

2) Make the health bar appear on top of the tokens (possibly taking up the whole grid width).
So they'll appear and behave similarly to the following screenshot:
25691


Would this be something that is possible, and does anyone know where I should start?

- Styrmir.

Styrmir
December 26th, 2018, 23:02
I have this figured out and working, horizontal health bars that are token width at full health. Will roll it out with update v1.2.0 of the 5e Combat Enchancer.
https://www.fantasygrounds.com/forums/showthread.php?47146-5e-Combat-Enhancer-(built-on-retired-GPL-Advanced-Kombat-extension)

Styrmir
December 26th, 2018, 23:08
[duplicate post feel free to delete]

damned
December 26th, 2018, 23:29
Just to be clear - there are only 2 pointers available - arrowhead and hand. You cannot create new ones.
Good work on health bars!
Have you considered perhaps keeping the bars full width and having a Black background where the lost health is/was?

Styrmir
December 27th, 2018, 16:17
Thanks!

I think to add a background where the previous health bar was I'd need to add another bitmap widget that extends to where the original health bar diminished in size. So not an actual background but a bit of clever coding to make it appear as if there was one.
Might be something I'd try out as part of a minor patch, but before I do I'm wanting to do a bit of gm'ing to see how I like it in its current form. :)

As for overlaying of the health bars over tokens that are placed vertically next to others. That's something I've come to be used to from roll20 I suppose. I added a bit of opacity/transparency to the health bars to make it blend more when that happens.

Arimil508
January 7th, 2021, 13:40
Hey sorry to bother you all. I am fairly new to FGU and have been running two games in pathfinder 1E.
Recently I have been looking into alternatives to the default HP bar. Though I know your HP bar project was strictly 5E. Would it be possible to make a standalone one for other systems.
and again sorry for taking up your time and hope you have a good day.