summaryrefslogtreecommitdiff
path: root/doc/base/classes.xml
diff options
context:
space:
mode:
authorPoommetee Ketson <poommetee@protonmail.com>2017-09-12 13:10:44 +0700
committerGitHub <noreply@github.com>2017-09-12 13:10:44 +0700
commitdb4b81d96fd788d4482da42dfc7bc41e6427b411 (patch)
tree2fbcdb4f9b6b23d4bd3ca166b56b1f58f77ff2b7 /doc/base/classes.xml
parenta1007cceb0628f6f92e7c30f8f2fe75ec7caae94 (diff)
parent030528a2852dc572cd0fdbb407a60855eb1f87a4 (diff)
Merge pull request #11117 from cbscribe/kcc_timer_doc
Update Timer class ref.
Diffstat (limited to 'doc/base/classes.xml')
-rw-r--r--doc/base/classes.xml18
1 files changed, 11 insertions, 7 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index 5d544c23e5..2a9350bbdc 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -53226,10 +53226,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">
@@ -53329,40 +53329,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>