-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Document GDScript @export_tool_button
#10338
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great once changes are applied.
I can think of some possible improvements to make in future PRs (to be clear, these do not need to be added to this PR):
- Link to tool script documentation
- Mention that the scene may need to be reloaded for changes to propagate
- Further document what the label and icon parameters do,
- Include a second example with advanced usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Another reviewer still needs to take a look, and they might ask you to make additional changes.
@export_tool_button
Thanks! And congrats on your first merged PR! In the future please try and keep PRs to 1 commit, I did a squash and merge this time so it's fine but keep that in mind for the future. If you don't know how to do that we have a guide here. |
Add @export_tool_button for GDscript to the documention for godotengine/godot#96290 .