From 807b7ed557950ef9bd17266a35f7f83b1181e130 Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Wed, 18 Jan 2023 08:03:20 -0500 Subject: Update `@icon` definition to add a note --- modules/gdscript/doc_classes/@GDScript.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/gdscript/doc_classes') diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index fd748ea569..3fe741a582 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -553,6 +553,7 @@ @icon("res://path/to/class/icon.svg") [/codeblock] [b]Note:[/b] Only the script can have a custom icon. Inner classes are not supported. + [b]Note:[/b] As annotations describe their subject, the [code]@icon[/code] annotation must be placed before the class definition and inheritance. @@ -585,6 +586,7 @@ @tool extends Node [/codeblock] + [b]Note:[/b] As annotations describe their subject, the [code]@tool[/code] annotation must be placed before the class definition and inheritance. -- cgit v1.2.3