Paragraphs in DirectGUI?

The title pretty much explains it all.

If I display text in DirectGUI, it exceeds the frame around it and invades the area outside the box/frame/button if the text is too long. Is there a way to automatically make a new line other than typing \n, which would usually result in inconsistent line lengths?

Could possibly be something I missed out on in the manual but I couldn’t find anything there.

I think that a DirectLabel can word-wrap, by virtue of passing in a “text_wordwrap” keyword-parameter. However, I’m not sure of this offhand–I suggest trying it and seeing!

Otherwise, both OnscreenText and TextNode provide word-wrapping, I believe.

1 Like