Jump to content

Devlin

Member
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0

About Devlin

  • Rank
    Newbie
  1. Thank you for a quick fix. I tested your updated script and WhiteSpace mode now works beautifully. It's a timesaver.
  2. I'm surprised that nobody reported the bug so it might be a human error of my doing. When I tried to use WhiteSpace mode -- (using /WS, and/or setting TRUE in DEFAULT_WHITESPACE), the game crashed and spat error at me. I encountered it in the blank project. Script 'Word Wrapping' line 52: TypeError occurred. Rect can't be coerced into Fixnum alias_method :process_character_kz_window_base, :process_character def process_character(c, text, pos) if @wordwrap c = " " if @convert_newlines && c == "\n" if c =~ /[ \t]/ --> if pos[:x] + get_next_word_size(c, text) > contents.width <-- line 52 process_new_line(text, pos) else process_normal_character(c, pos) end return end end process_character_kz_window_base(c, text, pos) end
×
Top ArrowTop Arrow Highlighted