aboutsummaryrefslogtreecommitdiff
path: root/core/bind/core_bind.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry2017-08-13 16:21:45 +0200
committerIgnacio Etcheverry2017-08-19 01:03:12 +0200
commitfd69604bd9dc743494a7818f25f384cc7f521b33 (patch)
tree1235c83520faa5b29eba8484b941580f35a03cb5 /core/bind/core_bind.cpp
parentff2cb35b90f5661d1bb5fb00fa657a9539449be0 (diff)
downloadgodot-fd69604bd9dc743494a7818f25f384cc7f521b33.tar.gz
godot-fd69604bd9dc743494a7818f25f384cc7f521b33.tar.zst
godot-fd69604bd9dc743494a7818f25f384cc7f521b33.zip
Adds editor_hint to Engine class
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r--core/bind/core_bind.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index 273ef7866..185c2e670 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -2568,6 +2568,16 @@ bool _Engine::is_in_fixed_frame() const {
return Engine::get_singleton()->is_in_fixed_frame();
}
+void _Engine::set_editor_hint(bool p_enabled) {
+
+ Engine::get_singleton()->set_editor_hint(p_enabled);
+}
+
+bool _Engine::is_editor_hint() const {
+
+ return Engine::get_singleton()->is_editor_hint();
+}
+
void _Engine::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_iterations_per_second", "iterations_per_second"), &_Engine::set_iterations_per_second);
@@ -2588,6 +2598,9 @@ void _Engine::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_version_info"), &_Engine::get_version_info);
ClassDB::bind_method(D_METHOD("is_in_fixed_frame"), &_Engine::is_in_fixed_frame);
+
+ ClassDB::bind_method(D_METHOD("set_editor_hint", "enabled"), &_Engine::set_editor_hint);
+ ClassDB::bind_method(D_METHOD("is_editor_hint"), &_Engine::is_editor_hint);
}
_Engine *_Engine::singleton = NULL;