gdquest-demos / godot-kickstarter-2019

Create your Own Games with Godot, the Free Game Engine: sources from the January Kickstarter project from GDQuest
MIT License
244 stars 270 forks source link

Bounding Box resize tool not wrapping #36

Closed henriiquecampos closed 5 years ago

henriiquecampos commented 5 years ago

Currently the boundingbox resize plugin takes in account \n to estimate the vertical size of the boundingbox. So if a line is really long, or bigger than the horizontal rect_size it won't skip the line, so the final size is not reflected correctly.

So I'll work on a method to take in account the size of the text when wrapped to also increase the vertical size based on how many lines were "wrapped" to fit the text based on the current width of the rect_size