I am currently working on a chat system which will replace the default chat window. Reason behind this is so modders can control what chat messages each player sees or disable chat all together.
Well on to my problem.
I am working on text wrapping. Here is my current code for text wrapping from line to line:
Currently this code has the problem of text not going to the end of the line before wrapping and also words can get broken up in half. I need a way to wrap the text better so it goes the to the end of the line and doesn't break up words in half.
There is and isn't. The best way to NOT break up words, and to keep as close to 60 letters per line would be to count spaces. It should be possible, using clever segments of code (Ie: You would have to check for repetition, mass spaces, no spaces, and then characters, as well).
If you want, I could write something up.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am currently working on a chat system which will replace the default chat window. Reason behind this is so modders can control what chat messages each player sees or disable chat all together. Well on to my problem.
I am working on text wrapping. Here is my current code for text wrapping from line to line:
Currently this code has the problem of text not going to the end of the line before wrapping and also words can get broken up in half. I need a way to wrap the text better so it goes the to the end of the line and doesn't break up words in half.
bump.
There has got to be a solution.