0 votes

Hey! I'm using a tree node for a quest list in my game, but I've run into an issue. When I add the description item it gets cut off if it's too long. I've been looking some kind of setting that I could maybe wrap my text if it's too long, but I've found nothing. Help!

Godot version v3.5
in Engine by (17 points)

1 Answer

+1 vote
Best answer

A TreeItem control does not have wrap affect same for any Treeitem control in Windows operating system. You have two options and they are the following:

  1. Use tooltip windows to display the long item text by hovering your mouse cursor over the text item.

  2. Resize the Treeitem control to show the long text item.

The latter is not recommended because you may have other controls (e.g. buttons)
that may end up scrolling off the screen.

On systems such as Windows operating systems a Treeitem control does not allow
wrap affect because if it did, it would cause a huge performance hit when control
needs to rearrange all items so that it can display the long text, especially when
the Treeitem control contains thousands of items.

My advice, use tooltip windows or shorten the text.

by (88 points)
selected by

Thanks for giving an answer, I guess I'll just use tooltips!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.