doc: Don't use GlobalScope
scope in hyperlinks, it's automatically inferred
This commit is contained in:
parent
bc82781f7d
commit
528c4722d6
10 changed files with 19 additions and 19 deletions
|
@ -62,7 +62,7 @@
|
|||
<argument index="1" name="input_names" type="PoolStringArray" default="PoolStringArray( )">
|
||||
</argument>
|
||||
<description>
|
||||
Parses the expression and returns a [enum @GlobalScope.Error].
|
||||
Parses the expression and returns an [enum Error] code.
|
||||
You can optionally specify names of variables that may appear in the expression with [code]input_names[/code], so that you can bind them when it gets executed.
|
||||
</description>
|
||||
</method>
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<description>
|
||||
Returns the last error that happened when trying to perform operations. Compare with the [code]ERR_FILE_*[/code] constants from [enum @GlobalScope.Error].
|
||||
Returns the last error that happened when trying to perform operations. Compare with the [code]ERR_FILE_*[/code] constants from [enum Error].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_float" qualifiers="const">
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
</argument>
|
||||
<description>
|
||||
Creates request on the underlying [HTTPClient]. If there is no configuration errors, it tries to connect using [method HTTPClient.connect_to_host] and passes parameters onto [method HTTPClient.request].
|
||||
Returns [constant @GlobalScope.OK] if request is successfully created. (Does not imply that the server has responded), [constant @GlobalScope.ERR_UNCONFIGURED] if not in the tree, [constant @GlobalScope.ERR_BUSY] if still processing previous request, [constant @GlobalScope.ERR_INVALID_PARAMETER] if given string is not a valid URL format, or [constant @GlobalScope.ERR_CANT_CONNECT] if not using thread and the [HTTPClient] cannot connect to host.
|
||||
Returns [constant OK] if request is successfully created. (Does not imply that the server has responded), [constant ERR_UNCONFIGURED] if not in the tree, [constant ERR_BUSY] if still processing previous request, [constant ERR_INVALID_PARAMETER] if given string is not a valid URL format, or [constant ERR_CANT_CONNECT] if not using thread and the [HTTPClient] cannot connect to host.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<description>
|
||||
Virtual method which can be overridden to customize the return value of [method get_property_list].
|
||||
Returns the object's property list as an [Array] of dictionaries.
|
||||
Each property's [Dictionary] must contain at least [code]name: String[/code] and [code]type: int[/code] (see [enum @GlobalScope.Variant.Type]) entries. Optionally, it can also include [code]hint: int[/code] (see [enum @GlobalScope.PropertyHint]), [code]hint_string: String[/code], and [code]usage: int[/code] (see [enum @GlobalScope.PropertyUsageFlags]).
|
||||
Each property's [Dictionary] must contain at least [code]name: String[/code] and [code]type: int[/code] (see [enum Variant.Type]) entries. Optionally, it can also include [code]hint: int[/code] (see [enum PropertyHint]), [code]hint_string: String[/code], and [code]usage: int[/code] (see [enum PropertyUsageFlags]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="_init" qualifiers="virtual">
|
||||
|
@ -77,7 +77,7 @@
|
|||
<argument index="1" name="arguments" type="Array" default="[ ]">
|
||||
</argument>
|
||||
<description>
|
||||
Adds a user-defined [code]signal[/code]. Arguments are optional, but can be added as an [Array] of dictionaries, each containing [code]name: String[/code] and [code]type: int[/code] (see [enum @GlobalScope.Variant.Type]) entries.
|
||||
Adds a user-defined [code]signal[/code]. Arguments are optional, but can be added as an [Array] of dictionaries, each containing [code]name: String[/code] and [code]type: int[/code] (see [enum Variant.Type]) entries.
|
||||
</description>
|
||||
</method>
|
||||
<method name="call" qualifiers="vararg">
|
||||
|
@ -256,7 +256,7 @@
|
|||
</return>
|
||||
<description>
|
||||
Returns the object's property list as an [Array] of dictionaries.
|
||||
Each property's [Dictionary] contain at least [code]name: String[/code] and [code]type: int[/code] (see [enum @GlobalScope.Variant.Type]) entries. Optionally, it can also include [code]hint: int[/code] (see [enum @GlobalScope.PropertyHint]), [code]hint_string: String[/code], and [code]usage: int[/code] (see [enum @GlobalScope.PropertyUsageFlags]).
|
||||
Each property's [Dictionary] contain at least [code]name: String[/code] and [code]type: int[/code] (see [enum Variant.Type]) entries. Optionally, it can also include [code]hint: int[/code] (see [enum PropertyHint]), [code]hint_string: String[/code], and [code]usage: int[/code] (see [enum PropertyUsageFlags]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_script" qualifiers="const">
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
<argument index="1" name="original_path" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Loads a resource when the engine finds this loader to be compatible. If the loaded resource is the result of an import, [code]original_path[/code] will target the source file. Returns a [Resource] object on success, or an [enum @GlobalScope.Error] constant in case of failure.
|
||||
Loads a resource when the engine finds this loader to be compatible. If the loaded resource is the result of an import, [code]original_path[/code] will target the source file. Returns a [Resource] object on success, or an [enum Error] constant in case of failure.
|
||||
</description>
|
||||
</method>
|
||||
<method name="rename_dependencies" qualifiers="virtual">
|
||||
|
@ -67,7 +67,7 @@
|
|||
</argument>
|
||||
<description>
|
||||
If implemented, renames dependencies within the given resource and saves it. [code]renames[/code] is a dictionary [code]{ String => String }[/code] mapping old dependency paths to new paths.
|
||||
Returns [constant @GlobalScope.OK] on success, or an [enum @GlobalScope.Error] constant in case of failure.
|
||||
Returns [constant OK] on success, or an [enum Error] constant in case of failure.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
</argument>
|
||||
<description>
|
||||
Saves the given resource object to a file at the target [code]path[/code]. [code]flags[/code] is a bitmask composed with [enum ResourceSaver.SaverFlags] constants.
|
||||
Returns [constant @GlobalScope.OK] on success, or an [enum @GlobalScope.Error] constant in case of failure.
|
||||
Returns [constant OK] on success, or an [enum Error] constant in case of failure.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -35,9 +35,9 @@
|
|||
</return>
|
||||
<description>
|
||||
Polls the loading operation, i.e. loads a data chunk up to the next stage.
|
||||
Returns [constant @GlobalScope.OK] if the poll is successful but the load operation has not finished yet (intermediate stage). This means [method poll] will have to be called again until the last stage is completed.
|
||||
Returns [constant @GlobalScope.ERR_FILE_EOF] if the load operation has completed successfully. The loaded resource can be obtained by calling [method get_resource].
|
||||
Returns another [enum @GlobalScope.Error] code if the poll has failed.
|
||||
Returns [constant OK] if the poll is successful but the load operation has not finished yet (intermediate stage). This means [method poll] will have to be called again until the last stage is completed.
|
||||
Returns [constant ERR_FILE_EOF] if the load operation has completed successfully. The loaded resource can be obtained by calling [method get_resource].
|
||||
Returns another [enum Error] code if the poll has failed.
|
||||
</description>
|
||||
</method>
|
||||
<method name="wait">
|
||||
|
@ -45,8 +45,8 @@
|
|||
</return>
|
||||
<description>
|
||||
Polls the loading operation successively until the resource is completely loaded or a [method poll] fails.
|
||||
Returns [constant @GlobalScope.ERR_FILE_EOF] if the load operation has completed successfully. The loaded resource can be obtained by calling [method get_resource].
|
||||
Returns another [enum @GlobalScope.Error] code if a poll has failed, aborting the operation.
|
||||
Returns [constant ERR_FILE_EOF] if the load operation has completed successfully. The loaded resource can be obtained by calling [method get_resource].
|
||||
Returns another [enum Error] code if a poll has failed, aborting the operation.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<description>
|
||||
Saves a resource to disk to the given path, using a [ResourceFormatSaver] that recognizes the resource object.
|
||||
The [code]flags[/code] bitmask can be specified to customize the save behavior.
|
||||
Returns [constant @GlobalScope.OK] on success.
|
||||
Returns [constant OK] on success.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
</argument>
|
||||
<description>
|
||||
Changes the running scene to the one at the given [code]path[/code], after loading it into a [PackedScene] and creating a new instance.
|
||||
Returns [constant @GlobalScope.OK] on success, [constant @GlobalScope.ERR_CANT_OPEN] if the [code]path[/code] cannot be loaded into a [PackedScene], or [constant @GlobalScope.ERR_CANT_CREATE] if that scene cannot be instantiated.
|
||||
Returns [constant OK] on success, [constant ERR_CANT_OPEN] if the [code]path[/code] cannot be loaded into a [PackedScene], or [constant ERR_CANT_CREATE] if that scene cannot be instantiated.
|
||||
</description>
|
||||
</method>
|
||||
<method name="change_scene_to">
|
||||
|
@ -54,7 +54,7 @@
|
|||
</argument>
|
||||
<description>
|
||||
Changes the running scene to a new instance of the given [PackedScene].
|
||||
Returns [constant @GlobalScope.OK] on success or [constant @GlobalScope.ERR_CANT_CREATE] if the scene cannot be instantiated.
|
||||
Returns [constant OK] on success or [constant ERR_CANT_CREATE] if the scene cannot be instantiated.
|
||||
</description>
|
||||
</method>
|
||||
<method name="create_timer">
|
||||
|
@ -194,7 +194,7 @@
|
|||
</return>
|
||||
<description>
|
||||
Reloads the currently active scene.
|
||||
Returns an [enum @GlobalScope.Error] code as described in [method change_scene], with the addition of [constant @GlobalScope.ERR_UNCONFIGURED] if no [member current_scene] was defined yet.
|
||||
Returns an [enum Error] code as described in [method change_scene], with the addition of [constant ERR_UNCONFIGURED] if no [member current_scene] was defined yet.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_auto_accept_quit">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Gets a constant from a given class.
|
||||
</brief_description>
|
||||
<description>
|
||||
This node returns a constant from a given class, such as [constant @GlobalScope.TYPE_INT]. See the given class' documentation for available constants.
|
||||
This node returns a constant from a given class, such as [constant TYPE_INT]. See the given class' documentation for available constants.
|
||||
[b]Input Ports:[/b]
|
||||
none
|
||||
[b]Output Ports:[/b]
|
||||
|
|
Loading…
Reference in a new issue