1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Added autocomplete for file paths in the script editor

This commit is contained in:
mbalint12
2017-04-16 21:09:17 +02:00
parent e55a496f79
commit 71978685f9
4 changed files with 33 additions and 0 deletions

View File

@@ -387,6 +387,13 @@ GDParser::Node *GDParser::_parse_expression(Node *p_parent, bool p_static, bool
_set_error("Expected '(' after 'preload'");
return NULL;
}
completion_cursor = StringName();
completion_type = COMPLETION_PRELOAD;
completion_class = current_class;
completion_function = current_function;
completion_line = tokenizer->get_token_line();
completion_block = current_block;
completion_found = true;
tokenizer->advance();
String path;