problem with the ammo icon of melee weapons on sbarinfo

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
DOOMERO-21
Posts: 1423
Joined: Wed Jan 02, 2008 10:02 pm
Location: Chile

problem with the ammo icon of melee weapons on sbarinfo

Post by DOOMERO-21 »

well i am making a new sbarinfo for superdoom3, all the weapons with ammo, the ammo icon is visible on the hud, the problem are the melee weapons like chainsaw, flashlight or fists,becuase they dont need ammo types...my question is, exist a way to put a ammo type for this melee weapons but at the same time the numbers of ammo cant be visible? is very strange to see that for melee weapons...

here some types, i dont want to use acs for use hudmessage for this, only sbarinfo.
Attachments
this is for the chainsaw
this is for the chainsaw
h_csaw.PNG (826 Bytes) Viewed 182 times
this is the ammo icon for bfg 9000
this is the ammo icon for bfg 9000
h_bfg.PNG (1.98 KiB) Viewed 182 times
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: problem with the ammo icon of melee weapons on sbarinfo

Post by NeuralStunner »

DOOMERO-21 wrote:my question is, exist a way to put a ammo type for this melee weapons but at the same time the numbers of ammo cant be visible?
You want an icon for them but not a number?

In SBarInfo, use IsSelected for each melee weapon, inside each block use DrawImage to draw your "ammo" icon.
User avatar
DOOMERO-21
Posts: 1423
Joined: Wed Jan 02, 2008 10:02 pm
Location: Chile

Re: problem with the ammo icon of melee weapons on sbarinfo

Post by DOOMERO-21 »

really wonderfull thanks =)
Locked

Return to “Editing (Archive)”