summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTechnocracy <josiasmoukpe@gmail.com>2018-12-06 22:11:07 -0500
committerRĂ©mi Verschelde <rverschelde@gmail.com>2018-12-07 07:44:38 +0100
commitdfa5cbfdc3b772ab9d5fceb67142ef73a88bd692 (patch)
tree656fd3a9b5382ad270eae658a538074f56bf591c
parentcca0ffebdc6045fa6a3ec55511c706fac968bcea (diff)
Docs for push_error and push_warning functions
Added short documentation for push_error() and push_warning() godot script functions
-rw-r--r--doc/classes/@GDScript.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/@GDScript.xml b/doc/classes/@GDScript.xml
index 20ec9141c6..349daae6d9 100644
--- a/doc/classes/@GDScript.xml
+++ b/doc/classes/@GDScript.xml
@@ -751,6 +751,10 @@
<argument index="0" name="message" type="String">
</argument>
<description>
+ Pushes an error message to Godot's built-in debugger and to the OS terminal.
+ [codeblock]
+ push_error("test error") # prints "test error" to debugger and terminal as error call
+ [/codeblock]
</description>
</method>
<method name="push_warning">
@@ -759,6 +763,10 @@
<argument index="0" name="message" type="String">
</argument>
<description>
+ Pushes a warning message to Godot's built-in debugger and to the OS terminal.
+ [codeblock]
+ push_warning("test warning") # prints "test warning" to debugger and terminal as warning call
+ [/codeblock]
</description>
</method>
<method name="rad2deg">