diff options
| author | Bojidar Marinov | 2018-01-12 00:35:12 +0200 |
|---|---|---|
| committer | Bojidar Marinov | 2018-01-12 00:58:14 +0200 |
| commit | 9b8e8b2220b4e2bac3310262d3d1cd7a8eb3b0a5 (patch) | |
| tree | 805b828de2c1b899392245dbf77d45c4450664c8 /scene/main/timer.cpp | |
| parent | c1c17b04bd5090503416cef24b4da9209d5cf563 (diff) | |
| download | godot-9b8e8b2220b4e2bac3310262d3d1cd7a8eb3b0a5.tar.gz godot-9b8e8b2220b4e2bac3310262d3d1cd7a8eb3b0a5.tar.zst godot-9b8e8b2220b4e2bac3310262d3d1cd7a8eb3b0a5.zip | |
Bind many more properties to scripts
Notable potentially breaking changes:
- PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL
- Some properties were renamed, and sometimes even shadowed by new ones
- New getter methods (some virtual) were added
Diffstat (limited to 'scene/main/timer.cpp')
| -rwxr-xr-x | scene/main/timer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/main/timer.cpp b/scene/main/timer.cpp index b7fb44925..ad2cdbfd0 100755 --- a/scene/main/timer.cpp +++ b/scene/main/timer.cpp @@ -204,6 +204,8 @@ void Timer::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::REAL, "wait_time", PROPERTY_HINT_EXP_RANGE, "0.01,4096,0.01"), "set_wait_time", "get_wait_time"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "one_shot"), "set_one_shot", "is_one_shot"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "autostart"), "set_autostart", "has_autostart"); + ADD_PROPERTY(PropertyInfo(Variant::BOOL, "paused", PROPERTY_HINT_NONE, "", 0), "set_paused", "is_paused"); + ADD_PROPERTY(PropertyInfo(Variant::REAL, "time_left", PROPERTY_HINT_NONE, "", 0), "", "get_time_left"); BIND_ENUM_CONSTANT(TIMER_PROCESS_PHYSICS); BIND_ENUM_CONSTANT(TIMER_PROCESS_IDLE); |
