GdScript: Add signal autocompletion to emit_signal function

(cherry picked from commit 7fe750583e)
This commit is contained in:
Mariano Suligoy 2017-06-20 17:13:17 -03:00 committed by Rémi Verschelde
parent bcb8cc2faa
commit bcbd2653de

View File

@ -1587,7 +1587,7 @@ static void _find_type_arguments(const GDParser::Node *p_node, int p_line, const
} else {
//regular method
if (p_method.operator String() == "connect") {
if (p_method.operator String() == "connect" || (p_method.operator String() == "emit_signal" && p_argidx == 0)) {
if (p_argidx == 0) {
List<MethodInfo> sigs;