summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-12-08 17:15:18 +0100
committerGitHub <noreply@github.com>2021-12-08 17:15:18 +0100
commitf1e3c87244f18ab1a507b6e3637c34b2d49c1dc6 (patch)
tree0682072590a0d72378c3d508ffe4a463556e4485 /doc/classes
parente53e357a2bf738d624b1fe29ee967603395efdd0 (diff)
parent9535831866786adeafbff40f8e46f52fdc62538b (diff)
Merge pull request #55709 from raulsntos/expose_script_edit
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/EditorInterface.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/classes/EditorInterface.xml b/doc/classes/EditorInterface.xml
index 5790d8c5af..15d31cd0f0 100644
--- a/doc/classes/EditorInterface.xml
+++ b/doc/classes/EditorInterface.xml
@@ -21,7 +21,17 @@
<return type="void" />
<argument index="0" name="resource" type="Resource" />
<description>
- Edits the given [Resource].
+ Edits the given [Resource]. If the resource is a [Script] you can also edit it with [method edit_script] to specify the line and column position.
+ </description>
+ </method>
+ <method name="edit_script">
+ <return type="void" />
+ <argument index="0" name="script" type="Script" />
+ <argument index="1" name="line" type="int" default="-1" />
+ <argument index="2" name="column" type="int" default="0" />
+ <argument index="3" name="grab_focus" type="bool" default="true" />
+ <description>
+ Edits the given [Script]. The line and column on which to open the script can also be specified. The script will be open with the user-configured editor for the script's language which may be an external editor.
</description>
</method>
<method name="get_base_control">