The "sys_cmd_draw" Function
#
SyntaxArgument | Type | Description |
---|---|---|
x | real | The horizontal position to draw the console |
y | real | The vertical position to draw the console |
width | real | sets the console width in pixels |
height | real | sets the console height in pixels |
font | font | sets the console output font |
col1 | color | sets the console background color |
col2 | color | sets the console foreground color |
#
DescriptionDraws the command console with the specified position, dimensions, and style when visible. The console is positioned from the top-left corner.
Note that any input longer than the width of the console will be scrolled to the position of the cursor, not line-wrapped.
As this script is run automatically by other engine functions, it is almost never necessary to run sys_cmd_draw
manually.