DrawStack iconimage, inventory, maxcount, iconspacing, {horizontal|vertical}, [flags, ..., ] x, y
I'd like a function for SBARINFO that could draw an image for each unit of ammo/inventory/etc. IE: Your gun has 100 bullets, it would draw 100 icons. You can sorta do this with DrawBar, but it's rather crude. I'm using ACS to do it for now, but I'm sure SBARINFO would be a much better place to do this.
SBARINFO DrawStack
Moderator: GZDoom Developers
- LilWhiteMouse
- Posts: 2270
- Joined: Tue Jul 15, 2003 7:00 pm
- Location: Maine, US
- Contact:
- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: SBARINFO DrawStack
I support this.
Though the max count seems kinda pointless. Why not just use the inventory item's max amount?
Though the max count seems kinda pointless. Why not just use the inventory item's max amount?
Re: SBARINFO DrawStack
You could have the display maximum be different from the inventory maximum. The player could be able to hold 100 bullets but you set a max so the stack only displays up to 50. If they have more they just see the size 50 stack.XutaWoo wrote:I support this.
Though the max count seems kinda pointless. Why not just use the inventory item's max amount?
- Chris
- Posts: 2977
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
Re: SBARINFO DrawStack
I think a width+height would be a better idea. That way you can make it so you have, say, a horizontal stack of 20, and when it reaches the 21st, it goes above or below to make another horizontal stack as a continuation. So a count of 32 could have one row of 20 and a second row with 12. A positive value would make the stack "grow" to the right/down, while a negative would make it grow left/up.
- 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: SBARINFO DrawStack
Yes, we need a row of 400 clip icons! 
Cool idea, I say.

Cool idea, I say.
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: SBARINFO DrawStack
In that case I propose an additional argument for an "over" image which is displayed in the event that the display maximum is exceeded, probably a plus sign or a version of the icon that is half-faded.Zippy wrote:You could have the display maximum be different from the inventory maximum. The player could be able to hold 100 bullets but you set a max so the stack only displays up to 50. If they have more they just see the size 50 stack.XutaWoo wrote:I support this.
Though the max count seems kinda pointless. Why not just use the inventory item's max amount?
Re: SBARINFO DrawStack
This would be cool. It would make it so that players in SST would see entire bullets in the "magazine" ammo bar all the time, instead of seeing small uneven slivers of bullets when they have an amount of ammo which isn't evenly divisible by 16.
(Due to the fact that I used DrawBar for the ammo clip graphic ...)

Re: SBARINFO DrawStack
Sorry for the bump, but i was wondering if there were any considerations made about this?