Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ScriptEditorBase
继承: VBoxContainer < BoxContainer < Container < Control < CanvasItem < Node < Object
用于在 ScriptEditor 中编辑脚本的基础编辑器。
描述
用于在 ScriptEditor 中编辑脚本的基础编辑器。不包含文档项目。
方法
void |
add_syntax_highlighter(highlighter: EditorSyntaxHighlighter) |
get_base_editor() const |
信号
edited_script_changed() 🔗
校验脚本后发出。
用户请求特定的文档页面时发出。
go_to_method(script: Object, method: String) 🔗
用户请求查看脚本中的指定方法时发出,类似于 request_open_script_at_line。
name_changed() 🔗
校验脚本后,或者所编辑资源发生更改时发出。
replace_in_files_requested(text: String) 🔗
用户请求在文件系统中查找与替换文本时发出。
用户请求上下文帮助时发出。
request_open_script_at_line(script: Object, line: int) 🔗
用户请求查看脚本中的指定行时发出,类似于 go_to_method。
request_save_history() 🔗
用户进行上下文跳转,并且该条目在同一个脚本中时发出。
request_save_previous_state(state: Dictionary) 🔗
当用户更改当前脚本或在同一脚本内将文本光标移动 10 列或更多列时发出。
search_in_files_requested(text: String) 🔗
用户请求在文件系统中搜索文本时发出。
方法说明
void add_syntax_highlighter(highlighter: EditorSyntaxHighlighter) 🔗
将 EditorSyntaxHighlighter 添加到打开的脚本中。