You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Proofread and improve the whole class reference
- Document a few more properties and methods - Add more information to many classes - Fix lots of typos and gramar mistakes - Use [code] tags for parameters consistently - Use [b] and [i] tags consistently - Put "Warning:" and "Note:" on their own line to be more visible, and make them always bold - Tweak formatting in code examples to be more readable - Use double quotes consistently - Add more links to third-party technologies
This commit is contained in:
@@ -252,7 +252,7 @@
|
||||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the info for a given variable as a dictionary. The information includes its name, type, hint and usage.
|
||||
Returns the information for a given variable as a dictionary. The information includes its name, type, hint and usage.
|
||||
</description>
|
||||
</method>
|
||||
<method name="has_custom_signal" qualifiers="const">
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
Moves the number toward a value, based on the third input.
|
||||
</constant>
|
||||
<constant name="MATH_DECTIME" value="30" enum="BuiltinFunc">
|
||||
Return the result of 'value' decreased by 'step' * 'amount'.
|
||||
Return the result of [code]value[/code] decreased by [code]step[/code] * [code]amount[/code].
|
||||
</constant>
|
||||
<constant name="MATH_RANDOMIZE" value="31" enum="BuiltinFunc">
|
||||
Randomize the seed (or the internal state) of the random number generator. Current implementation reseeds using a number based on time.
|
||||
@@ -139,10 +139,10 @@
|
||||
Convert the input from decibel volume to linear volume.
|
||||
</constant>
|
||||
<constant name="MATH_POLAR2CARTESIAN" value="41" enum="BuiltinFunc">
|
||||
Converts a 2D point expressed in the polar coordinate system (a distance from the origin [code]r[/code] and an angle [code]th[/code]) to the cartesian coordinate system (x and y axis).
|
||||
Converts a 2D point expressed in the polar coordinate system (a distance from the origin [code]r[/code] and an angle [code]th[/code]) to the cartesian coordinate system (X and Y axis).
|
||||
</constant>
|
||||
<constant name="MATH_CARTESIAN2POLAR" value="42" enum="BuiltinFunc">
|
||||
Converts a 2D point expressed in the cartesian coordinate system (x and y axis) to the polar coordinate system (a distance from the origin and an angle).
|
||||
Converts a 2D point expressed in the cartesian coordinate system (X and Y axis) to the polar coordinate system (a distance from the origin and an angle).
|
||||
</constant>
|
||||
<constant name="MATH_WRAP" value="43" enum="BuiltinFunc">
|
||||
</constant>
|
||||
@@ -203,7 +203,8 @@
|
||||
Deserialize a [Variant] from a [PoolByteArray] serialized using [constant VAR_TO_BYTES].
|
||||
</constant>
|
||||
<constant name="COLORN" value="63" enum="BuiltinFunc">
|
||||
Return the [Color] with the given name and alpha ranging from 0 to 1. Note: names are defined in color_names.inc.
|
||||
Return the [Color] with the given name and alpha ranging from 0 to 1
|
||||
[b]Note:[/b] Names are defined in [code]color_names.inc[/code].
|
||||
</constant>
|
||||
<constant name="MATH_SMOOTHSTEP" value="64" enum="BuiltinFunc">
|
||||
Return a number smoothly interpolated between the first two inputs, based on the third input. Similar to [constant MATH_LERP], but interpolates faster at the beginning and slower at the end. Using Hermite interpolation formula:
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Return the specified input port's type. See the TYPE_* enum in [@GlobalScope].
|
||||
Return the specified input port's type. See the [code]TYPE_*[/code] enum in [@GlobalScope].
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_output_sequence_port_count" qualifiers="virtual">
|
||||
@@ -86,7 +86,7 @@
|
||||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Return the specified output's type. See the TYPE_* enum in [@GlobalScope].
|
||||
Return the specified output's type. See the [code]TYPE_*[/code] enum in [@GlobalScope].
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_text" qualifiers="virtual">
|
||||
@@ -125,9 +125,9 @@
|
||||
Execute the custom node's logic, returning the index of the output sequence port to use or a [String] when there is an error.
|
||||
The [code]inputs[/code] array contains the values of the input ports.
|
||||
[code]outputs[/code] is an array whose indices should be set to the respective outputs.
|
||||
The [code]start_mode[/code] is usually [constant START_MODE_BEGIN_SEQUENCE], unless you have used the STEP_* constants.
|
||||
The [code]start_mode[/code] is usually [constant START_MODE_BEGIN_SEQUENCE], unless you have used the [code]STEP_*[/code] constants.
|
||||
[code]working_mem[/code] is an array which can be used to persist information between runs of the custom node.
|
||||
When returning, you can mask the returned value with one of the STEP_* constants.
|
||||
When returning, you can mask the returned value with one of the [code]STEP_*[/code] constants.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Branches program flow based on a given input's value.
|
||||
</brief_description>
|
||||
<description>
|
||||
Branches the flow based on an input's value. Use "Case Count" in the Inspector to set the number of branches and each comparison's optional type.
|
||||
Branches the flow based on an input's value. Use [b]Case Count[/b] in the Inspector to set the number of branches and each comparison's optional type.
|
||||
[b]Input Ports:[/b]
|
||||
- Sequence: [code]'input' is[/code]
|
||||
- Data (variant): [code]=[/code]
|
||||
|
||||
Reference in New Issue
Block a user