If I create a simple label and use caption to put a very long string in, how do I wrap it?
If i set the minimal width on the containing frame and the label itself, that doesn't force the string to wrap. The string just continues off the frame.
\n doesn't work for line breaks.
Is there some way to neatly display long text lines in a gui?
How do you wrap a gui label text?
Re: How do you wrap a gui label text?
No, you can't. The current GUI system does not support multiline, except tooltip.Oarc wrote:If I create a simple label and use caption to put a very long string in, how do I wrap it?
If i set the minimal width on the containing frame and the label itself, that doesn't force the string to wrap. The string just continues off the frame.
\n doesn't work for line breaks.
Is there some way to neatly display long text lines in a gui?
Maybe the rewritten one in v0.15 will, but no one knows.
By the way, wrong forum? I think this is the one you are looking for instead: viewforum.php?f=25
Re: How do you wrap a gui label text?
Moved to Modding help.
See also viewtopic.php?f=28&t=35829
See also viewtopic.php?f=28&t=35829
Rseding91 wrote:The wrapping/text layout system that the library we're using uses is just broken and barely works for what we use it for.
There are plans to rework it for 0.15 so until then it's not really possible to make the text field work nicely with multi-line or wrapping without a ton of hacks.