-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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 default values to the editor help, docs, and generated RST #29380
Add default values to the editor help, docs, and generated RST #29380
Conversation
This might be the most awesome feature in 3.2 that very few will realize was added. :D |
Also can't we similarly add this to the Properties section it would be much quicker to be able to see all the default values together? |
@swarnimarun yeah, going to add it to the normal properties section. Honestly, I was thinking of the same, but wasn't really sure about it... |
0bb9d05
to
4520894
Compare
Marked as ready for review. While I haven't updated the documentation yet, I would like to have the other things checked first, so that no unnecessary merge conflicts occur. |
Changes look great overall. I agree that running I'm not sure that the way default values are displayed is clear enough for readers. It kind of makes it look like all those have a fixed value instead of a default value. Is this the usual way API docs mention their default values? |
I tried the PR locally, I get a segfault running
It still works fine though. |
BTW, I'd suggest to make first one commit that adds the default values everywhere (so just running doctool), and later on another commit that removes all the now-unnecessary default values from descriptions. Would be more readable. |
And I get segfaults when running the editor, even without this PR. I think it is related to how default values are cleaned up when they are of object type.
Suggestions welcome. Maybe putting the default in parenthesis?
|
@bojidar-bg |
I don't get a crash when running
I get a similar crash when closing the editor with this PR:
Seems to be the same backtrace. |
Also, make spacing of "=" in the editor help a bit more consistent. Closes godotengine#16086
4520894
to
0c4c36d
Compare
Thanks a ton! 🎉 |
Thanks to @bojidar-bg's impressive work in godotengine#29380.
Thanks to @bojidar-bg's impressive work in godotengine#29380.
Also, make spacing of "=" in the editor help a bit more consistent.
To do:
BaseButton
.Some screenshots:
Closes #16086