[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 YOUR 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.

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

Postby m8f » 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.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit

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

Postby Ac!d » 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 ?
User avatar
Ac!d
Perfection is a way, not an end. - Korean Proverb
 
Joined: 02 Apr 2019
Location: France
Discord: Ac!d#2732

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

Postby m8f » 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?
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit

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

Postby Ac!d » 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.
User avatar
Ac!d
Perfection is a way, not an end. - Korean Proverb
 
Joined: 02 Apr 2019
Location: France
Discord: Ac!d#2732

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

Postby m8f » 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.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit

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

Postby namsan » 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?
User avatar
namsan
piss piss piss piss piss piss piss
 
Joined: 31 Mar 2012
Location: Japan
Discord: Namsan#8146

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

Postby m8f » 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.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit

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

Postby mamaluigisbagel » 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.
User avatar
mamaluigisbagel
"If I ever have kids, they're going to come out circle-strafing." ~Civvie 11
 
Joined: 09 Jul 2014
Discord: Nonemployee#1013
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia (Modern GZDoom)

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

Postby m8f » Sat May 29, 2021 6:27 am

Status Widget should be universal. Is there a problem with some particular mod?
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit

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

Postby mamaluigisbagel » 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.
User avatar
mamaluigisbagel
"If I ever have kids, they're going to come out circle-strafing." ~Civvie 11
 
Joined: 09 Jul 2014
Discord: Nonemployee#1013
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia (Modern GZDoom)

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

Postby Spaceman333 » Mon May 31, 2021 12:22 am

Does this display powerup countdowns too?
User avatar
Spaceman333
 
Joined: 13 Oct 2016

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

Postby m8f » Mon May 31, 2021 11:57 am

Not yet. Thanks for the suggestion!
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit

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

Postby mamaluigisbagel » 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.
User avatar
mamaluigisbagel
"If I ever have kids, they're going to come out circle-strafing." ~Civvie 11
 
Joined: 09 Jul 2014
Discord: Nonemployee#1013
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia (Modern GZDoom)

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

Postby m8f » 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.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit

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

Postby mamaluigisbagel » 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.

User avatar
mamaluigisbagel
"If I ever have kids, they're going to come out circle-strafing." ~Civvie 11
 
Joined: 09 Jul 2014
Discord: Nonemployee#1013
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Next

Return to Graphic/Audio Patches

Who is online

Users browsing this forum: No registered users and 1 guest