Procházet zdrojové kódy

Merge pull request #71620 from adamscott/move-icon-to-top

Update `@icon` and `@tool` definitions to add a note
Rémi Verschelde před 2 roky
rodič
revize
56ac1a67cd
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      modules/gdscript/doc_classes/@GDScript.xml

+ 2 - 0
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.
 			</description>
 		</annotation>
 		<annotation name="@onready">
@@ -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.
 			</description>
 		</annotation>
 		<annotation name="@warning_ignore" qualifiers="vararg">