From 11a5ed508b1cbde61a4d9dd4f469e86e74667623 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 21 Sep 2014 01:43:42 -0300 Subject: Fixed too many little issues, check the issues closed today. --- core/bind/core_bind.cpp | 13 +++++++++++++ core/bind/core_bind.h | 3 +++ 2 files changed, 16 insertions(+) (limited to 'core/bind') diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index ba27c2cdd6..570ed33a5a 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -306,6 +306,16 @@ MainLoop *_OS::get_main_loop() const { return OS::get_singleton()->get_main_loop(); } + +void _OS::set_time_scale(float p_scale) { + OS::get_singleton()->set_time_scale(p_scale); +} + +float _OS::get_time_scale() { + + return OS::get_singleton()->get_time_scale(); +} + /* enum Weekday { DAY_SUNDAY, @@ -613,6 +623,9 @@ void _OS::_bind_methods() { ObjectTypeDB::bind_method(_MD("set_target_fps","target_fps"),&_OS::set_target_fps); ObjectTypeDB::bind_method(_MD("get_target_fps"),&_OS::get_target_fps); + ObjectTypeDB::bind_method(_MD("set_time_scale","time_scale"),&_OS::set_time_scale); + ObjectTypeDB::bind_method(_MD("get_time_scale"),&_OS::get_time_scale); + ObjectTypeDB::bind_method(_MD("has_touchscreen_ui_hint"),&_OS::has_touchscreen_ui_hint); diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h index cac2de314d..0ef70e4b13 100644 --- a/core/bind/core_bind.h +++ b/core/bind/core_bind.h @@ -201,6 +201,9 @@ public: String get_data_dir() const; + void set_time_scale(float p_scale); + float get_time_scale(); + static _OS *get_singleton() { return singleton; } _OS(); -- cgit v1.2.3