Skip to content

CreateUiText

A line of text in the game’s typeface.

The same face and gold the game’s name plates use. scale 1 is the plate’s 26-pixel size (0.6 a small line); align says which edge sits at x - UI_ALIGN_LEFT, UI_ALIGN_CENTRE or UI_ALIGN_RIGHT. The line does not wrap; SetUiWrap makes it a block that does.

CreateUiText(name, x, y, text [, color, scale, align, parent])
Parameter Type
name string the element’s name
x number where the aligned edge sits
y number the top of the line
text string the line
color number 0xRRGGBB (COLOR_GOLD) (optional)
scale number 1 = 26 pixels (1) (optional)
align number UI_ALIGN_LEFT, UI_ALIGN_CENTRE or UI_ALIGN_RIGHT (UI_ALIGN_LEFT) (optional)
parent string a clip’s name (optional)

string - the name

CreateUiText("score", 960, 24, "Henry 3 - Hans 2", COLOR_WHITE, 0.8, UI_ALIGN_CENTRE)

SetUiText · CreateUiRect · the The game’s UI for a script group of the index