Language

Map.addText


Map.addText(string id, int depth, int x, int y, string font, string text, int text_size, int color_r, int color_g, int color_b, int color_a)

Description

Add a text to the map.

Parameters

id
Unique ID of the entity.
depth
The depth of the entity. Between 0 and 20.
x
X coordinate.
y
Y coordinate.
font
Font to use. Valid values are "8bit", "stext" and "title"
text
Text to write.
text_size
Size of the text.
color_r
Red color value of the text. Between 0 and 255.
color_g
Green color value of the text. Between 0 and 255.
color_b
Blue color value of the text. Between 0 and 255.
color_a
Alpha color value of the text. Between 0 and 255.