You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user