Skip to content
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

Merged
merged 5 commits into from
Nov 29, 2024
Merged

Conversation

52SW
Copy link
Contributor

@52SW 52SW commented Nov 29, 2024

Add @export_tool_button for GDscript to the documention for godotengine/godot#96290 .

@tetrapod00 tetrapod00 added enhancement topic:gdscript area:manual Issues and PRs related to the Manual/Tutorials section of the documentation labels Nov 29, 2024
@tetrapod00 tetrapod00 added this to the 4.4 milestone Nov 29, 2024
Copy link
Contributor

@tetrapod00 tetrapod00 left a 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.

tutorials/scripting/gdscript/gdscript_exports.rst Outdated Show resolved Hide resolved
tutorials/scripting/gdscript/gdscript_exports.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@tetrapod00 tetrapod00 left a 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.

@tetrapod00 tetrapod00 changed the title Add @export_tool_button for GDscript to the documention Document GDScript @export_tool_button Nov 29, 2024
@skyace65 skyace65 merged commit e05cebe into godotengine:master Nov 29, 2024
1 check passed
@skyace65
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation enhancement topic:gdscript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants