Re: Simple HUD Add-ons [Updated March 5, 2021]

Fri Mar 19, 2021 8:58 am

There is a niche purpose for universal key display: a mapset or a game has custom keys and a HUD that displays them, but player wants to play with a different HUD instead, which can't display those custom keys.

Re: Simple HUD Add-ons [Updated March 5, 2021]

Fri Mar 19, 2021 12:45 pm

If you ever get around to it, color me interested.

Re: Simple HUD Add-ons [Updated March 5, 2021]

Fri Mar 19, 2021 4:17 pm

I'm interested too.

Re: Simple HUD Add-ons [Updated March 25, 2021]

Thu Mar 25, 2021 8:42 pm

I've created a new add-on (PlayerInfo) to address this, rather than creating a HUD. It retains all of the dynamic features as the other add-ons. Per m8f's suggestion, it also includes an independent key display which should dynamically show custom keys from mods and various games. Its positioning and sizing options are a bit different (and separate) since its rendered in ZScript.

Re: Simple HUD Add-ons [Updated March 25, 2021]

Fri Mar 26, 2021 2:00 am

Tekish wrote:I've created a new add-on (PlayerInfo) to address this, rather than creating a HUD. It retains all of the dynamic features as the other add-ons. Per m8f's suggestion, it also includes an independent key display which should dynamically show custom keys from mods and various games. Its positioning and sizing options are a bit different (and separate) since its rendered in ZScript.

This is awesome. I set the screen size to twelve and use the ammo, player and level info as a whole HUD. Thanks for taking the time to do this.

Re: Simple HUD Add-ons [Updated March 25, 2021]

Fri Mar 26, 2021 6:30 am

Additionally, and not wanting to push my luck but, if you ever feel like doing a power-ups info of sorts, probably only the timed ones though (excluding the berserk, of course) that would just be the cherry on top.

Re: Simple HUD Add-ons [Updated March 25, 2021]

Fri Mar 26, 2021 7:51 am

Awesome, thanks!

Suggestion: use BaseStatusBar.GetInventoryIcon instead of getkey.althudicon and getkey.icon, like this (with icon priority adjusted to your taste):
Spoiler:
Reason: The Adventures of Square keys. Only four of them have icons, others can be displayed only as spawn sprites.

Re: Simple HUD Add-ons [Updated March 25, 2021]

Fri Mar 26, 2021 7:57 am

Adamast0r wrote:Additionally, and not wanting to push my luck but, if you ever feel like doing a power-ups info of sorts, probably only the timed ones though (excluding the berserk, of course) that would just be the cherry on top.

Please, read the OP carefully.

Re: Simple HUD Add-ons [Updated March 25, 2021]

Fri Mar 26, 2021 9:39 am

m8f wrote:Suggestion: use BaseStatusBar.GetInventoryIcon instead of getkey.althudicon and getkey.icon. Reason: The Adventures of Square keys. Only four of them have icons, others can be displayed only as spawn sprites.

Thanks, I probably should have tested this beforehand. Since the sprites and icons tend to look different, I've added this as an option.

Adamast0r wrote:Additionally, and not wanting to push my luck but, if you ever feel like doing a power-ups info of sorts, probably only the timed ones though (excluding the berserk, of course) that would just be the cherry on top.

As dmslr hinted, this stuff already exists in LevelInfo. Look for the "Show Active Powerups" option.

Re: Simple HUD Add-ons [Updated March 25, 2021]

Fri Mar 26, 2021 11:33 am

Tekish wrote:
m8f wrote:Suggestion: use BaseStatusBar.GetInventoryIcon instead of getkey.althudicon and getkey.icon. Reason: The Adventures of Square keys. Only four of them have icons, others can be displayed only as spawn sprites.

Thanks, I probably should have tested this beforehand. Since the sprites and icons tend to look different, I've added this as an option.

Adamast0r wrote:Additionally, and not wanting to push my luck but, if you ever feel like doing a power-ups info of sorts, probably only the timed ones though (excluding the berserk, of course) that would just be the cherry on top.

As dmslr hinted, this stuff already exists in LevelInfo. Look for the "Show Active Powerups" option.

You're right. Sorry about that. The HUD is great as is.

Re: Simple HUD Add-ons [Updated March 26, 2021]

Sun Apr 04, 2021 3:00 am

This is great, however, a problem I encountered is that none of these are compatible with Zandronum :((

Re: Simple HUD Add-ons [Updated March 26, 2021]

Sun Apr 04, 2021 10:50 am

Zandronum doesn't currently support ZScript. Until it does, these add-ons will unfortunately not be compatible.

Re: Simple HUD Add-ons [Updated March 26, 2021]

Mon Apr 19, 2021 3:39 am

Managed to reduce the filesize of the Hitmarkers portion of your addon by converting all of its sounds to .OGG format. Attached is a copy of the converted sounds, for use if you feel the need.
You do not have the required permissions to view the files attached to this post.

Re: Simple HUD Add-ons [Updated March 26, 2021]

Thu Jul 01, 2021 11:33 pm

Question: how can I change the font used in these? I'd like to use Doom's default for messages.

Re: Simple HUD Add-ons [Updated July 2, 2021]

Fri Jul 02, 2021 12:42 pm

You'd need to convert an existing font into one that works with the alignment algorithm that LevelInfo/AmmoInfo/PlayerInfo use. It's actually kind of a pain in the ass, and I'm not sure why I chose to do it this way. Unfortunately, it's too late to go and do it better, so for now I've converted the small Doom font to work within this system. It isn't a perfect translation - you'll notice I had to take liberties with a few characters to make them fit - but it's good enough. You can toggle it on in the options.