SBARINFO DrawStack

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: SBARINFO DrawStack

Re: SBARINFO DrawStack

by Ænima » Sat Jan 28, 2012 7:34 am

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

Re: SBARINFO DrawStack

by Ænima » Thu Sep 09, 2010 5:36 pm

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 ...)

Re: SBARINFO DrawStack

by wildweasel » Fri Sep 03, 2010 9:48 am

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.

Re: SBARINFO DrawStack

by NeuralStunner » Thu Sep 02, 2010 6:59 pm

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

Cool idea, I say.

Re: SBARINFO DrawStack

by Chris » Thu Sep 02, 2010 6:57 pm

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.

Re: SBARINFO DrawStack

by Zippy » Thu Sep 02, 2010 3:49 pm

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.

Re: SBARINFO DrawStack

by XutaWoo » Thu Sep 02, 2010 3:42 pm

I support this.

Though the max count seems kinda pointless. Why not just use the inventory item's max amount?

SBARINFO DrawStack

by LilWhiteMouse » Thu Sep 02, 2010 8:37 am

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.

Top