SetUiWrap
Makes a text a block that wraps at a width.
The text breaks between words into lines no wider than width (a word wider than that is cut), each line aligned at
the text’s x the way SetUiAlign says, the block growing down from its y. A "\n" in the text starts a new line
with or without a width. At most 32 lines; the block moves, fades and hides as one.
Syntax
Section titled “Syntax”SetUiWrap(name, width)| Parameter | Type | |
|---|---|---|
name |
string | the text |
width |
number | the block’s width, in the elements’ space at the text’s scale; 0 = one line again |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”SetUiWrap("rules", 420)See also
Section titled “See also”CreateUiText · the The game’s UI for a script group of the index
