0.2.0-dev Download ZIP
87 lines ·3.6 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="ScriptEditorBase" inherits="VBoxContainer" api_type="editor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Base editor for editing scripts in the [ScriptEditor]. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Base editor for editing scripts in the [ScriptEditor]. This does not include documentation items. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="add_syntax_highlighter"> |
| 13 | <return type="void" /> |
| 14 | <param index="0" name="highlighter" type="EditorSyntaxHighlighter" /> |
| 15 | <description> |
| 16 | Adds an [EditorSyntaxHighlighter] to the open script. |
| 17 | </description> |
| 18 | </method> |
| 19 | <method name="get_base_editor" qualifiers="const"> |
| 20 | <return type="Control" /> |
| 21 | <description> |
| 22 | Returns the underlying [Control] used for editing scripts. For text scripts, this is a [CodeEdit]. |
| 23 | </description> |
| 24 | </method> |
| 25 | </methods> |
| 26 | <signals> |
| 27 | <signal name="edited_script_changed" deprecated="This signal should only be used internally."> |
| 28 | <description> |
| 29 | Emitted after script validation. |
| 30 | </description> |
| 31 | </signal> |
| 32 | <signal name="go_to_help" deprecated="This signal should only be used internally. See [method ScriptEditor.goto_help] instead."> |
| 33 | <param index="0" name="what" type="String" /> |
| 34 | <description> |
| 35 | Emitted when the user requests a specific documentation page. |
| 36 | </description> |
| 37 | </signal> |
| 38 | <signal name="go_to_method" deprecated="This signal should only be used internally."> |
| 39 | <param index="0" name="script" type="Object" /> |
| 40 | <param index="1" name="method" type="String" /> |
| 41 | <description> |
| 42 | Emitted when the user requests to view a specific method of a script, similar to [signal request_open_script_at_line]. |
| 43 | </description> |
| 44 | </signal> |
| 45 | <signal name="name_changed" deprecated="This signal should only be used internally."> |
| 46 | <description> |
| 47 | Emitted after script validation or when the edited resource has changed. |
| 48 | </description> |
| 49 | </signal> |
| 50 | <signal name="replace_in_files_requested" deprecated="This signal should only be used internally."> |
| 51 | <param index="0" name="text" type="String" /> |
| 52 | <description> |
| 53 | Emitted when the user request to find and replace text in the file system. |
| 54 | </description> |
| 55 | </signal> |
| 56 | <signal name="request_help" deprecated="This signal should only be used internally."> |
| 57 | <param index="0" name="topic" type="String" /> |
| 58 | <description> |
| 59 | Emitted when the user requests contextual help. |
| 60 | </description> |
| 61 | </signal> |
| 62 | <signal name="request_open_script_at_line" deprecated="This signal should only be used internally. See [method EditorInterface.edit_script] instead."> |
| 63 | <param index="0" name="script" type="Object" /> |
| 64 | <param index="1" name="line" type="int" /> |
| 65 | <description> |
| 66 | Emitted when the user requests to view a specific line of a script, similar to [signal go_to_method]. |
| 67 | </description> |
| 68 | </signal> |
| 69 | <signal name="request_save_history" deprecated="This signal should only be used internally."> |
| 70 | <description> |
| 71 | Emitted when the editor requests to save a new history navigation point. |
| 72 | </description> |
| 73 | </signal> |
| 74 | <signal name="request_save_previous_state" deprecated="This signal should only be used internally."> |
| 75 | <param index="0" name="state" type="Dictionary" /> |
| 76 | <description> |
| 77 | Emitted when the editor requests an update to its navigation point. |
| 78 | </description> |
| 79 | </signal> |
| 80 | <signal name="search_in_files_requested" deprecated="This signal should only be used internally."> |
| 81 | <param index="0" name="text" type="String" /> |
| 82 | <description> |
| 83 | Emitted when the user request to search text in the file system. |
| 84 | </description> |
| 85 | </signal> |
| 86 | </signals> |
| 87 | </class> |