MrAlaux / Nugget-Doom

Nugget Doom is a fork of Woof! with additional features.
GNU General Public License v2.0
60 stars 3 forks source link

[Possible Bug] NUGHUD oddities #86

Closed NightFright2k19 closed 7 months ago

NightFright2k19 commented 7 months ago

Two potential issues I have found with NUGHUD lumps:

1) When completely commenting out the arms2 entry (for weapon 2/pistol arms slot), the number would appear anyway, but at a completely different position. This means you are effectively unable to hide it.

Example:

; nughud_arms2_x 269
; nughud_arms2_y 165
; nughud_arms2_wide 1

--> "2" appears anyway, but elsewhere (see attached screen) --> If lines are uncommented, "2" appears where it should

2) When using arms1 (for weapon 1/fists arms slot), the number remains dark while it should always be lit (like arms2) since it is always available. See second screenshot below.

Attachments: nugg0000 nugg0001 NUGHUD.txt

ak-988 commented 7 months ago
  1. You can hide it by setting the arms2 x value to -1 which is the recommended way to disable certain widgets (see widgets table at https://github.com/MrAlaux/Nugget-Doom/wiki/Nugget-HUD)

  2. I think that should light up when you get berserk. That's not related to the "show_berserk" cfg option which draws the berserk pack icon. I don't use the 1 digit but I'm a fan of tracking berserk mentally so maybe that option could include the HUD digit too?

MrAlaux commented 7 months ago

Oi, @ak-988 beat me to it. Indeed, the widgets that can be disabled in NUGHUD are disabled by setting their x to -1, and Arms number 1 is lit up only when you have Berserk.

Related to the widget disabling: omitting widget properties will simply make them fall back to their defaults, which is what's happening here. The example nughud.lmp -- which is identical to the default, built-in NUGHUD -- is merely included for reference; you don't necessarily have to include all those properties in whatever HUD you're making, unless you want to change them from their default values.

NightFright2k19 commented 7 months ago

I see. That kinda makes sense, actually. Well, if it's supposed to work like that, I guess we don't really have any problem here. Thanks a lot for the fast response!