[Docs] Remove double-spaces from descriptions, as well a couple other small fixes

This commit is contained in:
LikeLakers2 2018-09-22 17:50:45 -04:00
parent 2613e59f59
commit eaac1e3b81
20 changed files with 33 additions and 33 deletions

View File

@ -55,7 +55,7 @@
<argument index="0" name="s" type="float"> <argument index="0" name="s" type="float">
</argument> </argument>
<description> <description>
Returns the absolute value of parameter [code]s[/code] (i.e. unsigned value, works for integer and float). Returns the absolute value of parameter [code]s[/code] (i.e. unsigned value, works for integer and float).
[codeblock] [codeblock]
# a is 1 # a is 1
a = abs(-1) a = abs(-1)
@ -373,7 +373,7 @@
<description> <description>
Returns the floating-point remainder of [code]x/y[/code] that wraps equally in positive and negative. Returns the floating-point remainder of [code]x/y[/code] that wraps equally in positive and negative.
[codeblock] [codeblock]
var i = -10; var i = -10
while i &lt; 0: while i &lt; 0:
prints(i, fposmod(i, 10)) prints(i, fposmod(i, 10))
i += 1 i += 1

View File

@ -6,7 +6,7 @@
<description> <description>
This is a helper spatial node that is linked to the tracking of controllers. It also offers several handy pass throughs to the state of buttons and such on the controllers. This is a helper spatial node that is linked to the tracking of controllers. It also offers several handy pass throughs to the state of buttons and such on the controllers.
Controllers are linked by their id. You can create controller nodes before the controllers are available. Say your game always uses two controllers (one for each hand) you can predefine the controllers with id 1 and 2 and they will become active as soon as the controllers are identified. If you expect additional controllers to be used you should react to the signals and add ARVRController nodes to your scene. Controllers are linked by their id. You can create controller nodes before the controllers are available. Say your game always uses two controllers (one for each hand) you can predefine the controllers with id 1 and 2 and they will become active as soon as the controllers are identified. If you expect additional controllers to be used you should react to the signals and add ARVRController nodes to your scene.
The position of the controller node is automatically updated by the ARVR Server. This makes this node ideal to add child nodes to visualise the controller. The position of the controller node is automatically updated by the ARVR Server. This makes this node ideal to add child nodes to visualise the controller.
</description> </description>
<tutorials> <tutorials>
</tutorials> </tutorials>

View File

@ -120,7 +120,7 @@
<argument index="3" name="before" type="bool" default="True"> <argument index="3" name="before" type="bool" default="True">
</argument> </argument>
<description> <description>
Finds the index of an existing value (or the insertion index that maintains sorting order, if the value is not yet present in the array) using binary search and a custom comparison method. Optionally, a before specifier can be passed. If false, the returned index comes after all existing entries of the value in the array. The custom method receives two arguments (an element from the array and the value searched for) and must return true if the first argument is less than the second, and return false otherwise. Note that calling bsearch on an unsorted array results in unexpected behavior. Finds the index of an existing value (or the insertion index that maintains sorting order, if the value is not yet present in the array) using binary search and a custom comparison method. Optionally, a before specifier can be passed. If false, the returned index comes after all existing entries of the value in the array. The custom method receives two arguments (an element from the array and the value searched for) and must return true if the first argument is less than the second, and return false otherwise. Note that calling bsearch on an unsorted array results in unexpected behavior.
</description> </description>
</method> </method>
<method name="clear"> <method name="clear">
@ -321,7 +321,7 @@
static func sort(a, b): static func sort(a, b):
if a[0] &lt; b[0]: if a[0] &lt; b[0]:
return true return true
return false return false
var my_items = [[5, "Potato"], [9, "Rice"], [4, "Tomato"]] var my_items = [[5, "Potato"], [9, "Rice"], [4, "Tomato"]]
my_items.sort_custom(MyCustomSorter, "sort") my_items.sort_custom(MyCustomSorter, "sort")

View File

@ -4,7 +4,7 @@
Color in RGBA format with some support for ARGB format. Color in RGBA format with some support for ARGB format.
</brief_description> </brief_description>
<description> <description>
A color is represented as red, green and blue (r,g,b) components. Additionally, "a" represents the alpha component, often used for transparency. Values are in floating point and usually range from 0 to 1. Some methods (such as set_modulate(color)) may accept values &gt; 1. A color is represented as red, green and blue (r,g,b) components. Additionally, "a" represents the alpha component, often used for transparency. Values are in floating point and usually range from 0 to 1. Some methods (such as set_modulate(color)) may accept values &gt; 1.
You can also create a color from standardised color names with Color.ColorN (e.g. Color.green) or [method @GDScript.ColorN]. You can also create a color from standardised color names with Color.ColorN (e.g. Color.green) or [method @GDScript.ColorN].
</description> </description>
<tutorials> <tutorials>

View File

@ -229,9 +229,9 @@
extends Control extends Control
func get_drag_data(position): func get_drag_data(position):
var mydata = make_data() var mydata = make_data()
set_drag_preview(make_preview(mydata)) set_drag_preview(make_preview(mydata))
return mydata return mydata
[/codeblock] [/codeblock]
</description> </description>
</method> </method>

View File

@ -111,7 +111,7 @@
<argument index="1" name="t" type="float"> <argument index="1" name="t" type="float">
</argument> </argument>
<description> <description>
Returns the position between the vertex "idx" and the vertex "idx"+1, where "t" controls if the point is the first vertex (t = 0.0), the last vertex (t = 1.0), or in between. Values of "t" outside the range (0.0 &gt;= t &lt;=1) give strange, but predictable results. Returns the position between the vertex "idx" and the vertex "idx"+1, where "t" controls if the point is the first vertex (t = 0.0), the last vertex (t = 1.0), or in between. Values of "t" outside the range (0.0 &gt;= t &lt;=1) give strange, but predictable results.
If "idx" is out of bounds it is truncated to the first or last vertex, and "t" is ignored. If the curve has no points, the function sends an error to the console, and returns (0, 0). If "idx" is out of bounds it is truncated to the first or last vertex, and "t" is ignored. If the curve has no points, the function sends an error to the console, and returns (0, 0).
</description> </description>
</method> </method>

View File

@ -135,7 +135,7 @@
<argument index="1" name="t" type="float"> <argument index="1" name="t" type="float">
</argument> </argument>
<description> <description>
Returns the position between the vertex "idx" and the vertex "idx"+1, where "t" controls if the point is the first vertex (t = 0.0), the last vertex (t = 1.0), or in between. Values of "t" outside the range (0.0 &gt;= t &lt;=1) give strange, but predictable results. Returns the position between the vertex "idx" and the vertex "idx"+1, where "t" controls if the point is the first vertex (t = 0.0), the last vertex (t = 1.0), or in between. Values of "t" outside the range (0.0 &gt;= t &lt;=1) give strange, but predictable results.
If "idx" is out of bounds it is truncated to the first or last vertex, and "t" is ignored. If the curve has no points, the function sends an error to the console, and returns (0, 0, 0). If "idx" is out of bounds it is truncated to the first or last vertex, and "t" is ignored. If the curve has no points, the function sends an error to the console, and returns (0, 0, 0).
</description> </description>
</method> </method>

View File

@ -41,7 +41,7 @@
return FAILED return FAILED
var mesh = Mesh.new() var mesh = Mesh.new()
# Fill the Mesh with data read in 'file', left as exercise to the reader # Fill the Mesh with data read in 'file', left as exercise to the reader
var filename = save_path + "." + get_save_extension() var filename = save_path + "." + get_save_extension()
ResourceSaver.save(filename, mesh) ResourceSaver.save(filename, mesh)

View File

@ -33,7 +33,7 @@
<argument index="2" name="selectable" type="bool" default="true"> <argument index="2" name="selectable" type="bool" default="true">
</argument> </argument>
<description> <description>
Adds an item to the item list with specified text. Specify an icon of null for a list item with no icon. Adds an item to the item list with specified text. Specify an icon of null for a list item with no icon.
If selectable is true the list item will be selectable. If selectable is true the list item will be selectable.
</description> </description>
</method> </method>
@ -222,7 +222,7 @@
</argument> </argument>
<description> <description>
Select the item at the specified index. Select the item at the specified index.
Note: This method does not trigger the item selection signal. Note: This method does not trigger the item selection signal.
</description> </description>
</method> </method>
<method name="set_item_custom_bg_color"> <method name="set_item_custom_bg_color">

View File

@ -74,7 +74,7 @@
<argument index="1" name="texture" type="Texture"> <argument index="1" name="texture" type="Texture">
</argument> </argument>
<description> <description>
Sets the [Texture] of the piece with index "idx" to "ofs". Sets the [Texture] of the piece with index "idx" to "texture".
</description> </description>
</method> </method>
<method name="set_size"> <method name="set_size">

View File

@ -11,7 +11,7 @@
var scene = PackedScene.new() var scene = PackedScene.new()
var result = scene.pack(child) var result = scene.pack(child)
if result == OK: if result == OK:
ResourceSaver.save("res://path/name.scn", scene) // or user://... ResourceSaver.save("res://path/name.scn", scene) # or user://...
[/codeblock] [/codeblock]
</description> </description>
<tutorials> <tutorials>

View File

@ -129,7 +129,7 @@
<argument index="1" name="to" type="int"> <argument index="1" name="to" type="int">
</argument> </argument>
<description> <description>
Returns the slice of the [code]PoolByteArray[/code] between indices (inclusive) as a new [code]PoolByteArray[/code]. Any negative index is considered to be from the end of the array. Returns the slice of the [code]PoolByteArray[/code] between indices (inclusive) as a new [code]PoolByteArray[/code]. Any negative index is considered to be from the end of the array.
</description> </description>
</method> </method>
</methods> </methods>

View File

@ -4,7 +4,7 @@
Handle for a [Resource]'s unique ID. Handle for a [Resource]'s unique ID.
</brief_description> </brief_description>
<description> <description>
The RID type is used to access the unique integer ID of a resource. They are opaque, so they do not grant access to the associated resource by themselves. They are used by and with the low-level Server classes such as [VisualServer]. The RID type is used to access the unique integer ID of a resource. They are opaque, so they do not grant access to the associated resource by themselves. They are used by and with the low-level Server classes such as [VisualServer].
</description> </description>
<tutorials> <tutorials>
</tutorials> </tutorials>

View File

@ -44,7 +44,7 @@
<return type="void"> <return type="void">
</return> </return>
<description> <description>
Updates the collision information for the ray. Use this method to update the collision information immediately instead of waiting for the next [code]_physics_process[/code] call, for example if the ray or its parent has changed state. Note: [code]enabled == true[/code] is not required for this to work. Updates the collision information for the ray. Use this method to update the collision information immediately instead of waiting for the next [code]_physics_process[/code] call, for example if the ray or its parent has changed state. Note: [code]enabled == true[/code] is not required for this to work.
</description> </description>
</method> </method>
<method name="get_collider" qualifiers="const"> <method name="get_collider" qualifiers="const">

View File

@ -88,7 +88,7 @@
<return type="Array"> <return type="Array">
</return> </return>
<description> <description>
Return a list of the bodies colliding with this one. By default, number of max contacts reported is at 0 , see [method set_max_contacts_reported] to increase it. Note that the result of this test is not immediate after moving objects. For performance, list of collisions is updated once per frame and before the physics step. Consider using signals instead. Return a list of the bodies colliding with this one. By default, number of max contacts reported is at 0 , see [method set_max_contacts_reported] to increase it. Note that the result of this test is not immediate after moving objects. For performance, list of collisions is updated once per frame and before the physics step. Consider using signals instead.
</description> </description>
</method> </method>
<method name="set_axis_velocity"> <method name="set_axis_velocity">

View File

@ -4,7 +4,7 @@
A helper node for displaying scrollable elements (e.g. lists). A helper node for displaying scrollable elements (e.g. lists).
</brief_description> </brief_description>
<description> <description>
A ScrollContainer node with a [Control] child and scrollbar child ([HScrollbar], [VScrollBar], or both) will only draw the Control within the ScrollContainer area. Scrollbars will automatically be drawn at the right (for vertical) or bottom (for horizontal) and will enable dragging to move the viewable Control (and its children) within the ScrollContainer. Scrollbars will also automatically resize the grabber based on the minimum_size of the Control relative to the ScrollContainer. Works great with a [Panel] control. You can set EXPAND on children size flags, so they will upscale to ScrollContainer size if ScrollContainer size is bigger (scroll is invisible for chosen dimension). A ScrollContainer node with a [Control] child and scrollbar child ([HScrollbar], [VScrollBar], or both) will only draw the Control within the ScrollContainer area. Scrollbars will automatically be drawn at the right (for vertical) or bottom (for horizontal) and will enable dragging to move the viewable Control (and its children) within the ScrollContainer. Scrollbars will also automatically resize the grabber based on the minimum_size of the Control relative to the ScrollContainer. Works great with a [Panel] control. You can set EXPAND on children size flags, so they will upscale to ScrollContainer size if ScrollContainer size is bigger (scroll is invisible for chosen dimension).
</description> </description>
<tutorials> <tutorials>
</tutorials> </tutorials>

View File

@ -248,7 +248,7 @@
Amount to offset alternating tiles. Uses HALF_OFFSET_* constants. Default value: HALF_OFFSET_DISABLED. Amount to offset alternating tiles. Uses HALF_OFFSET_* constants. Default value: HALF_OFFSET_DISABLED.
</member> </member>
<member name="cell_quadrant_size" type="int" setter="set_quadrant_size" getter="get_quadrant_size"> <member name="cell_quadrant_size" type="int" setter="set_quadrant_size" getter="get_quadrant_size">
The TileMap's quadrant size. Optimizes drawing by batching, using chunks of this size. Default value: 16. The TileMap's quadrant size. Optimizes drawing by batching, using chunks of this size. Default value: 16.
</member> </member>
<member name="cell_size" type="Vector2" setter="set_cell_size" getter="get_cell_size"> <member name="cell_size" type="Vector2" setter="set_cell_size" getter="get_cell_size">
The TileMap's cell size. The TileMap's cell size.
@ -278,7 +278,7 @@
The TileMap orientation mode. Uses MODE_* constants. Default value: MODE_SQUARE. The TileMap orientation mode. Uses MODE_* constants. Default value: MODE_SQUARE.
</member> </member>
<member name="occluder_light_mask" type="int" setter="set_occluder_light_mask" getter="get_occluder_light_mask"> <member name="occluder_light_mask" type="int" setter="set_occluder_light_mask" getter="get_occluder_light_mask">
The light mask assigned to all light occluders in the TileMap. The TileSet's light occluders will cast shadows only from Light2D(s) that have the same light mask(s). The light mask assigned to all light occluders in the TileMap. The TileSet's light occluders will cast shadows only from Light2D(s) that have the same light mask(s).
</member> </member>
<member name="tile_set" type="TileSet" setter="set_tileset" getter="get_tileset"> <member name="tile_set" type="TileSet" setter="set_tileset" getter="get_tileset">
The assigned [TileSet]. The assigned [TileSet].

View File

@ -9,8 +9,8 @@
[codeblock] [codeblock]
var tween = get_node("Tween") var tween = get_node("Tween")
tween.interpolate_property($Node2D, "position", tween.interpolate_property($Node2D, "position",
Vector2(0, 0), Vector2(100, 100), 1, Vector2(0, 0), Vector2(100, 100), 1,
Tween.TRANS_LINEAR, Tween.EASE_IN_OUT) Tween.TRANS_LINEAR, Tween.EASE_IN_OUT)
tween.start() tween.start()
[/codeblock] [/codeblock]
Many methods require a property name, such as "position" above. You can find the correct property name by hovering over the property in the Inspector. Many methods require a property name, such as "position" above. You can find the correct property name by hovering over the property in the Inspector.
@ -44,7 +44,7 @@
</argument> </argument>
<description> <description>
Follows [code]method[/code] of [code]object[/code] and applies the returned value on [code]target_method[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] later. Methods are called with consecutive values. Follows [code]method[/code] of [code]object[/code] and applies the returned value on [code]target_method[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] later. Methods are called with consecutive values.
Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
</description> </description>
</method> </method>
<method name="follow_property"> <method name="follow_property">
@ -70,7 +70,7 @@
</argument> </argument>
<description> <description>
Follows [code]property[/code] of [code]object[/code] and applies it on [code]target_property[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Follows [code]property[/code] of [code]object[/code] and applies it on [code]target_property[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later.
Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
</description> </description>
</method> </method>
<method name="get_runtime" qualifiers="const"> <method name="get_runtime" qualifiers="const">
@ -147,7 +147,7 @@
</argument> </argument>
<description> <description>
Animates [code]method[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are called with consecutive values. Animates [code]method[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are called with consecutive values.
Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
</description> </description>
</method> </method>
<method name="interpolate_property"> <method name="interpolate_property">
@ -171,7 +171,7 @@
</argument> </argument>
<description> <description>
Animates [code]property[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Setting the initial value to [code]null[/code] uses the current value of the property. Animates [code]property[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Setting the initial value to [code]null[/code] uses the current value of the property.
Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
</description> </description>
</method> </method>
<method name="is_active" qualifiers="const"> <method name="is_active" qualifiers="const">
@ -301,7 +301,7 @@
</argument> </argument>
<description> <description>
Animates [code]method[/code] of [code]object[/code] from the value returned by [code]initial_method[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecutive values. Animates [code]method[/code] of [code]object[/code] from the value returned by [code]initial_method[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecutive values.
Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
</description> </description>
</method> </method>
<method name="targeting_property"> <method name="targeting_property">
@ -327,7 +327,7 @@
</argument> </argument>
<description> <description>
Animates [code]property[/code] of [code]object[/code] from the current value of the [code]initial_val[/code] property of [code]initial[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Animates [code]property[/code] of [code]object[/code] from the current value of the [code]initial_val[/code] property of [code]initial[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later.
Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
</description> </description>
</method> </method>
<method name="tell" qualifiers="const"> <method name="tell" qualifiers="const">

View File

@ -227,7 +227,7 @@
<argument index="1" name="t" type="float"> <argument index="1" name="t" type="float">
</argument> </argument>
<description> <description>
Returns the result of SLERP between this vector and [code]b[/code], by amount [code]t[/code]. [code]t[/code] is in the range of [code]0.0 - 1.0[/code], representing the amount of interpolation. Returns the result of SLERP between this vector and [code]b[/code], by amount [code]t[/code]. [code]t[/code] is in the range of [code]0.0 - 1.0[/code], representing the amount of interpolation.
Both vectors need to be normalized. Both vectors need to be normalized.
</description> </description>
</method> </method>