DrawInventoryBar
Jump to navigation
Jump to search
Note: This function is for SBARINFO. For the ZScript function of the same name see DrawInventoryBar (BaseStatusBar). |
DrawInventoryBar <style> [, flags, ... ], <size>, <font>, <x>, <y> [, <counterx>, <countery> [, <translation> [, <fontspacing>]]]
Draws an inventory bar at x, y, with size item places. The font is used for the amounts. Flags are:
- alwaysshow
- Draw the bar even if no items are present.
- noartibox
- Will not draw artifact boxes.
- noarrows
- Will not draw the arrows telling the user there are more items to the left and/or right of the viewable items.
- alwaysshowcounter
- Will show the amount even if the player is holding 1 of the said item.
- translucent
- Draws the entire inventory bar with translucency.
- vertical
- Draws the inventory bar vertically.
- drawshadow[(<xOffset>, <yOffset>)]
- Same as the drawshadow flag for DrawNumber. Affects the counter.
Style can be any of the following:
- Doom
- Standard inventory bar.
- Heretic
- Same as Doom but SELECTBO is drawn 29 pixels lower.
- Hexen
- Same as Doom but SELECTBO is drawn 1 pixel higher.
- HexenStrict
- Shifts the icon 2 pixels to the left, moves SELECTBO 1 pixel up and to the left, and changes the alignment of the arrows.
- Strife
- SELECTBO is changed to INVCURS. INVCURS is drawn behind the icons. Each item is given 35 pixel spacing instead of 31 pixels. In addition INVCURS is drawn at (x-6, y-2).
The final optional arguments deal with the font. Counterx and countery is where the numbers should start drawing. If these are not specified, the default is x+26 for counterx and y+22 for countery. See DrawNumber for information on translation and fontspacing.