DrawNumbers¶
Description¶
Draws a number in screen-space.
Parameters¶
startingFrame
-
The ID of the first of ten SpriteFrame that will represent numbers 0-9.
xpos
,ypos
-
The position of the sprite on the horizontal and vertical axes in screen-space.
value
-
The number to draw.
digitCount
-
The maximum number of digits to draw.
spacing
-
The size of the space between digits, in pixels.
showAllDigits
-
If set to
true
, all digits withindigitCount
will be drawn, even ifvalue
is not a big enough number to draw them all. Extra numbers will be drawn as 0.
Return Value¶
None.
Syntax¶
DrawNumbers(int startingFrame, int xpos, int ypos, int value, int digitCount, int spacing, bool showAllDigits)