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

For high-res texture/sprite projects, sprite-fix patches, music add-ons, music randomizers, and other graphic/sound-only projects.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
m8f
 
 
Posts: 1377
Joined: Fri Dec 29, 2017 4:15 am
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Other Linux 64-bit
Location: Siberia (UTC+7)

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

Post by m8f »

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.
User avatar
Ac!d
Posts: 306
Joined: Tue Apr 02, 2019 5:13 am
Discord: Ac!d#2732
Operating System: Windows 10/8.1/8 32-bit
Location: France

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

Post by Ac!d »

[imgur]https://imgur.com/k7je477[/imgur]
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 ?
User avatar
m8f
 
 
Posts: 1377
Joined: Fri Dec 29, 2017 4:15 am
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Other Linux 64-bit
Location: Siberia (UTC+7)

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

Post by m8f »

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?
User avatar
Ac!d
Posts: 306
Joined: Tue Apr 02, 2019 5:13 am
Discord: Ac!d#2732
Operating System: Windows 10/8.1/8 32-bit
Location: France

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

Post by Ac!d »

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.
User avatar
m8f
 
 
Posts: 1377
Joined: Fri Dec 29, 2017 4:15 am
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Other Linux 64-bit
Location: Siberia (UTC+7)

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

Post by m8f »

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.
User avatar
namsan
Posts: 145
Joined: Sat Mar 31, 2012 4:27 am
Discord: Namsan#8146
Location: Japan

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

Post by namsan »

Hey, I really love this mod.
Can you implement the opacity feature like your other mods, like Target Spy?
User avatar
m8f
 
 
Posts: 1377
Joined: Fri Dec 29, 2017 4:15 am
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Other Linux 64-bit
Location: Siberia (UTC+7)

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

Post by m8f »

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.
User avatar
mamaluigisbagel
Posts: 374
Joined: Wed Jul 09, 2014 7:25 pm
Discord: Nonemployee#1013
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

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

Post by mamaluigisbagel »

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.
User avatar
m8f
 
 
Posts: 1377
Joined: Fri Dec 29, 2017 4:15 am
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Other Linux 64-bit
Location: Siberia (UTC+7)

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

Post by m8f »

Status Widget should be universal. Is there a problem with some particular mod?
User avatar
mamaluigisbagel
Posts: 374
Joined: Wed Jul 09, 2014 7:25 pm
Discord: Nonemployee#1013
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

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

Post by mamaluigisbagel »

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.
User avatar
Spaceman333
Posts: 614
Joined: Thu Oct 13, 2016 8:40 pm

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

Post by Spaceman333 »

Does this display powerup countdowns too?
User avatar
m8f
 
 
Posts: 1377
Joined: Fri Dec 29, 2017 4:15 am
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Other Linux 64-bit
Location: Siberia (UTC+7)

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

Post by m8f »

Not yet. Thanks for the suggestion!
User avatar
mamaluigisbagel
Posts: 374
Joined: Wed Jul 09, 2014 7:25 pm
Discord: Nonemployee#1013
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

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

Post by mamaluigisbagel »

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.
User avatar
m8f
 
 
Posts: 1377
Joined: Fri Dec 29, 2017 4:15 am
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Other Linux 64-bit
Location: Siberia (UTC+7)

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

Post by m8f »

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.
User avatar
mamaluigisbagel
Posts: 374
Joined: Wed Jul 09, 2014 7:25 pm
Discord: Nonemployee#1013
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

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

Post by mamaluigisbagel »

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.

[imgur]https://imgur.com/0QavrMx[/imgur]

Return to “Graphic/Audio Patches”