User Tools

Site Tools


crpl:docs:settextalignment

<- CRPL reference <- Text Commands

SetTextAlignment

ArgumentsResultNotation
Alignment s1 –

Description

Sets the text alignment within the text box.

Valid string arguments are “Left”, “Center”, and “Right”. Unrecognized strings or numbers are treated as Center.

The Alignment refers to the alignment within the text box. It doesn't change the position of the text box, and will thus be of no effect without multiple lines of text.

Examples

# Display text right-aligned, so that "World" will be directly below "Creeper", centered on the CRPLCore.
"Hello Creeper
World" SetText
"Right" SetTextAlignment
crpl/docs/settextalignment.txt · Last modified: 2021/02/05 11:45 by Karsten75