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.
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”string - the name
Example
Section titled “Example”CreateUiText("score", 960, 24, "Henry 3 - Hans 2", COLOR_WHITE, 0.8, UI_ALIGN_CENTRE)See also
Section titled “See also”SetUiText · CreateUiRect · the The game’s UI for a script group of the index
