|
@@ -823,10 +823,18 @@ void SceneTree::_notification(int p_notification) {
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+bool SceneTree::is_auto_accept_quit() const {
|
|
|
|
+ return accept_quit;
|
|
|
|
+}
|
|
|
|
+
|
|
void SceneTree::set_auto_accept_quit(bool p_enable) {
|
|
void SceneTree::set_auto_accept_quit(bool p_enable) {
|
|
accept_quit = p_enable;
|
|
accept_quit = p_enable;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+bool SceneTree::is_quit_on_go_back() const {
|
|
|
|
+ return quit_on_go_back;
|
|
|
|
+}
|
|
|
|
+
|
|
void SceneTree::set_quit_on_go_back(bool p_enable) {
|
|
void SceneTree::set_quit_on_go_back(bool p_enable) {
|
|
quit_on_go_back = p_enable;
|
|
quit_on_go_back = p_enable;
|
|
}
|
|
}
|
|
@@ -1937,7 +1945,9 @@ void SceneTree::_bind_methods() {
|
|
ClassDB::bind_method(D_METHOD("get_root"), &SceneTree::get_root);
|
|
ClassDB::bind_method(D_METHOD("get_root"), &SceneTree::get_root);
|
|
ClassDB::bind_method(D_METHOD("has_group", "name"), &SceneTree::has_group);
|
|
ClassDB::bind_method(D_METHOD("has_group", "name"), &SceneTree::has_group);
|
|
|
|
|
|
|
|
+ ClassDB::bind_method(D_METHOD("is_auto_accept_quit"), &SceneTree::is_auto_accept_quit);
|
|
ClassDB::bind_method(D_METHOD("set_auto_accept_quit", "enabled"), &SceneTree::set_auto_accept_quit);
|
|
ClassDB::bind_method(D_METHOD("set_auto_accept_quit", "enabled"), &SceneTree::set_auto_accept_quit);
|
|
|
|
+ ClassDB::bind_method(D_METHOD("is_quit_on_go_back"), &SceneTree::is_quit_on_go_back);
|
|
ClassDB::bind_method(D_METHOD("set_quit_on_go_back", "enabled"), &SceneTree::set_quit_on_go_back);
|
|
ClassDB::bind_method(D_METHOD("set_quit_on_go_back", "enabled"), &SceneTree::set_quit_on_go_back);
|
|
|
|
|
|
ClassDB::bind_method(D_METHOD("set_debug_collisions_hint", "enable"), &SceneTree::set_debug_collisions_hint);
|
|
ClassDB::bind_method(D_METHOD("set_debug_collisions_hint", "enable"), &SceneTree::set_debug_collisions_hint);
|
|
@@ -2023,6 +2033,8 @@ void SceneTree::_bind_methods() {
|
|
ClassDB::bind_method(D_METHOD("set_use_font_oversampling", "enable"), &SceneTree::set_use_font_oversampling);
|
|
ClassDB::bind_method(D_METHOD("set_use_font_oversampling", "enable"), &SceneTree::set_use_font_oversampling);
|
|
ClassDB::bind_method(D_METHOD("is_using_font_oversampling"), &SceneTree::is_using_font_oversampling);
|
|
ClassDB::bind_method(D_METHOD("is_using_font_oversampling"), &SceneTree::is_using_font_oversampling);
|
|
|
|
|
|
|
|
+ ADD_PROPERTY(PropertyInfo(Variant::BOOL, "auto_accept_quit"), "set_auto_accept_quit", "is_auto_accept_quit");
|
|
|
|
+ ADD_PROPERTY(PropertyInfo(Variant::BOOL, "quit_on_go_back"), "set_quit_on_go_back", "is_quit_on_go_back");
|
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "debug_collisions_hint"), "set_debug_collisions_hint", "is_debugging_collisions_hint");
|
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "debug_collisions_hint"), "set_debug_collisions_hint", "is_debugging_collisions_hint");
|
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "debug_navigation_hint"), "set_debug_navigation_hint", "is_debugging_navigation_hint");
|
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "debug_navigation_hint"), "set_debug_navigation_hint", "is_debugging_navigation_hint");
|
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "paused"), "set_pause", "is_paused");
|
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "paused"), "set_pause", "is_paused");
|