Page 12 of 12

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

PostPosted: Fri Mar 19, 2021 8:58 am
by m8f
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]

PostPosted: Fri Mar 19, 2021 12:45 pm
by Adamast0r
If you ever get around to it, color me interested.

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

PostPosted: Fri Mar 19, 2021 4:17 pm
by dmslr
I'm interested too.

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

PostPosted: Thu Mar 25, 2021 8:42 pm
by Tekish
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]

PostPosted: Fri Mar 26, 2021 2:00 am
by Adamast0r
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]

PostPosted: Fri Mar 26, 2021 6:30 am
by Adamast0r
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]

PostPosted: Fri Mar 26, 2021 7:51 am
by m8f
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]

PostPosted: Fri Mar 26, 2021 7:57 am
by dmslr
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]

PostPosted: Fri Mar 26, 2021 9:39 am
by Tekish
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]

PostPosted: Fri Mar 26, 2021 11:33 am
by Adamast0r
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]

PostPosted: Sun Apr 04, 2021 3:00 am
by Ezper
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]

PostPosted: Sun Apr 04, 2021 10:50 am
by Tekish
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]

PostPosted: Mon Apr 19, 2021 3:39 am
by ShockwaveS08
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.