1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

Expose the TextEdit control of the script editor

Refactor ScriptEditor and ScriptTextEditor with added method to retrieve the script editor's TextEdit control.

Update
doc/classes/ScriptEditor.xml
script_editor_plugin.cpp
script_editor_plugin.h
script_text_editor.cpp
script_text_editor.h
This commit is contained in:
Jeronimo Schreyer
2023-06-09 10:07:38 -03:00
parent b822463965
commit a248c318de
5 changed files with 17 additions and 0 deletions

View File

@@ -1432,6 +1432,10 @@ Control *ScriptTextEditor::get_edit_menu() {
return edit_hb;
}
Control *ScriptTextEditor::get_code_editor_text_edit() {
return code_editor->get_text_edit();
}
void ScriptTextEditor::clear_edit_menu() {
memdelete(edit_hb);
}