diff options
author | Chris Bradfield <chris@kidscancode.org> | 2017-09-09 11:52:40 -0700 |
---|---|---|
committer | Chris Bradfield <chris@kidscancode.org> | 2017-09-09 13:30:27 -0700 |
commit | 030528a2852dc572cd0fdbb407a60855eb1f87a4 (patch) | |
tree | a3ca1788e46fb243d54580ae4c46c761050dd799 | |
parent | 0b747c29106e0e02f8c9b674cde418a7d270d987 (diff) |
Update Timer class ref.
-rw-r--r-- | doc/base/classes.xml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 96d515de5e..0e9b9d333e 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -52809,10 +52809,10 @@ </class> <class name="Timer" inherits="Node" category="Core"> <brief_description> - A simple Timer node. + A countdown timer. </brief_description> <description> - 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. + Counts down a specified interval and emits a signal on reaching 0. Can be set to repeat or "one shot" mode. </description> <methods> <method name="get_time_left" qualifiers="const"> @@ -52912,40 +52912,44 @@ <return type="void"> </return> <description> - Start the timer. + Start the Timer. </description> </method> <method name="stop"> <return type="void"> </return> <description> - Stop (cancel) the timer. + Stop (cancel) the Timer. </description> </method> </methods> <members> <member name="autostart" type="bool" setter="set_autostart" getter="has_autostart" brief=""> + If [code]true[/code], Timer will automatically start when entering the scene tree. Default value: [code]false[/code]. </member> <member name="one_shot" type="bool" setter="set_one_shot" getter="is_one_shot" brief=""> + If [code]true[/code], Timer will stop when reaching 0. If [code]false[/code], it will restart. Default value: [code]false[/code]. </member> <member name="process_mode" type="int" setter="set_timer_process_mode" getter="get_timer_process_mode" brief="" enum="Timer.TimerProcessMode"> + Processing mode. Uses TIMER_PROCESS_* constants as value. </member> <member name="wait_time" type="float" setter="set_wait_time" getter="get_wait_time" brief=""> + Wait time in seconds. </member> </members> <signals> <signal name="timeout"> <description> - Emitted when the time runs out. + Emitted when the Timer reaches 0. </description> </signal> </signals> <constants> <constant name="TIMER_PROCESS_FIXED" value="0"> - Update the timer at fixed intervals (framerate processing). + Update the Timer at fixed intervals (framerate processing). </constant> <constant name="TIMER_PROCESS_IDLE" value="1"> - Update the timer during the idle time at each frame. + Update the Timer during the idle time at each frame. </constant> </constants> </class> |