You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The _modify_size in dialog_caption.gd doesn't modify the size of the text box correctly - it sets the height of the RichTextLabel, but not the width. Short text lines therefore appear at a different y coordinate to long ones.
Additionally, as text is being typed by the tween, if there's not enough room on the current line for a word, the tween writes whatever part of the word it can fit on the line then erases the half word and rewrites it on the following line before completing it.
The rich text box when you inspect it ends up with a duplicate color entry - i.e.
[center][color=white][color=white]...[/color][/color][/center]
Steps to reproduce
In a 1080p resolution game, use commands like this
await C.get_OfficerBlonde().say("Hi!")
await C.get_OfficerBlonde().say("Do you know the best thing about this shower, Sonny?")
to write text to the screen. According to dialog_text.gd, "wrap_width := 200.0" but the long line will be displayed ignoring that it goes over 200px.
Also, you'll see that the y coordinate of the two lines is very different.
Expected vs observed behavior
Width enforcement should be respected.
Words should not be half written if they don't fit on a line but should be entirely written in their final form on a brand new line.
Environment information (please complete):
Windows 10
4.3
Latest dev branch
Additional context
The text was updated successfully, but these errors were encountered:
Bug description
3 related issues
The _modify_size in dialog_caption.gd doesn't modify the size of the text box correctly - it sets the height of the RichTextLabel, but not the width. Short text lines therefore appear at a different y coordinate to long ones.
Additionally, as text is being typed by the tween, if there's not enough room on the current line for a word, the tween writes whatever part of the word it can fit on the line then erases the half word and rewrites it on the following line before completing it.
The rich text box when you inspect it ends up with a duplicate color entry - i.e.
[center][color=white][color=white]...[/color][/color][/center]
Steps to reproduce
In a 1080p resolution game, use commands like this
to write text to the screen. According to dialog_text.gd, "wrap_width := 200.0" but the long line will be displayed ignoring that it goes over 200px.
Also, you'll see that the y coordinate of the two lines is very different.
Expected vs observed behavior
Width enforcement should be respected.
Words should not be half written if they don't fit on a line but should be entirely written in their final form on a brand new line.
Environment information (please complete):
Additional context
The text was updated successfully, but these errors were encountered: