Skip to content

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.

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

nothing

SetUiWrap("rules", 420)

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