diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-09-22 06:08:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 06:08:07 +0200 |
commit | 6e773f71243e2a6505266be714f7d82b0ca9d289 (patch) | |
tree | 0cbe4a61cb8599d0c02ca1bb26142c12b89755f3 | |
parent | 4ea2703eee414195c427cb4eb2708672679b8fe8 (diff) | |
parent | 6eac901ecbd6ed8f5dd511c5ea851d92629273cf (diff) |
Merge pull request #66232 from Evanaellio/fix-tool-annotation
Fix code examples for @tool annotation
-rw-r--r-- | doc/classes/EditorImportPlugin.xml | 2 | ||||
-rw-r--r-- | doc/classes/EditorScenePostImport.xml | 2 | ||||
-rw-r--r-- | doc/classes/EditorScript.xml | 2 | ||||
-rw-r--r-- | doc/classes/EditorTranslationParserPlugin.xml | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/doc/classes/EditorImportPlugin.xml b/doc/classes/EditorImportPlugin.xml index 86db626935..c395815117 100644 --- a/doc/classes/EditorImportPlugin.xml +++ b/doc/classes/EditorImportPlugin.xml @@ -9,7 +9,7 @@ Below is an example EditorImportPlugin that imports a [Mesh] from a file with the extension ".special" or ".spec": [codeblocks] [gdscript] - tool + @tool extends EditorImportPlugin func _get_importer_name(): diff --git a/doc/classes/EditorScenePostImport.xml b/doc/classes/EditorScenePostImport.xml index 395b094bf2..2bf2accf17 100644 --- a/doc/classes/EditorScenePostImport.xml +++ b/doc/classes/EditorScenePostImport.xml @@ -8,7 +8,7 @@ The [method _post_import] callback receives the imported scene's root node and returns the modified version of the scene. Usage example: [codeblocks] [gdscript] - tool # Needed so it runs in editor. + @tool # Needed so it runs in editor. extends EditorScenePostImport # This sample changes all node names. # Called right after the scene is imported and gets the root node. diff --git a/doc/classes/EditorScript.xml b/doc/classes/EditorScript.xml index 2ff8a7ba2a..dfc04c9cde 100644 --- a/doc/classes/EditorScript.xml +++ b/doc/classes/EditorScript.xml @@ -9,7 +9,7 @@ [b]Example script:[/b] [codeblocks] [gdscript] - tool + @tool extends EditorScript func _run(): diff --git a/doc/classes/EditorTranslationParserPlugin.xml b/doc/classes/EditorTranslationParserPlugin.xml index 08986781cd..df10c645ef 100644 --- a/doc/classes/EditorTranslationParserPlugin.xml +++ b/doc/classes/EditorTranslationParserPlugin.xml @@ -11,7 +11,7 @@ Below shows an example of a custom parser that extracts strings from a CSV file to write into a POT. [codeblocks] [gdscript] - tool + @tool extends EditorTranslationParserPlugin func _parse_file(path, msgids, msgids_context_plural): |