소스 검색

Merge pull request #9329 from MarianoGnu/master

GdScript: Add signal autocompletion to emit_signal function
Thomas Herzog 8 년 전
부모
커밋
7705b2639f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {
 			//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;