[minimod][v1.2.0] Status Widget - Health, Armor, Ammo, etc

Sat May 15, 2021 7:05 am

Status Widget is an add-on for GZDoom. It displays changes of health, armor, ammo, and more.

It can be used as a supplement to a HUD or as a replacement for a HUD.

Image

Download
Source

Features

  • minimalistic UI;
  • customizable;
  • lots of things to track - health, ammo, inventory items, armor, weapons, keys, oxygen, powerups.
  • max value highlighting for ammo, inventory items, health, armor.
  • extendable - see API.

API

Status Widget is extendable - you can track any kind of thing. To do this, create a class that inherits sw_Tracker. See zscript/status-widget/tracker.zs for API documentation and sw_InventoryTracker for an example.

Acknowledgments

  • Thanks to Ac!d for bug reports.
  • Thanks to namsan for feature suggestions.
  • Thanks to Spaceman333 for feature suggestions.
  • Thanks to mamaluigisbagel for feature suggestions.

Known Issues

Messages can be not correct right after enabling message types. They become correct after the incorrect messages disappear.

This mod is a part of m8f's toolbox.
Last edited by m8f on Sat Jun 05, 2021 8:40 am, edited 5 times in total.

Re: [minimod][v0.1.0] Status Widget - Health, Armor, Ammo, I

Tue May 18, 2021 2:19 pm


Why do I got the ammo types of Strife : Quest for the Sigil on screen when I picked up a backpack in Doom 2 : Hell on Earth ?

Re: [minimod][v0.1.0] Status Widget - Health, Armor, Ammo, I

Tue May 18, 2021 7:54 pm

That's how backpack works in GZDoom. It gives the player every defined ammo type. You can check it by typing printinv in console before and after picking a backpack. There will be Heretic, Hexen and Strife ammo.

That said, Status Widget should print "Ammo Package +1" instead of listing every ammo type when you pick up a backpack. What did you do to get the verbose list?

Re: [minimod][v0.1.0] Status Widget - Health, Armor, Ammo, I

Wed May 19, 2021 5:33 am

I understand how 'BackpackItem' works for every IWADs.
m8f wrote:What did you do to get the verbose list?
I've just picked up some bacpacks on Kinsie's map test.

Re: [minimod][v1.0.0] Status Widget - Health, Armor, Ammo, I

Wed May 19, 2021 11:15 am

Aha, I found the bug: Ammo Package message wasn't displayed if any of ammo types was maxed out. Fixed the bug by filtering ammo types and removing Ammo Package message. Thanks for reporting!

Update: Status Widget v1.0.0 Stable (hopefully :)). Changes from v0.1.0:
  • show ammo only for weapons player can have;
  • removed "Ammo Package" message, show separate ammo messages instead;
  • improved message merging (new messages tries to merge with all on-screen messages, not only the last).
  • API change: negative oldValue in messages no longer supported.
  • Added API documentation.

Re: [minimod][v1.0.0] Status Widget - Health, Armor, Ammo, I

Tue May 25, 2021 7:28 pm

Hey, I really love this mod.
Can you implement the opacity feature like your other mods, like Target Spy?

Re: [minimod][v1.1.0] Status Widget - Health, Armor, Ammo, I

Fri May 28, 2021 12:21 pm

Status Widget updated. Changelog since v1.0.0:

  • added opacity option;
  • weapons and keys are now tracked too;
  • added individual toggles for message types.
  • moved all strings to language lump.

Re: [minimod][v1.1.0] Status Widget - Health, Armor, Ammo, e

Sat May 29, 2021 6:22 am

Just to clarify, this does not work with gameplay/some weapon mods currently, right? I figured it'd be a good idea to ask, and if not, to clarify in the first post.

Re: [minimod][v1.1.0] Status Widget - Health, Armor, Ammo, e

Sat May 29, 2021 6:27 am

Status Widget should be universal. Is there a problem with some particular mod?

Re: [minimod][v1.1.0] Status Widget - Health, Armor, Ammo, e

Sat May 29, 2021 6:45 am

ah okay. When it first came out, I had a crash with Meta-Doom, but I haven't tried it again since. I'll start using it more and report anything I find.

Re: [minimod][v1.1.0] Status Widget - Health, Armor, Ammo, e

Mon May 31, 2021 12:22 am

Does this display powerup countdowns too?

Re: [minimod][v1.1.0] Status Widget - Health, Armor, Ammo, e

Mon May 31, 2021 11:57 am

Not yet. Thanks for the suggestion!

Re: [minimod][v1.1.0] Status Widget - Health, Armor, Ammo, e

Tue Jun 01, 2021 6:32 am

No bugs yet, but out of curiosity, do you think it'd be a good feature to have the max number (ie 100 Health, 200/400 bullets, etc) to display in a different color (Say light blue) when it reaches its maximum amount? So when it says "Health +1 -> 100" the 100 would be in blue, but if it said "Health +1 -> 99" the 99 would still be white? I don't know if that'd be that easy, since now that I think about it you have to consider items like soulspheres that go past the limit, but just trying to think of things.

Re: [minimod][v1.2.0] Status Widget - Health, Armor, Ammo, e

Sat Jun 05, 2021 8:42 am

Status Widget updated to v1.2.0. Changes since v1.1.0:

- added oxygen tracking;
- added powerup tracking;
- added max value highlighting for health, armor, ammo, inventory items;
- improved performance;
- changed icon.

Re: [minimod][v1.2.0] Status Widget - Health, Armor, Ammo, e

Sun Jun 06, 2021 3:46 am

Thanks for adding the feature I suggested!

Also will report, though I feel this is more of a compatibility problem, when using the Blur Sphere card in Corruption Cards (Enemies always aim at you as if you have Partial Invisibility) you end up with a permanent status widget for the infinite Blur Sphere it gives you.