瀏覽代碼

Added a list of signals to rename, this should become a header eventually

Juan Linietsky 8 年之前
父節點
當前提交
5afaf84ae1
共有 2 個文件被更改,包括 22 次插入1 次删除
  1. 1 1
      scene/gui/graph_edit.cpp
  2. 21 0
      signal_renames.txt

+ 1 - 1
scene/gui/graph_edit.cpp

@@ -1265,7 +1265,7 @@ GraphEdit::GraphEdit() {
 	top_layer->set_area_as_parent_rect();
 	top_layer->set_area_as_parent_rect();
 	top_layer->connect("draw",this,"_top_layer_draw");
 	top_layer->connect("draw",this,"_top_layer_draw");
 	top_layer->set_mouse_filter(MOUSE_FILTER_PASS);
 	top_layer->set_mouse_filter(MOUSE_FILTER_PASS);
-	top_layer->connect("input_event",this,"_top_layer_input");
+	top_layer->connect("gui_input",this,"_top_layer_input");
 
 
 	connections_layer = memnew( Control );
 	connections_layer = memnew( Control );
 	add_child(connections_layer);
 	add_child(connections_layer);

+ 21 - 0
signal_renames.txt

@@ -0,0 +1,21 @@
+area_enter = area_entered
+area_exit = area_exited
+
+area_enter_shape = area_shape_entered
+area_exit_shape = area_shape_exited
+
+body_enter = body_entered
+body_exit = body_exited
+
+body_enter_shape = body_shape_entered
+body_exit_shape = body_shape_exited
+
+mouse_enter = mouse_entered
+mouse_exit = mouse_exited
+focus_enter = focus_entered
+focus_exit = focus_exited
+
+modal_close = modal_closed
+
+enter_tree = tree_entered
+exit_tree = tree_exited