Jump to content

WrapText


EniarTenokei
 Share

You are about to reply to a thread that has been inactive for 1701 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

The description at the top pretty much says it:  "Splits a long text string into lines whose character length you get to specify. Useful, for instance, for long floating text to make it tidier. It will not split words at odd places but instead look for the space in the text nearest to the length you have specified."  The example script is a user-defined function that you just pop into the top of your script.  Then call it with 

WrapText("Text goes here", line_length);

That's what the format at the top of the wiki entry says:

Function: string WrapText(string source, integer length);

  • Like 1
Link to comment
Share on other sites

2 hours ago, Rolig Loon said:

The description at the top pretty much says it:  "Splits a long text string into lines whose character length you get to specify. Useful, for instance, for long floating text to make it tidier. It will not split words at odd places but instead look for the space in the text nearest to the length you have specified."  The example script is a user-defined function that you just pop into the top of your script.  Then call it with 

WrapText("Text goes here", line_length);

That's what the format at the top of the wiki entry says:

Function: string WrapText(string source, integer length);

Thank you for your answer. I now know how to use it properly.

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1701 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...