summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Barroga <emmanuelbarroga@gmail.com>2019-06-11 22:59:21 -0700
committerEmmanuel Barroga <emmanuelbarroga@gmail.com>2019-06-12 08:10:00 -0700
commite15c5489a82c7cf8eaaccacc1144ef9a2cab10fd (patch)
tree2ab2e13d938999c5667c28f77491cc90208ebc15
parentf410e7a8a9b14fd9f5c210afcc9e3519e9ce246d (diff)
Added script name tooltip for Open Script Icon
Resolves issue: 29541
-rw-r--r--editor/scene_tree_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp
index 064bf0077a..d6c8e6b452 100644
--- a/editor/scene_tree_editor.cpp
+++ b/editor/scene_tree_editor.cpp
@@ -291,8 +291,8 @@ bool SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) {
p_node->connect("script_changed", this, "_node_script_changed", varray(p_node));
if (!p_node->get_script().is_null()) {
-
- item->add_button(0, get_icon("Script", "EditorIcons"), BUTTON_SCRIPT, false, TTR("Open Script"));
+ Ref<Script> script = p_node->get_script();
+ item->add_button(0, get_icon("Script", "EditorIcons"), BUTTON_SCRIPT, false, TTR("Open Script:") + " " + script->get_path());
}
if (p_node->is_class("CanvasItem")) {