diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2024-09-26 20:34:29 +0300 |
---|---|---|
committer | Mack <86566939+Macksaur@users.noreply.github.com> | 2024-09-27 22:24:15 +0100 |
commit | 85dfd896536ff04dba4afd7d461a28e0ac4b9aee (patch) | |
tree | 26583e929ae35235c783fcd9b6de43805ce5434d /modules/gdscript/tests/scripts/parser/errors | |
parent | 76a135926aef1f02f27e4e09093787f2c670956d (diff) | |
download | redot-engine-85dfd896536ff04dba4afd7d461a28e0ac4b9aee.tar.gz |
Add `@export_tool_button` annotation for easily creating inspector buttons
Co-authored-by: jordi <creptthrust@gmail.com>
Co-authored-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>
Co-authored-by: Mack <86566939+Macksaur@users.noreply.github.com>
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/errors')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/errors/export_tool_button_requires_tool_mode.gd | 1 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/parser/errors/export_tool_button_requires_tool_mode.out | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/errors/export_tool_button_requires_tool_mode.gd b/modules/gdscript/tests/scripts/parser/errors/export_tool_button_requires_tool_mode.gd new file mode 100644 index 0000000000..48be5b2541 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/export_tool_button_requires_tool_mode.gd @@ -0,0 +1 @@ +@export_tool_button("Click me!") var action diff --git a/modules/gdscript/tests/scripts/parser/errors/export_tool_button_requires_tool_mode.out b/modules/gdscript/tests/scripts/parser/errors/export_tool_button_requires_tool_mode.out new file mode 100644 index 0000000000..fb148308e4 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/export_tool_button_requires_tool_mode.out @@ -0,0 +1,2 @@ +GDTEST_ANALYZER_ERROR +Tool buttons can only be used in tool scripts (add "@tool" to the top of the script). |