Jelajahi Sumber

GdScript: Add signal autocompletion to emit_signal function

(cherry picked from commit 7fe750583e17f4e40cc8dda99a59205d22f686f1)
Mariano Suligoy 8 tahun lalu
induk
melakukan
bcbd2653de
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      modules/gdscript/gd_editor.cpp

+ 1 - 1
modules/gdscript/gd_editor.cpp

@@ -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;