Skip to content

Commit

Permalink
change for improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
52SW authored Nov 29, 2024
1 parent de7935f commit 0cd5e5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/scripting/gdscript/gdscript_exports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ for a list of parameters and their allowed values.
-----------------------

If you need to create a clickable inspector button, you can use ``@export_tool_button``.
This exports a Callable property as a clickable button. When the button is pressed, the callable is called.
This exports a ``Callable`` property as a clickable button. When the button is pressed, the callable is called.

Export a button with label ``"Hello"`` and icon ``"Callable"``. When you press it, it will print ``"Hello world!"``.

Expand All @@ -493,7 +493,7 @@ Export a button with label ``"Hello"`` and icon ``"Callable"``. When you press i
@tool
extends Node

@export_tool_button("Hello","Callable") var hello_action = hello
@export_tool_button("Hello", "Callable") var hello_action = hello

func hello():
print("Hello world!")
Expand Down

0 comments on commit 0cd5e5e

Please sign in to comment.