ScriptEditorBase

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

用于在ScriptEditor中编辑脚本的基本编辑器。

描述

用于在ScriptEditor中编辑脚本的基本编辑器。这不包括文档项。

方法


信号

edited_script_changed() 🔗

脚本验证后发出。


go_to_help(what: String) 🔗

当用户请求特定的文档页面时发出。


go_to_method(script: Object, method: String) 🔗

当用户请求查看脚本的特定方法时发出,类似于request_open_script_at_line


name_changed() 🔗

在脚本验证后或编辑的资源更改时发出。


replace_in_files_requested(text: String) 🔗

当用户请求在文件系统中查找和替换文本时发出。


request_help(topic: String) 🔗

当用户请求上下文帮助时发出。


request_open_script_at_line(script: Object, line: int) 🔗

当用户请求查看脚本的特定行时发出,类似于go_to_method


request_save_history() 🔗

当用户上下文goto和项目在同一个脚本中时发出。


request_save_previous_state(state: Dictionary) 🔗

当用户更改当前脚本或在同一脚本中将插入符号移动10列或更多列时发出。


search_in_files_requested(text: String) 🔗

当用户请求在文件系统中搜索文本时发出。


方法说明

void add_syntax_highlighter(highlighter: EditorSyntaxHighlighter) 🔗

向打开的脚本添加EditorSyntaxHighlighter


Control get_base_editor() const 🔗

返回用于编辑脚本的底层Control。对于文本脚本,这是一个CodeEdit