summaryrefslogtreecommitdiff
path: root/doc/classes/Script.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/Script.xml')
-rw-r--r--doc/classes/Script.xml18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/classes/Script.xml b/doc/classes/Script.xml
index cd8841c8c5..b4b14c01c6 100644
--- a/doc/classes/Script.xml
+++ b/doc/classes/Script.xml
@@ -4,7 +4,7 @@
A class stored as a resource.
</brief_description>
<description>
- A class stored as a resource. A script extends the functionality of all objects that instance it.
+ A class stored as a resource. A script extends the functionality of all objects that instantiate it.
This is the base class for all scripts and should not be used directly. Trying to create a new script with this class will result in an error.
The [code]new[/code] method of a script subclass creates a new instance. [method Object.set_script] extends an existing object, if that object's class matches one of the script's base classes.
</description>
@@ -32,7 +32,7 @@
</method>
<method name="get_property_default_value">
<return type="Variant" />
- <argument index="0" name="property" type="StringName" />
+ <param index="0" name="property" type="StringName" />
<description>
Returns the default value of the specified property.
</description>
@@ -44,26 +44,26 @@
</description>
</method>
<method name="get_script_method_list">
- <return type="Array" />
+ <return type="Dictionary[]" />
<description>
Returns the list of methods in this [Script].
</description>
</method>
<method name="get_script_property_list">
- <return type="Array" />
+ <return type="Dictionary[]" />
<description>
Returns the list of properties in this [Script].
</description>
</method>
<method name="get_script_signal_list">
- <return type="Array" />
+ <return type="Dictionary[]" />
<description>
Returns the list of user signals defined in this [Script].
</description>
</method>
<method name="has_script_signal" qualifiers="const">
<return type="bool" />
- <argument index="0" name="signal_name" type="StringName" />
+ <param index="0" name="signal_name" type="StringName" />
<description>
Returns [code]true[/code] if the script, or a base class, defines a signal with the given name.
</description>
@@ -76,9 +76,9 @@
</method>
<method name="instance_has" qualifiers="const">
<return type="bool" />
- <argument index="0" name="base_object" type="Object" />
+ <param index="0" name="base_object" type="Object" />
<description>
- Returns [code]true[/code] if [code]base_object[/code] is an instance of this script.
+ Returns [code]true[/code] if [param base_object] is an instance of this script.
</description>
</method>
<method name="is_tool" qualifiers="const">
@@ -89,7 +89,7 @@
</method>
<method name="reload">
<return type="int" enum="Error" />
- <argument index="0" name="keep_state" type="bool" default="false" />
+ <param index="0" name="keep_state" type="bool" default="false" />
<description>
Reloads the script's class implementation. Returns an error code.
</description>