Sometimes (seems random) a bubble will just appear in one horizontal line and not respect max width or wrapping. Is there way to avoid this?
apparent random wrong bubble size....
while most of the time it shows the correct size:
An advanced non-linear dialogue system for the free and open-source Godot engine. · By
I admit it's a bit hard customizing from the examples.
Are you editing the json in a text editor or are you using the Dialog Designer application? Open a new thread with your question, maybe post the file or code your using... I can have look. I'm starting too, but I think I've got everything figured out, although I'm only working with bubble messages for now.
I'm not sure if this helps, but I tried changing a line of code (24) in the TextureBackground.gd file. This makes sure that margin property is always set, instead of testing it against the max_width. After more testing I will post if the change worked.
So:
if self.rect_size.x > max_width:
$Text.autowrap = true
self.margin_right = max_width / 2
self.margin_left = -max_width / 2
Became:
if true:
$Text.autowrap = true
self.margin_right = max_width / 2
self.margin_left = -max_width / 2