ScriptEditorBase

继承: VBoxContainer < BoxContainer < Container < Control < CanvasItem < Node < Object

Base editor for editing scripts in the ScriptEditor.

描述

Base editor for editing scripts in the ScriptEditor. This does not include documentation items.

方法


信号

edited_script_changed ( )

Emitted after script validation.


go_to_help ( what: String )

Emitted when the user requests a specific documentation page.


go_to_method ( script: Object, method: String )

Emitted when the user requests to view a specific method of a script, similar to request_open_script_at_line.


name_changed ( )

Emitted after script validation or when the edited resource has changed.


replace_in_files_requested ( text: String )

Emitted when the user request to find and replace text in the file system.


request_help ( topic: String )

Emitted when the user requests contextual help.


request_open_script_at_line ( script: Object, line: int )

Emitted when the user requests to view a specific line of a script, similar to go_to_method.


request_save_history ( )

Emitted when the user contextual goto and the item is in the same script.


request_save_previous_state ( state: Dictionary )

Emitted when the user changes current script or moves caret by 10 or more columns within the same script.


search_in_files_requested ( text: String )

Emitted when the user request to search text in the file system.


方法说明

void add_syntax_highlighter ( highlighter: EditorSyntaxHighlighter )

Adds a EditorSyntaxHighlighter to the open script.


Control get_base_editor ( ) const1

Returns the underlying Control used for editing scripts. For text scripts, this is a CodeEdit.

2

本方法通常需要用户覆盖才能生效。

1

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。