EniarTenokei Posted August 27, 2019 Share Posted August 27, 2019 http://wiki.secondlife.com/wiki/WrapText How would I go about using this code to wrap text? Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 27, 2019 Share Posted August 27, 2019 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); 1 Link to comment Share on other sites More sharing options...
EniarTenokei Posted August 27, 2019 Author Share Posted August 27, 2019 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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