From 85dfd896536ff04dba4afd7d461a28e0ac4b9aee Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Thu, 26 Sep 2024 20:34:29 +0300 Subject: Add `@export_tool_button` annotation for easily creating inspector buttons Co-authored-by: jordi Co-authored-by: K. S. Ernest (iFire) Lee Co-authored-by: Mack <86566939+Macksaur@users.noreply.github.com> --- modules/gdscript/gdscript_parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gdscript/gdscript_parser.h') diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h index 7840474a89..7f64ae902b 100644 --- a/modules/gdscript/gdscript_parser.h +++ b/modules/gdscript/gdscript_parser.h @@ -1507,6 +1507,7 @@ private: bool export_annotations(AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class); bool export_storage_annotation(AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class); bool export_custom_annotation(AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class); + bool export_tool_button_annotation(AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class); template bool export_group_annotations(AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class); bool warning_annotations(AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class); -- cgit v1.2.3