From f3bb2d86798ffc649b9448bef1a9678e337cb3ee Mon Sep 17 00:00:00 2001 From: sersoong Date: Fri, 1 Dec 2017 15:24:31 +0800 Subject: [PATCH] Add copy script path item to script editor --- editor/plugins/script_editor_plugin.cpp | 17 +++++++++++++++++ editor/plugins/script_editor_plugin.h | 2 ++ 2 files changed, 19 insertions(+) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 76a801c4a6f..d5dd83f3c62 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -806,6 +806,12 @@ void ScriptEditor::_close_all_tab(int except) { } } +void ScriptEditor::_copy_script_path() { + ScriptTextEditor *ste = tab_container->get_child(tab_container->get_current_tab())->cast_to(); + Ref