mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 08:53:35 +00:00
-Show proper node name in subcall
-Implemented Ctrl-F to focus script type search
This commit is contained in:
parent
9865650b43
commit
72748d1363
3 changed files with 17 additions and 1 deletions
|
@ -2363,6 +2363,14 @@ String VisualScriptSubCall::get_caption() const {
|
|||
|
||||
String VisualScriptSubCall::get_text() const {
|
||||
|
||||
Ref<Script> script = get_script();
|
||||
if (script.is_valid()) {
|
||||
if (script->get_name()!=String())
|
||||
return script->get_name();
|
||||
if (script->get_path().is_resource_file())
|
||||
return script->get_path().get_file();
|
||||
return script->get_type();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue