SBARINFO DrawStack

Moderator: GZDoom Developers

Post Reply
User avatar
LilWhiteMouse
Posts: 2270
Joined: Tue Jul 15, 2003 7:00 pm
Location: Maine, US
Contact:

SBARINFO DrawStack

Post by LilWhiteMouse »

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.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: SBARINFO DrawStack

Post by XutaWoo »

I support this.

Though the max count seems kinda pointless. Why not just use the inventory item's max amount?
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Re: SBARINFO DrawStack

Post by Zippy »

XutaWoo wrote:I support this.

Though the max count seems kinda pointless. Why not just use the inventory item's max amount?
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.
User avatar
Chris
Posts: 2977
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: SBARINFO DrawStack

Post by Chris »

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.
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: SBARINFO DrawStack

Post by NeuralStunner »

Yes, we need a row of 400 clip icons! :P

Cool idea, I say.
User avatar
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

Post by wildweasel »

Zippy wrote:
XutaWoo wrote:I support this.

Though the max count seems kinda pointless. Why not just use the inventory item's max amount?
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.
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.
User avatar
Ænima
Posts: 216
Joined: Thu Jul 08, 2010 10:39 pm

Re: SBARINFO DrawStack

Post by Ænima »

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. :P (Due to the fact that I used DrawBar for the ammo clip graphic ...)
User avatar
Ænima
Posts: 216
Joined: Thu Jul 08, 2010 10:39 pm

Re: SBARINFO DrawStack

Post by Ænima »

Sorry for the bump, but i was wondering if there were any considerations made about this?
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”