Browse Source

GdScript: Add signal autocompletion to emit_signal function

Mariano Suligoy 8 years ago
parent
commit
7fe750583e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/gd_editor.cpp

+ 1 - 1
modules/gdscript/gd_editor.cpp

@@ -1643,7 +1643,7 @@ static void _find_type_arguments(GDCompletionContext &context, const GDParser::N
 		} else {
 		} else {
 			//regular method
 			//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) {
 				if (p_argidx == 0) {
 					List<MethodInfo> sigs;
 					List<MethodInfo> sigs;