Save-Point

Full Version: Save-Point
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Board Message
Sorry, you do not have permission to access this resource.
Save-Point - Need Help! Horizontal Choices!

Save-Point

Full Version: Need Help! Horizontal Choices!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
does changing the width to something like
Code:
def word_wrap(text, width=50)
Help at all? You might just be using a smaller font.

Edit; if you put the word_wrap BEFORE those lines, you've put it in the refresh method. that may be why it's not working. instead try putting it right after the 'class Window_Message < Window_Selectable ' line.
Use ExtendText, it works perfect.
Followed MechanicalPen's and kasikarbon's advice and now it works perfectly.

A thousand thanks.
ExtendText will only fix newly written text, unfortunately. The word_wrapper fixes everything by removes the newlines and placing them where it thinks they should belong. You can use one or the other or both to solve this problem. I plan on writing a similar thing for the script box, but I'm not sure if I'll release it, because it would require use of semi-colons, as scripts treat newlines as 'end of command'
Yeah, I realized that. After that, I noticed ExtendText is the only one that works. I still can't seem to get the word_wrapper to work, no matter where I place it in dubealex's script.
D'oh, sorry everyone, I made a mistake. You actually need
Code:
@now_text.gsub!("\n", "")
  @now_text = word_wrap(@now_text)
Because word_wrap only adds newlines, and does not remove them. I did it this way because of reasons I am not entirely sure of anymore. I wrote the thing two years ago sooooo...

I'll edit my original post so future people are not confused.
Hahaha you genius. xD
Pages: 1 2