Draws straight onto the screen, over the game and under every window. Call these from a draw event handler; they
draw for that one frame. Coordinates are UI units from the top-left corner (draw.screen() is the size). Colours: see
Color below.
In the game's own GUI pass (the gui event and a page's draw function, API 3) draw.sprite, draw.text, draw.textSize, draw.fillRect, draw.rect, draw.line and draw.screen use the game's renderer and its units instead: the screen 320 high, y from the top, the game's fonts; the other functions work only in draw.
Draws one of the game's sprites. In the gui event in game units, inside the game's GUI; in the draw event in UI units, as large as the game shows it, over everything.
Parameter
Type
name
string
a sprite of the game (ui/*.cfg: button_dino_active_9, icon_radar ...), of your sprite file, or a .tga file
x
number
left edge (centre with center = true)
y
number
top edge
optionsoptional
table
scale, w, h (size), color (tint), angle (degrees), center, flipX, flipY, layer (gui pass)