mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 13:11:13 +00:00
Show tooltips for res:// and uid:// strings in ScriptEditor
This commit is contained in:
parent
a69ccee151
commit
e813d3021b
3 changed files with 90 additions and 1 deletions
|
|
@ -1102,6 +1102,11 @@ void ScriptTextEditor::_validate_symbol(const String &p_symbol) {
|
|||
}
|
||||
|
||||
void ScriptTextEditor::_show_symbol_tooltip(const String &p_symbol, int p_row, int p_column) {
|
||||
if (p_symbol.begins_with("res://") || p_symbol.begins_with("uid://")) {
|
||||
EditorHelpBitTooltip::show_tooltip(code_editor->get_text_editor(), "resource||" + p_symbol);
|
||||
return;
|
||||
}
|
||||
|
||||
Node *base = get_tree()->get_edited_scene_root();
|
||||
if (base) {
|
||||
base = _find_node_for_script(base, base, script);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue