+1 vote

The tree only seems to support string, check, range and icon buttons. So how can we get color pickers?

(Or how does Godot's inspector panel do it?)


I figured out the custom one a bit, but not enough. I think it may be the answer, but I can't figure out how. This:

item.set_cell_mode(1, TreeItem.CELL_MODE_CUSTOM)
item.set_custom_draw(1, self, "foo")

Doesn't see to ever call this callback:

func foo():
    print("TreeItem callback was called")

And I can't figure out how to make it call it...

in Engine by (196 points)
edited by

Please log in or register to answer this question.

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 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 webmaster@godotengine.org with your username.