aboutsummaryrefslogtreecommitdiff
path: root/scene/main/timer.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2018-01-12 09:00:20 +0100
committerGitHub2018-01-12 09:00:20 +0100
commite24f2c6489afdccc6268008d3dcc1ff4ad8ea71c (patch)
treeee8faddef95f8bcb66acfce729a6f85513740b2d /scene/main/timer.cpp
parent00630479dd5e5aa95915fddf7df9c6b11f525b0e (diff)
parentad79c703008394a360eb9875196a9414e1c84585 (diff)
downloadgodot-e24f2c6489afdccc6268008d3dcc1ff4ad8ea71c.tar.gz
godot-e24f2c6489afdccc6268008d3dcc1ff4ad8ea71c.tar.zst
godot-e24f2c6489afdccc6268008d3dcc1ff4ad8ea71c.zip
Merge pull request #15611 from bojidar-bg/x-bind-more-properties
Bind many more properties to scripts
Diffstat (limited to '')
-rwxr-xr-xscene/main/timer.cpp2
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);