From 48f1d02da4795ba9d485fe5fe2bea907be2fc467 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 24 Jun 2015 13:29:23 -0300 Subject: [PATCH] added ability to define signals in script closes #2175 --- core/object.cpp | 9 ++ core/script_language.h | 4 + demos/2d/space_shooter/shot.gd | 1 + demos/2d/space_shooter/shot.scn | Bin 3990 -> 4079 bytes modules/gdscript/gd_compiler.cpp | 40 ++++++-- modules/gdscript/gd_parser.cpp | 71 +++++++++++-- modules/gdscript/gd_parser.h | 7 ++ modules/gdscript/gd_script.cpp | 48 +++++++++ modules/gdscript/gd_script.h | 4 + modules/gdscript/gd_tokenizer.cpp | 1 + modules/gdscript/gd_tokenizer.h | 1 + tools/editor/connections_dialog.cpp | 150 +++++++++++++++++++--------- 12 files changed, 271 insertions(+), 65 deletions(-) diff --git a/core/object.cpp b/core/object.cpp index cdb2c6517a4..6bb7973cef8 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1302,6 +1302,10 @@ Array Object::_get_signal_connection_list(const String& p_signal) const{ void Object::get_signal_list(List *p_signals ) const { + if (!script.is_null()) { + Ref