1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Area2D can now detect overlap with other areas

this should make everything simpler, specially for newcomers to Godot
This commit is contained in:
Juan Linietsky
2015-03-17 00:45:25 -03:00
parent 53e1694e1e
commit a969e2e6f1
13 changed files with 500 additions and 25 deletions

View File

@@ -607,6 +607,14 @@ void ConnectionsDialog::_remove_confirm() {
}
*/
struct _ConnectionsDialogMethodInfoSort {
_FORCE_INLINE_ bool operator()(const MethodInfo& a, const MethodInfo& b) const {
return a.name < b.name;
}
};
void ConnectionsDialog::update_tree() {
if (!is_visible())
@@ -623,7 +631,8 @@ void ConnectionsDialog::update_tree() {
node->get_signal_list(&node_signals);
//node_signals.sort_custom<_ConnectionsDialogMethodInfoSort>();
for(List<MethodInfo>::Element *E=node_signals.front();E;E=E->next()) {