mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Sync classref with 2.1 source, goodbye 2.0!
This commit is contained in:
@@ -13,7 +13,7 @@ Timer
|
||||
Brief Description
|
||||
-----------------
|
||||
|
||||
|
||||
A simple Timer node.
|
||||
|
||||
Member Functions
|
||||
----------------
|
||||
@@ -27,8 +27,12 @@ Member Functions
|
||||
+----------------------------+------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`has_autostart<class_Timer_has_autostart>` **(** **)** const |
|
||||
+----------------------------+------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_active<class_Timer_is_active>` **(** **)** const |
|
||||
+----------------------------+------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_one_shot<class_Timer_is_one_shot>` **(** **)** const |
|
||||
+----------------------------+------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_active<class_Timer_set_active>` **(** :ref:`bool<class_bool>` active **)** |
|
||||
+----------------------------+------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_autostart<class_Timer_set_autostart>` **(** :ref:`bool<class_bool>` enable **)** |
|
||||
+----------------------------+------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_one_shot<class_Timer_set_one_shot>` **(** :ref:`bool<class_bool>` enable **)** |
|
||||
@@ -85,12 +89,24 @@ Return the wait time in seconds.
|
||||
|
||||
Return true if set to automatically start when entering the scene.
|
||||
|
||||
.. _class_Timer_is_active:
|
||||
|
||||
- :ref:`bool<class_bool>` **is_active** **(** **)** const
|
||||
|
||||
Return if the timer is active or not.
|
||||
|
||||
.. _class_Timer_is_one_shot:
|
||||
|
||||
- :ref:`bool<class_bool>` **is_one_shot** **(** **)** const
|
||||
|
||||
Return true if configured as one-shot.
|
||||
|
||||
.. _class_Timer_set_active:
|
||||
|
||||
- void **set_active** **(** :ref:`bool<class_bool>` active **)**
|
||||
|
||||
Set whether the timer is active or not. An inactive timer will be paused until it is activated again.
|
||||
|
||||
.. _class_Timer_set_autostart:
|
||||
|
||||
- void **set_autostart** **(** :ref:`bool<class_bool>` enable **)**
|
||||
|
||||
Reference in New Issue
Block a user