Creates a block of text with a color and font size; sizes are pixel strings or fractions of the parent, and a size left out is chosen by the engine.
The name, the text, the color, the optional size and the font size
The text block
Passes through the name of a text block event, its text changing, as a typed selector for code that subscribes to text block events by name.
The event selector
The same selector
Reads the text a text block currently shows.
The text block
The text
Reads how a text block handles text wider than itself.
The text block
The wrapping mode
Reads the extra space between the lines of a text block.
The text block
The line spacing
Reads the width of the outline around a text block's letters, 0 meaning none.
The text block
The outline width
Reads whether a text block resizes itself to fit its text.
The text block
True when it resizes to fit
Reads where the text sits horizontally in its block, as the engine's number for left, center or right.
The text block
The horizontal alignment code
Reads where the text sits vertically in its block, as the engine's number for top, center or bottom.
The text block
The vertical alignment code
Sets where the text sits inside its block: left, center or right, and top, center or bottom.
The text block and the two alignments
The same text block
Draws an outline around the letters of a text block, outlineWidth pixels wide in
outlineColor, which keeps text readable over a busy scene; 0 removes it.
The text block, the outline width and the outline color
The same text block
Changes the text a text block shows to the given text.
The text block and the text
The same text block
Lets a text block grow or shrink to fit its text, when true, instead of keeping its set size.
The text block and the flag
The same text block
Sets how a text block handles text wider than itself: wrap onto new lines when true, clip when false, or one of the engine's wrapping modes such as ellipsis.
The text block and the wrapping mode
The same text block
Sets the extra space between the lines of a wrapped text block, as pixels or a string such as
4px.
The text block and the line spacing
The same text block
Text labels: a block of text with a color, font size, alignment, optional outline, wrapping and line spacing. Use one for titles and readouts next to other controls.