(5.5.0) scribble_draw_set_wrap - JujuAdams/ScribbleOldDocs GitHub Wiki
scribble_draw_set_wrap(minLineHeight, maxBoxWidth, [maxBoxHeight], [characterWrap])
Returns: N/A (0
)
Argument | Name | Purpose |
---|---|---|
0 | minLineHeight |
Minimum line height for each line of text. Use a negative number (the default) for the height of a space character of the default font |
1 | maxBoxWidth |
Maximum width for the whole textbox. Use a negative number (the default) for no limit |
[2] | [maxBoxHeight] |
Maximum height for the whole textbox. Use a negative number (the default) for no limit |
[3] | [characterWrap] |
Whether to wrap text per character (rather than per word). Defaults to false . This is useful for very tight textboxes and some East Asian languages |
Scribble's text wrapping operates in a very similar way to GameMaker's native draw_text_ext()
function ("sep" is minLineHeight
and "w" is maxBoxWidth
).
This script sets Scribble's draw state. All text drawn with scribble_draw()
will use these settings until they're overwritten, either by calling this script again or by calling scribble_draw_reset()
or scribble_draw_set_state()
.