-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add get_tree_string
and get_tree_string_pretty
methods to Node to complement printing methods
#73421
Conversation
Is there a feature proposal for this? https://github.com/godotengine/godot-proposals |
yes it is: godotengine/godot-proposals#6288 |
Old Same thing with the not pretty methods. |
yes but doing that will make my PR destructive and less easy to approve |
ok no I understand what you means |
@akien-mga excuse me, can you relaunch the workflow verifications please? Yesterday I have commited my repository and it has stopped the verification. |
I would suggest squashing the commits first, as 12 commits is unnecessary for such a change. |
i will make that this afternoon |
here we go |
@akien-mga so now can you relaunch the workflows please? |
someone has an idea on why it doesn't work with the linux mono editor? |
ok yeah oops I forgot to update the Node doc |
finally all is in order. |
what?! is there a place where I can read all the conditions to verify to be successfully checked? |
I will rewrite the method references and verify it with |
the fail was in the fact that alphabetical order was not respected. |
why doesn't it work?! |
You have an extraneous blank line in the I recommend running |
added `get_tree_string()` and `get_tree_string_pretty` to Node class
I think it's fixed up |
Sorry, I accidentally renamed the branch used by this PR, so now the PR is here: #77072 |
Add two methods to Node class:
get_tree_string
that allows to return a string containing the tree in shape of a listget_tree_string_pretty
that makes the same thing but in a more convenient shape.these methods complement the
print_tree
andprint_tree_pretty
methods.proposal: godotengine/godot-proposals#6288
(succesfully works with the latest code)