summaryrefslogtreecommitdiff
path: root/doc/classes/MainLoop.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/MainLoop.xml')
-rw-r--r--doc/classes/MainLoop.xml71
1 files changed, 17 insertions, 54 deletions
diff --git a/doc/classes/MainLoop.xml b/doc/classes/MainLoop.xml
index 55ae54d12b..11124a1436 100644
--- a/doc/classes/MainLoop.xml
+++ b/doc/classes/MainLoop.xml
@@ -19,7 +19,7 @@
print("Initialized:")
print(" Starting time: %s" % str(time_elapsed))
- func _idle(delta):
+ func _process(delta):
time_elapsed += delta
# Return true to end the main loop.
return quit
@@ -45,78 +45,38 @@
</tutorials>
<methods>
<method name="_finalize" qualifiers="virtual">
- <return type="void">
- </return>
+ <return type="void" />
<description>
Called before the program exits.
</description>
</method>
- <method name="_idle" qualifiers="virtual">
- <return type="bool">
- </return>
- <argument index="0" name="delta" type="float">
- </argument>
- <description>
- Called each idle frame with the time since the last idle frame as argument (in seconds). Equivalent to [method Node._process].
- If implemented, the method must return a boolean value. [code]true[/code] ends the main loop, while [code]false[/code] lets it proceed to the next frame.
- </description>
- </method>
<method name="_initialize" qualifiers="virtual">
- <return type="void">
- </return>
+ <return type="void" />
<description>
Called once during initialization.
</description>
</method>
- <method name="_iteration" qualifiers="virtual">
- <return type="bool">
- </return>
- <argument index="0" name="delta" type="float">
- </argument>
+ <method name="_physics_process" qualifiers="virtual">
+ <return type="bool" />
+ <argument index="0" name="delta" type="float" />
<description>
- Called each physics frame with the time since the last physics frame as argument (in seconds). Equivalent to [method Node._physics_process].
+ Called each physics frame with the time since the last physics frame as argument ([code]delta[/code], in seconds). Equivalent to [method Node._physics_process].
If implemented, the method must return a boolean value. [code]true[/code] ends the main loop, while [code]false[/code] lets it proceed to the next frame.
</description>
</method>
- <method name="finish">
- <return type="void">
- </return>
+ <method name="_process" qualifiers="virtual">
+ <return type="bool" />
+ <argument index="0" name="delta" type="float" />
<description>
- Should not be called manually, override [method _finalize] instead. Will be removed in Godot 4.0.
- </description>
- </method>
- <method name="idle">
- <return type="bool">
- </return>
- <argument index="0" name="delta" type="float">
- </argument>
- <description>
- Should not be called manually, override [method _idle] instead. Will be removed in Godot 4.0.
- </description>
- </method>
- <method name="init">
- <return type="void">
- </return>
- <description>
- Should not be called manually, override [method _initialize] instead. Will be removed in Godot 4.0.
- </description>
- </method>
- <method name="iteration">
- <return type="bool">
- </return>
- <argument index="0" name="delta" type="float">
- </argument>
- <description>
- Should not be called manually, override [method _iteration] instead. Will be removed in Godot 4.0.
+ Called each process (idle) frame with the time since the last process frame as argument (in seconds). Equivalent to [method Node._process].
+ If implemented, the method must return a boolean value. [code]true[/code] ends the main loop, while [code]false[/code] lets it proceed to the next frame.
</description>
</method>
</methods>
<signals>
<signal name="on_request_permissions_result">
- <argument index="0" name="permission" type="String">
- </argument>
- <argument index="1" name="granted" type="bool">
- </argument>
+ <argument index="0" name="permission" type="String" />
+ <argument index="1" name="granted" type="bool" />
<description>
Emitted when a user responds to a permission request.
</description>
@@ -158,5 +118,8 @@
Notification received from the OS when the application is defocused, i.e. when changing the focus from any open window of the Godot instance to the OS desktop or a thirdparty application.
Implemented on desktop platforms.
</constant>
+ <constant name="NOTIFICATION_TEXT_SERVER_CHANGED" value="2018">
+ Notification received when text server is changed.
+ </constant>
</constants>
</class>