summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/utils.notest.gd
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-29 00:46:55 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-29 00:46:55 +0200
commita11f970f91f8e049501d2077a3de3fba26bba1ba (patch)
treefa5f8580b3b581d65828800c5e98805d0a97632d /modules/gdscript/tests/scripts/utils.notest.gd
parentd6c0509b5a7f746b06d06b03b1bce10fcd7a047c (diff)
parent85dfd896536ff04dba4afd7d461a28e0ac4b9aee (diff)
downloadredot-engine-a11f970f91f8e049501d2077a3de3fba26bba1ba.tar.gz
Merge pull request #96290 from Macksaur/export-action-callable
Add `@export_tool_button` annotation for easily creating inspector buttons.
Diffstat (limited to 'modules/gdscript/tests/scripts/utils.notest.gd')
-rw-r--r--modules/gdscript/tests/scripts/utils.notest.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/utils.notest.gd b/modules/gdscript/tests/scripts/utils.notest.gd
index 1e2788f765..fa289e442f 100644
--- a/modules/gdscript/tests/scripts/utils.notest.gd
+++ b/modules/gdscript/tests/scripts/utils.notest.gd
@@ -205,6 +205,9 @@ static func get_property_hint_name(hint: PropertyHint) -> String:
return "PROPERTY_HINT_HIDE_QUATERNION_EDIT"
PROPERTY_HINT_PASSWORD:
return "PROPERTY_HINT_PASSWORD"
+ PROPERTY_HINT_TOOL_BUTTON:
+ return "PROPERTY_HINT_TOOL_BUTTON"
+
printerr("Argument `hint` is invalid. Use `PROPERTY_HINT_*` constants.")
return "<invalid hint>"