Renamed most signals so they refer to:

-An action being requested to the user in present tense: (ie, draw, gui_input, etc)
-A notification that an action happened, in past tense (ie, area_entered, modal_closed, etc).
This commit is contained in:
Juan Linietsky
2017-01-12 00:51:08 -03:00
parent c84d618b4e
commit 83cb84753f
29 changed files with 239 additions and 239 deletions

View File

@@ -851,7 +851,7 @@ void EditorSelection::add_node(Node *p_node) {
}
selection[p_node]=meta;
p_node->connect("exit_tree",this,"_node_removed",varray(p_node),CONNECT_ONESHOT);
p_node->connect("tree_exited",this,"_node_removed",varray(p_node),CONNECT_ONESHOT);
//emit_signal("selection_changed");
}
@@ -869,7 +869,7 @@ void EditorSelection::remove_node(Node *p_node) {
if (meta)
memdelete(meta);
selection.erase(p_node);
p_node->disconnect("exit_tree",this,"_node_removed");
p_node->disconnect("tree_exited",this,"_node_removed");
//emit_signal("selection_changed");
}
bool EditorSelection::is_selected(Node * p_node) const {