diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index 80cf70a86ac..9a863ab86b0 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -34841,13 +34841,14 @@
A TileSet is a library of tiles for a [TileMap]. It contains a list of tiles, each consisting of a sprite and optional collision shapes.
+ Tiles are referenced by a unique integer ID.
- Create a new tile, the ID must be specified.
+ Create a new tile which will be referenced by the given ID.
@@ -34856,7 +34857,7 @@
- Set the name of a tile, for decriptive purposes.
+ Set the name of the tile, for descriptive purposes.
@@ -34865,7 +34866,7 @@
- Return the name of a tile, for decriptive purposes.
+ Return the name of the tile.
@@ -34892,6 +34893,7 @@
+ Set the material of the tile.
@@ -34900,6 +34902,7 @@
+ Return the material of the tile.
@@ -34908,6 +34911,7 @@
+ Set the texture offset of the tile.
@@ -34916,6 +34920,7 @@
+ Return the texture offset of the tile.
@@ -34924,6 +34929,7 @@
+ Set the shape offset of the tile.
@@ -34932,6 +34938,7 @@
+ Return the shape offset of the tile.
@@ -34949,7 +34956,7 @@
- Return the tile sub-region in the texture. This is common in texture atlases.
+ Return the tile sub-region in the texture.
@@ -34976,6 +34983,7 @@
+ Set an array of shapes for the tile, enabling physics to collide with it.
@@ -34984,6 +34992,7 @@
+ Return the array of shapes of the tile.
@@ -34992,6 +35001,7 @@
+ Set a navigation polygon for the tile.
@@ -35000,6 +35010,7 @@
+ Return the navigation polygon of the tile.
@@ -35008,6 +35019,7 @@
+ Set an offset for the tile's navigation polygon.
@@ -35016,6 +35028,7 @@
+ Return the offset of the tile's navigation polygon.
@@ -35024,6 +35037,7 @@
+ Set a light occluder for the tile.
@@ -35032,6 +35046,7 @@
+ Return the light occluder of the tile.
@@ -35040,6 +35055,7 @@
+ Set an offset for the tile's light occluder.
@@ -35048,13 +35064,14 @@
+ Return the offset of the tile's light occluder.
- Remove a tile, by integer id.
+ Remove the tile referenced by the given ID.
@@ -35066,7 +35083,7 @@
- Find an empty id for creating a new tile.
+ Return the ID following the last currently used ID, useful when creating a new tile.
@@ -35075,13 +35092,14 @@
- Find the first tile with the given name.
+ Find the first tile matching the given name.
+ Return an array of all currently used tile IDs.
@@ -35092,35 +35110,35 @@
- Timer node. This is a simple node that will emit a timeout callback when the timer runs out. It can optinally be set to loop.
+ Timer node. This is a simple node that will emit a timeout callback when the timer runs out. It can optionally be set to loop.
- Set wait time. When the time is over, it will emit the timeout signal.
+ Set wait time in seconds. When the time is over, it will emit the timeout signal.
- Return the wait time. When the time is over, it will emit the timeout signal.
+ Return the wait time in seconds.
- Set as one-shot. If true, timer will stop after timeout, otherwise it will automatically restart.
+ Set as one-shot. If enabled, the timer will stop after timeout, otherwise it will automatically restart.
- Return true if is set as one-shot. If true, timer will stop after timeout, otherwise it will automatically restart.
+ Return true if configured as one-shot.
@@ -35151,19 +35169,21 @@
- Return the time left for timeout if the timer is active.
+ Return the time left for timeout in seconds if the timer is active, 0 otherwise.
+ Set the timer's processing mode (fixed or idle, use TIMER_PROCESS_* constants as argument).
+ Return the timer's processing mode.
@@ -35175,6 +35195,12 @@
+
+ Update the timer at fixed intervals (framerate processing).
+
+
+ Update the timer during the idle time at each frame.
+
diff --git a/scene/main/timer.cpp b/scene/main/timer.cpp
index 3a80382a40e..1bd22a9db18 100644
--- a/scene/main/timer.cpp
+++ b/scene/main/timer.cpp
@@ -182,11 +182,14 @@ void Timer::_bind_methods() {
ADD_SIGNAL( MethodInfo("timeout") );
- ADD_PROPERTY(PropertyInfo(Variant::INT, "process_mode", PROPERTY_HINT_ENUM, "Fixed,Idle"), _SCS("set_timer_process_mode"), _SCS("get_timer_process_mode"));
+ ADD_PROPERTY( PropertyInfo(Variant::INT, "process_mode", PROPERTY_HINT_ENUM, "Fixed,Idle"), _SCS("set_timer_process_mode"), _SCS("get_timer_process_mode") );
ADD_PROPERTY( PropertyInfo(Variant::REAL, "wait_time", PROPERTY_HINT_EXP_RANGE, "0.01,4096,0.01" ), _SCS("set_wait_time"), _SCS("get_wait_time") );
ADD_PROPERTY( PropertyInfo(Variant::BOOL, "one_shot" ), _SCS("set_one_shot"), _SCS("is_one_shot") );
ADD_PROPERTY( PropertyInfo(Variant::BOOL, "autostart" ), _SCS("set_autostart"), _SCS("has_autostart") );
+ BIND_CONSTANT( TIMER_PROCESS_FIXED );
+ BIND_CONSTANT( TIMER_PROCESS_IDLE );
+
}
Timer::Timer() {