- Joined
- Nov 22, 2014
- Messages
- 277
- Reaction score
- 52
- First Language
- german
- Primarily Uses
thanks, the alignment thingy works fine! =)
but this square... god damn...
so, I tried it with different fonts = square
with fix = square
without fix = square
without word wrapping = no square, but text is goin out of window.
so it must be in this script snippet because this writes the square somewhere...
I have no clue why this draws a square symbol oO
but this square... god damn...
so, I tried it with different fonts = square
with fix = square
without fix = square
without word wrapping = no square, but text is goin out of window.
so it must be in this script snippet because this writes the square somewhere...
#-------------------------------------------------------------------------- # * Word Wrapping #-------------------------------------------------------------------------- def word_wrapping(text, pos = 0) # Current Text Position current_text_position = 0 for i in 0..(text.length - 1) if text == "\n" current_text_position = 0 next end # Current Position += character width current_text_position += contents.text_size(text).width # If Current Position > Window Width if (pos + current_text_position) >= (contents.width) # Then Format the Sentence to fit Line current_element = i while(text[current_element] != " ") break if current_element == 0 current_element -= 1 end temp_text = "" for j in 0..(text.length - 1) temp_text += text[j] temp_text += "\n" if j == current_element end text = temp_text i = current_element current_text_position = 0 end end return text end
I have no clue why this draws a square symbol oO
