Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
ScriptEditorBase¶
继承: VBoxContainer < BoxContainer < Container < Control < CanvasItem < Node < Object
用于在 ScriptEditor 中编辑脚本的基础编辑器。
描述¶
用于在 ScriptEditor 中编辑脚本的基础编辑器。不包含文档项目。
方法¶
void |
add_syntax_highlighter ( EditorSyntaxHighlighter highlighter ) |
get_base_editor ( ) const |
信号¶
edited_script_changed ( )
校验脚本后发出。
go_to_help ( String what )
用户请求特定的文档页面时发出。
go_to_method ( Object script, String method )
用户请求查看脚本中的指定方法时发出,类似于 request_open_script_at_line。
name_changed ( )
校验脚本后,或者所编辑资源发生更改时发出。
replace_in_files_requested ( String text )
用户请求在文件系统中查找与替换文本时发出。
request_help ( String topic )
用户请求上下文帮助时发出。
request_open_script_at_line ( Object script, int line )
用户请求查看脚本中的指定行时发出,类似于 go_to_method。
request_save_history ( )
用户进行上下文跳转,并且该条目在同一个脚本中时发出。
search_in_files_requested ( String text )
用户请求在文件系统中搜索文本时发出。
方法说明¶
void add_syntax_highlighter ( EditorSyntaxHighlighter highlighter )
将 EditorSyntaxHighlighter 添加到打开的脚本中。
Control get_base_editor ( ) const