diff options
408 files changed, 14025 insertions, 28050 deletions
diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index c0e8b76969..33d877af29 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -11,18 +11,14 @@ </tutorials> <methods> <method name="abs"> - <return type="Variant"> - </return> - <argument index="0" name="x" type="Variant"> - </argument> + <return type="Variant" /> + <argument index="0" name="x" type="Variant" /> <description> </description> </method> <method name="absf"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Returns the absolute value of float parameter [code]x[/code] (i.e. positive value). [codeblock] @@ -32,10 +28,8 @@ </description> </method> <method name="absi"> - <return type="int"> - </return> - <argument index="0" name="x" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="x" type="int" /> <description> Returns the absolute value of int parameter [code]x[/code] (i.e. positive value). [codeblock] @@ -45,10 +39,8 @@ </description> </method> <method name="acos"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Returns the arc cosine of [code]x[/code] in radians. Use to get the angle of cosine [code]x[/code]. [code]x[/code] must be between [code]-1.0[/code] and [code]1.0[/code] (inclusive), otherwise, [method acos] will return [constant @GDScript.NAN]. [codeblock] @@ -58,10 +50,8 @@ </description> </method> <method name="asin"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Returns the arc sine of [code]x[/code] in radians. Use to get the angle of sine [code]x[/code]. [code]x[/code] must be between [code]-1.0[/code] and [code]1.0[/code] (inclusive), otherwise, [method asin] will return [constant @GDScript.NAN]. [codeblock] @@ -71,10 +61,8 @@ </description> </method> <method name="atan"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Returns the arc tangent of [code]x[/code] in radians. Use it to get the angle from an angle's tangent in trigonometry: [code]atan(tan(angle)) == angle[/code]. The method cannot know in which quadrant the angle should fall. See [method atan2] if you have both [code]y[/code] and [code]x[/code]. @@ -84,12 +72,9 @@ </description> </method> <method name="atan2"> - <return type="float"> - </return> - <argument index="0" name="y" type="float"> - </argument> - <argument index="1" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="y" type="float" /> + <argument index="1" name="x" type="float" /> <description> Returns the arc tangent of [code]y/x[/code] in radians. Use to get the angle of tangent [code]y/x[/code]. To compute the value, the method takes into account the sign of both arguments in order to determine the quadrant. Important note: The Y coordinate comes first, by convention. @@ -99,41 +84,32 @@ </description> </method> <method name="bytes2var"> - <return type="Variant"> - </return> - <argument index="0" name="bytes" type="PackedByteArray"> - </argument> + <return type="Variant" /> + <argument index="0" name="bytes" type="PackedByteArray" /> <description> Decodes a byte array back to a [Variant] value, without decoding objects. [b]Note:[/b] If you need object deserialization, see [method bytes2var_with_objects]. </description> </method> <method name="bytes2var_with_objects"> - <return type="Variant"> - </return> - <argument index="0" name="bytes" type="PackedByteArray"> - </argument> + <return type="Variant" /> + <argument index="0" name="bytes" type="PackedByteArray" /> <description> Decodes a byte array back to a [Variant] value. Decoding objects is allowed. [b]WARNING:[/b] Deserialized object can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats (remote code execution). </description> </method> <method name="cartesian2polar"> - <return type="Vector2"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="y" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="y" type="float" /> <description> 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). </description> </method> <method name="ceil"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Rounds [code]x[/code] upward (towards positive infinity), returning the smallest whole number that is not less than [code]x[/code]. [codeblock] @@ -144,26 +120,18 @@ </description> </method> <method name="clamp"> - <return type="Variant"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> - <argument index="1" name="min" type="Variant"> - </argument> - <argument index="2" name="max" type="Variant"> - </argument> + <return type="Variant" /> + <argument index="0" name="value" type="Variant" /> + <argument index="1" name="min" type="Variant" /> + <argument index="2" name="max" type="Variant" /> <description> </description> </method> <method name="clampf"> - <return type="float"> - </return> - <argument index="0" name="value" type="float"> - </argument> - <argument index="1" name="min" type="float"> - </argument> - <argument index="2" name="max" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="value" type="float" /> + <argument index="1" name="min" type="float" /> + <argument index="2" name="max" type="float" /> <description> Clamps the float [code]value[/code] and returns a value not less than [code]min[/code] and not more than [code]max[/code]. [codeblock] @@ -178,14 +146,10 @@ </description> </method> <method name="clampi"> - <return type="int"> - </return> - <argument index="0" name="value" type="int"> - </argument> - <argument index="1" name="min" type="int"> - </argument> - <argument index="2" name="max" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="value" type="int" /> + <argument index="1" name="min" type="int" /> + <argument index="2" name="max" type="int" /> <description> Clamps the integer [code]value[/code] and returns a value not less than [code]min[/code] and not more than [code]max[/code]. [codeblock] @@ -200,10 +164,8 @@ </description> </method> <method name="cos"> - <return type="float"> - </return> - <argument index="0" name="angle_rad" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="angle_rad" type="float" /> <description> Returns the cosine of angle [code]angle_rad[/code] in radians. [codeblock] @@ -214,10 +176,8 @@ </description> </method> <method name="cosh"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Returns the hyperbolic cosine of [code]x[/code] in radians. [codeblock] @@ -227,23 +187,17 @@ </description> </method> <method name="db2linear"> - <return type="float"> - </return> - <argument index="0" name="db" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="db" type="float" /> <description> Converts from decibels to linear energy (audio). </description> </method> <method name="dectime"> - <return type="float"> - </return> - <argument index="0" name="value" type="float"> - </argument> - <argument index="1" name="amount" type="float"> - </argument> - <argument index="2" name="step" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="value" type="float" /> + <argument index="1" name="amount" type="float" /> + <argument index="2" name="step" type="float" /> <description> Returns the result of [code]value[/code] decreased by [code]step[/code] * [code]amount[/code]. [codeblock] @@ -253,10 +207,8 @@ </description> </method> <method name="deg2rad"> - <return type="float"> - </return> - <argument index="0" name="deg" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="deg" type="float" /> <description> Converts an angle expressed in degrees to radians. [codeblock] @@ -266,21 +218,16 @@ </description> </method> <method name="ease"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="curve" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="curve" type="float" /> <description> Easing function, based on exponent. The curve values are: 0 is constant, 1 is linear, 0 to 1 is ease-in, 1+ is ease out. Negative values are in-out/out in. </description> </method> <method name="exp"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> The natural exponential function. It raises the mathematical constant [b]e[/b] to the power of [code]x[/code] and returns it. [b]e[/b] has an approximate value of 2.71828, and can be obtained with [code]exp(1)[/code]. @@ -291,10 +238,8 @@ </description> </method> <method name="floor"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Rounds [code]x[/code] downward (towards negative infinity), returning the largest whole number that is not more than [code]x[/code]. [codeblock] @@ -308,12 +253,9 @@ </description> </method> <method name="fmod"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="y" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="y" type="float" /> <description> Returns the floating-point remainder of [code]x/y[/code], keeping the sign of [code]x[/code]. [codeblock] @@ -324,12 +266,9 @@ </description> </method> <method name="fposmod"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="y" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="y" type="float" /> <description> Returns the floating-point modulus of [code]x/y[/code] that wraps equally in positive and negative. [codeblock] @@ -350,10 +289,8 @@ </description> </method> <method name="hash"> - <return type="int"> - </return> - <argument index="0" name="variable" type="Variant"> - </argument> + <return type="int" /> + <argument index="0" name="variable" type="Variant" /> <description> Returns the integer hash of the variable passed. [codeblock] @@ -362,10 +299,8 @@ </description> </method> <method name="instance_from_id"> - <return type="Object"> - </return> - <argument index="0" name="instance_id" type="int"> - </argument> + <return type="Object" /> + <argument index="0" name="instance_id" type="int" /> <description> Returns the Object that corresponds to [code]instance_id[/code]. All Objects have a unique instance ID. [codeblock] @@ -378,14 +313,10 @@ </description> </method> <method name="inverse_lerp"> - <return type="float"> - </return> - <argument index="0" name="from" type="float"> - </argument> - <argument index="1" name="to" type="float"> - </argument> - <argument index="2" name="weight" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="from" type="float" /> + <argument index="1" name="to" type="float" /> + <argument index="2" name="weight" type="float" /> <description> Returns a normalized value considering the given range. This is the opposite of [method lerp]. [codeblock] @@ -398,12 +329,9 @@ </description> </method> <method name="is_equal_approx"> - <return type="bool"> - </return> - <argument index="0" name="a" type="float"> - </argument> - <argument index="1" name="b" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="a" type="float" /> + <argument index="1" name="b" type="float" /> <description> Returns [code]true[/code] if [code]a[/code] and [code]b[/code] are approximately equal to each other. Here, approximately equal means that [code]a[/code] and [code]b[/code] are within a small internal epsilon of each other, which scales with the magnitude of the numbers. @@ -411,59 +339,45 @@ </description> </method> <method name="is_inf"> - <return type="bool"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="x" type="float" /> <description> Returns whether [code]x[/code] is an infinity value (either positive infinity or negative infinity). </description> </method> <method name="is_instance_id_valid"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> </description> </method> <method name="is_instance_valid"> - <return type="bool"> - </return> - <argument index="0" name="instance" type="Variant"> - </argument> + <return type="bool" /> + <argument index="0" name="instance" type="Variant" /> <description> Returns whether [code]instance[/code] is a valid object (e.g. has not been deleted from memory). </description> </method> <method name="is_nan"> - <return type="bool"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="x" type="float" /> <description> Returns whether [code]x[/code] is a NaN ("Not a Number" or invalid) value. </description> </method> <method name="is_zero_approx"> - <return type="bool"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="x" type="float" /> <description> Returns [code]true[/code] if [code]x[/code] is zero or almost zero. This method is faster than using [method is_equal_approx] with one value as zero. </description> </method> <method name="lerp"> - <return type="float"> - </return> - <argument index="0" name="from" type="float"> - </argument> - <argument index="1" name="to" type="float"> - </argument> - <argument index="2" name="weight" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="from" type="float" /> + <argument index="1" name="to" type="float" /> + <argument index="2" name="weight" type="float" /> <description> Linearly interpolates between two values by a normalized value. This is the opposite of [method inverse_lerp]. [codeblock] @@ -472,14 +386,10 @@ </description> </method> <method name="lerp_angle"> - <return type="float"> - </return> - <argument index="0" name="from" type="float"> - </argument> - <argument index="1" name="to" type="float"> - </argument> - <argument index="2" name="weight" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="from" type="float" /> + <argument index="1" name="to" type="float" /> + <argument index="2" name="weight" type="float" /> <description> Linearly interpolates between two angles (in radians) by a normalized value. Similar to [method lerp], but interpolates correctly when the angles wrap around [constant @GDScript.TAU]. @@ -495,10 +405,8 @@ </description> </method> <method name="linear2db"> - <return type="float"> - </return> - <argument index="0" name="lin" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="lin" type="float" /> <description> Converts from linear energy to decibels (audio). This can be used to implement volume sliders that behave as expected (since volume isn't linear). Example: [codeblock] @@ -510,10 +418,8 @@ </description> </method> <method name="log"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Natural logarithm. The amount of time needed to reach a certain level of continuous growth. [b]Note:[/b] This is not the same as the "log" function on most calculators, which uses a base 10 logarithm. @@ -524,8 +430,7 @@ </description> </method> <method name="max" qualifiers="vararg"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns the maximum of the given values. This method can take any number of arguments. [codeblock] @@ -534,12 +439,9 @@ </description> </method> <method name="maxf"> - <return type="float"> - </return> - <argument index="0" name="a" type="float"> - </argument> - <argument index="1" name="b" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="a" type="float" /> + <argument index="1" name="b" type="float" /> <description> Returns the maximum of two float values. [codeblock] @@ -549,12 +451,9 @@ </description> </method> <method name="maxi"> - <return type="int"> - </return> - <argument index="0" name="a" type="int"> - </argument> - <argument index="1" name="b" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="a" type="int" /> + <argument index="1" name="b" type="int" /> <description> Returns the maximum of two int values. [codeblock] @@ -564,8 +463,7 @@ </description> </method> <method name="min" qualifiers="vararg"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns the minimum of the given values. This method can take any number of arguments. [codeblock] @@ -574,12 +472,9 @@ </description> </method> <method name="minf"> - <return type="float"> - </return> - <argument index="0" name="a" type="float"> - </argument> - <argument index="1" name="b" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="a" type="float" /> + <argument index="1" name="b" type="float" /> <description> Returns the minimum of two float values. [codeblock] @@ -589,12 +484,9 @@ </description> </method> <method name="mini"> - <return type="int"> - </return> - <argument index="0" name="a" type="int"> - </argument> - <argument index="1" name="b" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="a" type="int" /> + <argument index="1" name="b" type="int" /> <description> Returns the minimum of two int values. [codeblock] @@ -604,14 +496,10 @@ </description> </method> <method name="move_toward"> - <return type="float"> - </return> - <argument index="0" name="from" type="float"> - </argument> - <argument index="1" name="to" type="float"> - </argument> - <argument index="2" name="delta" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="from" type="float" /> + <argument index="1" name="to" type="float" /> + <argument index="2" name="delta" type="float" /> <description> Moves [code]from[/code] toward [code]to[/code] by the [code]delta[/code] value. Use a negative [code]delta[/code] value to move away. @@ -623,10 +511,8 @@ </description> </method> <method name="nearest_po2"> - <return type="int"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="value" type="int" /> <description> Returns the nearest equal or larger power of 2 for integer [code]value[/code]. In other words, returns the smallest value [code]a[/code] where [code]a = pow(2, n)[/code] such that [code]value <= a[/code] for some non-negative integer [code]n[/code]. @@ -642,23 +528,17 @@ </description> </method> <method name="polar2cartesian"> - <return type="Vector2"> - </return> - <argument index="0" name="r" type="float"> - </argument> - <argument index="1" name="th" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="r" type="float" /> + <argument index="1" name="th" type="float" /> <description> 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). </description> </method> <method name="posmod"> - <return type="int"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="x" type="int" /> + <argument index="1" name="y" type="int" /> <description> Returns the integer modulus of [code]x/y[/code] that wraps equally in positive and negative. [codeblock] @@ -678,12 +558,9 @@ </description> </method> <method name="pow"> - <return type="float"> - </return> - <argument index="0" name="base" type="float"> - </argument> - <argument index="1" name="exp" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="base" type="float" /> + <argument index="1" name="exp" type="float" /> <description> Returns the result of [code]base[/code] raised to the power of [code]exp[/code]. [codeblock] @@ -754,10 +631,8 @@ </description> </method> <method name="rad2deg"> - <return type="float"> - </return> - <argument index="0" name="rad" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="rad" type="float" /> <description> Converts an angle expressed in radians to degrees. [codeblock] @@ -766,17 +641,14 @@ </description> </method> <method name="rand_from_seed"> - <return type="PackedInt64Array"> - </return> - <argument index="0" name="seed" type="int"> - </argument> + <return type="PackedInt64Array" /> + <argument index="0" name="seed" type="int" /> <description> Random from seed: pass a [code]seed[/code], and an array with both number and new seed is returned. "Seed" here refers to the internal state of the pseudo random number generator. The internal state of the current implementation is 64 bits. </description> </method> <method name="randf"> - <return type="float"> - </return> + <return type="float" /> <description> Returns a random floating point value between [code]0.0[/code] and [code]1.0[/code] (inclusive). [codeblock] @@ -785,12 +657,9 @@ </description> </method> <method name="randf_range"> - <return type="float"> - </return> - <argument index="0" name="from" type="float"> - </argument> - <argument index="1" name="to" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="from" type="float" /> + <argument index="1" name="to" type="float" /> <description> Returns a random floating point value on the interval between [code]from[/code] and [code]to[/code] (inclusive). [codeblock] @@ -799,8 +668,7 @@ </description> </method> <method name="randi"> - <return type="int"> - </return> + <return type="int" /> <description> Returns a random unsigned 32-bit integer. Use remainder to obtain a random value in the interval [code][0, N - 1][/code] (where N is smaller than 2^32). [codeblock] @@ -812,12 +680,9 @@ </description> </method> <method name="randi_range"> - <return type="int"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> Returns a random signed 32-bit integer between [code]from[/code] and [code]to[/code] (inclusive). If [code]to[/code] is lesser than [code]from[/code], they are swapped. [codeblock] @@ -833,18 +698,12 @@ </description> </method> <method name="range_lerp"> - <return type="float"> - </return> - <argument index="0" name="value" type="float"> - </argument> - <argument index="1" name="istart" type="float"> - </argument> - <argument index="2" name="istop" type="float"> - </argument> - <argument index="3" name="ostart" type="float"> - </argument> - <argument index="4" name="ostop" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="value" type="float" /> + <argument index="1" name="istart" type="float" /> + <argument index="2" name="istop" type="float" /> + <argument index="3" name="ostart" type="float" /> + <argument index="4" name="ostop" type="float" /> <description> Maps a [code]value[/code] from range [code][istart, istop][/code] to [code][ostart, ostop][/code]. [codeblock] @@ -853,18 +712,14 @@ </description> </method> <method name="range_step_decimals"> - <return type="int"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="int" /> + <argument index="0" name="x" type="float" /> <description> </description> </method> <method name="round"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Rounds [code]x[/code] to the nearest whole number, with halfway cases rounded away from zero. [codeblock] @@ -874,8 +729,7 @@ </description> </method> <method name="seed"> - <argument index="0" name="base" type="int"> - </argument> + <argument index="0" name="base" type="int" /> <description> Sets seed for the random number generator. [codeblock] @@ -885,18 +739,14 @@ </description> </method> <method name="sign"> - <return type="Variant"> - </return> - <argument index="0" name="x" type="Variant"> - </argument> + <return type="Variant" /> + <argument index="0" name="x" type="Variant" /> <description> </description> </method> <method name="signf"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Returns the sign of [code]x[/code] as a float: -1.0 or 1.0. Returns 0.0 if [code]x[/code] is 0. [codeblock] @@ -907,10 +757,8 @@ </description> </method> <method name="signi"> - <return type="int"> - </return> - <argument index="0" name="x" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="x" type="int" /> <description> Returns the sign of [code]x[/code] as an integer: -1 or 1. Returns 0 if [code]x[/code] is 0. [codeblock] @@ -921,10 +769,8 @@ </description> </method> <method name="sin"> - <return type="float"> - </return> - <argument index="0" name="angle_rad" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="angle_rad" type="float" /> <description> Returns the sine of angle [code]angle_rad[/code] in radians. [codeblock] @@ -933,10 +779,8 @@ </description> </method> <method name="sinh"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Returns the hyperbolic sine of [code]x[/code]. [codeblock] @@ -946,14 +790,10 @@ </description> </method> <method name="smoothstep"> - <return type="float"> - </return> - <argument index="0" name="from" type="float"> - </argument> - <argument index="1" name="to" type="float"> - </argument> - <argument index="2" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="from" type="float" /> + <argument index="1" name="to" type="float" /> + <argument index="2" name="x" type="float" /> <description> Returns the result of smoothly interpolating the value of [code]x[/code] between [code]0[/code] and [code]1[/code], based on the where [code]x[/code] lies with respect to the edges [code]from[/code] and [code]to[/code]. The return value is [code]0[/code] if [code]x <= from[/code], and [code]1[/code] if [code]x >= to[/code]. If [code]x[/code] lies between [code]from[/code] and [code]to[/code], the returned value follows an S-shaped curve that maps [code]x[/code] between [code]0[/code] and [code]1[/code]. @@ -967,12 +807,9 @@ </description> </method> <method name="snapped"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="step" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="step" type="float" /> <description> Snaps float value [code]x[/code] to a given [code]step[/code]. This can also be used to round a floating point number to an arbitrary number of decimals. [codeblock] @@ -983,10 +820,8 @@ </description> </method> <method name="sqrt"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Returns the square root of [code]x[/code], where [code]x[/code] is a non-negative number. [codeblock] @@ -996,10 +831,8 @@ </description> </method> <method name="step_decimals"> - <return type="int"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="int" /> + <argument index="0" name="x" type="float" /> <description> Returns the position of the first non-zero digit, after the decimal point. Note that the maximum return value is 10, which is a design decision in the implementation. [codeblock] @@ -1013,17 +846,14 @@ </description> </method> <method name="str" qualifiers="vararg"> - <return type="String"> - </return> + <return type="String" /> <description> Converts one or more arguments of any type to string in the best way possible. </description> </method> <method name="str2var"> - <return type="Variant"> - </return> - <argument index="0" name="string" type="String"> - </argument> + <return type="Variant" /> + <argument index="0" name="string" type="String" /> <description> Converts a formatted string that was returned by [method var2str] to the original value. [codeblock] @@ -1034,10 +864,8 @@ </description> </method> <method name="tan"> - <return type="float"> - </return> - <argument index="0" name="angle_rad" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="angle_rad" type="float" /> <description> Returns the tangent of angle [code]angle_rad[/code] in radians. [codeblock] @@ -1046,10 +874,8 @@ </description> </method> <method name="tanh"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Returns the hyperbolic tangent of [code]x[/code]. [codeblock] @@ -1059,10 +885,8 @@ </description> </method> <method name="typeof"> - <return type="int"> - </return> - <argument index="0" name="variable" type="Variant"> - </argument> + <return type="int" /> + <argument index="0" name="variable" type="Variant" /> <description> Returns the internal type of the given Variant object, using the [enum Variant.Type] values. [codeblock] @@ -1077,29 +901,23 @@ </description> </method> <method name="var2bytes"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="variable" type="Variant"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="variable" type="Variant" /> <description> Encodes a [Variant] value to a byte array, without encoding objects. Deserialization can be done with [method bytes2var]. [b]Note:[/b] If you need object serialization, see [method var2bytes_with_objects]. </description> </method> <method name="var2bytes_with_objects"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="variable" type="Variant"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="variable" type="Variant" /> <description> Encodes a [Variant] value to a byte array. Encoding objects is allowed (and can potentially include code). Deserialization can be done with [method bytes2var_with_objects]. </description> </method> <method name="var2str"> - <return type="String"> - </return> - <argument index="0" name="variable" type="Variant"> - </argument> + <return type="String" /> + <argument index="0" name="variable" type="Variant" /> <description> Converts a Variant [code]variable[/code] to a formatted string that can later be parsed using [method str2var]. [codeblock] @@ -1116,24 +934,18 @@ </description> </method> <method name="weakref"> - <return type="Variant"> - </return> - <argument index="0" name="obj" type="Variant"> - </argument> + <return type="Variant" /> + <argument index="0" name="obj" type="Variant" /> <description> Returns a weak reference to an object, or [code]null[/code] is the argument is invalid. A weak reference to an object is not enough to keep the object alive: when the only remaining references to a referent are weak references, garbage collection is free to destroy the referent and reuse its memory for something else. However, until the object is actually destroyed the weak reference may return the object even if there are no strong references to it. </description> </method> <method name="wrapf"> - <return type="float"> - </return> - <argument index="0" name="value" type="float"> - </argument> - <argument index="1" name="min" type="float"> - </argument> - <argument index="2" name="max" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="value" type="float" /> + <argument index="1" name="min" type="float" /> + <argument index="2" name="max" type="float" /> <description> Wraps float [code]value[/code] between [code]min[/code] and [code]max[/code]. Usable for creating loop-alike behavior or infinite surfaces. @@ -1154,14 +966,10 @@ </description> </method> <method name="wrapi"> - <return type="int"> - </return> - <argument index="0" name="value" type="int"> - </argument> - <argument index="1" name="min" type="int"> - </argument> - <argument index="2" name="max" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="value" type="int" /> + <argument index="1" name="min" type="int" /> + <argument index="2" name="max" type="int" /> <description> Wraps integer [code]value[/code] between [code]min[/code] and [code]max[/code]. Usable for creating loop-alike behavior or infinite surfaces. diff --git a/doc/classes/AABB.xml b/doc/classes/AABB.xml index 03607661df..4bc11e7166 100644 --- a/doc/classes/AABB.xml +++ b/doc/classes/AABB.xml @@ -15,243 +15,193 @@ </tutorials> <methods> <method name="AABB" qualifiers="constructor"> - <return type="AABB"> - </return> + <return type="AABB" /> <description> Constructs a default-initialized [AABB] with default (zero) values of [member position] and [member size]. </description> </method> <method name="AABB" qualifiers="constructor"> - <return type="AABB"> - </return> - <argument index="0" name="from" type="AABB"> - </argument> + <return type="AABB" /> + <argument index="0" name="from" type="AABB" /> <description> Constructs an [AABB] as a copy of the given [AABB]. </description> </method> <method name="AABB" qualifiers="constructor"> - <return type="AABB"> - </return> - <argument index="0" name="position" type="Vector3"> - </argument> - <argument index="1" name="size" type="Vector3"> - </argument> + <return type="AABB" /> + <argument index="0" name="position" type="Vector3" /> + <argument index="1" name="size" type="Vector3" /> <description> Constructs an [AABB] from a position and size. </description> </method> <method name="abs" qualifiers="const"> - <return type="AABB"> - </return> + <return type="AABB" /> <description> Returns an AABB with equivalent position and size, modified so that the most-negative corner is the origin and the size is positive. </description> </method> <method name="encloses" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="with" type="AABB"> - </argument> + <return type="bool" /> + <argument index="0" name="with" type="AABB" /> <description> Returns [code]true[/code] if this [AABB] completely encloses another one. </description> </method> <method name="expand" qualifiers="const"> - <return type="AABB"> - </return> - <argument index="0" name="to_point" type="Vector3"> - </argument> + <return type="AABB" /> + <argument index="0" name="to_point" type="Vector3" /> <description> Returns this [AABB] expanded to include a given point. </description> </method> <method name="get_area" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the volume of the [AABB]. </description> </method> <method name="get_endpoint" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="idx" type="int" /> <description> Gets the position of the 8 endpoints of the [AABB] in space. </description> </method> <method name="get_longest_axis" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the normalized longest axis of the [AABB]. </description> </method> <method name="get_longest_axis_index" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the index of the longest axis of the [AABB] (according to [Vector3]'s [code]AXIS_*[/code] constants). </description> </method> <method name="get_longest_axis_size" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the scalar length of the longest axis of the [AABB]. </description> </method> <method name="get_shortest_axis" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the normalized shortest axis of the [AABB]. </description> </method> <method name="get_shortest_axis_index" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the index of the shortest axis of the [AABB] (according to [Vector3]::AXIS* enum). </description> </method> <method name="get_shortest_axis_size" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the scalar length of the shortest axis of the [AABB]. </description> </method> <method name="get_support" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="dir" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="dir" type="Vector3" /> <description> Returns the support point in a given direction. This is useful for collision detection algorithms. </description> </method> <method name="grow" qualifiers="const"> - <return type="AABB"> - </return> - <argument index="0" name="by" type="float"> - </argument> + <return type="AABB" /> + <argument index="0" name="by" type="float" /> <description> Returns a copy of the [AABB] grown a given amount of units towards all the sides. </description> </method> <method name="has_no_area" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the [AABB] is flat or empty. </description> </method> <method name="has_no_surface" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the [AABB] is empty. </description> </method> <method name="has_point" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="point" type="Vector3" /> <description> Returns [code]true[/code] if the [AABB] contains a point. </description> </method> <method name="intersection" qualifiers="const"> - <return type="AABB"> - </return> - <argument index="0" name="with" type="AABB"> - </argument> + <return type="AABB" /> + <argument index="0" name="with" type="AABB" /> <description> Returns the intersection between two [AABB]. An empty AABB (size 0,0,0) is returned on failure. </description> </method> <method name="intersects" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="with" type="AABB"> - </argument> + <return type="bool" /> + <argument index="0" name="with" type="AABB" /> <description> Returns [code]true[/code] if the [AABB] overlaps with another. </description> </method> <method name="intersects_plane" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="plane" type="Plane"> - </argument> + <return type="bool" /> + <argument index="0" name="plane" type="Plane" /> <description> Returns [code]true[/code] if the [AABB] is on both sides of a plane. </description> </method> <method name="intersects_ray" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="dir" type="Vector3"> - </argument> + <return type="Variant" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="dir" type="Vector3" /> <description> </description> </method> <method name="intersects_segment" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="to" type="Vector3"> - </argument> + <return type="Variant" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="to" type="Vector3" /> <description> Returns [code]true[/code] if the [AABB] intersects the line segment between [code]from[/code] and [code]to[/code]. </description> </method> <method name="is_equal_approx" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="aabb" type="AABB"> - </argument> + <return type="bool" /> + <argument index="0" name="aabb" type="AABB" /> <description> Returns [code]true[/code] if this [AABB] and [code]aabb[/code] are approximately equal, by calling [method @GlobalScope.is_equal_approx] on each component. </description> </method> <method name="merge" qualifiers="const"> - <return type="AABB"> - </return> - <argument index="0" name="with" type="AABB"> - </argument> + <return type="AABB" /> + <argument index="0" name="with" type="AABB" /> <description> Returns a larger [AABB] that contains both this [AABB] and [code]with[/code]. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="AABB"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="AABB" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="AABB"> - </return> - <argument index="0" name="right" type="Transform3D"> - </argument> + <return type="AABB" /> + <argument index="0" name="right" type="Transform3D" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="AABB"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="AABB" /> <description> </description> </method> diff --git a/doc/classes/AESContext.xml b/doc/classes/AESContext.xml index e179c97677..847d1226a2 100644 --- a/doc/classes/AESContext.xml +++ b/doc/classes/AESContext.xml @@ -80,38 +80,30 @@ </tutorials> <methods> <method name="finish"> - <return type="void"> - </return> + <return type="void" /> <description> Close this AES context so it can be started again. See [method start]. </description> </method> <method name="get_iv_state"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Get the current IV state for this context (IV gets updated when calling [method update]). You normally don't need this function. Note: This function only makes sense when the context is started with [constant MODE_CBC_ENCRYPT] or [constant MODE_CBC_DECRYPT]. </description> </method> <method name="start"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="mode" type="int" enum="AESContext.Mode"> - </argument> - <argument index="1" name="key" type="PackedByteArray"> - </argument> - <argument index="2" name="iv" type="PackedByteArray" default="PackedByteArray()"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="mode" type="int" enum="AESContext.Mode" /> + <argument index="1" name="key" type="PackedByteArray" /> + <argument index="2" name="iv" type="PackedByteArray" default="PackedByteArray()" /> <description> Start the AES context in the given [code]mode[/code]. A [code]key[/code] of either 16 or 32 bytes must always be provided, while an [code]iv[/code] (initialization vector) of exactly 16 bytes, is only needed when [code]mode[/code] is either [constant MODE_CBC_ENCRYPT] or [constant MODE_CBC_DECRYPT]. </description> </method> <method name="update"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="src" type="PackedByteArray"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="src" type="PackedByteArray" /> <description> Run the desired operation for this AES context. Will return a [PackedByteArray] containing the result of encrypting (or decrypting) the given [code]src[/code]. See [method start] for mode of operation. Note: The size of [code]src[/code] must be a multiple of 16. Apply some padding if needed. diff --git a/doc/classes/AStar.xml b/doc/classes/AStar.xml index 327785a3b6..63dd250dbc 100644 --- a/doc/classes/AStar.xml +++ b/doc/classes/AStar.xml @@ -39,38 +39,28 @@ </tutorials> <methods> <method name="_compute_cost" qualifiers="virtual"> - <return type="float"> - </return> - <argument index="0" name="from_id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="from_id" type="int" /> + <argument index="1" name="to_id" type="int" /> <description> Called when computing the cost between two connected points. Note that this function is hidden in the default [code]AStar[/code] class. </description> </method> <method name="_estimate_cost" qualifiers="virtual"> - <return type="float"> - </return> - <argument index="0" name="from_id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="from_id" type="int" /> + <argument index="1" name="to_id" type="int" /> <description> Called when estimating the cost between a point and the path's ending point. Note that this function is hidden in the default [code]AStar[/code] class. </description> </method> <method name="add_point"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="position" type="Vector3"> - </argument> - <argument index="2" name="weight_scale" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="position" type="Vector3" /> + <argument index="2" name="weight_scale" type="float" default="1.0" /> <description> Adds a new point at the given position with the given identifier. The [code]id[/code] must be 0 or larger, and the [code]weight_scale[/code] must be 1 or larger. The [code]weight_scale[/code] is multiplied by the result of [method _compute_cost] when determining the overall cost of traveling across a segment from a neighboring point to this point. Thus, all else being equal, the algorithm prefers points with lower [code]weight_scale[/code]s to form a path. @@ -88,34 +78,25 @@ </description> </method> <method name="are_points_connected" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> - <argument index="2" name="bidirectional" type="bool" default="true"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="to_id" type="int" /> + <argument index="2" name="bidirectional" type="bool" default="true" /> <description> Returns whether the two given points are directly connected by a segment. If [code]bidirectional[/code] is [code]false[/code], returns whether movement from [code]id[/code] to [code]to_id[/code] is possible through this segment. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears all the points and segments. </description> </method> <method name="connect_points"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> - <argument index="2" name="bidirectional" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="to_id" type="int" /> + <argument index="2" name="bidirectional" type="bool" default="true" /> <description> Creates a segment between the given points. If [code]bidirectional[/code] is [code]false[/code], only movement from [code]id[/code] to [code]to_id[/code] is allowed, not the reverse direction. [codeblocks] @@ -135,42 +116,32 @@ </description> </method> <method name="disconnect_points"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> - <argument index="2" name="bidirectional" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="to_id" type="int" /> + <argument index="2" name="bidirectional" type="bool" default="true" /> <description> Deletes the segment between the given points. If [code]bidirectional[/code] is [code]false[/code], only movement from [code]id[/code] to [code]to_id[/code] is prevented, and a unidirectional segment possibly remains. </description> </method> <method name="get_available_point_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the next available point ID with no point associated to it. </description> </method> <method name="get_closest_point" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="to_position" type="Vector3"> - </argument> - <argument index="1" name="include_disabled" type="bool" default="false"> - </argument> + <return type="int" /> + <argument index="0" name="to_position" type="Vector3" /> + <argument index="1" name="include_disabled" type="bool" default="false" /> <description> Returns the ID of the closest point to [code]to_position[/code], optionally taking disabled points into account. Returns [code]-1[/code] if there are no points in the points pool. [b]Note:[/b] If several points are the closest to [code]to_position[/code], the one with the smallest ID will be returned, ensuring a deterministic result. </description> </method> <method name="get_closest_position_in_segment" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="to_position" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="to_position" type="Vector3" /> <description> Returns the closest position to [code]to_position[/code] that resides inside a segment between two connected points. [codeblocks] @@ -193,12 +164,9 @@ </description> </method> <method name="get_id_path"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="from_id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="from_id" type="int" /> + <argument index="1" name="to_id" type="int" /> <description> Returns an array with the IDs of the points that form the path found by AStar between the given points. The array is ordered from the starting point to the ending point of the path. [codeblocks] @@ -233,17 +201,14 @@ </description> </method> <method name="get_point_capacity" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the capacity of the structure backing the points, useful in conjunction with [code]reserve_space[/code]. </description> </method> <method name="get_point_connections"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="id" type="int" /> <description> Returns an array with the IDs of the points that form the connection with the given point. [codeblocks] @@ -274,114 +239,88 @@ </description> </method> <method name="get_point_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of points currently in the points pool. </description> </method> <method name="get_point_path"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="from_id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="from_id" type="int" /> + <argument index="1" name="to_id" type="int" /> <description> Returns an array with the points that are in the path found by AStar between the given points. The array is ordered from the starting point to the ending point of the path. [b]Note:[/b] This method is not thread-safe. If called from a [Thread], it will return an empty [PackedVector3Array] and will print an error message. </description> </method> <method name="get_point_position" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="id" type="int" /> <description> Returns the position of the point associated with the given [code]id[/code]. </description> </method> <method name="get_point_weight_scale" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="id" type="int" /> <description> Returns the weight scale of the point associated with the given [code]id[/code]. </description> </method> <method name="get_points"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of all points. </description> </method> <method name="has_point" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> Returns whether a point associated with the given [code]id[/code] exists. </description> </method> <method name="is_point_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> Returns whether a point is disabled or not for pathfinding. By default, all points are enabled. </description> </method> <method name="remove_point"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> Removes the point associated with the given [code]id[/code] from the points pool. </description> </method> <method name="reserve_space"> - <return type="void"> - </return> - <argument index="0" name="num_nodes" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="num_nodes" type="int" /> <description> Reserves space internally for [code]num_nodes[/code] points, useful if you're adding a known large number of points at once, for a grid for instance. New capacity must be greater or equals to old capacity. </description> </method> <method name="set_point_disabled"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="disabled" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="disabled" type="bool" default="true" /> <description> Disables or enables the specified point for pathfinding. Useful for making a temporary obstacle. </description> </method> <method name="set_point_position"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="position" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="position" type="Vector3" /> <description> Sets the [code]position[/code] for the point with the given [code]id[/code]. </description> </method> <method name="set_point_weight_scale"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="weight_scale" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="weight_scale" type="float" /> <description> Sets the [code]weight_scale[/code] for the point with the given [code]id[/code]. The [code]weight_scale[/code] is multiplied by the result of [method _compute_cost] when determining the overall cost of traveling across a segment from a neighboring point to this point. </description> diff --git a/doc/classes/AStar2D.xml b/doc/classes/AStar2D.xml index 9edc300169..31d695b051 100644 --- a/doc/classes/AStar2D.xml +++ b/doc/classes/AStar2D.xml @@ -10,38 +10,28 @@ </tutorials> <methods> <method name="_compute_cost" qualifiers="virtual"> - <return type="float"> - </return> - <argument index="0" name="from_id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="from_id" type="int" /> + <argument index="1" name="to_id" type="int" /> <description> Called when computing the cost between two connected points. Note that this function is hidden in the default [code]AStar2D[/code] class. </description> </method> <method name="_estimate_cost" qualifiers="virtual"> - <return type="float"> - </return> - <argument index="0" name="from_id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="from_id" type="int" /> + <argument index="1" name="to_id" type="int" /> <description> Called when estimating the cost between a point and the path's ending point. Note that this function is hidden in the default [code]AStar2D[/code] class. </description> </method> <method name="add_point"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> - <argument index="2" name="weight_scale" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="position" type="Vector2" /> + <argument index="2" name="weight_scale" type="float" default="1.0" /> <description> Adds a new point at the given position with the given identifier. The [code]id[/code] must be 0 or larger, and the [code]weight_scale[/code] must be 1 or larger. The [code]weight_scale[/code] is multiplied by the result of [method _compute_cost] when determining the overall cost of traveling across a segment from a neighboring point to this point. Thus, all else being equal, the algorithm prefers points with lower [code]weight_scale[/code]s to form a path. @@ -59,32 +49,24 @@ </description> </method> <method name="are_points_connected" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="to_id" type="int" /> <description> Returns whether there is a connection/segment between the given points. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears all the points and segments. </description> </method> <method name="connect_points"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> - <argument index="2" name="bidirectional" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="to_id" type="int" /> + <argument index="2" name="bidirectional" type="bool" default="true" /> <description> Creates a segment between the given points. If [code]bidirectional[/code] is [code]false[/code], only movement from [code]id[/code] to [code]to_id[/code] is allowed, not the reverse direction. [codeblocks] @@ -104,40 +86,31 @@ </description> </method> <method name="disconnect_points"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="to_id" type="int" /> <description> Deletes the segment between the given points. </description> </method> <method name="get_available_point_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the next available point ID with no point associated to it. </description> </method> <method name="get_closest_point" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="to_position" type="Vector2"> - </argument> - <argument index="1" name="include_disabled" type="bool" default="false"> - </argument> + <return type="int" /> + <argument index="0" name="to_position" type="Vector2" /> + <argument index="1" name="include_disabled" type="bool" default="false" /> <description> Returns the ID of the closest point to [code]to_position[/code], optionally taking disabled points into account. Returns [code]-1[/code] if there are no points in the points pool. [b]Note:[/b] If several points are the closest to [code]to_position[/code], the one with the smallest ID will be returned, ensuring a deterministic result. </description> </method> <method name="get_closest_position_in_segment" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="to_position" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="to_position" type="Vector2" /> <description> Returns the closest position to [code]to_position[/code] that resides inside a segment between two connected points. [codeblocks] @@ -160,12 +133,9 @@ </description> </method> <method name="get_id_path"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="from_id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="from_id" type="int" /> + <argument index="1" name="to_id" type="int" /> <description> Returns an array with the IDs of the points that form the path found by AStar2D between the given points. The array is ordered from the starting point to the ending point of the path. [codeblocks] @@ -201,17 +171,14 @@ </description> </method> <method name="get_point_capacity" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the capacity of the structure backing the points, useful in conjunction with [code]reserve_space[/code]. </description> </method> <method name="get_point_connections"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="id" type="int" /> <description> Returns an array with the IDs of the points that form the connection with the given point. [codeblocks] @@ -243,114 +210,88 @@ </description> </method> <method name="get_point_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of points currently in the points pool. </description> </method> <method name="get_point_path"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="from_id" type="int"> - </argument> - <argument index="1" name="to_id" type="int"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="from_id" type="int" /> + <argument index="1" name="to_id" type="int" /> <description> Returns an array with the points that are in the path found by AStar2D between the given points. The array is ordered from the starting point to the ending point of the path. [b]Note:[/b] This method is not thread-safe. If called from a [Thread], it will return an empty [PackedVector2Array] and will print an error message. </description> </method> <method name="get_point_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="id" type="int" /> <description> Returns the position of the point associated with the given [code]id[/code]. </description> </method> <method name="get_point_weight_scale" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="id" type="int" /> <description> Returns the weight scale of the point associated with the given [code]id[/code]. </description> </method> <method name="get_points"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of all points. </description> </method> <method name="has_point" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> Returns whether a point associated with the given [code]id[/code] exists. </description> </method> <method name="is_point_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> Returns whether a point is disabled or not for pathfinding. By default, all points are enabled. </description> </method> <method name="remove_point"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> Removes the point associated with the given [code]id[/code] from the points pool. </description> </method> <method name="reserve_space"> - <return type="void"> - </return> - <argument index="0" name="num_nodes" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="num_nodes" type="int" /> <description> Reserves space internally for [code]num_nodes[/code] points, useful if you're adding a known large number of points at once, for a grid for instance. New capacity must be greater or equals to old capacity. </description> </method> <method name="set_point_disabled"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="disabled" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="disabled" type="bool" default="true" /> <description> Disables or enables the specified point for pathfinding. Useful for making a temporary obstacle. </description> </method> <method name="set_point_position"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="position" type="Vector2" /> <description> Sets the [code]position[/code] for the point with the given [code]id[/code]. </description> </method> <method name="set_point_weight_scale"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="weight_scale" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="weight_scale" type="float" /> <description> Sets the [code]weight_scale[/code] for the point with the given [code]id[/code]. The [code]weight_scale[/code] is multiplied by the result of [method _compute_cost] when determining the overall cost of traveling across a segment from a neighboring point to this point. </description> diff --git a/doc/classes/AcceptDialog.xml b/doc/classes/AcceptDialog.xml index ec276ed227..868ec5a774 100644 --- a/doc/classes/AcceptDialog.xml +++ b/doc/classes/AcceptDialog.xml @@ -10,14 +10,10 @@ </tutorials> <methods> <method name="add_button"> - <return type="Button"> - </return> - <argument index="0" name="text" type="String"> - </argument> - <argument index="1" name="right" type="bool" default="false"> - </argument> - <argument index="2" name="action" type="String" default=""""> - </argument> + <return type="Button" /> + <argument index="0" name="text" type="String" /> + <argument index="1" name="right" type="bool" default="false" /> + <argument index="2" name="action" type="String" default="""" /> <description> Adds a button with label [code]text[/code] and a custom [code]action[/code] to the dialog and returns the created button. [code]action[/code] will be passed to the [signal custom_action] signal when pressed. If [code]true[/code], [code]right[/code] will place the button to the right of any sibling buttons. @@ -25,43 +21,35 @@ </description> </method> <method name="add_cancel_button"> - <return type="Button"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="Button" /> + <argument index="0" name="name" type="String" /> <description> Adds a button with label [code]name[/code] and a cancel action to the dialog and returns the created button. You can use [method remove_button] method to remove a button created with this method from the dialog. </description> </method> <method name="get_label"> - <return type="Label"> - </return> + <return type="Label" /> <description> Returns the label used for built-in text. </description> </method> <method name="get_ok_button"> - <return type="Button"> - </return> + <return type="Button" /> <description> Returns the OK [Button] instance. </description> </method> <method name="register_text_enter"> - <return type="void"> - </return> - <argument index="0" name="line_edit" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="line_edit" type="Control" /> <description> Registers a [LineEdit] in the dialog. When the enter key is pressed, the dialog will be accepted. </description> </method> <method name="remove_button"> - <return type="void"> - </return> - <argument index="0" name="button" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="button" type="Control" /> <description> Removes the [code]button[/code] from the dialog. Does NOT free the [code]button[/code]. The [code]button[/code] must be a [Button] added with [method add_button] or [method add_cancel_button] method. After removal, pressing the [code]button[/code] will no longer emit this dialog's [signal custom_action] or [signal cancelled] signals. </description> @@ -96,8 +84,7 @@ </description> </signal> <signal name="custom_action"> - <argument index="0" name="action" type="StringName"> - </argument> + <argument index="0" name="action" type="StringName" /> <description> Emitted when a custom button is pressed. See [method add_button]. </description> diff --git a/doc/classes/AnimatedSprite2D.xml b/doc/classes/AnimatedSprite2D.xml index 7662e8368b..14e19b4c9a 100644 --- a/doc/classes/AnimatedSprite2D.xml +++ b/doc/classes/AnimatedSprite2D.xml @@ -13,26 +13,21 @@ </tutorials> <methods> <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if an animation is currently being played. </description> </method> <method name="play"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName" default="&"""> - </argument> - <argument index="1" name="backwards" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" default="&""" /> + <argument index="1" name="backwards" type="bool" default="false" /> <description> Plays the animation named [code]anim[/code]. If no [code]anim[/code] is provided, the current animation is played. If [code]backwards[/code] is [code]true[/code], the animation will be played in reverse. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the current animation (does not reset the frame counter). </description> diff --git a/doc/classes/AnimatedSprite3D.xml b/doc/classes/AnimatedSprite3D.xml index 39ab317b79..6b3d426cef 100644 --- a/doc/classes/AnimatedSprite3D.xml +++ b/doc/classes/AnimatedSprite3D.xml @@ -11,24 +11,20 @@ </tutorials> <methods> <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if an animation is currently being played. </description> </method> <method name="play"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName" default="&"""> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" default="&""" /> <description> Plays the animation named [code]anim[/code]. If no [code]anim[/code] is provided, the current animation is played. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the current animation (does not reset the frame counter). </description> diff --git a/doc/classes/AnimatedTexture.xml b/doc/classes/AnimatedTexture.xml index 5774842144..808b8bf053 100644 --- a/doc/classes/AnimatedTexture.xml +++ b/doc/classes/AnimatedTexture.xml @@ -13,30 +13,23 @@ </tutorials> <methods> <method name="get_frame_delay" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="frame" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="frame" type="int" /> <description> Returns the given frame's delay value. </description> </method> <method name="get_frame_texture" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="frame" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="frame" type="int" /> <description> Returns the given frame's [Texture2D]. </description> </method> <method name="set_frame_delay"> - <return type="void"> - </return> - <argument index="0" name="frame" type="int"> - </argument> - <argument index="1" name="delay" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="frame" type="int" /> + <argument index="1" name="delay" type="float" /> <description> Sets an additional delay (in seconds) between this frame and the next one, that will be added to the time interval defined by [member fps]. By default, frames have no delay defined. If a delay value is defined, the final time interval between this frame and the next will be [code]1.0 / fps + delay[/code]. For example, for an animation with 3 frames, 2 FPS and a frame delay on the second frame of 1.2, the resulting playback will be: @@ -49,12 +42,9 @@ </description> </method> <method name="set_frame_texture"> - <return type="void"> - </return> - <argument index="0" name="frame" type="int"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="frame" type="int" /> + <argument index="1" name="texture" type="Texture2D" /> <description> Assigns a [Texture2D] to the given frame. Frame IDs start at 0, so the first frame has ID 0, and the last frame of the animation has ID [member frames] - 1. You can define any number of textures up to [constant MAX_FRAMES], but keep in mind that only frames from 0 to [member frames] - 1 will be part of the animation. diff --git a/doc/classes/Animation.xml b/doc/classes/Animation.xml index 4d192f8e97..38e02745d4 100644 --- a/doc/classes/Animation.xml +++ b/doc/classes/Animation.xml @@ -32,673 +32,487 @@ </tutorials> <methods> <method name="add_track"> - <return type="int"> - </return> - <argument index="0" name="type" type="int" enum="Animation.TrackType"> - </argument> - <argument index="1" name="at_position" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="type" type="int" enum="Animation.TrackType" /> + <argument index="1" name="at_position" type="int" default="-1" /> <description> Adds a track to the Animation. </description> </method> <method name="animation_track_get_key_animation" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the animation name at the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of an Animation Track. </description> </method> <method name="animation_track_insert_key"> - <return type="int"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time" type="float"> - </argument> - <argument index="2" name="animation" type="StringName"> - </argument> + <return type="int" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time" type="float" /> + <argument index="2" name="animation" type="StringName" /> <description> Inserts a key with value [code]animation[/code] at the given [code]time[/code] (in seconds). The [code]track_idx[/code] must be the index of an Animation Track. </description> </method> <method name="animation_track_set_key_animation"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <argument index="2" name="animation" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> + <argument index="2" name="animation" type="StringName" /> <description> Sets the key identified by [code]key_idx[/code] to value [code]animation[/code]. The [code]track_idx[/code] must be the index of an Animation Track. </description> </method> <method name="audio_track_get_key_end_offset" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the end offset of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of an Audio Track. End offset is the number of seconds cut off at the ending of the audio stream. </description> </method> <method name="audio_track_get_key_start_offset" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the start offset of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of an Audio Track. Start offset is the number of seconds cut off at the beginning of the audio stream. </description> </method> <method name="audio_track_get_key_stream" qualifiers="const"> - <return type="Resource"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="Resource" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the audio stream of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of an Audio Track. </description> </method> <method name="audio_track_insert_key"> - <return type="int"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time" type="float"> - </argument> - <argument index="2" name="stream" type="Resource"> - </argument> - <argument index="3" name="start_offset" type="float" default="0"> - </argument> - <argument index="4" name="end_offset" type="float" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time" type="float" /> + <argument index="2" name="stream" type="Resource" /> + <argument index="3" name="start_offset" type="float" default="0" /> + <argument index="4" name="end_offset" type="float" default="0" /> <description> Inserts an Audio Track key at the given [code]time[/code] in seconds. The [code]track_idx[/code] must be the index of an Audio Track. [code]stream[/code] is the [AudioStream] resource to play. [code]start_offset[/code] is the number of seconds cut off at the beginning of the audio stream, while [code]end_offset[/code] is at the ending. </description> </method> <method name="audio_track_set_key_end_offset"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <argument index="2" name="offset" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> + <argument index="2" name="offset" type="float" /> <description> Sets the end offset of the key identified by [code]key_idx[/code] to value [code]offset[/code]. The [code]track_idx[/code] must be the index of an Audio Track. </description> </method> <method name="audio_track_set_key_start_offset"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <argument index="2" name="offset" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> + <argument index="2" name="offset" type="float" /> <description> Sets the start offset of the key identified by [code]key_idx[/code] to value [code]offset[/code]. The [code]track_idx[/code] must be the index of an Audio Track. </description> </method> <method name="audio_track_set_key_stream"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <argument index="2" name="stream" type="Resource"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> + <argument index="2" name="stream" type="Resource" /> <description> Sets the stream of the key identified by [code]key_idx[/code] to value [code]stream[/code]. The [code]track_idx[/code] must be the index of an Audio Track. </description> </method> <method name="bezier_track_get_key_in_handle" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the in handle of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of a Bezier Track. </description> </method> <method name="bezier_track_get_key_out_handle" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the out handle of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of a Bezier Track. </description> </method> <method name="bezier_track_get_key_value" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the value of the key identified by [code]key_idx[/code]. The [code]track_idx[/code] must be the index of a Bezier Track. </description> </method> <method name="bezier_track_insert_key"> - <return type="int"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time" type="float"> - </argument> - <argument index="2" name="value" type="float"> - </argument> - <argument index="3" name="in_handle" type="Vector2" default="Vector2(0, 0)"> - </argument> - <argument index="4" name="out_handle" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="int" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time" type="float" /> + <argument index="2" name="value" type="float" /> + <argument index="3" name="in_handle" type="Vector2" default="Vector2(0, 0)" /> + <argument index="4" name="out_handle" type="Vector2" default="Vector2(0, 0)" /> <description> Inserts a Bezier Track key at the given [code]time[/code] in seconds. The [code]track_idx[/code] must be the index of a Bezier Track. [code]in_handle[/code] is the left-side weight of the added Bezier curve point, [code]out_handle[/code] is the right-side one, while [code]value[/code] is the actual value at this point. </description> </method> <method name="bezier_track_interpolate" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time" type="float" /> <description> Returns the interpolated value at the given [code]time[/code] (in seconds). The [code]track_idx[/code] must be the index of a Bezier Track. </description> </method> <method name="bezier_track_set_key_in_handle"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <argument index="2" name="in_handle" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> + <argument index="2" name="in_handle" type="Vector2" /> <description> Sets the in handle of the key identified by [code]key_idx[/code] to value [code]in_handle[/code]. The [code]track_idx[/code] must be the index of a Bezier Track. </description> </method> <method name="bezier_track_set_key_out_handle"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <argument index="2" name="out_handle" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> + <argument index="2" name="out_handle" type="Vector2" /> <description> Sets the out handle of the key identified by [code]key_idx[/code] to value [code]out_handle[/code]. The [code]track_idx[/code] must be the index of a Bezier Track. </description> </method> <method name="bezier_track_set_key_value"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> + <argument index="2" name="value" type="float" /> <description> Sets the value of the key identified by [code]key_idx[/code] to the given value. The [code]track_idx[/code] must be the index of a Bezier Track. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clear the animation (clear all tracks and reset all). </description> </method> <method name="copy_track"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="to_animation" type="Animation"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="to_animation" type="Animation" /> <description> Adds a new track that is a copy of the given track from [code]to_animation[/code]. </description> </method> <method name="find_track" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> + <return type="int" /> + <argument index="0" name="path" type="NodePath" /> <description> Returns the index of the specified track. If the track is not found, return -1. </description> </method> <method name="get_track_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of tracks in the animation. </description> </method> <method name="method_track_get_key_indices" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="float"> - </argument> - <argument index="2" name="delta" type="float"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time_sec" type="float" /> + <argument index="2" name="delta" type="float" /> <description> Returns all the key indices of a method track, given a position and delta time. </description> </method> <method name="method_track_get_name" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the method name of a method track. </description> </method> <method name="method_track_get_params" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the arguments values to be called on a method track for a given key in a given track. </description> </method> <method name="remove_track"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> <description> Removes a track by specifying the track index. </description> </method> <method name="track_find_key" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time" type="float"> - </argument> - <argument index="2" name="exact" type="bool" default="false"> - </argument> + <return type="int" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time" type="float" /> + <argument index="2" name="exact" type="bool" default="false" /> <description> Finds the key index by time in a given track. Optionally, only find it if the exact time is given. </description> </method> <method name="track_get_interpolation_loop_wrap" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="track_idx" type="int" /> <description> Returns [code]true[/code] if the track at [code]idx[/code] wraps the interpolation loop. New tracks wrap the interpolation loop by default. </description> </method> <method name="track_get_interpolation_type" qualifiers="const"> - <return type="int" enum="Animation.InterpolationType"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="int" enum="Animation.InterpolationType" /> + <argument index="0" name="track_idx" type="int" /> <description> Returns the interpolation type of a given track. </description> </method> <method name="track_get_key_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="track_idx" type="int" /> <description> Returns the amount of keys in a given track. </description> </method> <method name="track_get_key_time" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the time at which the key is located. </description> </method> <method name="track_get_key_transition" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the transition curve (easing) for a specific key (see the built-in math function [method @GlobalScope.ease]). </description> </method> <method name="track_get_key_value" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Returns the value of a given key in a given track. </description> </method> <method name="track_get_path" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="NodePath" /> + <argument index="0" name="track_idx" type="int" /> <description> Gets the path of a track. For more information on the path format, see [method track_set_path]. </description> </method> <method name="track_get_type" qualifiers="const"> - <return type="int" enum="Animation.TrackType"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="int" enum="Animation.TrackType" /> + <argument index="0" name="track_idx" type="int" /> <description> Gets the type of a track. </description> </method> <method name="track_insert_key"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time" type="float"> - </argument> - <argument index="2" name="key" type="Variant"> - </argument> - <argument index="3" name="transition" type="float" default="1"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time" type="float" /> + <argument index="2" name="key" type="Variant" /> + <argument index="3" name="transition" type="float" default="1" /> <description> Insert a generic key in a given track. </description> </method> <method name="track_is_enabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="track_idx" type="int" /> <description> Returns [code]true[/code] if the track at index [code]idx[/code] is enabled. </description> </method> <method name="track_is_imported" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="track_idx" type="int" /> <description> Returns [code]true[/code] if the given track is imported. Else, return [code]false[/code]. </description> </method> <method name="track_move_down"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> <description> Moves a track down. </description> </method> <method name="track_move_to"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="to_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="to_idx" type="int" /> <description> Changes the index position of track [code]idx[/code] to the one defined in [code]to_idx[/code]. </description> </method> <method name="track_move_up"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> <description> Moves a track up. </description> </method> <method name="track_remove_key"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> <description> Removes a key by index in a given track. </description> </method> <method name="track_remove_key_at_time"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time" type="float" /> <description> Removes a key at [code]time[/code] in a given track. </description> </method> <method name="track_set_enabled"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="enabled" type="bool" /> <description> Enables/disables the given track. Tracks are enabled by default. </description> </method> <method name="track_set_imported"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="imported" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="imported" type="bool" /> <description> Sets the given track as imported or not. </description> </method> <method name="track_set_interpolation_loop_wrap"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="interpolation" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="interpolation" type="bool" /> <description> If [code]true[/code], the track at [code]idx[/code] wraps the interpolation loop. </description> </method> <method name="track_set_interpolation_type"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="interpolation" type="int" enum="Animation.InterpolationType"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="interpolation" type="int" enum="Animation.InterpolationType" /> <description> Sets the interpolation type of a given track. </description> </method> <method name="track_set_key_time"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <argument index="2" name="time" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> + <argument index="2" name="time" type="float" /> <description> Sets the time of an existing key. </description> </method> <method name="track_set_key_transition"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <argument index="2" name="transition" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key_idx" type="int" /> + <argument index="2" name="transition" type="float" /> <description> Sets the transition curve (easing) for a specific key (see the built-in math function [method @GlobalScope.ease]). </description> </method> <method name="track_set_key_value"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="key" type="int"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="key" type="int" /> + <argument index="2" name="value" type="Variant" /> <description> Sets the value of an existing key. </description> </method> <method name="track_set_path"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="path" type="NodePath"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="path" type="NodePath" /> <description> Sets the path of a track. Paths must be valid scene-tree paths to a node and must be specified starting from the parent node of the node that will reproduce the animation. Tracks that control properties or bones must append their name after the path, separated by [code]":"[/code]. For example, [code]"character/skeleton:ankle"[/code] or [code]"character/mesh:transform/local"[/code]. </description> </method> <method name="track_swap"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="with_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="with_idx" type="int" /> <description> Swaps the track [code]idx[/code]'s index position with the track [code]with_idx[/code]. </description> </method> <method name="transform_track_insert_key"> - <return type="int"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time" type="float"> - </argument> - <argument index="2" name="location" type="Vector3"> - </argument> - <argument index="3" name="rotation" type="Quaternion"> - </argument> - <argument index="4" name="scale" type="Vector3"> - </argument> + <return type="int" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time" type="float" /> + <argument index="2" name="location" type="Vector3" /> + <argument index="3" name="rotation" type="Quaternion" /> + <argument index="4" name="scale" type="Vector3" /> <description> Insert a transform key for a transform track. </description> </method> <method name="transform_track_interpolate" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="float"> - </argument> + <return type="Array" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time_sec" type="float" /> <description> Returns the interpolated value of a transform track at a given time (in seconds). An array consisting of 3 elements: position ([Vector3]), rotation ([Quaternion]) and scale ([Vector3]). </description> </method> <method name="value_track_get_key_indices" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="float"> - </argument> - <argument index="2" name="delta" type="float"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time_sec" type="float" /> + <argument index="2" name="delta" type="float" /> <description> Returns all the key indices of a value track, given a position and delta time. </description> </method> <method name="value_track_get_update_mode" qualifiers="const"> - <return type="int" enum="Animation.UpdateMode"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> + <return type="int" enum="Animation.UpdateMode" /> + <argument index="0" name="track_idx" type="int" /> <description> Returns the update mode of a value track. </description> </method> <method name="value_track_interpolate" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="float"> - </argument> + <return type="Variant" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="time_sec" type="float" /> <description> Returns the interpolated value at the given time (in seconds). The [code]track_idx[/code] must be the index of a value track. </description> </method> <method name="value_track_set_update_mode"> - <return type="void"> - </return> - <argument index="0" name="track_idx" type="int"> - </argument> - <argument index="1" name="mode" type="int" enum="Animation.UpdateMode"> - </argument> + <return type="void" /> + <argument index="0" name="track_idx" type="int" /> + <argument index="1" name="mode" type="int" enum="Animation.UpdateMode" /> <description> Sets the update mode (see [enum UpdateMode]) of a value track. </description> diff --git a/doc/classes/AnimationNode.xml b/doc/classes/AnimationNode.xml index fddd8989ab..a9a08efcf1 100644 --- a/doc/classes/AnimationNode.xml +++ b/doc/classes/AnimationNode.xml @@ -12,58 +12,47 @@ </tutorials> <methods> <method name="_get_caption" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Gets the text caption for this node (used by some editors). </description> </method> <method name="_get_child_by_name" qualifiers="virtual"> - <return type="Object"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="Object" /> + <argument index="0" name="name" type="String" /> <description> Gets a child node by index (used by editors inheriting from [AnimationRootNode]). </description> </method> <method name="_get_child_nodes" qualifiers="virtual"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Gets all children nodes in order as a [code]name: node[/code] dictionary. Only useful when inheriting [AnimationRootNode]. </description> </method> <method name="_get_parameter_default_value" qualifiers="virtual"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="name" type="StringName" /> <description> Gets the default value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees. </description> </method> <method name="_get_parameter_list" qualifiers="virtual"> - <return type="Array"> - </return> + <return type="Array" /> <description> Gets the property information for parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees. Format is similar to [method Object.get_property_list]. </description> </method> <method name="_has_filter" qualifiers="virtual"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] whether you want the blend tree editor to display filter editing on this node. </description> </method> <method name="_process" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="time" type="float"> - </argument> - <argument index="1" name="seek" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="time" type="float" /> + <argument index="1" name="seek" type="bool" /> <description> User-defined callback called when a custom node is processed. The [code]time[/code] parameter is a relative delta, unless [code]seek[/code] is [code]true[/code], in which case it is absolute. Here, call the [method blend_input], [method blend_node] or [method blend_animation] functions. You can also use [method get_parameter] and [method set_parameter] to modify local memory. @@ -71,132 +60,94 @@ </description> </method> <method name="add_input"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> <description> Adds an input to the node. This is only useful for nodes created for use in an [AnimationNodeBlendTree]. </description> </method> <method name="blend_animation"> - <return type="void"> - </return> - <argument index="0" name="animation" type="StringName"> - </argument> - <argument index="1" name="time" type="float"> - </argument> - <argument index="2" name="delta" type="float"> - </argument> - <argument index="3" name="seeked" type="bool"> - </argument> - <argument index="4" name="blend" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="animation" type="StringName" /> + <argument index="1" name="time" type="float" /> + <argument index="2" name="delta" type="float" /> + <argument index="3" name="seeked" type="bool" /> + <argument index="4" name="blend" type="float" /> <description> Blend an animation by [code]blend[/code] amount (name must be valid in the linked [AnimationPlayer]). A [code]time[/code] and [code]delta[/code] may be passed, as well as whether [code]seek[/code] happened. </description> </method> <method name="blend_input"> - <return type="float"> - </return> - <argument index="0" name="input_index" type="int"> - </argument> - <argument index="1" name="time" type="float"> - </argument> - <argument index="2" name="seek" type="bool"> - </argument> - <argument index="3" name="blend" type="float"> - </argument> - <argument index="4" name="filter" type="int" enum="AnimationNode.FilterAction" default="0"> - </argument> - <argument index="5" name="optimize" type="bool" default="true"> - </argument> + <return type="float" /> + <argument index="0" name="input_index" type="int" /> + <argument index="1" name="time" type="float" /> + <argument index="2" name="seek" type="bool" /> + <argument index="3" name="blend" type="float" /> + <argument index="4" name="filter" type="int" enum="AnimationNode.FilterAction" default="0" /> + <argument index="5" name="optimize" type="bool" default="true" /> <description> Blend an input. This is only useful for nodes created for an [AnimationNodeBlendTree]. The [code]time[/code] parameter is a relative delta, unless [code]seek[/code] is [code]true[/code], in which case it is absolute. A filter mode may be optionally passed (see [enum FilterAction] for options). </description> </method> <method name="blend_node"> - <return type="float"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="node" type="AnimationNode"> - </argument> - <argument index="2" name="time" type="float"> - </argument> - <argument index="3" name="seek" type="bool"> - </argument> - <argument index="4" name="blend" type="float"> - </argument> - <argument index="5" name="filter" type="int" enum="AnimationNode.FilterAction" default="0"> - </argument> - <argument index="6" name="optimize" type="bool" default="true"> - </argument> + <return type="float" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="node" type="AnimationNode" /> + <argument index="2" name="time" type="float" /> + <argument index="3" name="seek" type="bool" /> + <argument index="4" name="blend" type="float" /> + <argument index="5" name="filter" type="int" enum="AnimationNode.FilterAction" default="0" /> + <argument index="6" name="optimize" type="bool" default="true" /> <description> Blend another animation node (in case this node contains children animation nodes). This function is only useful if you inherit from [AnimationRootNode] instead, else editors will not display your node for addition. </description> </method> <method name="get_input_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Amount of inputs in this node, only useful for nodes that go into [AnimationNodeBlendTree]. </description> </method> <method name="get_input_name"> - <return type="String"> - </return> - <argument index="0" name="input" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="input" type="int" /> <description> Gets the name of an input by index. </description> </method> <method name="get_parameter" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="name" type="StringName" /> <description> Gets the value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees. </description> </method> <method name="is_path_filtered" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> + <return type="bool" /> + <argument index="0" name="path" type="NodePath" /> <description> Returns [code]true[/code] whether a given path is filtered. </description> </method> <method name="remove_input"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an input, call this only when inactive. </description> </method> <method name="set_filter_path"> - <return type="void"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="NodePath" /> + <argument index="1" name="enable" type="bool" /> <description> Adds or removes a path for the filter. </description> </method> <method name="set_parameter"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> Sets a custom parameter. These are used as local storage, because resources can be reused across the tree or scenes. </description> diff --git a/doc/classes/AnimationNodeBlendSpace1D.xml b/doc/classes/AnimationNodeBlendSpace1D.xml index 263b59910b..c47d84fe37 100644 --- a/doc/classes/AnimationNodeBlendSpace1D.xml +++ b/doc/classes/AnimationNodeBlendSpace1D.xml @@ -14,70 +14,53 @@ </tutorials> <methods> <method name="add_blend_point"> - <return type="void"> - </return> - <argument index="0" name="node" type="AnimationRootNode"> - </argument> - <argument index="1" name="pos" type="float"> - </argument> - <argument index="2" name="at_index" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="AnimationRootNode" /> + <argument index="1" name="pos" type="float" /> + <argument index="2" name="at_index" type="int" default="-1" /> <description> Adds a new point that represents a [code]node[/code] on the virtual axis at a given position set by [code]pos[/code]. You can insert it at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code], the point is inserted at the end of the blend points array. </description> </method> <method name="get_blend_point_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of points on the blend axis. </description> </method> <method name="get_blend_point_node" qualifiers="const"> - <return type="AnimationRootNode"> - </return> - <argument index="0" name="point" type="int"> - </argument> + <return type="AnimationRootNode" /> + <argument index="0" name="point" type="int" /> <description> Returns the [AnimationNode] referenced by the point at index [code]point[/code]. </description> </method> <method name="get_blend_point_position" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="point" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="point" type="int" /> <description> Returns the position of the point at index [code]point[/code]. </description> </method> <method name="remove_blend_point"> - <return type="void"> - </return> - <argument index="0" name="point" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="int" /> <description> Removes the point at index [code]point[/code] from the blend axis. </description> </method> <method name="set_blend_point_node"> - <return type="void"> - </return> - <argument index="0" name="point" type="int"> - </argument> - <argument index="1" name="node" type="AnimationRootNode"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="int" /> + <argument index="1" name="node" type="AnimationRootNode" /> <description> Changes the [AnimationNode] referenced by the point at index [code]point[/code]. </description> </method> <method name="set_blend_point_position"> - <return type="void"> - </return> - <argument index="0" name="point" type="int"> - </argument> - <argument index="1" name="pos" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="int" /> + <argument index="1" name="pos" type="float" /> <description> Updates the position of the point at index [code]point[/code] on the blend axis. </description> diff --git a/doc/classes/AnimationNodeBlendSpace2D.xml b/doc/classes/AnimationNodeBlendSpace2D.xml index 1a6d2bd755..8d51f9aecc 100644 --- a/doc/classes/AnimationNodeBlendSpace2D.xml +++ b/doc/classes/AnimationNodeBlendSpace2D.xml @@ -14,112 +14,84 @@ </tutorials> <methods> <method name="add_blend_point"> - <return type="void"> - </return> - <argument index="0" name="node" type="AnimationRootNode"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="at_index" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="AnimationRootNode" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="at_index" type="int" default="-1" /> <description> Adds a new point that represents a [code]node[/code] at the position set by [code]pos[/code]. You can insert it at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code], the point is inserted at the end of the blend points array. </description> </method> <method name="add_triangle"> - <return type="void"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="z" type="int"> - </argument> - <argument index="3" name="at_index" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="x" type="int" /> + <argument index="1" name="y" type="int" /> + <argument index="2" name="z" type="int" /> + <argument index="3" name="at_index" type="int" default="-1" /> <description> Creates a new triangle using three points [code]x[/code], [code]y[/code], and [code]z[/code]. Triangles can overlap. You can insert the triangle at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code], the point is inserted at the end of the blend points array. </description> </method> <method name="get_blend_point_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of points in the blend space. </description> </method> <method name="get_blend_point_node" qualifiers="const"> - <return type="AnimationRootNode"> - </return> - <argument index="0" name="point" type="int"> - </argument> + <return type="AnimationRootNode" /> + <argument index="0" name="point" type="int" /> <description> Returns the [AnimationRootNode] referenced by the point at index [code]point[/code]. </description> </method> <method name="get_blend_point_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="point" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="point" type="int" /> <description> Returns the position of the point at index [code]point[/code]. </description> </method> <method name="get_triangle_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of triangles in the blend space. </description> </method> <method name="get_triangle_point"> - <return type="int"> - </return> - <argument index="0" name="triangle" type="int"> - </argument> - <argument index="1" name="point" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="triangle" type="int" /> + <argument index="1" name="point" type="int" /> <description> Returns the position of the point at index [code]point[/code] in the triangle of index [code]triangle[/code]. </description> </method> <method name="remove_blend_point"> - <return type="void"> - </return> - <argument index="0" name="point" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="int" /> <description> Removes the point at index [code]point[/code] from the blend space. </description> </method> <method name="remove_triangle"> - <return type="void"> - </return> - <argument index="0" name="triangle" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="triangle" type="int" /> <description> Removes the triangle at index [code]triangle[/code] from the blend space. </description> </method> <method name="set_blend_point_node"> - <return type="void"> - </return> - <argument index="0" name="point" type="int"> - </argument> - <argument index="1" name="node" type="AnimationRootNode"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="int" /> + <argument index="1" name="node" type="AnimationRootNode" /> <description> Changes the [AnimationNode] referenced by the point at index [code]point[/code]. </description> </method> <method name="set_blend_point_position"> - <return type="void"> - </return> - <argument index="0" name="point" type="int"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="int" /> + <argument index="1" name="pos" type="Vector2" /> <description> Updates the position of the point at index [code]point[/code] on the blend axis. </description> diff --git a/doc/classes/AnimationNodeBlendTree.xml b/doc/classes/AnimationNodeBlendTree.xml index a90e8647bb..da532dc059 100644 --- a/doc/classes/AnimationNodeBlendTree.xml +++ b/doc/classes/AnimationNodeBlendTree.xml @@ -11,96 +11,71 @@ </tutorials> <methods> <method name="add_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="node" type="AnimationNode"> - </argument> - <argument index="2" name="position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="node" type="AnimationNode" /> + <argument index="2" name="position" type="Vector2" default="Vector2(0, 0)" /> <description> Adds an [AnimationNode] at the given [code]position[/code]. The [code]name[/code] is used to identify the created sub-node later. </description> </method> <method name="connect_node"> - <return type="void"> - </return> - <argument index="0" name="input_node" type="StringName"> - </argument> - <argument index="1" name="input_index" type="int"> - </argument> - <argument index="2" name="output_node" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="input_node" type="StringName" /> + <argument index="1" name="input_index" type="int" /> + <argument index="2" name="output_node" type="StringName" /> <description> Connects the output of an [AnimationNode] as input for another [AnimationNode], at the input port specified by [code]input_index[/code]. </description> </method> <method name="disconnect_node"> - <return type="void"> - </return> - <argument index="0" name="input_node" type="StringName"> - </argument> - <argument index="1" name="input_index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="input_node" type="StringName" /> + <argument index="1" name="input_index" type="int" /> <description> Disconnects the node connected to the specified input. </description> </method> <method name="get_node" qualifiers="const"> - <return type="AnimationNode"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="AnimationNode" /> + <argument index="0" name="name" type="StringName" /> <description> Returns the sub-node with the specified [code]name[/code]. </description> </method> <method name="get_node_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="Vector2" /> + <argument index="0" name="name" type="StringName" /> <description> Returns the position of the sub-node with the specified [code]name[/code]. </description> </method> <method name="has_node" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if a sub-node with specified [code]name[/code] exists. </description> </method> <method name="remove_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Removes a sub-node. </description> </method> <method name="rename_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="new_name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="new_name" type="StringName" /> <description> Changes the name of a sub-node. </description> </method> <method name="set_node_position"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="position" type="Vector2" /> <description> Modifies the position of a sub-node. </description> diff --git a/doc/classes/AnimationNodeOneShot.xml b/doc/classes/AnimationNodeOneShot.xml index 65ab363e1f..2ecc0ae07b 100644 --- a/doc/classes/AnimationNodeOneShot.xml +++ b/doc/classes/AnimationNodeOneShot.xml @@ -12,16 +12,13 @@ </tutorials> <methods> <method name="get_mix_mode" qualifiers="const"> - <return type="int" enum="AnimationNodeOneShot.MixMode"> - </return> + <return type="int" enum="AnimationNodeOneShot.MixMode" /> <description> </description> </method> <method name="set_mix_mode"> - <return type="void"> - </return> - <argument index="0" name="mode" type="int" enum="AnimationNodeOneShot.MixMode"> - </argument> + <return type="void" /> + <argument index="0" name="mode" type="int" enum="AnimationNodeOneShot.MixMode" /> <description> </description> </method> diff --git a/doc/classes/AnimationNodeStateMachine.xml b/doc/classes/AnimationNodeStateMachine.xml index 8e070142c4..9921e157f2 100644 --- a/doc/classes/AnimationNodeStateMachine.xml +++ b/doc/classes/AnimationNodeStateMachine.xml @@ -22,217 +22,166 @@ </tutorials> <methods> <method name="add_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="node" type="AnimationNode"> - </argument> - <argument index="2" name="position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="node" type="AnimationNode" /> + <argument index="2" name="position" type="Vector2" default="Vector2(0, 0)" /> <description> Adds a new node to the graph. The [code]position[/code] is used for display in the editor. </description> </method> <method name="add_transition"> - <return type="void"> - </return> - <argument index="0" name="from" type="StringName"> - </argument> - <argument index="1" name="to" type="StringName"> - </argument> - <argument index="2" name="transition" type="AnimationNodeStateMachineTransition"> - </argument> + <return type="void" /> + <argument index="0" name="from" type="StringName" /> + <argument index="1" name="to" type="StringName" /> + <argument index="2" name="transition" type="AnimationNodeStateMachineTransition" /> <description> Adds a transition between the given nodes. </description> </method> <method name="get_end_node" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the graph's end node. </description> </method> <method name="get_graph_offset" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the draw offset of the graph. Used for display in the editor. </description> </method> <method name="get_node" qualifiers="const"> - <return type="AnimationNode"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="AnimationNode" /> + <argument index="0" name="name" type="StringName" /> <description> Returns the animation node with the given name. </description> </method> <method name="get_node_name" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="node" type="AnimationNode"> - </argument> + <return type="StringName" /> + <argument index="0" name="node" type="AnimationNode" /> <description> Returns the given animation node's name. </description> </method> <method name="get_node_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="Vector2" /> + <argument index="0" name="name" type="StringName" /> <description> Returns the given node's coordinates. Used for display in the editor. </description> </method> <method name="get_start_node" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the graph's end node. </description> </method> <method name="get_transition" qualifiers="const"> - <return type="AnimationNodeStateMachineTransition"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="AnimationNodeStateMachineTransition" /> + <argument index="0" name="idx" type="int" /> <description> Returns the given transition. </description> </method> <method name="get_transition_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of connections in the graph. </description> </method> <method name="get_transition_from" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="idx" type="int" /> <description> Returns the given transition's start node. </description> </method> <method name="get_transition_to" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="idx" type="int" /> <description> Returns the given transition's end node. </description> </method> <method name="has_node" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if the graph contains the given node. </description> </method> <method name="has_transition" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="from" type="StringName"> - </argument> - <argument index="1" name="to" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="from" type="StringName" /> + <argument index="1" name="to" type="StringName" /> <description> Returns [code]true[/code] if there is a transition between the given nodes. </description> </method> <method name="remove_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Deletes the given node from the graph. </description> </method> <method name="remove_transition"> - <return type="void"> - </return> - <argument index="0" name="from" type="StringName"> - </argument> - <argument index="1" name="to" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="from" type="StringName" /> + <argument index="1" name="to" type="StringName" /> <description> Deletes the transition between the two specified nodes. </description> </method> <method name="remove_transition_by_index"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Deletes the given transition by index. </description> </method> <method name="rename_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="new_name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="new_name" type="StringName" /> <description> Renames the given node. </description> </method> <method name="replace_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="node" type="AnimationNode"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="node" type="AnimationNode" /> <description> </description> </method> <method name="set_end_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Sets the given node as the graph end point. </description> </method> <method name="set_graph_offset"> - <return type="void"> - </return> - <argument index="0" name="offset" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="offset" type="Vector2" /> <description> Sets the draw offset of the graph. Used for display in the editor. </description> </method> <method name="set_node_position"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="position" type="Vector2" /> <description> Sets the node's coordinates. Used for display in the editor. </description> </method> <method name="set_start_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Sets the given node as the graph start point. </description> diff --git a/doc/classes/AnimationNodeStateMachinePlayback.xml b/doc/classes/AnimationNodeStateMachinePlayback.xml index c8468f9c8f..5c11adfaf0 100644 --- a/doc/classes/AnimationNodeStateMachinePlayback.xml +++ b/doc/classes/AnimationNodeStateMachinePlayback.xml @@ -22,60 +22,50 @@ </tutorials> <methods> <method name="get_current_length" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> </description> </method> <method name="get_current_node" qualifiers="const"> - <return type="StringName"> - </return> + <return type="StringName" /> <description> Returns the currently playing animation state. </description> </method> <method name="get_current_play_position" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the playback position within the current animation state. </description> </method> <method name="get_travel_path" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns the current travel path as computed internally by the A* algorithm. </description> </method> <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if an animation is playing. </description> </method> <method name="start"> - <return type="void"> - </return> - <argument index="0" name="node" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="StringName" /> <description> Starts playing the given animation. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the currently playing animation. </description> </method> <method name="travel"> - <return type="void"> - </return> - <argument index="0" name="to_node" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="to_node" type="StringName" /> <description> Transitions from the current state to another one, following the shortest path. </description> diff --git a/doc/classes/AnimationNodeTransition.xml b/doc/classes/AnimationNodeTransition.xml index 73c7006768..8c859e43be 100644 --- a/doc/classes/AnimationNodeTransition.xml +++ b/doc/classes/AnimationNodeTransition.xml @@ -13,38 +13,28 @@ </tutorials> <methods> <method name="get_input_caption" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="input" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="input" type="int" /> <description> </description> </method> <method name="is_input_set_as_auto_advance" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="input" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="input" type="int" /> <description> </description> </method> <method name="set_input_as_auto_advance"> - <return type="void"> - </return> - <argument index="0" name="input" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="input" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> <method name="set_input_caption"> - <return type="void"> - </return> - <argument index="0" name="input" type="int"> - </argument> - <argument index="1" name="caption" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="input" type="int" /> + <argument index="1" name="caption" type="String" /> <description> </description> </method> diff --git a/doc/classes/AnimationPlayer.xml b/doc/classes/AnimationPlayer.xml index 8a94eee54c..1ef9d81d02 100644 --- a/doc/classes/AnimationPlayer.xml +++ b/doc/classes/AnimationPlayer.xml @@ -15,136 +15,106 @@ </tutorials> <methods> <method name="add_animation"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="animation" type="Animation"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="animation" type="Animation" /> <description> Adds [code]animation[/code] to the player accessible with the key [code]name[/code]. </description> </method> <method name="advance"> - <return type="void"> - </return> - <argument index="0" name="delta" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="delta" type="float" /> <description> Shifts position in the animation timeline and immediately updates the animation. [code]delta[/code] is the time in seconds to shift. Events between the current frame and [code]delta[/code] are handled. </description> </method> <method name="animation_get_next" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="anim_from" type="StringName"> - </argument> + <return type="StringName" /> + <argument index="0" name="anim_from" type="StringName" /> <description> Returns the name of the next animation in the queue. </description> </method> <method name="animation_set_next"> - <return type="void"> - </return> - <argument index="0" name="anim_from" type="StringName"> - </argument> - <argument index="1" name="anim_to" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="anim_from" type="StringName" /> + <argument index="1" name="anim_to" type="StringName" /> <description> Triggers the [code]anim_to[/code] animation when the [code]anim_from[/code] animation completes. </description> </method> <method name="clear_caches"> - <return type="void"> - </return> + <return type="void" /> <description> [AnimationPlayer] caches animated nodes. It may not notice if a node disappears; [method clear_caches] forces it to update the cache again. </description> </method> <method name="clear_queue"> - <return type="void"> - </return> + <return type="void" /> <description> Clears all queued, unplayed animations. </description> </method> <method name="find_animation" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="animation" type="Animation"> - </argument> + <return type="StringName" /> + <argument index="0" name="animation" type="Animation" /> <description> Returns the name of [code]animation[/code] or an empty string if not found. </description> </method> <method name="get_animation" qualifiers="const"> - <return type="Animation"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="Animation" /> + <argument index="0" name="name" type="StringName" /> <description> Returns the [Animation] with key [code]name[/code] or [code]null[/code] if not found. </description> </method> <method name="get_animation_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns the list of stored animation names. </description> </method> <method name="get_blend_time" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="anim_from" type="StringName"> - </argument> - <argument index="1" name="anim_to" type="StringName"> - </argument> + <return type="float" /> + <argument index="0" name="anim_from" type="StringName" /> + <argument index="1" name="anim_to" type="StringName" /> <description> Gets the blend time (in seconds) between two animations, referenced by their names. </description> </method> <method name="get_playing_speed" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Gets the actual playing speed of current animation or 0 if not playing. This speed is the [member playback_speed] property multiplied by [code]custom_speed[/code] argument specified when calling the [method play] method. </description> </method> <method name="get_queue"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns a list of the animation names that are currently queued to play. </description> </method> <method name="has_animation" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if the [AnimationPlayer] stores an [Animation] with key [code]name[/code]. </description> </method> <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if playing an animation. </description> </method> <method name="play"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName" default=""""> - </argument> - <argument index="1" name="custom_blend" type="float" default="-1"> - </argument> - <argument index="2" name="custom_speed" type="float" default="1.0"> - </argument> - <argument index="3" name="from_end" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" default="""" /> + <argument index="1" name="custom_blend" type="float" default="-1" /> + <argument index="2" name="custom_speed" type="float" default="1.0" /> + <argument index="3" name="from_end" type="bool" default="false" /> <description> Plays the animation with key [code]name[/code]. Custom blend times and speed can be set. If [code]custom_speed[/code] is negative and [code]from_end[/code] is [code]true[/code], the animation will play backwards (which is equivalent to calling [method play_backwards]). The [AnimationPlayer] keeps track of its current or last played animation with [member assigned_animation]. If this method is called with that same animation [code]name[/code], or with no [code]name[/code] parameter, the assigned animation will resume playing if it was paused, or restart if it was stopped (see [method stop] for both pause and stop). If the animation was already playing, it will keep playing. @@ -152,76 +122,57 @@ </description> </method> <method name="play_backwards"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName" default=""""> - </argument> - <argument index="1" name="custom_blend" type="float" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" default="""" /> + <argument index="1" name="custom_blend" type="float" default="-1" /> <description> Plays the animation with key [code]name[/code] in reverse. This method is a shorthand for [method play] with [code]custom_speed = -1.0[/code] and [code]from_end = true[/code], so see its description for more information. </description> </method> <method name="queue"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Queues an animation for playback once the current one is done. [b]Note:[/b] If a looped animation is currently playing, the queued animation will never play unless the looped animation is stopped somehow. </description> </method> <method name="remove_animation"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Removes the animation with key [code]name[/code]. </description> </method> <method name="rename_animation"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="newname" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="newname" type="StringName" /> <description> Renames an existing animation with key [code]name[/code] to [code]newname[/code]. </description> </method> <method name="seek"> - <return type="void"> - </return> - <argument index="0" name="seconds" type="float"> - </argument> - <argument index="1" name="update" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="seconds" type="float" /> + <argument index="1" name="update" type="bool" default="false" /> <description> Seeks the animation to the [code]seconds[/code] point in time (in seconds). If [code]update[/code] is [code]true[/code], the animation updates too, otherwise it updates at process time. Events between the current frame and [code]seconds[/code] are skipped. </description> </method> <method name="set_blend_time"> - <return type="void"> - </return> - <argument index="0" name="anim_from" type="StringName"> - </argument> - <argument index="1" name="anim_to" type="StringName"> - </argument> - <argument index="2" name="sec" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="anim_from" type="StringName" /> + <argument index="1" name="anim_to" type="StringName" /> + <argument index="2" name="sec" type="float" /> <description> Specifies a blend time (in seconds) between two animations, referenced by their names. </description> </method> <method name="stop"> - <return type="void"> - </return> - <argument index="0" name="reset" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="reset" type="bool" default="true" /> <description> Stops or pauses the currently playing animation. If [code]reset[/code] is [code]true[/code], the animation position is reset to [code]0[/code] and the playback speed is reset to [code]1.0[/code]. If [code]reset[/code] is [code]false[/code], the [member current_animation_position] will be kept and calling [method play] or [method play_backwards] without arguments or with the same animation name as [member assigned_animation] will resume the animation. @@ -270,25 +221,21 @@ </members> <signals> <signal name="animation_changed"> - <argument index="0" name="old_name" type="StringName"> - </argument> - <argument index="1" name="new_name" type="StringName"> - </argument> + <argument index="0" name="old_name" type="StringName" /> + <argument index="1" name="new_name" type="StringName" /> <description> Emitted when a queued animation plays after the previous animation was finished. See [method queue]. [b]Note:[/b] The signal is not emitted when the animation is changed via [method play] or from [AnimationTree]. </description> </signal> <signal name="animation_finished"> - <argument index="0" name="anim_name" type="StringName"> - </argument> + <argument index="0" name="anim_name" type="StringName" /> <description> Notifies when an animation finished playing. </description> </signal> <signal name="animation_started"> - <argument index="0" name="anim_name" type="StringName"> - </argument> + <argument index="0" name="anim_name" type="StringName" /> <description> Notifies when an animation starts playing. </description> diff --git a/doc/classes/AnimationTree.xml b/doc/classes/AnimationTree.xml index 63460b70c5..843dd5a6d1 100644 --- a/doc/classes/AnimationTree.xml +++ b/doc/classes/AnimationTree.xml @@ -12,28 +12,22 @@ </tutorials> <methods> <method name="advance"> - <return type="void"> - </return> - <argument index="0" name="delta" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="delta" type="float" /> <description> Manually advance the animations by the specified time (in seconds). </description> </method> <method name="get_root_motion_transform" qualifiers="const"> - <return type="Transform3D"> - </return> + <return type="Transform3D" /> <description> Retrieve the motion of the [member root_motion_track] as a [Transform3D] that can be used elsewhere. If [member root_motion_track] is not a path to a track of type [constant Animation.TYPE_TRANSFORM3D], returns an identity transformation. See also [member root_motion_track] and [RootMotionView]. </description> </method> <method name="rename_parameter"> - <return type="void"> - </return> - <argument index="0" name="old_name" type="String"> - </argument> - <argument index="1" name="new_name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="old_name" type="String" /> + <argument index="1" name="new_name" type="String" /> <description> </description> </method> diff --git a/doc/classes/Area2D.xml b/doc/classes/Area2D.xml index cf2e7044af..25f67f0571 100644 --- a/doc/classes/Area2D.xml +++ b/doc/classes/Area2D.xml @@ -14,34 +14,28 @@ </tutorials> <methods> <method name="get_overlapping_areas" qualifiers="const"> - <return type="Area2D[]"> - </return> + <return type="Area2D[]" /> <description> Returns a list of intersecting [Area2D]s. For performance reasons (collisions are all processed at the same time) this list is modified once during the physics step, not immediately after objects are moved. Consider using signals instead. </description> </method> <method name="get_overlapping_bodies" qualifiers="const"> - <return type="Node2D[]"> - </return> + <return type="Node2D[]" /> <description> Returns a list of intersecting [PhysicsBody2D]s. For performance reasons (collisions are all processed at the same time) this list is modified once during the physics step, not immediately after objects are moved. Consider using signals instead. </description> </method> <method name="overlaps_area" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="area" type="Node"> - </argument> + <return type="bool" /> + <argument index="0" name="area" type="Node" /> <description> If [code]true[/code], the given area overlaps the Area2D. [b]Note:[/b] The result of this test is not immediate after moving objects. For performance, the list of overlaps is updated once per frame and before the physics step. Consider using signals instead. </description> </method> <method name="overlaps_body" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="body" type="Node"> - </argument> + <return type="bool" /> + <argument index="0" name="body" type="Node" /> <description> If [code]true[/code], the given physics body overlaps the Area2D. [b]Note:[/b] The result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead. @@ -91,30 +85,24 @@ </members> <signals> <signal name="area_entered"> - <argument index="0" name="area" type="Area2D"> - </argument> + <argument index="0" name="area" type="Area2D" /> <description> Emitted when another Area2D enters this Area2D. Requires [member monitoring] to be set to [code]true[/code]. [code]area[/code] the other Area2D. </description> </signal> <signal name="area_exited"> - <argument index="0" name="area" type="Area2D"> - </argument> + <argument index="0" name="area" type="Area2D" /> <description> Emitted when another Area2D exits this Area2D. Requires [member monitoring] to be set to [code]true[/code]. [code]area[/code] the other Area2D. </description> </signal> <signal name="area_shape_entered"> - <argument index="0" name="area_rid" type="RID"> - </argument> - <argument index="1" name="area" type="Area2D"> - </argument> - <argument index="2" name="area_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="area_rid" type="RID" /> + <argument index="1" name="area" type="Area2D" /> + <argument index="2" name="area_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when one of another Area2D's [Shape2D]s enters one of this Area2D's [Shape2D]s. Requires [member monitoring] to be set to [code]true[/code]. [code]area_id[/code] the [RID] of the other Area2D's [CollisionObject2D] used by the [PhysicsServer2D]. @@ -124,14 +112,10 @@ </description> </signal> <signal name="area_shape_exited"> - <argument index="0" name="area_rid" type="RID"> - </argument> - <argument index="1" name="area" type="Area2D"> - </argument> - <argument index="2" name="area_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="area_rid" type="RID" /> + <argument index="1" name="area" type="Area2D" /> + <argument index="2" name="area_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when one of another Area2D's [Shape2D]s exits one of this Area2D's [Shape2D]s. Requires [member monitoring] to be set to [code]true[/code]. [code]area_id[/code] the [RID] of the other Area2D's [CollisionObject2D] used by the [PhysicsServer2D]. @@ -141,30 +125,24 @@ </description> </signal> <signal name="body_entered"> - <argument index="0" name="body" type="Node2D"> - </argument> + <argument index="0" name="body" type="Node2D" /> <description> Emitted when a [PhysicsBody2D] or [TileMap] enters this Area2D. Requires [member monitoring] to be set to [code]true[/code]. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s. [code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap]. </description> </signal> <signal name="body_exited"> - <argument index="0" name="body" type="Node2D"> - </argument> + <argument index="0" name="body" type="Node2D" /> <description> Emitted when a [PhysicsBody2D] or [TileMap] exits this Area2D. Requires [member monitoring] to be set to [code]true[/code]. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s. [code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap]. </description> </signal> <signal name="body_shape_entered"> - <argument index="0" name="body_rid" type="RID"> - </argument> - <argument index="1" name="body" type="Node2D"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="body_rid" type="RID" /> + <argument index="1" name="body" type="Node2D" /> + <argument index="2" name="body_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when one of a [PhysicsBody2D] or [TileMap]'s [Shape2D]s enters one of this Area2D's [Shape2D]s. Requires [member monitoring] to be set to [code]true[/code]. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s. [code]body_id[/code] the [RID] of the [PhysicsBody2D] or [TileSet]'s [CollisionObject2D] used by the [PhysicsServer2D]. @@ -174,14 +152,10 @@ </description> </signal> <signal name="body_shape_exited"> - <argument index="0" name="body_rid" type="RID"> - </argument> - <argument index="1" name="body" type="Node2D"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="body_rid" type="RID" /> + <argument index="1" name="body" type="Node2D" /> + <argument index="2" name="body_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when one of a [PhysicsBody2D] or [TileMap]'s [Shape2D]s exits one of this Area2D's [Shape2D]s. Requires [member monitoring] to be set to [code]true[/code]. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s. [code]body_id[/code] the [RID] of the [PhysicsBody2D] or [TileSet]'s [CollisionObject2D] used by the [PhysicsServer2D]. diff --git a/doc/classes/Area3D.xml b/doc/classes/Area3D.xml index cc31b6c203..2180196bb5 100644 --- a/doc/classes/Area3D.xml +++ b/doc/classes/Area3D.xml @@ -12,34 +12,28 @@ </tutorials> <methods> <method name="get_overlapping_areas" qualifiers="const"> - <return type="Area3D[]"> - </return> + <return type="Area3D[]" /> <description> Returns a list of intersecting [Area3D]s. For performance reasons (collisions are all processed at the same time) this list is modified once during the physics step, not immediately after objects are moved. Consider using signals instead. </description> </method> <method name="get_overlapping_bodies" qualifiers="const"> - <return type="Node3D[]"> - </return> + <return type="Node3D[]" /> <description> Returns a list of intersecting [PhysicsBody3D]s. For performance reasons (collisions are all processed at the same time) this list is modified once during the physics step, not immediately after objects are moved. Consider using signals instead. </description> </method> <method name="overlaps_area" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="area" type="Node"> - </argument> + <return type="bool" /> + <argument index="0" name="area" type="Node" /> <description> If [code]true[/code], the given area overlaps the Area3D. [b]Note:[/b] The result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead. </description> </method> <method name="overlaps_body" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="body" type="Node"> - </argument> + <return type="bool" /> + <argument index="0" name="body" type="Node" /> <description> If [code]true[/code], the given physics body overlaps the Area3D. [b]Note:[/b] The result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead. @@ -101,30 +95,24 @@ </members> <signals> <signal name="area_entered"> - <argument index="0" name="area" type="Area3D"> - </argument> + <argument index="0" name="area" type="Area3D" /> <description> Emitted when another Area3D enters this Area3D. Requires [member monitoring] to be set to [code]true[/code]. [code]area[/code] the other Area3D. </description> </signal> <signal name="area_exited"> - <argument index="0" name="area" type="Area3D"> - </argument> + <argument index="0" name="area" type="Area3D" /> <description> Emitted when another Area3D exits this Area3D. Requires [member monitoring] to be set to [code]true[/code]. [code]area[/code] the other Area3D. </description> </signal> <signal name="area_shape_entered"> - <argument index="0" name="area_rid" type="RID"> - </argument> - <argument index="1" name="area" type="Area3D"> - </argument> - <argument index="2" name="area_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="area_rid" type="RID" /> + <argument index="1" name="area" type="Area3D" /> + <argument index="2" name="area_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when one of another Area3D's [Shape3D]s enters one of this Area3D's [Shape3D]s. Requires [member monitoring] to be set to [code]true[/code]. [code]area_id[/code] the [RID] of the other Area3D's [CollisionObject3D] used by the [PhysicsServer3D]. @@ -134,14 +122,10 @@ </description> </signal> <signal name="area_shape_exited"> - <argument index="0" name="area_rid" type="RID"> - </argument> - <argument index="1" name="area" type="Area3D"> - </argument> - <argument index="2" name="area_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="area_rid" type="RID" /> + <argument index="1" name="area" type="Area3D" /> + <argument index="2" name="area_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when one of another Area3D's [Shape3D]s enters one of this Area3D's [Shape3D]s. Requires [member monitoring] to be set to [code]true[/code]. [code]area_id[/code] the [RID] of the other Area3D's [CollisionObject3D] used by the [PhysicsServer3D]. @@ -151,30 +135,24 @@ </description> </signal> <signal name="body_entered"> - <argument index="0" name="body" type="Node3D"> - </argument> + <argument index="0" name="body" type="Node3D" /> <description> Emitted when a [PhysicsBody3D] or [GridMap] enters this Area3D. Requires [member monitoring] to be set to [code]true[/code]. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s. [code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap]. </description> </signal> <signal name="body_exited"> - <argument index="0" name="body" type="Node3D"> - </argument> + <argument index="0" name="body" type="Node3D" /> <description> Emitted when a [PhysicsBody3D] or [GridMap] exits this Area3D. Requires [member monitoring] to be set to [code]true[/code]. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s. [code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap]. </description> </signal> <signal name="body_shape_entered"> - <argument index="0" name="body_rid" type="RID"> - </argument> - <argument index="1" name="body" type="Node3D"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="body_rid" type="RID" /> + <argument index="1" name="body" type="Node3D" /> + <argument index="2" name="body_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when one of a [PhysicsBody3D] or [GridMap]'s [Shape3D]s enters one of this Area3D's [Shape3D]s. Requires [member monitoring] to be set to [code]true[/code]. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s. [code]body_id[/code] the [RID] of the [PhysicsBody3D] or [MeshLibrary]'s [CollisionObject3D] used by the [PhysicsServer3D]. @@ -184,14 +162,10 @@ </description> </signal> <signal name="body_shape_exited"> - <argument index="0" name="body_rid" type="RID"> - </argument> - <argument index="1" name="body" type="Node3D"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="body_rid" type="RID" /> + <argument index="1" name="body" type="Node3D" /> + <argument index="2" name="body_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when one of a [PhysicsBody3D] or [GridMap]'s [Shape3D]s enters one of this Area3D's [Shape3D]s. Requires [member monitoring] to be set to [code]true[/code]. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s. [code]body_id[/code] the [RID] of the [PhysicsBody3D] or [MeshLibrary]'s [CollisionObject3D] used by the [PhysicsServer3D]. diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 1ed7250adc..7767a1028d 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -46,116 +46,91 @@ </tutorials> <methods> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> + <return type="Array" /> <description> Constructs an empty [Array]. </description> </method> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> - <argument index="0" name="from" type="Array"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="Array" /> <description> Constructs an [Array] as a copy of the given [Array]. </description> </method> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> - <argument index="0" name="from" type="PackedByteArray"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="PackedByteArray" /> <description> Constructs an array from a [PackedByteArray]. </description> </method> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> - <argument index="0" name="from" type="PackedColorArray"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="PackedColorArray" /> <description> Constructs an array from a [PackedColorArray]. </description> </method> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> - <argument index="0" name="from" type="PackedFloat32Array"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="PackedFloat32Array" /> <description> Constructs an array from a [PackedFloat32Array]. </description> </method> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> - <argument index="0" name="from" type="PackedFloat64Array"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="PackedFloat64Array" /> <description> Constructs an array from a [PackedFloat64Array]. </description> </method> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> - <argument index="0" name="from" type="PackedInt32Array"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="PackedInt32Array" /> <description> Constructs an array from a [PackedInt32Array]. </description> </method> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> - <argument index="0" name="from" type="PackedInt64Array"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="PackedInt64Array" /> <description> Constructs an array from a [PackedInt64Array]. </description> </method> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> - <argument index="0" name="from" type="PackedStringArray"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="PackedStringArray" /> <description> Constructs an array from a [PackedStringArray]. </description> </method> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> - <argument index="0" name="from" type="PackedVector2Array"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="PackedVector2Array" /> <description> Constructs an array from a [PackedVector2Array]. </description> </method> <method name="Array" qualifiers="constructor"> - <return type="Array"> - </return> - <argument index="0" name="from" type="PackedVector3Array"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="PackedVector3Array" /> <description> Constructs an array from a [PackedVector3Array]. </description> </method> <method name="append"> - <return type="void"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="Variant" /> <description> Appends an element at the end of the array (alias of [method push_back]). </description> </method> <method name="append_array"> - <return type="void"> - </return> - <argument index="0" name="array" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="array" type="Array" /> <description> Appends another array at the end of this array. [codeblock] @@ -167,70 +142,55 @@ </description> </method> <method name="back" qualifiers="const"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns the last element of the array. Prints an error and returns [code]null[/code] if the array is empty. [b]Note:[/b] Calling this function is not the same as writing [code]array[-1][/code]. If the array is empty, accessing by index will pause project execution when running from the editor. </description> </method> <method name="bsearch"> - <return type="int"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> - <argument index="1" name="before" type="bool" default="true"> - </argument> + <return type="int" /> + <argument index="0" name="value" type="Variant" /> + <argument index="1" name="before" type="bool" default="true" /> <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. Optionally, a [code]before[/code] specifier can be passed. If [code]false[/code], the returned index comes after all existing entries of the value in the array. [b]Note:[/b] Calling [method bsearch] on an unsorted array results in unexpected behavior. </description> </method> <method name="bsearch_custom"> - <return type="int"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> - <argument index="1" name="func" type="Callable"> - </argument> - <argument index="2" name="before" type="bool" default="true"> - </argument> + <return type="int" /> + <argument index="0" name="value" type="Variant" /> + <argument index="1" name="func" type="Callable" /> + <argument index="2" name="before" type="bool" default="true" /> <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 [code]before[/code] specifier can be passed. If [code]false[/code], 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 [code]true[/code] if the first argument is less than the second, and return [code]false[/code] otherwise. [b]Note:[/b] Calling [method bsearch_custom] on an unsorted array results in unexpected behavior. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the array. This is equivalent to using [method resize] with a size of [code]0[/code]. </description> </method> <method name="count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> + <return type="int" /> + <argument index="0" name="value" type="Variant" /> <description> Returns the number of times an element is in the array. </description> </method> <method name="duplicate" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="deep" type="bool" default="false"> - </argument> + <return type="Array" /> + <argument index="0" name="deep" type="bool" default="false" /> <description> Returns a copy of the array. If [code]deep[/code] is [code]true[/code], a deep copy is performed: all nested arrays and dictionaries are duplicated and will not be shared with the original array. If [code]false[/code], a shallow copy is made and references to the original nested arrays and dictionaries are kept, so that modifying a sub-array or dictionary in the copy will also impact those referenced in the source array. </description> </method> <method name="erase"> - <return type="void"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="Variant" /> <description> Removes the first occurrence of a value from the array. To remove an element by index, use [method remove] instead. [b]Note:[/b] This method acts in-place and doesn't return a value. @@ -238,10 +198,8 @@ </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="Variant" /> <description> Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements: [codeblocks] @@ -259,10 +217,8 @@ </description> </method> <method name="filter" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="method" type="Callable"> - </argument> + <return type="Array" /> + <argument index="0" name="method" type="Callable" /> <description> Calls the provided [Callable] on each element in the array and returns a new array with the elements for which the method returned [code]true[/code]. The callable's method should take one [Variant] parameter (the current array element) and return a boolean value. @@ -277,38 +233,30 @@ </description> </method> <method name="find" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="what" type="Variant"> - </argument> - <argument index="1" name="from" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="what" type="Variant" /> + <argument index="1" name="from" type="int" default="0" /> <description> Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed. </description> </method> <method name="find_last" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> + <return type="int" /> + <argument index="0" name="value" type="Variant" /> <description> Searches the array in reverse order for a value and returns its index or [code]-1[/code] if not found. </description> </method> <method name="front" qualifiers="const"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns the first element of the array. Prints an error and returns [code]null[/code] if the array is empty. [b]Note:[/b] Calling this function is not the same as writing [code]array[0][/code]. If the array is empty, accessing by index will pause project execution when running from the editor. </description> </method> <method name="has" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="Variant" /> <description> Returns [code]true[/code] if the array contains the given value. [codeblocks] @@ -347,20 +295,16 @@ </description> </method> <method name="hash" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns a hashed integer value representing the array and its contents. [b]Note:[/b] Arrays with equal contents can still produce different hashes. Only the exact same arrays will produce the same hashed integer value. </description> </method> <method name="insert"> - <return type="void"> - </return> - <argument index="0" name="position" type="int"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="int" /> + <argument index="1" name="value" type="Variant" /> <description> Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ([code]pos == size()[/code]). [b]Note:[/b] This method acts in-place and doesn't return a value. @@ -368,17 +312,14 @@ </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the array is empty. </description> </method> <method name="map" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="method" type="Callable"> - </argument> + <return type="Array" /> + <argument index="0" name="method" type="Callable" /> <description> Calls the provided [Callable] for each element in the array and returns a new array filled with values returned by the method. The callable's method should take one [Variant] parameter (the current array element) and can return any [Variant]. @@ -393,124 +334,97 @@ </description> </method> <method name="max" qualifiers="const"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns the maximum value contained in the array if all elements are of comparable types. If the elements can't be compared, [code]null[/code] is returned. </description> </method> <method name="min" qualifiers="const"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns the minimum value contained in the array if all elements are of comparable types. If the elements can't be compared, [code]null[/code] is returned. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Array" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="Array"> - </return> - <argument index="0" name="right" type="Array"> - </argument> + <return type="Array" /> + <argument index="0" name="right" type="Array" /> <description> </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Array" /> <description> </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Array" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Array" /> <description> </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Array" /> <description> </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Array" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="pop_back"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Removes and returns the last element of the array. Returns [code]null[/code] if the array is empty, without printing an error message. See also [method pop_front]. </description> </method> <method name="pop_front"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Removes and returns the first element of the array. Returns [code]null[/code] if the array is empty, without printing an error message. See also [method pop_back]. [b]Note:[/b] On large arrays, this method is much slower than [method pop_back] as it will reindex all the array's elements every time it's called. The larger the array, the slower [method pop_front] will be. </description> </method> <method name="push_back"> - <return type="void"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="Variant" /> <description> Appends an element at the end of the array. See also [method push_front]. </description> </method> <method name="push_front"> - <return type="void"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="Variant" /> <description> Adds an element at the beginning of the array. See also [method push_back]. [b]Note:[/b] On large arrays, this method is much slower than [method push_back] as it will reindex all the array's elements every time it's called. The larger the array, the slower [method push_front] will be. </description> </method> <method name="reduce" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="method" type="Callable"> - </argument> - <argument index="1" name="accum" type="Variant" default="null"> - </argument> + <return type="Variant" /> + <argument index="0" name="method" type="Callable" /> + <argument index="1" name="accum" type="Variant" default="null" /> <description> Calls the provided [Callable] for each element in array and accumulates the result in [code]accum[/code]. The callable's method takes two arguments: the current value of [code]accum[/code] and the current array element. If [code]accum[/code] is [code]null[/code] (default value), the iteration will start from the second element, with the first one used as initial value of [code]accum[/code]. @@ -525,10 +439,8 @@ </description> </method> <method name="remove"> - <return type="void"> - </return> - <argument index="0" name="position" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="int" /> <description> Removes an element from the array by index. If the index does not exist in the array, nothing happens. To remove an element by searching for its value, use [method erase] instead. [b]Note:[/b] This method acts in-place and doesn't return a value. @@ -536,64 +448,50 @@ </description> </method> <method name="resize"> - <return type="int"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="size" type="int" /> <description> Resizes the array to contain a different number of elements. If the array size is smaller, elements are cleared, if bigger, new elements are [code]null[/code]. </description> </method> <method name="reverse"> - <return type="void"> - </return> + <return type="void" /> <description> Reverses the order of the elements in the array. </description> </method> <method name="rfind" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="what" type="Variant"> - </argument> - <argument index="1" name="from" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="what" type="Variant" /> + <argument index="1" name="from" type="int" default="-1" /> <description> Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array. </description> </method> <method name="shuffle"> - <return type="void"> - </return> + <return type="void" /> <description> Shuffles the array such that the items will have a random order. This method uses the global random number generator common to methods such as [method @GlobalScope.randi]. Call [method @GlobalScope.randomize] to ensure that a new seed will be used each time if you want non-reproducible shuffling. </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of elements in the array. </description> </method> <method name="slice" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="begin" type="int"> - </argument> - <argument index="1" name="end" type="int"> - </argument> - <argument index="2" name="step" type="int" default="1"> - </argument> - <argument index="3" name="deep" type="bool" default="false"> - </argument> + <return type="Array" /> + <argument index="0" name="begin" type="int" /> + <argument index="1" name="end" type="int" /> + <argument index="2" name="step" type="int" default="1" /> + <argument index="3" name="deep" type="bool" default="false" /> <description> Duplicates the subset described in the function and returns it in an array, deeply copying the array if [code]deep[/code] is [code]true[/code]. Lower and upper index are inclusive, with the [code]step[/code] describing the change between indices while slicing. </description> </method> <method name="sort"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts the array. [b]Note:[/b] Strings are sorted in alphabetical order (as opposed to natural order). This may lead to unexpected behavior when sorting an array of strings ending with a sequence of numbers. Consider the following example: @@ -610,10 +508,8 @@ </description> </method> <method name="sort_custom"> - <return type="void"> - </return> - <argument index="0" name="func" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="func" type="Callable" /> <description> Sorts the array using a custom method. The custom method receives two arguments (a pair of elements from the array) and must return either [code]true[/code] or [code]false[/code]. For two elements [code]a[/code] and [code]b[/code], if the given method returns [code]true[/code], element [code]b[/code] will be after element [code]a[/code] in the array. [b]Note:[/b] you cannot randomize the return value as the heapsort algorithm expects a deterministic result. Doing so will result in unexpected behavior. diff --git a/doc/classes/ArrayMesh.xml b/doc/classes/ArrayMesh.xml index e3d2eb74ff..637b9a9f16 100644 --- a/doc/classes/ArrayMesh.xml +++ b/doc/classes/ArrayMesh.xml @@ -51,28 +51,20 @@ </tutorials> <methods> <method name="add_blend_shape"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Adds name for a blend shape that will be added with [method add_surface_from_arrays]. Must be called before surface is added. </description> </method> <method name="add_surface_from_arrays"> - <return type="void"> - </return> - <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType"> - </argument> - <argument index="1" name="arrays" type="Array"> - </argument> - <argument index="2" name="blend_shapes" type="Array" default="[]"> - </argument> + <return type="void" /> + <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType" /> + <argument index="1" name="arrays" type="Array" /> + <argument index="2" name="blend_shapes" type="Array" default="[]" /> <argument index="3" name="lods" type="Dictionary" default="{ -}"> - </argument> - <argument index="4" name="compress_flags" type="int" default="0"> - </argument> +}" /> + <argument index="4" name="compress_flags" type="int" default="0" /> <description> Creates a new surface. Surfaces are created to be rendered using a [code]primitive[/code], which may be any of the types defined in [enum Mesh.PrimitiveType]. (As a note, when using indices, it is recommended to only use points, lines, or triangles.) [method Mesh.get_surface_count] will become the [code]surf_idx[/code] for this new surface. @@ -80,161 +72,122 @@ </description> </method> <method name="clear_blend_shapes"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all blend shapes from this [ArrayMesh]. </description> </method> <method name="clear_surfaces"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all surfaces from this [ArrayMesh]. </description> </method> <method name="get_blend_shape_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of blend shapes that the [ArrayMesh] holds. </description> </method> <method name="get_blend_shape_name" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="index" type="int" /> <description> Returns the name of the blend shape at this index. </description> </method> <method name="lightmap_unwrap"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="transform" type="Transform3D"> - </argument> - <argument index="1" name="texel_size" type="float"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="transform" type="Transform3D" /> + <argument index="1" name="texel_size" type="float" /> <description> Will perform a UV unwrap on the [ArrayMesh] to prepare the mesh for lightmapping. </description> </method> <method name="regen_normal_maps"> - <return type="void"> - </return> + <return type="void" /> <description> Will regenerate normal maps for the [ArrayMesh]. </description> </method> <method name="set_blend_shape_name"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="name" type="StringName" /> <description> </description> </method> <method name="surface_find_by_name" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="String" /> <description> Returns the index of the first surface with this name held within this [ArrayMesh]. If none are found, -1 is returned. </description> </method> <method name="surface_get_array_index_len" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="surf_idx" type="int" /> <description> Returns the length in indices of the index array in the requested surface (see [method add_surface_from_arrays]). </description> </method> <method name="surface_get_array_len" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="surf_idx" type="int" /> <description> Returns the length in vertices of the vertex array in the requested surface (see [method add_surface_from_arrays]). </description> </method> <method name="surface_get_format" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="surf_idx" type="int" /> <description> Returns the format mask of the requested surface (see [method add_surface_from_arrays]). </description> </method> <method name="surface_get_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="surf_idx" type="int" /> <description> Gets the name assigned to this surface. </description> </method> <method name="surface_get_primitive_type" qualifiers="const"> - <return type="int" enum="Mesh.PrimitiveType"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> + <return type="int" enum="Mesh.PrimitiveType" /> + <argument index="0" name="surf_idx" type="int" /> <description> Returns the primitive type of the requested surface (see [method add_surface_from_arrays]). </description> </method> <method name="surface_set_name"> - <return type="void"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="surf_idx" type="int" /> + <argument index="1" name="name" type="String" /> <description> Sets a name for a given surface. </description> </method> <method name="surface_update_attribute_region"> - <return type="void"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <argument index="1" name="offset" type="int"> - </argument> - <argument index="2" name="data" type="PackedByteArray"> - </argument> + <return type="void" /> + <argument index="0" name="surf_idx" type="int" /> + <argument index="1" name="offset" type="int" /> + <argument index="2" name="data" type="PackedByteArray" /> <description> </description> </method> <method name="surface_update_skin_region"> - <return type="void"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <argument index="1" name="offset" type="int"> - </argument> - <argument index="2" name="data" type="PackedByteArray"> - </argument> + <return type="void" /> + <argument index="0" name="surf_idx" type="int" /> + <argument index="1" name="offset" type="int" /> + <argument index="2" name="data" type="PackedByteArray" /> <description> </description> </method> <method name="surface_update_vertex_region"> - <return type="void"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <argument index="1" name="offset" type="int"> - </argument> - <argument index="2" name="data" type="PackedByteArray"> - </argument> + <return type="void" /> + <argument index="0" name="surf_idx" type="int" /> + <argument index="1" name="offset" type="int" /> + <argument index="2" name="data" type="PackedByteArray" /> <description> </description> </method> diff --git a/doc/classes/AudioEffectCapture.xml b/doc/classes/AudioEffectCapture.xml index c7ee621ca6..8e46acbd07 100644 --- a/doc/classes/AudioEffectCapture.xml +++ b/doc/classes/AudioEffectCapture.xml @@ -11,55 +11,46 @@ </tutorials> <methods> <method name="can_get_buffer" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="frames" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="frames" type="int" /> <description> Returns [code]true[/code] if at least [code]frames[/code] audio frames are available to read in the internal ring buffer. </description> </method> <method name="clear_buffer"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the internal ring buffer. </description> </method> <method name="get_buffer"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="frames" type="int"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="frames" type="int" /> <description> Gets the next [code]frames[/code] audio samples from the internal ring buffer. Returns a [PackedVector2Array] containing exactly [code]frames[/code] audio samples if available, or an empty [PackedVector2Array] if insufficient data was available. </description> </method> <method name="get_buffer_length_frames" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the total size of the internal ring buffer in frames. </description> </method> <method name="get_discarded_frames" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of audio frames discarded from the audio bus due to full buffer. </description> </method> <method name="get_frames_available" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of frames available to read using [method get_buffer]. </description> </method> <method name="get_pushed_frames" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of audio frames inserted from the audio bus. </description> diff --git a/doc/classes/AudioEffectChorus.xml b/doc/classes/AudioEffectChorus.xml index 30913a1529..cc93a8fc03 100644 --- a/doc/classes/AudioEffectChorus.xml +++ b/doc/classes/AudioEffectChorus.xml @@ -10,110 +10,80 @@ </tutorials> <methods> <method name="get_voice_cutoff_hz" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="voice_idx" type="int" /> <description> </description> </method> <method name="get_voice_delay_ms" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="voice_idx" type="int" /> <description> </description> </method> <method name="get_voice_depth_ms" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="voice_idx" type="int" /> <description> </description> </method> <method name="get_voice_level_db" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="voice_idx" type="int" /> <description> </description> </method> <method name="get_voice_pan" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="voice_idx" type="int" /> <description> </description> </method> <method name="get_voice_rate_hz" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="voice_idx" type="int" /> <description> </description> </method> <method name="set_voice_cutoff_hz"> - <return type="void"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> - <argument index="1" name="cutoff_hz" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voice_idx" type="int" /> + <argument index="1" name="cutoff_hz" type="float" /> <description> </description> </method> <method name="set_voice_delay_ms"> - <return type="void"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> - <argument index="1" name="delay_ms" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voice_idx" type="int" /> + <argument index="1" name="delay_ms" type="float" /> <description> </description> </method> <method name="set_voice_depth_ms"> - <return type="void"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> - <argument index="1" name="depth_ms" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voice_idx" type="int" /> + <argument index="1" name="depth_ms" type="float" /> <description> </description> </method> <method name="set_voice_level_db"> - <return type="void"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> - <argument index="1" name="level_db" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voice_idx" type="int" /> + <argument index="1" name="level_db" type="float" /> <description> </description> </method> <method name="set_voice_pan"> - <return type="void"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> - <argument index="1" name="pan" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voice_idx" type="int" /> + <argument index="1" name="pan" type="float" /> <description> </description> </method> <method name="set_voice_rate_hz"> - <return type="void"> - </return> - <argument index="0" name="voice_idx" type="int"> - </argument> - <argument index="1" name="rate_hz" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voice_idx" type="int" /> + <argument index="1" name="rate_hz" type="float" /> <description> </description> </method> diff --git a/doc/classes/AudioEffectEQ.xml b/doc/classes/AudioEffectEQ.xml index c27c2f221c..ddc1af0618 100644 --- a/doc/classes/AudioEffectEQ.xml +++ b/doc/classes/AudioEffectEQ.xml @@ -11,28 +11,22 @@ </tutorials> <methods> <method name="get_band_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of bands of the equalizer. </description> </method> <method name="get_band_gain_db" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="band_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="band_idx" type="int" /> <description> Returns the band's gain at the specified index, in dB. </description> </method> <method name="set_band_gain_db"> - <return type="void"> - </return> - <argument index="0" name="band_idx" type="int"> - </argument> - <argument index="1" name="volume_db" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="band_idx" type="int" /> + <argument index="1" name="volume_db" type="float" /> <description> Sets band's gain at the specified index, in dB. </description> diff --git a/doc/classes/AudioEffectRecord.xml b/doc/classes/AudioEffectRecord.xml index 872ddf3b0f..9656718ee8 100644 --- a/doc/classes/AudioEffectRecord.xml +++ b/doc/classes/AudioEffectRecord.xml @@ -12,24 +12,20 @@ </tutorials> <methods> <method name="get_recording" qualifiers="const"> - <return type="AudioStreamSample"> - </return> + <return type="AudioStreamSample" /> <description> Returns the recorded sample. </description> </method> <method name="is_recording_active" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the recording is active or not. </description> </method> <method name="set_recording_active"> - <return type="void"> - </return> - <argument index="0" name="record" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="record" type="bool" /> <description> If [code]true[/code], the sound will be recorded. Note that restarting the recording will remove the previously recorded sample. </description> diff --git a/doc/classes/AudioEffectSpectrumAnalyzerInstance.xml b/doc/classes/AudioEffectSpectrumAnalyzerInstance.xml index 53428cdfb8..0febf2abc1 100644 --- a/doc/classes/AudioEffectSpectrumAnalyzerInstance.xml +++ b/doc/classes/AudioEffectSpectrumAnalyzerInstance.xml @@ -8,14 +8,10 @@ </tutorials> <methods> <method name="get_magnitude_for_frequency_range" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="from_hz" type="float"> - </argument> - <argument index="1" name="to_hz" type="float"> - </argument> - <argument index="2" name="mode" type="int" enum="AudioEffectSpectrumAnalyzerInstance.MagnitudeMode" default="1"> - </argument> + <return type="Vector2" /> + <argument index="0" name="from_hz" type="float" /> + <argument index="1" name="to_hz" type="float" /> + <argument index="2" name="mode" type="int" enum="AudioEffectSpectrumAnalyzerInstance.MagnitudeMode" default="1" /> <description> </description> </method> diff --git a/doc/classes/AudioServer.xml b/doc/classes/AudioServer.xml index dafc0065f6..12a13ecfcc 100644 --- a/doc/classes/AudioServer.xml +++ b/doc/classes/AudioServer.xml @@ -14,380 +14,291 @@ </tutorials> <methods> <method name="add_bus"> - <return type="void"> - </return> - <argument index="0" name="at_position" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="at_position" type="int" default="-1" /> <description> Adds a bus at [code]at_position[/code]. </description> </method> <method name="add_bus_effect"> - <return type="void"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="effect" type="AudioEffect"> - </argument> - <argument index="2" name="at_position" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="effect" type="AudioEffect" /> + <argument index="2" name="at_position" type="int" default="-1" /> <description> Adds an [AudioEffect] effect to the bus [code]bus_idx[/code] at [code]at_position[/code]. </description> </method> <method name="capture_get_device"> - <return type="String"> - </return> + <return type="String" /> <description> Name of the current device for audio input (see [method capture_get_device_list]). </description> </method> <method name="capture_get_device_list"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the names of all audio input devices detected on the system. </description> </method> <method name="capture_set_device"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> <description> Sets which audio input device is used for audio capture. </description> </method> <method name="generate_bus_layout" qualifiers="const"> - <return type="AudioBusLayout"> - </return> + <return type="AudioBusLayout" /> <description> Generates an [AudioBusLayout] using the available buses and effects. </description> </method> <method name="get_bus_channels" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="bus_idx" type="int" /> <description> Returns the amount of channels of the bus at index [code]bus_idx[/code]. </description> </method> <method name="get_bus_effect"> - <return type="AudioEffect"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="effect_idx" type="int"> - </argument> + <return type="AudioEffect" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="effect_idx" type="int" /> <description> Returns the [AudioEffect] at position [code]effect_idx[/code] in bus [code]bus_idx[/code]. </description> </method> <method name="get_bus_effect_count"> - <return type="int"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="bus_idx" type="int" /> <description> Returns the number of effects on the bus at [code]bus_idx[/code]. </description> </method> <method name="get_bus_effect_instance"> - <return type="AudioEffectInstance"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="effect_idx" type="int"> - </argument> - <argument index="2" name="channel" type="int" default="0"> - </argument> + <return type="AudioEffectInstance" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="effect_idx" type="int" /> + <argument index="2" name="channel" type="int" default="0" /> <description> Returns the [AudioEffectInstance] assigned to the given bus and effect indices (and optionally channel). </description> </method> <method name="get_bus_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="bus_name" type="StringName"> - </argument> + <return type="int" /> + <argument index="0" name="bus_name" type="StringName" /> <description> Returns the index of the bus with the name [code]bus_name[/code]. </description> </method> <method name="get_bus_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="bus_idx" type="int" /> <description> Returns the name of the bus with the index [code]bus_idx[/code]. </description> </method> <method name="get_bus_peak_volume_left_db" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="channel" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="channel" type="int" /> <description> Returns the peak volume of the left speaker at bus index [code]bus_idx[/code] and channel index [code]channel[/code]. </description> </method> <method name="get_bus_peak_volume_right_db" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="channel" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="channel" type="int" /> <description> Returns the peak volume of the right speaker at bus index [code]bus_idx[/code] and channel index [code]channel[/code]. </description> </method> <method name="get_bus_send" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="bus_idx" type="int" /> <description> Returns the name of the bus that the bus at index [code]bus_idx[/code] sends to. </description> </method> <method name="get_bus_volume_db" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="bus_idx" type="int" /> <description> Returns the volume of the bus at index [code]bus_idx[/code] in dB. </description> </method> <method name="get_device_list"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the names of all audio devices detected on the system. </description> </method> <method name="get_mix_rate" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the sample rate at the output of the [AudioServer]. </description> </method> <method name="get_output_latency" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the audio driver's output latency. </description> </method> <method name="get_speaker_mode" qualifiers="const"> - <return type="int" enum="AudioServer.SpeakerMode"> - </return> + <return type="int" enum="AudioServer.SpeakerMode" /> <description> Returns the speaker configuration. </description> </method> <method name="get_time_since_last_mix" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the relative time since the last mix occurred. </description> </method> <method name="get_time_to_next_mix" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the relative time until the next mix occurs. </description> </method> <method name="is_bus_bypassing_effects" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bus_idx" type="int" /> <description> If [code]true[/code], the bus at index [code]bus_idx[/code] is bypassing effects. </description> </method> <method name="is_bus_effect_enabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="effect_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="effect_idx" type="int" /> <description> If [code]true[/code], the effect at index [code]effect_idx[/code] on the bus at index [code]bus_idx[/code] is enabled. </description> </method> <method name="is_bus_mute" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bus_idx" type="int" /> <description> If [code]true[/code], the bus at index [code]bus_idx[/code] is muted. </description> </method> <method name="is_bus_solo" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bus_idx" type="int" /> <description> If [code]true[/code], the bus at index [code]bus_idx[/code] is in solo mode. </description> </method> <method name="lock"> - <return type="void"> - </return> + <return type="void" /> <description> Locks the audio driver's main loop. [b]Note:[/b] Remember to unlock it afterwards. </description> </method> <method name="move_bus"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="to_index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="to_index" type="int" /> <description> Moves the bus from index [code]index[/code] to index [code]to_index[/code]. </description> </method> <method name="remove_bus"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes the bus at index [code]index[/code]. </description> </method> <method name="remove_bus_effect"> - <return type="void"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="effect_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="effect_idx" type="int" /> <description> Removes the effect at index [code]effect_idx[/code] from the bus at index [code]bus_idx[/code]. </description> </method> <method name="set_bus_bypass_effects"> - <return type="void"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], the bus at index [code]bus_idx[/code] is bypassing effects. </description> </method> <method name="set_bus_effect_enabled"> - <return type="void"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="effect_idx" type="int"> - </argument> - <argument index="2" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="effect_idx" type="int" /> + <argument index="2" name="enabled" type="bool" /> <description> If [code]true[/code], the effect at index [code]effect_idx[/code] on the bus at index [code]bus_idx[/code] is enabled. </description> </method> <method name="set_bus_layout"> - <return type="void"> - </return> - <argument index="0" name="bus_layout" type="AudioBusLayout"> - </argument> + <return type="void" /> + <argument index="0" name="bus_layout" type="AudioBusLayout" /> <description> Overwrites the currently used [AudioBusLayout]. </description> </method> <method name="set_bus_mute"> - <return type="void"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], the bus at index [code]bus_idx[/code] is muted. </description> </method> <method name="set_bus_name"> - <return type="void"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="name" type="String" /> <description> Sets the name of the bus at index [code]bus_idx[/code] to [code]name[/code]. </description> </method> <method name="set_bus_send"> - <return type="void"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="send" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="send" type="StringName" /> <description> Connects the output of the bus at [code]bus_idx[/code] to the bus named [code]send[/code]. </description> </method> <method name="set_bus_solo"> - <return type="void"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], the bus at index [code]bus_idx[/code] is in solo mode. </description> </method> <method name="set_bus_volume_db"> - <return type="void"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="volume_db" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="volume_db" type="float" /> <description> Sets the volume of the bus at index [code]bus_idx[/code] to [code]volume_db[/code]. </description> </method> <method name="swap_bus_effects"> - <return type="void"> - </return> - <argument index="0" name="bus_idx" type="int"> - </argument> - <argument index="1" name="effect_idx" type="int"> - </argument> - <argument index="2" name="by_effect_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="bus_idx" type="int" /> + <argument index="1" name="effect_idx" type="int" /> + <argument index="2" name="by_effect_idx" type="int" /> <description> Swaps the position of two effects in bus [code]bus_idx[/code]. </description> </method> <method name="unlock"> - <return type="void"> - </return> + <return type="void" /> <description> Unlocks the audio driver's main loop. (After locking it, you should always unlock it.) </description> diff --git a/doc/classes/AudioStream.xml b/doc/classes/AudioStream.xml index bbfec579bb..8a58b178d8 100644 --- a/doc/classes/AudioStream.xml +++ b/doc/classes/AudioStream.xml @@ -14,8 +14,7 @@ </tutorials> <methods> <method name="get_length" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the length of the audio stream in seconds. </description> diff --git a/doc/classes/AudioStreamGeneratorPlayback.xml b/doc/classes/AudioStreamGeneratorPlayback.xml index 503f72a048..d99d041053 100644 --- a/doc/classes/AudioStreamGeneratorPlayback.xml +++ b/doc/classes/AudioStreamGeneratorPlayback.xml @@ -12,48 +12,39 @@ </tutorials> <methods> <method name="can_push_buffer" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="amount" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="amount" type="int" /> <description> Returns [code]true[/code] if a buffer of the size [code]amount[/code] can be pushed to the audio sample data buffer without overflowing it, [code]false[/code] otherwise. </description> </method> <method name="clear_buffer"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the audio sample data buffer. </description> </method> <method name="get_frames_available" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of audio data frames left to play. If this returned number reaches [code]0[/code], the audio will stop playing until frames are added again. Therefore, make sure your script can always generate and push new audio frames fast enough to avoid audio cracking. </description> </method> <method name="get_skips" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="push_buffer"> - <return type="bool"> - </return> - <argument index="0" name="frames" type="PackedVector2Array"> - </argument> + <return type="bool" /> + <argument index="0" name="frames" type="PackedVector2Array" /> <description> Pushes several audio data frames to the buffer. This is usually more efficient than [method push_frame] in C# and compiled languages via GDNative, but [method push_buffer] may be [i]less[/i] efficient in GDScript. </description> </method> <method name="push_frame"> - <return type="bool"> - </return> - <argument index="0" name="frame" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="frame" type="Vector2" /> <description> Pushes a single audio data frame to the buffer. This is usually less efficient than [method push_buffer] in C# and compiled languages via GDNative, but [method push_frame] may be [i]more[/i] efficient in GDScript. </description> diff --git a/doc/classes/AudioStreamPlayer.xml b/doc/classes/AudioStreamPlayer.xml index 7c7f7e0cea..a6c437f875 100644 --- a/doc/classes/AudioStreamPlayer.xml +++ b/doc/classes/AudioStreamPlayer.xml @@ -17,40 +17,33 @@ </tutorials> <methods> <method name="get_playback_position"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the position in the [AudioStream] in seconds. </description> </method> <method name="get_stream_playback"> - <return type="AudioStreamPlayback"> - </return> + <return type="AudioStreamPlayback" /> <description> Returns the [AudioStreamPlayback] object associated with this [AudioStreamPlayer]. </description> </method> <method name="play"> - <return type="void"> - </return> - <argument index="0" name="from_position" type="float" default="0.0"> - </argument> + <return type="void" /> + <argument index="0" name="from_position" type="float" default="0.0" /> <description> Plays the audio from the given [code]from_position[/code], in seconds. </description> </method> <method name="seek"> - <return type="void"> - </return> - <argument index="0" name="to_position" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="to_position" type="float" /> <description> Sets the position from which audio will be played, in seconds. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the audio. </description> diff --git a/doc/classes/AudioStreamPlayer2D.xml b/doc/classes/AudioStreamPlayer2D.xml index b1e18ab550..c40c223091 100644 --- a/doc/classes/AudioStreamPlayer2D.xml +++ b/doc/classes/AudioStreamPlayer2D.xml @@ -13,40 +13,33 @@ </tutorials> <methods> <method name="get_playback_position"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the position in the [AudioStream]. </description> </method> <method name="get_stream_playback"> - <return type="AudioStreamPlayback"> - </return> + <return type="AudioStreamPlayback" /> <description> Returns the [AudioStreamPlayback] object associated with this [AudioStreamPlayer2D]. </description> </method> <method name="play"> - <return type="void"> - </return> - <argument index="0" name="from_position" type="float" default="0.0"> - </argument> + <return type="void" /> + <argument index="0" name="from_position" type="float" default="0.0" /> <description> Plays the audio from the given position [code]from_position[/code], in seconds. </description> </method> <method name="seek"> - <return type="void"> - </return> - <argument index="0" name="to_position" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="to_position" type="float" /> <description> Sets the position from which audio will be played, in seconds. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the audio. </description> diff --git a/doc/classes/AudioStreamPlayer3D.xml b/doc/classes/AudioStreamPlayer3D.xml index 3bd20b4b9b..584f03399c 100644 --- a/doc/classes/AudioStreamPlayer3D.xml +++ b/doc/classes/AudioStreamPlayer3D.xml @@ -14,40 +14,33 @@ </tutorials> <methods> <method name="get_playback_position"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the position in the [AudioStream]. </description> </method> <method name="get_stream_playback"> - <return type="AudioStreamPlayback"> - </return> + <return type="AudioStreamPlayback" /> <description> Returns the [AudioStreamPlayback] object associated with this [AudioStreamPlayer3D]. </description> </method> <method name="play"> - <return type="void"> - </return> - <argument index="0" name="from_position" type="float" default="0.0"> - </argument> + <return type="void" /> + <argument index="0" name="from_position" type="float" default="0.0" /> <description> Plays the audio from the given position [code]from_position[/code], in seconds. </description> </method> <method name="seek"> - <return type="void"> - </return> - <argument index="0" name="to_position" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="to_position" type="float" /> <description> Sets the position from which audio will be played, in seconds. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the audio. </description> diff --git a/doc/classes/AudioStreamSample.xml b/doc/classes/AudioStreamSample.xml index 5a0e71a0f8..7e1155d89b 100644 --- a/doc/classes/AudioStreamSample.xml +++ b/doc/classes/AudioStreamSample.xml @@ -11,10 +11,8 @@ </tutorials> <methods> <method name="save_to_wav"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Saves the AudioStreamSample as a WAV file to [code]path[/code]. Samples with IMA ADPCM format can't be saved. [b]Note:[/b] A [code].wav[/code] extension is automatically appended to [code]path[/code] if it is missing. diff --git a/doc/classes/BaseButton.xml b/doc/classes/BaseButton.xml index d842bac54a..889c703b07 100644 --- a/doc/classes/BaseButton.xml +++ b/doc/classes/BaseButton.xml @@ -10,40 +10,33 @@ </tutorials> <methods> <method name="_pressed" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called when the button is pressed. If you need to know the button's pressed state (and [member toggle_mode] is active), use [method _toggled] instead. </description> </method> <method name="_toggled" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="button_pressed" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="button_pressed" type="bool" /> <description> Called when the button is toggled (only if [member toggle_mode] is active). </description> </method> <method name="get_draw_mode" qualifiers="const"> - <return type="int" enum="BaseButton.DrawMode"> - </return> + <return type="int" enum="BaseButton.DrawMode" /> <description> Returns the visual state used to draw the button. This is useful mainly when implementing your own draw code by either overriding _draw() or connecting to "draw" signal. The visual state of the button is defined by the [enum DrawMode] enum. </description> </method> <method name="is_hovered" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the mouse has entered the button and has not left it yet. </description> </method> <method name="set_pressed_no_signal"> - <return type="void"> - </return> - <argument index="0" name="pressed" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="pressed" type="bool" /> <description> Changes the [member pressed] state of the button, without emitting [signal toggled]. Use when you just want to change the state of the button without sending the pressed event (e.g. when initializing scene). Only works if [member toggle_mode] is [code]true[/code]. [b]Note:[/b] This method doesn't unpress other buttons in [member button_group]. @@ -104,8 +97,7 @@ </description> </signal> <signal name="toggled"> - <argument index="0" name="button_pressed" type="bool"> - </argument> + <argument index="0" name="button_pressed" type="bool" /> <description> Emitted when the button was just toggled between pressed and normal states (only if [member toggle_mode] is active). The new state is contained in the [code]button_pressed[/code] argument. </description> diff --git a/doc/classes/BaseMaterial3D.xml b/doc/classes/BaseMaterial3D.xml index 2a378ed03e..bbf7c5eb6d 100644 --- a/doc/classes/BaseMaterial3D.xml +++ b/doc/classes/BaseMaterial3D.xml @@ -11,61 +11,46 @@ </tutorials> <methods> <method name="get_feature" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="feature" type="int" enum="BaseMaterial3D.Feature"> - </argument> + <return type="bool" /> + <argument index="0" name="feature" type="int" enum="BaseMaterial3D.Feature" /> <description> Returns [code]true[/code], if the specified [enum Feature] is enabled. </description> </method> <method name="get_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="flag" type="int" enum="BaseMaterial3D.Flags"> - </argument> + <return type="bool" /> + <argument index="0" name="flag" type="int" enum="BaseMaterial3D.Flags" /> <description> Returns [code]true[/code], if the specified flag is enabled. See [enum Flags] enumerator for options. </description> </method> <method name="get_texture" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="param" type="int" enum="BaseMaterial3D.TextureParam"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="param" type="int" enum="BaseMaterial3D.TextureParam" /> <description> Returns the [Texture] associated with the specified [enum TextureParam]. </description> </method> <method name="set_feature"> - <return type="void"> - </return> - <argument index="0" name="feature" type="int" enum="BaseMaterial3D.Feature"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="feature" type="int" enum="BaseMaterial3D.Feature" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], enables the specified [enum Feature]. Many features that are available in [BaseMaterial3D]s need to be enabled before use. This way the cost for using the feature is only incurred when specified. Features can also be enabled by setting the corresponding member to [code]true[/code]. </description> </method> <method name="set_flag"> - <return type="void"> - </return> - <argument index="0" name="flag" type="int" enum="BaseMaterial3D.Flags"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="flag" type="int" enum="BaseMaterial3D.Flags" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], enables the specified flag. Flags are optional behavior that can be turned on and off. Only one flag can be enabled at a time with this function, the flag enumerators cannot be bit-masked together to enable or disable multiple flags at once. Flags can also be enabled by setting the corresponding member to [code]true[/code]. See [enum Flags] enumerator for options. </description> </method> <method name="set_texture"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="BaseMaterial3D.TextureParam"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="BaseMaterial3D.TextureParam" /> + <argument index="1" name="texture" type="Texture2D" /> <description> Sets the texture for the slot specified by [code]param[/code]. See [enum TextureParam] for available slots. </description> diff --git a/doc/classes/Basis.xml b/doc/classes/Basis.xml index bd1abe914d..9a4dd15c63 100644 --- a/doc/classes/Basis.xml +++ b/doc/classes/Basis.xml @@ -20,243 +20,191 @@ </tutorials> <methods> <method name="Basis" qualifiers="constructor"> - <return type="Basis"> - </return> + <return type="Basis" /> <description> Constructs a default-initialized [Basis] set to [constant IDENTITY]. </description> </method> <method name="Basis" qualifiers="constructor"> - <return type="Basis"> - </return> - <argument index="0" name="from" type="Basis"> - </argument> + <return type="Basis" /> + <argument index="0" name="from" type="Basis" /> <description> Constructs a [Basis] as a copy of the given [Basis]. </description> </method> <method name="Basis" qualifiers="constructor"> - <return type="Basis"> - </return> - <argument index="0" name="axis" type="Vector3"> - </argument> - <argument index="1" name="phi" type="float"> - </argument> + <return type="Basis" /> + <argument index="0" name="axis" type="Vector3" /> + <argument index="1" name="phi" type="float" /> <description> Constructs a pure rotation basis matrix, rotated around the given [code]axis[/code] by [code]phi[/code], in radians. The axis must be a normalized vector. </description> </method> <method name="Basis" qualifiers="constructor"> - <return type="Basis"> - </return> - <argument index="0" name="euler" type="Vector3"> - </argument> + <return type="Basis" /> + <argument index="0" name="euler" type="Vector3" /> <description> Constructs a pure rotation basis matrix from the given Euler angles (in the YXZ convention: when *composing*, first Y, then X, and Z last), given in the vector format as (X angle, Y angle, Z angle). Consider using the [Quaternion] constructor instead, which uses a quaternion instead of Euler angles. </description> </method> <method name="Basis" qualifiers="constructor"> - <return type="Basis"> - </return> - <argument index="0" name="from" type="Quaternion"> - </argument> + <return type="Basis" /> + <argument index="0" name="from" type="Quaternion" /> <description> Constructs a pure rotation basis matrix from the given quaternion. </description> </method> <method name="Basis" qualifiers="constructor"> - <return type="Basis"> - </return> - <argument index="0" name="x_axis" type="Vector3"> - </argument> - <argument index="1" name="y_axis" type="Vector3"> - </argument> - <argument index="2" name="z_axis" type="Vector3"> - </argument> + <return type="Basis" /> + <argument index="0" name="x_axis" type="Vector3" /> + <argument index="1" name="y_axis" type="Vector3" /> + <argument index="2" name="z_axis" type="Vector3" /> <description> Constructs a basis matrix from 3 axis vectors (matrix columns). </description> </method> <method name="determinant" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the determinant of the basis matrix. If the basis is uniformly scaled, its determinant is the square of the scale. A negative determinant means the basis has a negative scale. A zero determinant means the basis isn't invertible, and is usually considered invalid. </description> </method> <method name="get_euler" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the basis's rotation in the form of Euler angles (in the YXZ convention: when decomposing, first Z, then X, and Y last). The returned vector contains the rotation angles in the format (X angle, Y angle, Z angle). Consider using the [method get_rotation_quaternion] method instead, which returns a [Quaternion] quaternion instead of Euler angles. </description> </method> <method name="get_orthogonal_index" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> This function considers a discretization of rotations into 24 points on unit sphere, lying along the vectors (x,y,z) with each component being either -1, 0, or 1, and returns the index of the point best representing the orientation of the object. It is mainly used by the [GridMap] editor. For further details, refer to the Godot source code. </description> </method> <method name="get_rotation_quaternion" qualifiers="const"> - <return type="Quaternion"> - </return> + <return type="Quaternion" /> <description> Returns the basis's rotation in the form of a quaternion. See [method get_euler] if you need Euler angles, but keep in mind quaternions should generally be preferred to Euler angles. </description> </method> <method name="get_scale" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Assuming that the matrix is the combination of a rotation and scaling, return the absolute value of scaling factors along each axis. </description> </method> <method name="inverse" qualifiers="const"> - <return type="Basis"> - </return> + <return type="Basis" /> <description> Returns the inverse of the matrix. </description> </method> <method name="is_equal_approx" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="b" type="Basis"> - </argument> + <return type="bool" /> + <argument index="0" name="b" type="Basis" /> <description> Returns [code]true[/code] if this basis and [code]b[/code] are approximately equal, by calling [code]is_equal_approx[/code] on each component. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Basis"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Basis" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Basis"> - </return> - <argument index="0" name="right" type="Basis"> - </argument> + <return type="Basis" /> + <argument index="0" name="right" type="Basis" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Basis"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Basis" /> + <argument index="0" name="right" type="float" /> <description> This operator multiplies all components of the [Basis], which scales it uniformly. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Basis"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Basis" /> + <argument index="0" name="right" type="int" /> <description> This operator multiplies all components of the [Basis], which scales it uniformly. </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Basis"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Basis" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="orthonormalized" qualifiers="const"> - <return type="Basis"> - </return> + <return type="Basis" /> <description> Returns the orthonormalized version of the matrix (useful to call from time to time to avoid rounding error for orthogonal matrices). This performs a Gram-Schmidt orthonormalization on the basis of the matrix. </description> </method> <method name="rotated" qualifiers="const"> - <return type="Basis"> - </return> - <argument index="0" name="axis" type="Vector3"> - </argument> - <argument index="1" name="phi" type="float"> - </argument> + <return type="Basis" /> + <argument index="0" name="axis" type="Vector3" /> + <argument index="1" name="phi" type="float" /> <description> Introduce an additional rotation around the given axis by phi (radians). The axis must be a normalized vector. </description> </method> <method name="scaled" qualifiers="const"> - <return type="Basis"> - </return> - <argument index="0" name="scale" type="Vector3"> - </argument> + <return type="Basis" /> + <argument index="0" name="scale" type="Vector3" /> <description> Introduce an additional scaling specified by the given 3D scaling factor. </description> </method> <method name="slerp" qualifiers="const"> - <return type="Basis"> - </return> - <argument index="0" name="to" type="Basis"> - </argument> - <argument index="1" name="weight" type="float"> - </argument> + <return type="Basis" /> + <argument index="0" name="to" type="Basis" /> + <argument index="1" name="weight" type="float" /> <description> Assuming that the matrix is a proper rotation matrix, slerp performs a spherical-linear interpolation with another rotation matrix. </description> </method> <method name="tdotx" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="with" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="with" type="Vector3" /> <description> Transposed dot product with the X axis of the matrix. </description> </method> <method name="tdoty" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="with" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="with" type="Vector3" /> <description> Transposed dot product with the Y axis of the matrix. </description> </method> <method name="tdotz" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="with" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="with" type="Vector3" /> <description> Transposed dot product with the Z axis of the matrix. </description> </method> <method name="transposed" qualifiers="const"> - <return type="Basis"> - </return> + <return type="Basis" /> <description> Returns the transposed version of the matrix. </description> diff --git a/doc/classes/BitMap.xml b/doc/classes/BitMap.xml index 83e598d2ba..9a349c957f 100644 --- a/doc/classes/BitMap.xml +++ b/doc/classes/BitMap.xml @@ -10,66 +10,51 @@ </tutorials> <methods> <method name="create"> - <return type="void"> - </return> - <argument index="0" name="size" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="Vector2" /> <description> Creates a bitmap with the specified size, filled with [code]false[/code]. </description> </method> <method name="create_from_image_alpha"> - <return type="void"> - </return> - <argument index="0" name="image" type="Image"> - </argument> - <argument index="1" name="threshold" type="float" default="0.1"> - </argument> + <return type="void" /> + <argument index="0" name="image" type="Image" /> + <argument index="1" name="threshold" type="float" default="0.1" /> <description> Creates a bitmap that matches the given image dimensions, every element of the bitmap is set to [code]false[/code] if the alpha value of the image at that position is equal to [code]threshold[/code] or less, and [code]true[/code] in other case. </description> </method> <method name="get_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="position" type="Vector2" /> <description> Returns bitmap's value at the specified position. </description> </method> <method name="get_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns bitmap's dimensions. </description> </method> <method name="get_true_bit_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of bitmap elements that are set to [code]true[/code]. </description> </method> <method name="grow_mask"> - <return type="void"> - </return> - <argument index="0" name="pixels" type="int"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> + <return type="void" /> + <argument index="0" name="pixels" type="int" /> + <argument index="1" name="rect" type="Rect2" /> <description> Applies morphological dilation to the bitmap. The first argument is the dilation amount, Rect2 is the area where the dilation will be applied. </description> </method> <method name="opaque_to_polygons" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="rect" type="Rect2"> - </argument> - <argument index="1" name="epsilon" type="float" default="2.0"> - </argument> + <return type="Array" /> + <argument index="0" name="rect" type="Rect2" /> + <argument index="1" name="epsilon" type="float" default="2.0" /> <description> Creates an [Array] of polygons covering a rectangular portion of the bitmap. It uses a marching squares algorithm, followed by Ramer-Douglas-Peucker (RDP) reduction of the number of vertices. Each polygon is described as a [PackedVector2Array] of its vertices. To get polygons covering the whole bitmap, pass: @@ -80,23 +65,17 @@ </description> </method> <method name="set_bit"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="bit" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="bit" type="bool" /> <description> Sets the bitmap's element at the specified position, to the specified value. </description> </method> <method name="set_bit_rect"> - <return type="void"> - </return> - <argument index="0" name="rect" type="Rect2"> - </argument> - <argument index="1" name="bit" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="rect" type="Rect2" /> + <argument index="1" name="bit" type="bool" /> <description> Sets a rectangular portion of the bitmap to the specified value. </description> diff --git a/doc/classes/Bone2D.xml b/doc/classes/Bone2D.xml index b8d5544d59..f9f3ea21f1 100644 --- a/doc/classes/Bone2D.xml +++ b/doc/classes/Bone2D.xml @@ -13,88 +13,73 @@ </tutorials> <methods> <method name="apply_rest"> - <return type="void"> - </return> + <return type="void" /> <description> Stores the node's current transforms in [member rest]. </description> </method> <method name="get_autocalculate_length_and_angle" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether this [code]Bone2D[/code] node is going to autocalculate its length and bone angle using its first [code]Bone2D[/code] child node, if one exists. If there are no [code]Bone2D[/code] children, then it cannot autocalculate these values and will print a warning. </description> </method> <method name="get_bone_angle" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the angle of the bone in the [code]Bone2D[/code] node. [b]Note:[/b] This is different from the [code]Bone2D[/code]'s rotation. The bone angle is the rotation of the bone shown by the [code]Bone2D[/code] gizmo, and because [code]Bone2D[/code] bones are based on positions, this can vary from the actual rotation of the [code]Bone2D[/code] node. </description> </method> <method name="get_default_length" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Deprecated. Please use [code]get_length[/code] instead. </description> </method> <method name="get_index_in_skeleton" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the node's index as part of the entire skeleton. See [Skeleton2D]. </description> </method> <method name="get_length" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the length of the bone in the [code]Bone2D[/code] node. </description> </method> <method name="get_skeleton_rest" qualifiers="const"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Returns the node's [member rest] [code]Transform2D[/code] if it doesn't have a parent, or its rest pose relative to its parent. </description> </method> <method name="set_autocalculate_length_and_angle"> - <return type="void"> - </return> - <argument index="0" name="auto_calculate" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="auto_calculate" type="bool" /> <description> When set to [code]true[/code], the [code]Bone2D[/code] node will attempt to automatically calculate the bone angle and length using the first child [code]Bone2D[/code] node, if one exists. If none exist, the [code]Bone2D[/code] cannot automatically calculate these values and will print a warning. </description> </method> <method name="set_bone_angle"> - <return type="void"> - </return> - <argument index="0" name="angle" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="angle" type="float" /> <description> Sets the bone angle for the [code]Bone2D[/code] node. This is typically set to the rotation from the [code]Bone2D[/code] node to a child [code]Bone2D[/code] node. [b]Note:[/b] This is different from the [code]Bone2D[/code]'s rotation. The bone angle is the rotation of the bone shown by the [code]Bone2D[/code] gizmo, and because [code]Bone2D[/code] bones are based on positions, this can vary from the actual rotation of the [code]Bone2D[/code] node. </description> </method> <method name="set_default_length"> - <return type="void"> - </return> - <argument index="0" name="default_length" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="default_length" type="float" /> <description> Deprecated. Please use [code]set_length[/code] instead. </description> </method> <method name="set_length"> - <return type="void"> - </return> - <argument index="0" name="length" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="length" type="float" /> <description> Sets the length of the bone in the [code]Bone2D[/code] node. </description> diff --git a/doc/classes/BoxContainer.xml b/doc/classes/BoxContainer.xml index ffa7c9066a..ec81b866f6 100644 --- a/doc/classes/BoxContainer.xml +++ b/doc/classes/BoxContainer.xml @@ -10,10 +10,8 @@ </tutorials> <methods> <method name="add_spacer"> - <return type="Control"> - </return> - <argument index="0" name="begin" type="bool"> - </argument> + <return type="Control" /> + <argument index="0" name="begin" type="bool" /> <description> Adds a [Control] node to the box as a spacer. If [code]begin[/code] is [code]true[/code], it will insert the [Control] node in front of all other children. </description> diff --git a/doc/classes/Button.xml b/doc/classes/Button.xml index 239e0bb2d9..823eda9c33 100644 --- a/doc/classes/Button.xml +++ b/doc/classes/Button.xml @@ -42,28 +42,22 @@ </tutorials> <methods> <method name="clear_opentype_features"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all OpenType features. </description> </method> <method name="get_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code]. </description> </method> <method name="set_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="tag" type="String"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="tag" type="String" /> + <argument index="1" name="value" type="int" /> <description> Sets OpenType feature [code]tag[/code]. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url]. </description> diff --git a/doc/classes/ButtonGroup.xml b/doc/classes/ButtonGroup.xml index 0b31352611..302a213836 100644 --- a/doc/classes/ButtonGroup.xml +++ b/doc/classes/ButtonGroup.xml @@ -11,15 +11,13 @@ </tutorials> <methods> <method name="get_buttons"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an [Array] of [Button]s who have this as their [ButtonGroup] (see [member BaseButton.button_group]). </description> </method> <method name="get_pressed_button"> - <return type="BaseButton"> - </return> + <return type="BaseButton" /> <description> Returns the current pressed button. </description> @@ -30,8 +28,7 @@ </members> <signals> <signal name="pressed"> - <argument index="0" name="button" type="Object"> - </argument> + <argument index="0" name="button" type="Object" /> <description> Emitted when one of the buttons of the group is pressed. </description> diff --git a/doc/classes/CPUParticles2D.xml b/doc/classes/CPUParticles2D.xml index 22f070b73b..ab6897ca1d 100644 --- a/doc/classes/CPUParticles2D.xml +++ b/doc/classes/CPUParticles2D.xml @@ -12,97 +12,74 @@ </tutorials> <methods> <method name="convert_from_particles"> - <return type="void"> - </return> - <argument index="0" name="particles" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="Node" /> <description> Sets this node's properties to match a given [GPUParticles2D] node with an assigned [ParticlesMaterial]. </description> </method> <method name="get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter" /> <description> Returns the base value of the parameter specified by [enum Parameter]. </description> </method> <method name="get_param_curve" qualifiers="const"> - <return type="Curve"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter"> - </argument> + <return type="Curve" /> + <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter" /> <description> Returns the [Curve] of the parameter specified by [enum Parameter]. </description> </method> <method name="get_param_randomness" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter" /> <description> Returns the randomness factor of the parameter specified by [enum Parameter]. </description> </method> <method name="get_particle_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="particle_flag" type="int" enum="CPUParticles2D.ParticleFlags"> - </argument> + <return type="bool" /> + <argument index="0" name="particle_flag" type="int" enum="CPUParticles2D.ParticleFlags" /> <description> Returns the enabled state of the given flag (see [enum ParticleFlags] for options). </description> </method> <method name="restart"> - <return type="void"> - </return> + <return type="void" /> <description> Restarts the particle emitter. </description> </method> <method name="set_param"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter" /> + <argument index="1" name="value" type="float" /> <description> Sets the base value of the parameter specified by [enum Parameter]. </description> </method> <method name="set_param_curve"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter"> - </argument> - <argument index="1" name="curve" type="Curve"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter" /> + <argument index="1" name="curve" type="Curve" /> <description> Sets the [Curve] of the parameter specified by [enum Parameter]. </description> </method> <method name="set_param_randomness"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter"> - </argument> - <argument index="1" name="randomness" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="CPUParticles2D.Parameter" /> + <argument index="1" name="randomness" type="float" /> <description> Sets the randomness factor of the parameter specified by [enum Parameter]. </description> </method> <method name="set_particle_flag"> - <return type="void"> - </return> - <argument index="0" name="particle_flag" type="int" enum="CPUParticles2D.ParticleFlags"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="particle_flag" type="int" enum="CPUParticles2D.ParticleFlags" /> + <argument index="1" name="enable" type="bool" /> <description> Enables or disables the given flag (see [enum ParticleFlags] for options). </description> diff --git a/doc/classes/CPUParticles3D.xml b/doc/classes/CPUParticles3D.xml index 29e04dda7e..8aa3573996 100644 --- a/doc/classes/CPUParticles3D.xml +++ b/doc/classes/CPUParticles3D.xml @@ -11,97 +11,74 @@ </tutorials> <methods> <method name="convert_from_particles"> - <return type="void"> - </return> - <argument index="0" name="particles" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="Node" /> <description> Sets this node's properties to match a given [GPUParticles3D] node with an assigned [ParticlesMaterial]. </description> </method> <method name="get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter" /> <description> Returns the base value of the parameter specified by [enum Parameter]. </description> </method> <method name="get_param_curve" qualifiers="const"> - <return type="Curve"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter"> - </argument> + <return type="Curve" /> + <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter" /> <description> Returns the [Curve] of the parameter specified by [enum Parameter]. </description> </method> <method name="get_param_randomness" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter" /> <description> Returns the randomness factor of the parameter specified by [enum Parameter]. </description> </method> <method name="get_particle_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="particle_flag" type="int" enum="CPUParticles3D.ParticleFlags"> - </argument> + <return type="bool" /> + <argument index="0" name="particle_flag" type="int" enum="CPUParticles3D.ParticleFlags" /> <description> Returns the enabled state of the given particle flag (see [enum ParticleFlags] for options). </description> </method> <method name="restart"> - <return type="void"> - </return> + <return type="void" /> <description> Restarts the particle emitter. </description> </method> <method name="set_param"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter" /> + <argument index="1" name="value" type="float" /> <description> Sets the base value of the parameter specified by [enum Parameter]. </description> </method> <method name="set_param_curve"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter"> - </argument> - <argument index="1" name="curve" type="Curve"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter" /> + <argument index="1" name="curve" type="Curve" /> <description> Sets the [Curve] of the parameter specified by [enum Parameter]. </description> </method> <method name="set_param_randomness"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter"> - </argument> - <argument index="1" name="randomness" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="CPUParticles3D.Parameter" /> + <argument index="1" name="randomness" type="float" /> <description> Sets the randomness factor of the parameter specified by [enum Parameter]. </description> </method> <method name="set_particle_flag"> - <return type="void"> - </return> - <argument index="0" name="particle_flag" type="int" enum="CPUParticles3D.ParticleFlags"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="particle_flag" type="int" enum="CPUParticles3D.ParticleFlags" /> + <argument index="1" name="enable" type="bool" /> <description> Enables or disables the given particle flag (see [enum ParticleFlags] for options). </description> diff --git a/doc/classes/Callable.xml b/doc/classes/Callable.xml index 3c61e8278f..5228df706b 100644 --- a/doc/classes/Callable.xml +++ b/doc/classes/Callable.xml @@ -37,148 +37,122 @@ </tutorials> <methods> <method name="Callable" qualifiers="constructor"> - <return type="Callable"> - </return> + <return type="Callable" /> <description> Constructs a null [Callable] with no object nor method bound. </description> </method> <method name="Callable" qualifiers="constructor"> - <return type="Callable"> - </return> - <argument index="0" name="from" type="Callable"> - </argument> + <return type="Callable" /> + <argument index="0" name="from" type="Callable" /> <description> Constructs a [Callable] as a copy of the given [Callable]. </description> </method> <method name="Callable" qualifiers="constructor"> - <return type="Callable"> - </return> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="method" type="StringName"> - </argument> + <return type="Callable" /> + <argument index="0" name="object" type="Object" /> + <argument index="1" name="method" type="StringName" /> <description> Creates a new [Callable] for the method called [code]method[/code] in the specified [code]object[/code]. </description> </method> <method name="bind" qualifiers="vararg const"> - <return type="Callable"> - </return> + <return type="Callable" /> <description> Returns a copy of this [Callable] with the arguments bound. Bound arguments are passed after the arguments supplied by [method call]. </description> </method> <method name="call" qualifiers="vararg const"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Calls the method represented by this [Callable]. Arguments can be passed and should match the method's signature. </description> </method> <method name="call_deferred" qualifiers="vararg const"> - <return type="void"> - </return> + <return type="void" /> <description> Calls the method represented by this [Callable] in deferred mode, i.e. during the idle frame. Arguments can be passed and should match the method's signature. </description> </method> <method name="get_method" qualifiers="const"> - <return type="StringName"> - </return> + <return type="StringName" /> <description> Returns the name of the method represented by this [Callable]. </description> </method> <method name="get_object" qualifiers="const"> - <return type="Object"> - </return> + <return type="Object" /> <description> Returns the object on which this [Callable] is called. </description> </method> <method name="get_object_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the ID of this [Callable]'s object (see [method Object.get_instance_id]). </description> </method> <method name="hash" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the hash value of this [Callable]'s object. </description> </method> <method name="is_custom" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this [Callable] is a custom callable whose behavior differs based on implementation details. Custom callables are used in the engine for various reasons. If [code]true[/code], you can't use [method get_method]. </description> </method> <method name="is_null" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this [Callable] has no target to call the method on. </description> </method> <method name="is_standard" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this [Callable] is a standard callable, referencing an object and a method using a [StringName]. </description> </method> <method name="is_valid" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the object exists and has a valid function assigned, or is a custom callable. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Callable"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Callable" /> <description> Returns [code]true[/code] if both [Callable]s invoke different targets. </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Callable"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Callable" /> <description> Returns [code]true[/code] if both [Callable]s invoke the same custom target. </description> </method> <method name="rpc" qualifiers="vararg const"> - <return type="void"> - </return> + <return type="void" /> <description> Perform an RPC (Remote Procedure Call). This is used for multiplayer and is normally not available unless the function being called has been marked as [i]RPC[/i]. Calling it on unsupported functions will result in an error. </description> </method> <method name="rpc_id" qualifiers="vararg const"> - <return type="void"> - </return> - <argument index="0" name="peer_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="peer_id" type="int" /> <description> Perform an RPC (Remote Procedure Call) on a specific peer ID (see multiplayer documentation for reference). This is used for multiplayer and is normally not available unless the function being called has been marked as [i]RPC[/i]. Calling it on unsupported functions will result in an error. </description> </method> <method name="unbind" qualifiers="const"> - <return type="Callable"> - </return> - <argument index="0" name="argcount" type="int"> - </argument> + <return type="Callable" /> + <argument index="0" name="argcount" type="int" /> <description> Returns a copy of this [Callable] with the arguments unbound. Calling the returned [Callable] will call the method without the extra arguments that are supplied in the [Callable] on which you are calling this method. </description> diff --git a/doc/classes/CallbackTweener.xml b/doc/classes/CallbackTweener.xml index 8ac285c3df..fab5f06ba8 100644 --- a/doc/classes/CallbackTweener.xml +++ b/doc/classes/CallbackTweener.xml @@ -11,10 +11,8 @@ </tutorials> <methods> <method name="set_delay"> - <return type="CallbackTweener"> - </return> - <argument index="0" name="delay" type="float"> - </argument> + <return type="CallbackTweener" /> + <argument index="0" name="delay" type="float" /> <description> Makes the callback call delayed by given time in seconds. Example: [codeblock] diff --git a/doc/classes/Camera2D.xml b/doc/classes/Camera2D.xml index ac90b6950b..d0ff66ae06 100644 --- a/doc/classes/Camera2D.xml +++ b/doc/classes/Camera2D.xml @@ -15,77 +15,62 @@ </tutorials> <methods> <method name="align"> - <return type="void"> - </return> + <return type="void" /> <description> Aligns the camera to the tracked node. </description> </method> <method name="force_update_scroll"> - <return type="void"> - </return> + <return type="void" /> <description> Forces the camera to update scroll immediately. </description> </method> <method name="get_camera_position" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the camera position. </description> </method> <method name="get_camera_screen_center" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the location of the [Camera2D]'s screen-center, relative to the origin. </description> </method> <method name="get_drag_margin" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> + <return type="float" /> + <argument index="0" name="margin" type="int" enum="Side" /> <description> Returns the specified [enum Side]'s margin. See also [member drag_bottom_margin], [member drag_top_margin], [member drag_left_margin], and [member drag_right_margin]. </description> </method> <method name="get_limit" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> + <return type="int" /> + <argument index="0" name="margin" type="int" enum="Side" /> <description> Returns the camera limit for the specified [enum Side]. See also [member limit_bottom], [member limit_top], [member limit_left], and [member limit_right]. </description> </method> <method name="reset_smoothing"> - <return type="void"> - </return> + <return type="void" /> <description> Sets the camera's position immediately to its current smoothing destination. This has no effect if smoothing is disabled. </description> </method> <method name="set_drag_margin"> - <return type="void"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> - <argument index="1" name="drag_margin" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="margin" type="int" enum="Side" /> + <argument index="1" name="drag_margin" type="float" /> <description> Sets the specified [enum Side]'s margin. See also [member drag_bottom_margin], [member drag_top_margin], [member drag_left_margin], and [member drag_right_margin]. </description> </method> <method name="set_limit"> - <return type="void"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> - <argument index="1" name="limit" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="margin" type="int" enum="Side" /> + <argument index="1" name="limit" type="int" /> <description> Sets the camera limit for the specified [enum Side]. See also [member limit_bottom], [member limit_top], [member limit_left], and [member limit_right]. </description> diff --git a/doc/classes/Camera3D.xml b/doc/classes/Camera3D.xml index f74baa00a0..2ada0c556d 100644 --- a/doc/classes/Camera3D.xml +++ b/doc/classes/Camera3D.xml @@ -11,165 +11,126 @@ </tutorials> <methods> <method name="clear_current"> - <return type="void"> - </return> - <argument index="0" name="enable_next" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="enable_next" type="bool" default="true" /> <description> If this is the current camera, remove it from being current. If [code]enable_next[/code] is [code]true[/code], request to make the next camera current, if any. </description> </method> <method name="get_camera_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the camera's RID from the [RenderingServer]. </description> </method> <method name="get_camera_transform" qualifiers="const"> - <return type="Transform3D"> - </return> + <return type="Transform3D" /> <description> Gets the camera transform. Subclassed cameras such as [ClippedCamera3D] may provide different transforms than the [Node] transform. </description> </method> <method name="get_cull_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="layer" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="layer" type="int" /> <description> Returns [code]true[/code] if the given [code]layer[/code] in the [member cull_mask] is enabled, [code]false[/code] otherwise. </description> </method> <method name="get_frustum" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the camera's frustum planes in world space units as an array of [Plane]s in the following order: near, far, left, top, right, bottom. Not to be confused with [member frustum_offset]. </description> </method> <method name="is_position_behind" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="world_point" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="world_point" type="Vector3" /> <description> Returns [code]true[/code] if the given position is behind the camera (the blue part of the linked diagram). [url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/camera3d_position_frustum.png]See this diagram[/url] for an overview of position query methods. [b]Note:[/b] A position which returns [code]false[/code] may still be outside the camera's field of view. </description> </method> <method name="is_position_in_frustum" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="world_point" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="world_point" type="Vector3" /> <description> Returns [code]true[/code] if the given position is inside the camera's frustum (the green part of the linked diagram). [url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/camera3d_position_frustum.png]See this diagram[/url] for an overview of position query methods. </description> </method> <method name="make_current"> - <return type="void"> - </return> + <return type="void" /> <description> Makes this camera the current camera for the [Viewport] (see class description). If the camera node is outside the scene tree, it will attempt to become current once it's added. </description> </method> <method name="project_local_ray_normal" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> + <return type="Vector3" /> + <argument index="0" name="screen_point" type="Vector2" /> <description> Returns a normal vector from the screen point location directed along the camera. Orthogonal cameras are normalized. Perspective cameras account for perspective, screen width/height, etc. </description> </method> <method name="project_position" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> - <argument index="1" name="z_depth" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="screen_point" type="Vector2" /> + <argument index="1" name="z_depth" type="float" /> <description> Returns the 3D point in world space that maps to the given 2D coordinate in the [Viewport] rectangle on a plane that is the given [code]z_depth[/code] distance into the scene away from the camera. </description> </method> <method name="project_ray_normal" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> + <return type="Vector3" /> + <argument index="0" name="screen_point" type="Vector2" /> <description> Returns a normal vector in world space, that is the result of projecting a point on the [Viewport] rectangle by the camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking. </description> </method> <method name="project_ray_origin" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> + <return type="Vector3" /> + <argument index="0" name="screen_point" type="Vector2" /> <description> Returns a 3D position in world space, that is the result of projecting a point on the [Viewport] rectangle by the camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking. </description> </method> <method name="set_cull_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="layer" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="layer" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> Enables or disables the given [code]layer[/code] in the [member cull_mask]. </description> </method> <method name="set_frustum"> - <return type="void"> - </return> - <argument index="0" name="size" type="float"> - </argument> - <argument index="1" name="offset" type="Vector2"> - </argument> - <argument index="2" name="z_near" type="float"> - </argument> - <argument index="3" name="z_far" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="float" /> + <argument index="1" name="offset" type="Vector2" /> + <argument index="2" name="z_near" type="float" /> + <argument index="3" name="z_far" type="float" /> <description> Sets the camera projection to frustum mode (see [constant PROJECTION_FRUSTUM]), by specifying a [code]size[/code], an [code]offset[/code], and the [code]z_near[/code] and [code]z_far[/code] clip planes in world space units. </description> </method> <method name="set_orthogonal"> - <return type="void"> - </return> - <argument index="0" name="size" type="float"> - </argument> - <argument index="1" name="z_near" type="float"> - </argument> - <argument index="2" name="z_far" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="float" /> + <argument index="1" name="z_near" type="float" /> + <argument index="2" name="z_far" type="float" /> <description> Sets the camera projection to orthogonal mode (see [constant PROJECTION_ORTHOGONAL]), by specifying a [code]size[/code], and the [code]z_near[/code] and [code]z_far[/code] clip planes in world space units. (As a hint, 2D games often use this projection, with values specified in pixels.) </description> </method> <method name="set_perspective"> - <return type="void"> - </return> - <argument index="0" name="fov" type="float"> - </argument> - <argument index="1" name="z_near" type="float"> - </argument> - <argument index="2" name="z_far" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="fov" type="float" /> + <argument index="1" name="z_near" type="float" /> + <argument index="2" name="z_far" type="float" /> <description> Sets the camera projection to perspective mode (see [constant PROJECTION_PERSPECTIVE]), by specifying a [code]fov[/code] (field of view) angle in degrees, and the [code]z_near[/code] and [code]z_far[/code] clip planes in world space units. </description> </method> <method name="unproject_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="world_point" type="Vector3"> - </argument> + <return type="Vector2" /> + <argument index="0" name="world_point" type="Vector3" /> <description> Returns the 2D coordinate in the [Viewport] rectangle that maps to the given 3D point in world space. [b]Note:[/b] When using this to position GUI elements over a 3D viewport, use [method is_position_behind] to prevent them from appearing if the 3D point is behind the camera: diff --git a/doc/classes/CameraServer.xml b/doc/classes/CameraServer.xml index e00dc031dc..404ea08851 100644 --- a/doc/classes/CameraServer.xml +++ b/doc/classes/CameraServer.xml @@ -12,42 +12,34 @@ </tutorials> <methods> <method name="add_feed"> - <return type="void"> - </return> - <argument index="0" name="feed" type="CameraFeed"> - </argument> + <return type="void" /> + <argument index="0" name="feed" type="CameraFeed" /> <description> Adds the camera [code]feed[/code] to the camera server. </description> </method> <method name="feeds"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of [CameraFeed]s. </description> </method> <method name="get_feed"> - <return type="CameraFeed"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="CameraFeed" /> + <argument index="0" name="index" type="int" /> <description> Returns the [CameraFeed] corresponding to the camera with the given [code]index[/code]. </description> </method> <method name="get_feed_count"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of [CameraFeed]s registered. </description> </method> <method name="remove_feed"> - <return type="void"> - </return> - <argument index="0" name="feed" type="CameraFeed"> - </argument> + <return type="void" /> + <argument index="0" name="feed" type="CameraFeed" /> <description> Removes the specified camera [code]feed[/code]. </description> @@ -55,15 +47,13 @@ </methods> <signals> <signal name="camera_feed_added"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted when a [CameraFeed] is added (e.g. a webcam is plugged in). </description> </signal> <signal name="camera_feed_removed"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted when a [CameraFeed] is removed (e.g. a webcam is unplugged). </description> diff --git a/doc/classes/CanvasItem.xml b/doc/classes/CanvasItem.xml index d0950ae741..2c92ce0185 100644 --- a/doc/classes/CanvasItem.xml +++ b/doc/classes/CanvasItem.xml @@ -18,327 +18,217 @@ </tutorials> <methods> <method name="_draw" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Overridable function called by the engine (if defined) to draw the canvas item. </description> </method> <method name="draw_animation_slice"> - <return type="void"> - </return> - <argument index="0" name="animation_length" type="float"> - </argument> - <argument index="1" name="slice_begin" type="float"> - </argument> - <argument index="2" name="slice_end" type="float"> - </argument> - <argument index="3" name="offset" type="float" default="0.0"> - </argument> + <return type="void" /> + <argument index="0" name="animation_length" type="float" /> + <argument index="1" name="slice_begin" type="float" /> + <argument index="2" name="slice_end" type="float" /> + <argument index="3" name="offset" type="float" default="0.0" /> <description> Subsequent drawing commands will be ignored unless they fall within the specified animation slice. This is a faster way to implement animations that loop on background rather than redrawing constantly. </description> </method> <method name="draw_arc"> - <return type="void"> - </return> - <argument index="0" name="center" type="Vector2"> - </argument> - <argument index="1" name="radius" type="float"> - </argument> - <argument index="2" name="start_angle" type="float"> - </argument> - <argument index="3" name="end_angle" type="float"> - </argument> - <argument index="4" name="point_count" type="int"> - </argument> - <argument index="5" name="color" type="Color"> - </argument> - <argument index="6" name="width" type="float" default="1.0"> - </argument> - <argument index="7" name="antialiased" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="center" type="Vector2" /> + <argument index="1" name="radius" type="float" /> + <argument index="2" name="start_angle" type="float" /> + <argument index="3" name="end_angle" type="float" /> + <argument index="4" name="point_count" type="int" /> + <argument index="5" name="color" type="Color" /> + <argument index="6" name="width" type="float" default="1.0" /> + <argument index="7" name="antialiased" type="bool" default="false" /> <description> Draws an arc between the given angles. The larger the value of [code]point_count[/code], the smoother the curve. </description> </method> <method name="draw_char" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="font" type="Font"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="char" type="String"> - </argument> - <argument index="3" name="next" type="String" default=""""> - </argument> - <argument index="4" name="size" type="int" default="-1"> - </argument> - <argument index="5" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="6" name="outline_size" type="int" default="0"> - </argument> - <argument index="7" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)"> - </argument> + <return type="float" /> + <argument index="0" name="font" type="Font" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="char" type="String" /> + <argument index="3" name="next" type="String" default="""" /> + <argument index="4" name="size" type="int" default="-1" /> + <argument index="5" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="6" name="outline_size" type="int" default="0" /> + <argument index="7" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)" /> <description> Draws a string character using a custom font. Returns the advance, depending on the character width and kerning with an optional next character. </description> </method> <method name="draw_circle"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="radius" type="float"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="radius" type="float" /> + <argument index="2" name="color" type="Color" /> <description> Draws a colored circle. </description> </method> <method name="draw_colored_polygon"> - <return type="void"> - </return> - <argument index="0" name="points" type="PackedVector2Array"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <argument index="2" name="uvs" type="PackedVector2Array" default="PackedVector2Array()"> - </argument> - <argument index="3" name="texture" type="Texture2D" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="points" type="PackedVector2Array" /> + <argument index="1" name="color" type="Color" /> + <argument index="2" name="uvs" type="PackedVector2Array" default="PackedVector2Array()" /> + <argument index="3" name="texture" type="Texture2D" default="null" /> <description> Draws a colored polygon of any amount of points, convex or concave. </description> </method> <method name="draw_end_animation"> - <return type="void"> - </return> + <return type="void" /> <description> After submitting all animations slices via [method draw_animation_slice], this function can be used to revert drawing to its default state (all subsequent drawing commands will be visible). If you don't care about this particular use case, usage of this function after submitting the slices is not required. </description> </method> <method name="draw_line"> - <return type="void"> - </return> - <argument index="0" name="from" type="Vector2"> - </argument> - <argument index="1" name="to" type="Vector2"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> - <argument index="3" name="width" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="from" type="Vector2" /> + <argument index="1" name="to" type="Vector2" /> + <argument index="2" name="color" type="Color" /> + <argument index="3" name="width" type="float" default="1.0" /> <description> Draws a line from a 2D point to another, with a given color and width. </description> </method> <method name="draw_mesh"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="Mesh"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> - <argument index="2" name="transform" type="Transform2D" default="Transform2D(1, 0, 0, 1, 0, 0)"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="Mesh" /> + <argument index="1" name="texture" type="Texture2D" /> + <argument index="2" name="transform" type="Transform2D" default="Transform2D(1, 0, 0, 1, 0, 0)" /> + <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draws a [Mesh] in 2D, using the provided texture. See [MeshInstance2D] for related documentation. </description> </method> <method name="draw_multiline"> - <return type="void"> - </return> - <argument index="0" name="points" type="PackedVector2Array"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <argument index="2" name="width" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="points" type="PackedVector2Array" /> + <argument index="1" name="color" type="Color" /> + <argument index="2" name="width" type="float" default="1.0" /> <description> Draws multiple, parallel lines with a uniform [code]color[/code]. </description> </method> <method name="draw_multiline_colors"> - <return type="void"> - </return> - <argument index="0" name="points" type="PackedVector2Array"> - </argument> - <argument index="1" name="colors" type="PackedColorArray"> - </argument> - <argument index="2" name="width" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="points" type="PackedVector2Array" /> + <argument index="1" name="colors" type="PackedColorArray" /> + <argument index="2" name="width" type="float" default="1.0" /> <description> Draws multiple, parallel lines with a uniform [code]width[/code] and segment-by-segment coloring. Colors assigned to line segments match by index between [code]points[/code] and [code]colors[/code]. </description> </method> <method name="draw_multiline_string" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="font" type="Font"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="text" type="String"> - </argument> - <argument index="3" name="align" type="int" enum="HAlign" default="0"> - </argument> - <argument index="4" name="width" type="float" default="-1"> - </argument> - <argument index="5" name="max_lines" type="int" default="-1"> - </argument> - <argument index="6" name="size" type="int" default="-1"> - </argument> - <argument index="7" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="8" name="outline_size" type="int" default="0"> - </argument> - <argument index="9" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)"> - </argument> - <argument index="10" name="flags" type="int" default="51"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="Font" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="text" type="String" /> + <argument index="3" name="align" type="int" enum="HAlign" default="0" /> + <argument index="4" name="width" type="float" default="-1" /> + <argument index="5" name="max_lines" type="int" default="-1" /> + <argument index="6" name="size" type="int" default="-1" /> + <argument index="7" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="8" name="outline_size" type="int" default="0" /> + <argument index="9" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)" /> + <argument index="10" name="flags" type="int" default="51" /> <description> Breaks [code]text[/code] to the lines and draws it using the specified [code]font[/code] at the [code]position[/code] (top-left corner). The text will have its color multiplied by [code]modulate[/code]. If [code]clip_w[/code] is greater than or equal to 0, the text will be clipped if it exceeds the specified width. </description> </method> <method name="draw_multimesh"> - <return type="void"> - </return> - <argument index="0" name="multimesh" type="MultiMesh"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="multimesh" type="MultiMesh" /> + <argument index="1" name="texture" type="Texture2D" /> <description> Draws a [MultiMesh] in 2D with the provided texture. See [MultiMeshInstance2D] for related documentation. </description> </method> <method name="draw_polygon"> - <return type="void"> - </return> - <argument index="0" name="points" type="PackedVector2Array"> - </argument> - <argument index="1" name="colors" type="PackedColorArray"> - </argument> - <argument index="2" name="uvs" type="PackedVector2Array" default="PackedVector2Array()"> - </argument> - <argument index="3" name="texture" type="Texture2D" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="points" type="PackedVector2Array" /> + <argument index="1" name="colors" type="PackedColorArray" /> + <argument index="2" name="uvs" type="PackedVector2Array" default="PackedVector2Array()" /> + <argument index="3" name="texture" type="Texture2D" default="null" /> <description> Draws a polygon of any amount of points, convex or concave. </description> </method> <method name="draw_polyline"> - <return type="void"> - </return> - <argument index="0" name="points" type="PackedVector2Array"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <argument index="2" name="width" type="float" default="1.0"> - </argument> - <argument index="3" name="antialiased" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="points" type="PackedVector2Array" /> + <argument index="1" name="color" type="Color" /> + <argument index="2" name="width" type="float" default="1.0" /> + <argument index="3" name="antialiased" type="bool" default="false" /> <description> Draws interconnected line segments with a uniform [code]color[/code] and [code]width[/code]. </description> </method> <method name="draw_polyline_colors"> - <return type="void"> - </return> - <argument index="0" name="points" type="PackedVector2Array"> - </argument> - <argument index="1" name="colors" type="PackedColorArray"> - </argument> - <argument index="2" name="width" type="float" default="1.0"> - </argument> - <argument index="3" name="antialiased" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="points" type="PackedVector2Array" /> + <argument index="1" name="colors" type="PackedColorArray" /> + <argument index="2" name="width" type="float" default="1.0" /> + <argument index="3" name="antialiased" type="bool" default="false" /> <description> Draws interconnected line segments with a uniform [code]width[/code] and segment-by-segment coloring. Colors assigned to line segments match by index between [code]points[/code] and [code]colors[/code]. </description> </method> <method name="draw_primitive"> - <return type="void"> - </return> - <argument index="0" name="points" type="PackedVector2Array"> - </argument> - <argument index="1" name="colors" type="PackedColorArray"> - </argument> - <argument index="2" name="uvs" type="PackedVector2Array"> - </argument> - <argument index="3" name="texture" type="Texture2D" default="null"> - </argument> - <argument index="4" name="width" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="points" type="PackedVector2Array" /> + <argument index="1" name="colors" type="PackedColorArray" /> + <argument index="2" name="uvs" type="PackedVector2Array" /> + <argument index="3" name="texture" type="Texture2D" default="null" /> + <argument index="4" name="width" type="float" default="1.0" /> <description> Draws a custom primitive. 1 point for a point, 2 points for a line, 3 points for a triangle, and 4 points for a quad. </description> </method> <method name="draw_rect"> - <return type="void"> - </return> - <argument index="0" name="rect" type="Rect2"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <argument index="2" name="filled" type="bool" default="true"> - </argument> - <argument index="3" name="width" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="rect" type="Rect2" /> + <argument index="1" name="color" type="Color" /> + <argument index="2" name="filled" type="bool" default="true" /> + <argument index="3" name="width" type="float" default="1.0" /> <description> Draws a rectangle. If [code]filled[/code] is [code]true[/code], the rectangle will be filled with the [code]color[/code] specified. If [code]filled[/code] is [code]false[/code], the rectangle will be drawn as a stroke with the [code]color[/code] and [code]width[/code] specified. [b]Note:[/b] [code]width[/code] is only effective if [code]filled[/code] is [code]false[/code]. </description> </method> <method name="draw_set_transform"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="rotation" type="float" default="0.0"> - </argument> - <argument index="2" name="scale" type="Vector2" default="Vector2(1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="rotation" type="float" default="0.0" /> + <argument index="2" name="scale" type="Vector2" default="Vector2(1, 1)" /> <description> Sets a custom transform for drawing via components. Anything drawn afterwards will be transformed by this. </description> </method> <method name="draw_set_transform_matrix"> - <return type="void"> - </return> - <argument index="0" name="xform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="xform" type="Transform2D" /> <description> Sets a custom transform for drawing via matrix. Anything drawn afterwards will be transformed by this. </description> </method> <method name="draw_string" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="font" type="Font"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="text" type="String"> - </argument> - <argument index="3" name="align" type="int" enum="HAlign" default="0"> - </argument> - <argument index="4" name="width" type="float" default="-1"> - </argument> - <argument index="5" name="size" type="int" default="-1"> - </argument> - <argument index="6" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="7" name="outline_size" type="int" default="0"> - </argument> - <argument index="8" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)"> - </argument> - <argument index="9" name="flags" type="int" default="3"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="Font" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="text" type="String" /> + <argument index="3" name="align" type="int" enum="HAlign" default="0" /> + <argument index="4" name="width" type="float" default="-1" /> + <argument index="5" name="size" type="int" default="-1" /> + <argument index="6" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="7" name="outline_size" type="int" default="0" /> + <argument index="8" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)" /> + <argument index="9" name="flags" type="int" default="3" /> <description> Draws [code]text[/code] using the specified [code]font[/code] at the [code]position[/code] (bottom-left corner using the baseline of the font). The text will have its color multiplied by [code]modulate[/code]. If [code]clip_w[/code] is greater than or equal to 0, the text will be clipped if it exceeds the specified width. [b]Example using the default project font:[/b] @@ -364,223 +254,177 @@ </description> </method> <method name="draw_style_box"> - <return type="void"> - </return> - <argument index="0" name="style_box" type="StyleBox"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> + <return type="void" /> + <argument index="0" name="style_box" type="StyleBox" /> + <argument index="1" name="rect" type="Rect2" /> <description> Draws a styled rectangle. </description> </method> <method name="draw_texture"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture2D"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> - <argument index="2" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture2D" /> + <argument index="1" name="position" type="Vector2" /> + <argument index="2" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draws a texture at a given position. </description> </method> <method name="draw_texture_rect"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture2D"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <argument index="2" name="tile" type="bool"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="4" name="transpose" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture2D" /> + <argument index="1" name="rect" type="Rect2" /> + <argument index="2" name="tile" type="bool" /> + <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="4" name="transpose" type="bool" default="false" /> <description> Draws a textured rectangle at a given position, optionally modulated by a color. If [code]transpose[/code] is [code]true[/code], the texture will have its X and Y coordinates swapped. </description> </method> <method name="draw_texture_rect_region"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture2D"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <argument index="2" name="src_rect" type="Rect2"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="4" name="transpose" type="bool" default="false"> - </argument> - <argument index="5" name="clip_uv" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture2D" /> + <argument index="1" name="rect" type="Rect2" /> + <argument index="2" name="src_rect" type="Rect2" /> + <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="4" name="transpose" type="bool" default="false" /> + <argument index="5" name="clip_uv" type="bool" default="true" /> <description> Draws a textured rectangle region at a given position, optionally modulated by a color. If [code]transpose[/code] is [code]true[/code], the texture will have its X and Y coordinates swapped. </description> </method> <method name="force_update_transform"> - <return type="void"> - </return> + <return type="void" /> <description> Forces the transform to update. Transform changes in physics are not instant for performance reasons. Transforms are accumulated and then set. Use this if you need an up-to-date transform when doing physics operations. </description> </method> <method name="get_canvas" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the [RID] of the [World2D] canvas where this item is in. </description> </method> <method name="get_canvas_item" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the canvas item RID used by [RenderingServer] for this item. </description> </method> <method name="get_canvas_transform" qualifiers="const"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Returns the transform matrix of this item's canvas. </description> </method> <method name="get_global_mouse_position" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the global position of the mouse. </description> </method> <method name="get_global_transform" qualifiers="const"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Returns the global transform matrix of this item. </description> </method> <method name="get_global_transform_with_canvas" qualifiers="const"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Returns the global transform matrix of this item in relation to the canvas. </description> </method> <method name="get_local_mouse_position" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the mouse position relative to this item's position. </description> </method> <method name="get_transform" qualifiers="const"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Returns the transform matrix of this item. </description> </method> <method name="get_viewport_rect" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns the viewport's boundaries as a [Rect2]. </description> </method> <method name="get_viewport_transform" qualifiers="const"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Returns this item's transform in relation to the viewport. </description> </method> <method name="get_world_2d" qualifiers="const"> - <return type="World2D"> - </return> + <return type="World2D" /> <description> Returns the [World2D] where this item is in. </description> </method> <method name="hide"> - <return type="void"> - </return> + <return type="void" /> <description> Hide the [CanvasItem] if it's currently visible. </description> </method> <method name="is_local_transform_notification_enabled" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if local transform notifications are communicated to children. </description> </method> <method name="is_transform_notification_enabled" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if global transform notifications are communicated to children. </description> </method> <method name="is_visible_in_tree" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the node is present in the [SceneTree], its [member visible] property is [code]true[/code] and all its antecedents are also visible. If any antecedent is hidden, this node will not be visible in the scene tree. </description> </method> <method name="make_canvas_position_local" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="screen_point" type="Vector2" /> <description> Assigns [code]screen_point[/code] as this node's new local transform. </description> </method> <method name="make_input_local" qualifiers="const"> - <return type="InputEvent"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> + <return type="InputEvent" /> + <argument index="0" name="event" type="InputEvent" /> <description> Transformations issued by [code]event[/code]'s inputs are applied in local space instead of global space. </description> </method> <method name="set_notify_local_transform"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> If [code]enable[/code] is [code]true[/code], children will be updated with local transform data. </description> </method> <method name="set_notify_transform"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> If [code]enable[/code] is [code]true[/code], children will be updated with global transform data. </description> </method> <method name="show"> - <return type="void"> - </return> + <return type="void" /> <description> Show the [CanvasItem] if it's currently hidden. For controls that inherit [Popup], the correct way to make them visible is to call one of the multiple [code]popup*()[/code] functions instead. </description> </method> <method name="update"> - <return type="void"> - </return> + <return type="void" /> <description> Queue the [CanvasItem] for update. [constant NOTIFICATION_DRAW] will be called on idle time to request redraw. </description> diff --git a/doc/classes/CanvasLayer.xml b/doc/classes/CanvasLayer.xml index eb99368079..616fb24a6f 100644 --- a/doc/classes/CanvasLayer.xml +++ b/doc/classes/CanvasLayer.xml @@ -13,8 +13,7 @@ </tutorials> <methods> <method name="get_canvas" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the RID of the canvas used by this layer. </description> diff --git a/doc/classes/CharacterBody2D.xml b/doc/classes/CharacterBody2D.xml index e184e7dc82..1ace7ee6bf 100644 --- a/doc/classes/CharacterBody2D.xml +++ b/doc/classes/CharacterBody2D.xml @@ -16,24 +16,20 @@ </tutorials> <methods> <method name="get_floor_normal" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the surface normal of the floor at the last collision point. Only valid after calling [method move_and_slide] and when [method is_on_floor] returns [code]true[/code]. </description> </method> <method name="get_floor_velocity" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the linear velocity of the floor at the last collision point. Only valid after calling [method move_and_slide] and when [method is_on_floor] returns [code]true[/code]. </description> </method> <method name="get_slide_collision"> - <return type="KinematicCollision2D"> - </return> - <argument index="0" name="slide_idx" type="int"> - </argument> + <return type="KinematicCollision2D" /> + <argument index="0" name="slide_idx" type="int" /> <description> Returns a [KinematicCollision2D], which contains information about a collision that occurred during the last call to [method move_and_slide]. Since the body can collide several times in a single call to [method move_and_slide], you must specify the index of the collision in the range 0 to ([method get_slide_count] - 1). [b]Example usage:[/b] @@ -54,36 +50,31 @@ </description> </method> <method name="get_slide_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of times the body collided and changed direction during the last call to [method move_and_slide]. </description> </method> <method name="is_on_ceiling" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the body collided with the ceiling on the last call of [method move_and_slide]. Otherwise, returns [code]false[/code]. </description> </method> <method name="is_on_floor" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the body collided with the floor on the last call of [method move_and_slide]. Otherwise, returns [code]false[/code]. </description> </method> <method name="is_on_wall" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the body collided with a wall on the last call of [method move_and_slide]. Otherwise, returns [code]false[/code]. </description> </method> <method name="move_and_slide"> - <return type="void"> - </return> + <return type="void" /> <description> Moves the body based on [member linear_velocity]. If the body collides with another, it will slide along the other body rather than stop immediately. If the other body is a [CharacterBody2D] or [RigidBody2D], it will also be affected by the motion of the other body. You can use this to make moving and rotating platforms, or to make nodes push other nodes. This method should be used in [method Node._physics_process] (or in a method called by [method Node._physics_process]), as it uses the physics step's [code]delta[/code] value automatically in calculations. Otherwise, the simulation will run at an incorrect speed. diff --git a/doc/classes/CharacterBody3D.xml b/doc/classes/CharacterBody3D.xml index c76e02fac0..577ab5e84c 100644 --- a/doc/classes/CharacterBody3D.xml +++ b/doc/classes/CharacterBody3D.xml @@ -17,59 +17,50 @@ </tutorials> <methods> <method name="get_floor_normal" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the surface normal of the floor at the last collision point. Only valid after calling [method move_and_slide] and when [method is_on_floor] returns [code]true[/code]. </description> </method> <method name="get_floor_velocity" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the linear velocity of the floor at the last collision point. Only valid after calling [method move_and_slide] and when [method is_on_floor] returns [code]true[/code]. </description> </method> <method name="get_slide_collision"> - <return type="KinematicCollision3D"> - </return> - <argument index="0" name="slide_idx" type="int"> - </argument> + <return type="KinematicCollision3D" /> + <argument index="0" name="slide_idx" type="int" /> <description> Returns a [KinematicCollision3D], which contains information about a collision that occurred during the last call to [method move_and_slide]. Since the body can collide several times in a single call to [method move_and_slide], you must specify the index of the collision in the range 0 to ([method get_slide_count] - 1). </description> </method> <method name="get_slide_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of times the body collided and changed direction during the last call to [method move_and_slide]. </description> </method> <method name="is_on_ceiling" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the body collided with the ceiling on the last call of [method move_and_slide]. Otherwise, returns [code]false[/code]. </description> </method> <method name="is_on_floor" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the body collided with the floor on the last call of [method move_and_slide]. Otherwise, returns [code]false[/code]. </description> </method> <method name="is_on_wall" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the body collided with a wall on the last call of [method move_and_slide]. Otherwise, returns [code]false[/code]. </description> </method> <method name="move_and_slide"> - <return type="void"> - </return> + <return type="void" /> <description> Moves the body based on [member linear_velocity]. If the body collides with another, it will slide along the other body rather than stop immediately. If the other body is a [CharacterBody3D] or [RigidBody3D], it will also be affected by the motion of the other body. You can use this to make moving and rotating platforms, or to make nodes push other nodes. This method should be used in [method Node._physics_process] (or in a method called by [method Node._physics_process]), as it uses the physics step's [code]delta[/code] value automatically in calculations. Otherwise, the simulation will run at an incorrect speed. diff --git a/doc/classes/ClassDB.xml b/doc/classes/ClassDB.xml index 028781d313..063233fe50 100644 --- a/doc/classes/ClassDB.xml +++ b/doc/classes/ClassDB.xml @@ -10,208 +10,155 @@ </tutorials> <methods> <method name="can_instantiate" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="class" type="StringName" /> <description> Returns [code]true[/code] if you can instance objects from the specified [code]class[/code], [code]false[/code] in other case. </description> </method> <method name="class_exists" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="class" type="StringName" /> <description> Returns whether the specified [code]class[/code] is available or not. </description> </method> <method name="class_get_category" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> + <return type="StringName" /> + <argument index="0" name="class" type="StringName" /> <description> Returns a category associated with the class for use in documentation and the Asset Library. Debug mode required. </description> </method> <method name="class_get_integer_constant" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> + <return type="int" /> + <argument index="0" name="class" type="StringName" /> + <argument index="1" name="name" type="StringName" /> <description> Returns the value of the integer constant [code]name[/code] of [code]class[/code] or its ancestry. Always returns 0 when the constant could not be found. </description> </method> <method name="class_get_integer_constant_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> - <argument index="1" name="no_inheritance" type="bool" default="false"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="class" type="StringName" /> + <argument index="1" name="no_inheritance" type="bool" default="false" /> <description> Returns an array with the names all the integer constants of [code]class[/code] or its ancestry. </description> </method> <method name="class_get_method_list" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> - <argument index="1" name="no_inheritance" type="bool" default="false"> - </argument> + <return type="Array" /> + <argument index="0" name="class" type="StringName" /> + <argument index="1" name="no_inheritance" type="bool" default="false" /> <description> Returns an array with all the methods of [code]class[/code] or its ancestry if [code]no_inheritance[/code] is [code]false[/code]. Every element of the array is a [Dictionary] with the following keys: [code]args[/code], [code]default_args[/code], [code]flags[/code], [code]id[/code], [code]name[/code], [code]return: (class_name, hint, hint_string, name, type, usage)[/code]. [b]Note:[/code] In exported release builds the debug info is not available, so the returned dictionaries will contain only method names. </description> </method> <method name="class_get_property" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="property" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="object" type="Object" /> + <argument index="1" name="property" type="StringName" /> <description> Returns the value of [code]property[/code] of [code]class[/code] or its ancestry. </description> </method> <method name="class_get_property_list" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> - <argument index="1" name="no_inheritance" type="bool" default="false"> - </argument> + <return type="Array" /> + <argument index="0" name="class" type="StringName" /> + <argument index="1" name="no_inheritance" type="bool" default="false" /> <description> Returns an array with all the properties of [code]class[/code] or its ancestry if [code]no_inheritance[/code] is [code]false[/code]. </description> </method> <method name="class_get_signal" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> - <argument index="1" name="signal" type="StringName"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="class" type="StringName" /> + <argument index="1" name="signal" type="StringName" /> <description> Returns the [code]signal[/code] data of [code]class[/code] or its ancestry. The returned value is a [Dictionary] with the following keys: [code]args[/code], [code]default_args[/code], [code]flags[/code], [code]id[/code], [code]name[/code], [code]return: (class_name, hint, hint_string, name, type, usage)[/code]. </description> </method> <method name="class_get_signal_list" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> - <argument index="1" name="no_inheritance" type="bool" default="false"> - </argument> + <return type="Array" /> + <argument index="0" name="class" type="StringName" /> + <argument index="1" name="no_inheritance" type="bool" default="false" /> <description> Returns an array with all the signals of [code]class[/code] or its ancestry if [code]no_inheritance[/code] is [code]false[/code]. Every element of the array is a [Dictionary] as described in [method class_get_signal]. </description> </method> <method name="class_has_integer_constant" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="class" type="StringName" /> + <argument index="1" name="name" type="StringName" /> <description> Returns whether [code]class[/code] or its ancestry has an integer constant called [code]name[/code] or not. </description> </method> <method name="class_has_method" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> - <argument index="1" name="method" type="StringName"> - </argument> - <argument index="2" name="no_inheritance" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="class" type="StringName" /> + <argument index="1" name="method" type="StringName" /> + <argument index="2" name="no_inheritance" type="bool" default="false" /> <description> Returns whether [code]class[/code] (or its ancestry if [code]no_inheritance[/code] is [code]false[/code]) has a method called [code]method[/code] or not. </description> </method> <method name="class_has_signal" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> - <argument index="1" name="signal" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="class" type="StringName" /> + <argument index="1" name="signal" type="StringName" /> <description> Returns whether [code]class[/code] or its ancestry has a signal called [code]signal[/code] or not. </description> </method> <method name="class_set_property" qualifiers="const"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="property" type="StringName"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="object" type="Object" /> + <argument index="1" name="property" type="StringName" /> + <argument index="2" name="value" type="Variant" /> <description> Sets [code]property[/code] value of [code]class[/code] to [code]value[/code]. </description> </method> <method name="get_class_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns the names of all the classes available. </description> </method> <method name="get_inheriters_from_class" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="class" type="StringName" /> <description> Returns the names of all the classes that directly or indirectly inherit from [code]class[/code]. </description> </method> <method name="get_parent_class" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> + <return type="StringName" /> + <argument index="0" name="class" type="StringName" /> <description> Returns the parent class of [code]class[/code]. </description> </method> <method name="instantiate" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="class" type="StringName" /> <description> Creates an instance of [code]class[/code]. </description> </method> <method name="is_class_enabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="class" type="StringName" /> <description> Returns whether this [code]class[/code] is enabled or not. </description> </method> <method name="is_parent_class" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class" type="StringName"> - </argument> - <argument index="1" name="inherits" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="class" type="StringName" /> + <argument index="1" name="inherits" type="StringName" /> <description> Returns whether [code]inherits[/code] is an ancestor of [code]class[/code] or not. </description> diff --git a/doc/classes/ClippedCamera3D.xml b/doc/classes/ClippedCamera3D.xml index 9116af19c3..1a76412826 100644 --- a/doc/classes/ClippedCamera3D.xml +++ b/doc/classes/ClippedCamera3D.xml @@ -10,72 +10,57 @@ </tutorials> <methods> <method name="add_exception"> - <return type="void"> - </return> - <argument index="0" name="node" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Object" /> <description> Adds a collision exception so the camera does not collide with the specified node. </description> </method> <method name="add_exception_rid"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Adds a collision exception so the camera does not collide with the specified [RID]. </description> </method> <method name="clear_exceptions"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all collision exceptions. </description> </method> <method name="get_clip_offset" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the distance the camera has been offset due to a collision. </description> </method> <method name="get_collision_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns [code]true[/code] if the specified bit index is on. [b]Note:[/b] Bit indices range from 0-19. </description> </method> <method name="remove_exception"> - <return type="void"> - </return> - <argument index="0" name="node" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Object" /> <description> Removes a collision exception with the specified node. </description> </method> <method name="remove_exception_rid"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Removes a collision exception with the specified [RID]. </description> </method> <method name="set_collision_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> Sets the specified bit index to the [code]value[/code]. [b]Note:[/b] Bit indices range from 0-19. diff --git a/doc/classes/CodeEdit.xml b/doc/classes/CodeEdit.xml index 30fd47cdb6..6a3f38f51e 100644 --- a/doc/classes/CodeEdit.xml +++ b/doc/classes/CodeEdit.xml @@ -9,62 +9,45 @@ </tutorials> <methods> <method name="_confirm_code_completion" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="replace" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="replace" type="bool" /> <description> Override this method to define how the selected entry should be inserted. If [code]replace[/code] is true, any existing text should be replaced. </description> </method> <method name="_filter_code_completion_candidates" qualifiers="virtual"> - <return type="Array"> - </return> - <argument index="0" name="candidates" type="Array"> - </argument> + <return type="Array" /> + <argument index="0" name="candidates" type="Array" /> <description> Override this method to define what items in [code]candidates[/code] should be displayed. Both [code]candidates[/code] and the return is a [Array] of [Dictionary], see [method get_code_completion_option] for [Dictionary] content. </description> </method> <method name="_request_code_completion" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="force" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="bool" /> <description> Override this method to define what happens when the user requests code completion. If [code]force[/code] is true, any checks should be bypassed. </description> </method> <method name="add_code_completion_option"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="CodeEdit.CodeCompletionKind"> - </argument> - <argument index="1" name="display_text" type="String"> - </argument> - <argument index="2" name="insert_text" type="String"> - </argument> - <argument index="3" name="text_color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="4" name="icon" type="Resource" default="null"> - </argument> - <argument index="5" name="value" type="Variant" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="CodeEdit.CodeCompletionKind" /> + <argument index="1" name="display_text" type="String" /> + <argument index="2" name="insert_text" type="String" /> + <argument index="3" name="text_color" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="4" name="icon" type="Resource" default="null" /> + <argument index="5" name="value" type="Variant" default="0" /> <description> Submits an item to the queue of potential candidates for the autocomplete menu. Call [method update_code_completion_options] to update the list. [b]Note[/b]: This list will replace all current candidates. </description> </method> <method name="add_comment_delimiter"> - <return type="void"> - </return> - <argument index="0" name="start_key" type="String"> - </argument> - <argument index="1" name="end_key" type="String"> - </argument> - <argument index="2" name="line_only" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="start_key" type="String" /> + <argument index="1" name="end_key" type="String" /> + <argument index="2" name="line_only" type="bool" default="false" /> <description> Adds a comment delimiter. Both the start and end keys must be symbols. Only the start key has to be unique. @@ -72,14 +55,10 @@ </description> </method> <method name="add_string_delimiter"> - <return type="void"> - </return> - <argument index="0" name="start_key" type="String"> - </argument> - <argument index="1" name="end_key" type="String"> - </argument> - <argument index="2" name="line_only" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="start_key" type="String" /> + <argument index="1" name="end_key" type="String" /> + <argument index="2" name="line_only" type="bool" default="false" /> <description> Adds a string delimiter. Both the start and end keys must be symbols. Only the start key has to be unique. @@ -87,109 +66,90 @@ </description> </method> <method name="can_fold_line" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="line" type="int" /> <description> Returns if the given line is foldable, that is, it has indented lines right below it or a comment / string block. </description> </method> <method name="cancel_code_completion"> - <return type="void"> - </return> + <return type="void" /> <description> Cancels the autocomplete menu. </description> </method> <method name="clear_bookmarked_lines"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="clear_breakpointed_lines"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="clear_comment_delimiters"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all comment delimiters. </description> </method> <method name="clear_executing_lines"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="clear_string_delimiters"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all string delimiters. </description> </method> <method name="confirm_code_completion"> - <return type="void"> - </return> - <argument index="0" name="replace" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="replace" type="bool" default="false" /> <description> Inserts the selected entry into the text. If [code]replace[/code] is true, any existing text is replaced rather then merged. </description> </method> <method name="do_indent"> - <return type="void"> - </return> + <return type="void" /> <description> Perform an indent as if the user activated the "ui_text_indent" action. </description> </method> <method name="do_unindent"> - <return type="void"> - </return> + <return type="void" /> <description> Perform an unindent as if the user activated the "ui_text_unindent" action. </description> </method> <method name="fold_all_lines"> - <return type="void"> - </return> + <return type="void" /> <description> Folds all lines that are possible to be folded (see [method can_fold_line]). </description> </method> <method name="fold_line"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> <description> Folds the given line, if possible (see [method can_fold_line]). </description> </method> <method name="get_bookmarked_lines" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_breakpointed_lines" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_code_completion_option" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="index" type="int" /> <description> Gets the completion option at [code]index[/code]. The return [Dictionary] has the following key-values: [code]kind[/code]: [enum CodeCompletionKind] @@ -201,279 +161,216 @@ </description> </method> <method name="get_code_completion_options" qualifiers="const"> - <return type="Dictionary[]"> - </return> + <return type="Dictionary[]" /> <description> Gets all completion options, see [method get_code_completion_option] for return content. </description> </method> <method name="get_code_completion_selected_index" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Gets the index of the current selected completion option. </description> </method> <method name="get_delimiter_end_key" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="delimiter_index" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="delimiter_index" type="int" /> <description> Gets the end key for a string or comment region index. </description> </method> <method name="get_delimiter_end_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="column" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="column" type="int" /> <description> If [code]line[/code] [code]column[/code] is in a string or comment, returns the end position of the region. If not or no end could be found, both [Vector2] values will be [code]-1[/code]. </description> </method> <method name="get_delimiter_start_key" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="delimiter_index" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="delimiter_index" type="int" /> <description> Gets the start key for a string or comment region index. </description> </method> <method name="get_delimiter_start_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="column" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="column" type="int" /> <description> If [code]line[/code] [code]column[/code] is in a string or comment, returns the start position of the region. If not or no start could be found, both [Vector2] values will be [code]-1[/code]. </description> </method> <method name="get_executing_lines" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_folded_lines" qualifiers="const"> - <return type="int[]"> - </return> + <return type="int[]" /> <description> Return all lines that are current folded. </description> </method> <method name="get_text_for_code_completion" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the full text with char [code]0xFFFF[/code] at the caret location. </description> </method> <method name="has_comment_delimiter" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="start_key" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="start_key" type="String" /> <description> Returns [code]true[/code] if comment [code]start_key[/code] exists. </description> </method> <method name="has_string_delimiter" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="start_key" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="start_key" type="String" /> <description> Returns [code]true[/code] if string [code]start_key[/code] exists. </description> </method> <method name="indent_lines"> - <return type="void"> - </return> + <return type="void" /> <description> Indents selected lines, or in the case of no selection the caret line by one. </description> </method> <method name="is_in_comment" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="column" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="column" type="int" default="-1" /> <description> Return delimiter index if [code]line[/code] [code]column[/code] is in a comment. If [code]column[/code] is not provided, will return delimiter index if the entire [code]line[/code] is a comment. Otherwise [code]-1[/code]. </description> </method> <method name="is_in_string" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="column" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="column" type="int" default="-1" /> <description> Return the delimiter index if [code]line[/code] [code]column[/code] is in a string. If [code]column[/code] is not provided, will return the delimiter index if the entire [code]line[/code] is a string. Otherwise [code]-1[/code]. </description> </method> <method name="is_line_bookmarked" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="line" type="int" /> <description> </description> </method> <method name="is_line_breakpointed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="line" type="int" /> <description> </description> </method> <method name="is_line_executing" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="line" type="int" /> <description> </description> </method> <method name="is_line_folded" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="line" type="int" /> <description> Returns whether the line at the specified index is folded or not. </description> </method> <method name="remove_comment_delimiter"> - <return type="void"> - </return> - <argument index="0" name="start_key" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="start_key" type="String" /> <description> Removes the comment delimiter with [code]start_key[/code]. </description> </method> <method name="remove_string_delimiter"> - <return type="void"> - </return> - <argument index="0" name="start_key" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="start_key" type="String" /> <description> Removes the string delimiter with [code]start_key[/code]. </description> </method> <method name="request_code_completion"> - <return type="void"> - </return> - <argument index="0" name="force" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="bool" default="false" /> <description> Emits [signal request_code_completion], if [code]force[/code] is true will bypass all checks. Otherwise will check that the caret is in a word or in front of a prefix. Will ignore the request if all current options are of type file path, node path or signal. </description> </method> <method name="set_code_completion_selected_index"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Sets the current selected completion option. </description> </method> <method name="set_code_hint"> - <return type="void"> - </return> - <argument index="0" name="code_hint" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="code_hint" type="String" /> <description> Sets the code hint text. Pass an empty string to clear. </description> </method> <method name="set_code_hint_draw_below"> - <return type="void"> - </return> - <argument index="0" name="draw_below" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="draw_below" type="bool" /> <description> Sets if the code hint should draw below the text. </description> </method> <method name="set_line_as_bookmarked"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="bookmarked" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="bookmarked" type="bool" /> <description> </description> </method> <method name="set_line_as_breakpoint"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="breakpointed" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="breakpointed" type="bool" /> <description> </description> </method> <method name="set_line_as_executing"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="executing" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="executing" type="bool" /> <description> </description> </method> <method name="toggle_foldable_line"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> <description> Toggle the folding of the code block at the given line. </description> </method> <method name="unfold_all_lines"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="unfold_line"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> <description> Unfolds all lines that were previously folded. </description> </method> <method name="unindent_lines"> - <return type="void"> - </return> + <return type="void" /> <description> Unindents selected lines, or in the case of no selection the caret line by one. </description> </method> <method name="update_code_completion_options"> - <return type="void"> - </return> - <argument index="0" name="force" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="bool" /> <description> Submits all completion options added with [method add_code_completion_option]. Will try to force the autoccomplete menu to popup, if [code]force[/code] is [code]true[/code]. [b]Note[/b]: This will replace all current candidates. @@ -526,8 +423,7 @@ </members> <signals> <signal name="breakpoint_toggled"> - <argument index="0" name="line" type="int"> - </argument> + <argument index="0" name="line" type="int" /> <description> </description> </signal> diff --git a/doc/classes/CodeHighlighter.xml b/doc/classes/CodeHighlighter.xml index 0406c25ffd..2b93188d10 100644 --- a/doc/classes/CodeHighlighter.xml +++ b/doc/classes/CodeHighlighter.xml @@ -10,16 +10,11 @@ </tutorials> <methods> <method name="add_color_region"> - <return type="void"> - </return> - <argument index="0" name="start_key" type="String"> - </argument> - <argument index="1" name="end_key" type="String"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> - <argument index="3" name="line_only" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="start_key" type="String" /> + <argument index="1" name="end_key" type="String" /> + <argument index="2" name="color" type="Color" /> + <argument index="3" name="line_only" type="bool" default="false" /> <description> Adds a color region such as comments or strings. Both the start and end keys must be symbols. Only the start key has to be unique. @@ -27,24 +22,18 @@ </description> </method> <method name="add_keyword_color"> - <return type="void"> - </return> - <argument index="0" name="keyword" type="String"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="keyword" type="String" /> + <argument index="1" name="color" type="Color" /> <description> Sets the color for a keyword. The keyword cannot contain any symbols except '_'. </description> </method> <method name="add_member_keyword_color"> - <return type="void"> - </return> - <argument index="0" name="member_keyword" type="String"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="member_keyword" type="String" /> + <argument index="1" name="color" type="Color" /> <description> Sets the color for a member keyword. The member keyword cannot contain any symbols except '_'. @@ -52,94 +41,75 @@ </description> </method> <method name="clear_color_regions"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all color regions. </description> </method> <method name="clear_keyword_colors"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all keywords. </description> </method> <method name="clear_member_keyword_colors"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all member keywords. </description> </method> <method name="get_keyword_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="keyword" type="String"> - </argument> + <return type="Color" /> + <argument index="0" name="keyword" type="String" /> <description> Returns the color for a keyword. </description> </method> <method name="get_member_keyword_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="member_keyword" type="String"> - </argument> + <return type="Color" /> + <argument index="0" name="member_keyword" type="String" /> <description> Returns the color for a member keyword. </description> </method> <method name="has_color_region" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="start_key" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="start_key" type="String" /> <description> Return [code]true[/code] if the start key exists, else [code]false[/code]. </description> </method> <method name="has_keyword_color" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="keyword" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="keyword" type="String" /> <description> Return [code]true[/code] if the keyword exists, else [code]false[/code]. </description> </method> <method name="has_member_keyword_color" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="member_keyword" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="member_keyword" type="String" /> <description> Return [code]true[/code] if the member keyword exists, else [code]false[/code]. </description> </method> <method name="remove_color_region"> - <return type="void"> - </return> - <argument index="0" name="start_key" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="start_key" type="String" /> <description> Removes the color region that uses that start key. </description> </method> <method name="remove_keyword_color"> - <return type="void"> - </return> - <argument index="0" name="keyword" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="keyword" type="String" /> <description> Removes the keyword. </description> </method> <method name="remove_member_keyword_color"> - <return type="void"> - </return> - <argument index="0" name="member_keyword" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="member_keyword" type="String" /> <description> Removes the member keyword. </description> diff --git a/doc/classes/CollisionObject2D.xml b/doc/classes/CollisionObject2D.xml index 097bbc2de8..b6269520e1 100644 --- a/doc/classes/CollisionObject2D.xml +++ b/doc/classes/CollisionObject2D.xml @@ -10,248 +10,188 @@ </tutorials> <methods> <method name="_input_event" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="Object"> - </argument> - <argument index="1" name="event" type="InputEvent"> - </argument> - <argument index="2" name="shape_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="Object" /> + <argument index="1" name="event" type="InputEvent" /> + <argument index="2" name="shape_idx" type="int" /> <description> Accepts unhandled [InputEvent]s. Requires [member input_pickable] to be [code]true[/code]. [code]shape_idx[/code] is the child index of the clicked [Shape2D]. Connect to the [code]input_event[/code] signal to easily pick up these events. </description> </method> <method name="create_shape_owner"> - <return type="int"> - </return> - <argument index="0" name="owner" type="Object"> - </argument> + <return type="int" /> + <argument index="0" name="owner" type="Object" /> <description> Creates a new shape owner for the given object. Returns [code]owner_id[/code] of the new owner for future reference. </description> </method> <method name="get_collision_layer_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns whether or not the specified [code]bit[/code] of the [member collision_layer] is set. </description> </method> <method name="get_collision_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns whether or not the specified [code]bit[/code] of the [member collision_mask] is set. </description> </method> <method name="get_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the object's [RID]. </description> </method> <method name="get_shape_owner_one_way_collision_margin" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="owner_id" type="int" /> <description> Returns the [code]one_way_collision_margin[/code] of the shape owner identified by given [code]owner_id[/code]. </description> </method> <method name="get_shape_owners"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an [Array] of [code]owner_id[/code] identifiers. You can use these ids in other methods that take [code]owner_id[/code] as an argument. </description> </method> <method name="is_shape_owner_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="owner_id" type="int" /> <description> If [code]true[/code], the shape owner and its shapes are disabled. </description> </method> <method name="is_shape_owner_one_way_collision_enabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="owner_id" type="int" /> <description> Returns [code]true[/code] if collisions for the shape owner originating from this [CollisionObject2D] will not be reported to collided with [CollisionObject2D]s. </description> </method> <method name="remove_shape_owner"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> <description> Removes the given shape owner. </description> </method> <method name="set_collision_layer_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> If [code]value[/code] is [code]true[/code], sets the specified [code]bit[/code] in the the [member collision_layer]. If [code]value[/code] is [code]false[/code], clears the specified [code]bit[/code] in the the [member collision_layer]. </description> </method> <method name="set_collision_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> If [code]value[/code] is [code]true[/code], sets the specified [code]bit[/code] in the the [member collision_mask]. If [code]value[/code] is [code]false[/code], clears the specified [code]bit[/code] in the the [member collision_mask]. </description> </method> <method name="shape_find_owner" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="shape_index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="shape_index" type="int" /> <description> Returns the [code]owner_id[/code] of the given shape. </description> </method> <method name="shape_owner_add_shape"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="shape" type="Shape2D"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="shape" type="Shape2D" /> <description> Adds a [Shape2D] to the shape owner. </description> </method> <method name="shape_owner_clear_shapes"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> <description> Removes all shapes from the shape owner. </description> </method> <method name="shape_owner_get_owner" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="Object" /> + <argument index="0" name="owner_id" type="int" /> <description> Returns the parent object of the given shape owner. </description> </method> <method name="shape_owner_get_shape" qualifiers="const"> - <return type="Shape2D"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="shape_id" type="int"> - </argument> + <return type="Shape2D" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="shape_id" type="int" /> <description> Returns the [Shape2D] with the given id from the given shape owner. </description> </method> <method name="shape_owner_get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="owner_id" type="int" /> <description> Returns the number of shapes the given shape owner contains. </description> </method> <method name="shape_owner_get_shape_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="shape_id" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="shape_id" type="int" /> <description> Returns the child index of the [Shape2D] with the given id from the given shape owner. </description> </method> <method name="shape_owner_get_transform" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="owner_id" type="int" /> <description> Returns the shape owner's [Transform2D]. </description> </method> <method name="shape_owner_remove_shape"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="shape_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="shape_id" type="int" /> <description> Removes a shape from the given shape owner. </description> </method> <method name="shape_owner_set_disabled"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="disabled" type="bool" /> <description> If [code]true[/code], disables the given shape owner. </description> </method> <method name="shape_owner_set_one_way_collision"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]enable[/code] is [code]true[/code], collisions for the shape owner originating from this [CollisionObject2D] will not be reported to collided with [CollisionObject2D]s. </description> </method> <method name="shape_owner_set_one_way_collision_margin"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="margin" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="margin" type="float" /> <description> Sets the [code]one_way_collision_margin[/code] of the shape owner identified by given [code]owner_id[/code] to [code]margin[/code] pixels. </description> </method> <method name="shape_owner_set_transform"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="transform" type="Transform2D" /> <description> Sets the [Transform2D] of the given shape owner. </description> @@ -275,12 +215,9 @@ </members> <signals> <signal name="input_event"> - <argument index="0" name="viewport" type="Node"> - </argument> - <argument index="1" name="event" type="InputEvent"> - </argument> - <argument index="2" name="shape_idx" type="int"> - </argument> + <argument index="0" name="viewport" type="Node" /> + <argument index="1" name="event" type="InputEvent" /> + <argument index="2" name="shape_idx" type="int" /> <description> Emitted when an input event occurs. Requires [member input_pickable] to be [code]true[/code] and at least one [code]collision_layer[/code] bit to be set. See [method _input_event] for details. </description> @@ -296,15 +233,13 @@ </description> </signal> <signal name="mouse_shape_entered"> - <argument index="0" name="shape_idx" type="int"> - </argument> + <argument index="0" name="shape_idx" type="int" /> <description> Emitted when the mouse pointer enters any of this object's shapes or moves from one shape to another. [code]shape_idx[/code] is the child index of the newly entered [Shape2D]. Requires [member input_pickable] to be [code]true[/code] and at least one [member collision_layer] bit to be set. </description> </signal> <signal name="mouse_shape_exited"> - <argument index="0" name="shape_idx" type="int"> - </argument> + <argument index="0" name="shape_idx" type="int" /> <description> Emitted when the mouse pointer exits any of this object's shapes. [code]shape_idx[/code] is the child index of the exited [Shape2D]. Requires [member input_pickable] to be [code]true[/code] and at least one [member collision_layer] bit to be set. </description> diff --git a/doc/classes/CollisionObject3D.xml b/doc/classes/CollisionObject3D.xml index ac6a84dda6..ecfe758343 100644 --- a/doc/classes/CollisionObject3D.xml +++ b/doc/classes/CollisionObject3D.xml @@ -10,212 +10,160 @@ </tutorials> <methods> <method name="_input_event" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="camera" type="Object"> - </argument> - <argument index="1" name="event" type="InputEvent"> - </argument> - <argument index="2" name="position" type="Vector3"> - </argument> - <argument index="3" name="normal" type="Vector3"> - </argument> - <argument index="4" name="shape_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="camera" type="Object" /> + <argument index="1" name="event" type="InputEvent" /> + <argument index="2" name="position" type="Vector3" /> + <argument index="3" name="normal" type="Vector3" /> + <argument index="4" name="shape_idx" type="int" /> <description> Receives unhandled [InputEvent]s. [code]position[/code] is the location in world space of the mouse pointer on the surface of the shape with index [code]shape_idx[/code] and [code]normal[/code] is the normal vector of the surface at that point. Connect to the [signal input_event] signal to easily pick up these events. </description> </method> <method name="create_shape_owner"> - <return type="int"> - </return> - <argument index="0" name="owner" type="Object"> - </argument> + <return type="int" /> + <argument index="0" name="owner" type="Object" /> <description> Creates a new shape owner for the given object. Returns [code]owner_id[/code] of the new owner for future reference. </description> </method> <method name="get_collision_layer_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns whether or not the specified [code]bit[/code] of the [member collision_layer] is set. </description> </method> <method name="get_collision_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns whether or not the specified [code]bit[/code] of the [member collision_mask] is set. </description> </method> <method name="get_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the object's [RID]. </description> </method> <method name="get_shape_owners"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an [Array] of [code]owner_id[/code] identifiers. You can use these ids in other methods that take [code]owner_id[/code] as an argument. </description> </method> <method name="is_shape_owner_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="owner_id" type="int" /> <description> If [code]true[/code], the shape owner and its shapes are disabled. </description> </method> <method name="remove_shape_owner"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> <description> Removes the given shape owner. </description> </method> <method name="set_collision_layer_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> If [code]value[/code] is [code]true[/code], sets the specified [code]bit[/code] in the the [member collision_layer]. If [code]value[/code] is [code]false[/code], clears the specified [code]bit[/code] in the the [member collision_layer]. </description> </method> <method name="set_collision_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> If [code]value[/code] is [code]true[/code], sets the specified [code]bit[/code] in the the [member collision_mask]. If [code]value[/code] is [code]false[/code], clears the specified [code]bit[/code] in the the [member collision_mask]. </description> </method> <method name="shape_find_owner" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="shape_index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="shape_index" type="int" /> <description> Returns the [code]owner_id[/code] of the given shape. </description> </method> <method name="shape_owner_add_shape"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="shape" type="Shape3D"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="shape" type="Shape3D" /> <description> Adds a [Shape3D] to the shape owner. </description> </method> <method name="shape_owner_clear_shapes"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> <description> Removes all shapes from the shape owner. </description> </method> <method name="shape_owner_get_owner" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="Object" /> + <argument index="0" name="owner_id" type="int" /> <description> Returns the parent object of the given shape owner. </description> </method> <method name="shape_owner_get_shape" qualifiers="const"> - <return type="Shape3D"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="shape_id" type="int"> - </argument> + <return type="Shape3D" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="shape_id" type="int" /> <description> Returns the [Shape3D] with the given id from the given shape owner. </description> </method> <method name="shape_owner_get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="owner_id" type="int" /> <description> Returns the number of shapes the given shape owner contains. </description> </method> <method name="shape_owner_get_shape_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="shape_id" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="shape_id" type="int" /> <description> Returns the child index of the [Shape3D] with the given id from the given shape owner. </description> </method> <method name="shape_owner_get_transform" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="owner_id" type="int" /> <description> Returns the shape owner's [Transform3D]. </description> </method> <method name="shape_owner_remove_shape"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="shape_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="shape_id" type="int" /> <description> Removes a shape from the given shape owner. </description> </method> <method name="shape_owner_set_disabled"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="disabled" type="bool" /> <description> If [code]true[/code], disables the given shape owner. </description> </method> <method name="shape_owner_set_transform"> - <return type="void"> - </return> - <argument index="0" name="owner_id" type="int"> - </argument> - <argument index="1" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="owner_id" type="int" /> + <argument index="1" name="transform" type="Transform3D" /> <description> Sets the [Transform3D] of the given shape owner. </description> @@ -242,16 +190,11 @@ </members> <signals> <signal name="input_event"> - <argument index="0" name="camera" type="Node"> - </argument> - <argument index="1" name="event" type="InputEvent"> - </argument> - <argument index="2" name="position" type="Vector3"> - </argument> - <argument index="3" name="normal" type="Vector3"> - </argument> - <argument index="4" name="shape_idx" type="int"> - </argument> + <argument index="0" name="camera" type="Node" /> + <argument index="1" name="event" type="InputEvent" /> + <argument index="2" name="position" type="Vector3" /> + <argument index="3" name="normal" type="Vector3" /> + <argument index="4" name="shape_idx" type="int" /> <description> Emitted when the object receives an unhandled [InputEvent]. [code]position[/code] is the location in world space of the mouse pointer on the surface of the shape with index [code]shape_idx[/code] and [code]normal[/code] is the normal vector of the surface at that point. </description> diff --git a/doc/classes/CollisionShape3D.xml b/doc/classes/CollisionShape3D.xml index 5590947a4f..9184b672ff 100644 --- a/doc/classes/CollisionShape3D.xml +++ b/doc/classes/CollisionShape3D.xml @@ -14,17 +14,14 @@ </tutorials> <methods> <method name="make_convex_from_siblings"> - <return type="void"> - </return> + <return type="void" /> <description> Sets the collision shape's shape to the addition of all its convexed [MeshInstance3D] siblings geometry. </description> </method> <method name="resource_changed"> - <return type="void"> - </return> - <argument index="0" name="resource" type="Resource"> - </argument> + <return type="void" /> + <argument index="0" name="resource" type="Resource" /> <description> If this method exists within a script it will be called whenever the shape resource has been modified. </description> diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index 7b1415e40d..f00a20e95e 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -17,28 +17,22 @@ </tutorials> <methods> <method name="Color" qualifiers="constructor"> - <return type="Color"> - </return> + <return type="Color" /> <description> Constructs a default-initialized [Color] with all components set to [code]0[/code]. </description> </method> <method name="Color" qualifiers="constructor"> - <return type="Color"> - </return> - <argument index="0" name="from" type="Color"> - </argument> + <return type="Color" /> + <argument index="0" name="from" type="Color" /> <description> Constructs a [Color] as a copy of the given [Color]. </description> </method> <method name="Color" qualifiers="constructor"> - <return type="Color"> - </return> - <argument index="0" name="from" type="Color"> - </argument> - <argument index="1" name="alpha" type="float"> - </argument> + <return type="Color" /> + <argument index="0" name="from" type="Color" /> + <argument index="1" name="alpha" type="float" /> <description> Constructs a [Color] from an existing color, but with a custom alpha value. [codeblocks] @@ -52,36 +46,26 @@ </description> </method> <method name="Color" qualifiers="constructor"> - <return type="Color"> - </return> - <argument index="0" name="code" type="String"> - </argument> + <return type="Color" /> + <argument index="0" name="code" type="String" /> <description> Constructs a [Color] either from an HTML color code or from a standardized color name. Supported color names are the same as the constants. </description> </method> <method name="Color" qualifiers="constructor"> - <return type="Color"> - </return> - <argument index="0" name="code" type="String"> - </argument> - <argument index="1" name="alpha" type="float"> - </argument> + <return type="Color" /> + <argument index="0" name="code" type="String" /> + <argument index="1" name="alpha" type="float" /> <description> Constructs a [Color] either from an HTML color code or from a standardized color name, with [code]alpha[/code] on the range of 0 to 1. Supported color names are the same as the constants. </description> </method> <method name="Color" qualifiers="constructor"> - <return type="Color"> - </return> - <argument index="0" name="r" type="float"> - </argument> - <argument index="1" name="g" type="float"> - </argument> - <argument index="2" name="b" type="float"> - </argument> - <argument index="3" name="a" type="float"> - </argument> + <return type="Color" /> + <argument index="0" name="r" type="float" /> + <argument index="1" name="g" type="float" /> + <argument index="2" name="b" type="float" /> + <argument index="3" name="a" type="float" /> <description> Constructs a [Color] from RGBA values, typically between 0 and 1. [codeblocks] @@ -95,14 +79,10 @@ </description> </method> <method name="Color" qualifiers="constructor"> - <return type="Color"> - </return> - <argument index="0" name="r" type="float"> - </argument> - <argument index="1" name="g" type="float"> - </argument> - <argument index="2" name="b" type="float"> - </argument> + <return type="Color" /> + <argument index="0" name="r" type="float" /> + <argument index="1" name="g" type="float" /> + <argument index="2" name="b" type="float" /> <description> Constructs a [Color] from RGB values, typically between 0 and 1. Alpha will be 1. [codeblocks] @@ -116,10 +96,8 @@ </description> </method> <method name="blend" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="over" type="Color"> - </argument> + <return type="Color" /> + <argument index="0" name="over" type="Color" /> <description> Returns a new color resulting from blending this color over another. If the color is opaque, the result is also opaque. The second color may have a range of alpha values. [codeblocks] @@ -137,21 +115,16 @@ </description> </method> <method name="clamp" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="min" type="Color" default="Color(0, 0, 0, 0)"> - </argument> - <argument index="1" name="max" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="Color" /> + <argument index="0" name="min" type="Color" default="Color(0, 0, 0, 0)" /> + <argument index="1" name="max" type="Color" default="Color(1, 1, 1, 1)" /> <description> Returns a new color with all components clamped between the components of [code]min[/code] and [code]max[/code], by running [method @GlobalScope.clamp] on each component. </description> </method> <method name="darkened" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="amount" type="float"> - </argument> + <return type="Color" /> + <argument index="0" name="amount" type="float" /> <description> Returns a new color resulting from making this color darker by the specified percentage (ratio from 0 to 1). [codeblocks] @@ -167,88 +140,67 @@ </description> </method> <method name="find_named_color" qualifiers="static"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="String" /> <description> </description> </method> <method name="from_rgbe9995" qualifiers="static"> - <return type="Color"> - </return> - <argument index="0" name="rgbe" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="rgbe" type="int" /> <description> </description> </method> <method name="from_string" qualifiers="static"> - <return type="Color"> - </return> - <argument index="0" name="str" type="String"> - </argument> - <argument index="1" name="default" type="Color"> - </argument> + <return type="Color" /> + <argument index="0" name="str" type="String" /> + <argument index="1" name="default" type="Color" /> <description> </description> </method> <method name="get_named_color" qualifiers="static"> - <return type="Color"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="idx" type="int" /> <description> </description> </method> <method name="get_named_color_count" qualifiers="static"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_named_color_name" qualifiers="static"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> </description> </method> <method name="hex" qualifiers="static"> - <return type="Color"> - </return> - <argument index="0" name="hex" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="hex" type="int" /> <description> </description> </method> <method name="hex64" qualifiers="static"> - <return type="Color"> - </return> - <argument index="0" name="hex" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="hex" type="int" /> <description> </description> </method> <method name="html" qualifiers="static"> - <return type="Color"> - </return> - <argument index="0" name="rgba" type="String"> - </argument> + <return type="Color" /> + <argument index="0" name="rgba" type="String" /> <description> </description> </method> <method name="html_is_valid" qualifiers="static"> - <return type="bool"> - </return> - <argument index="0" name="color" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="color" type="String" /> <description> </description> </method> <method name="inverted" qualifiers="const"> - <return type="Color"> - </return> + <return type="Color" /> <description> Returns the inverted color [code](1 - r, 1 - g, 1 - b, a)[/code]. [codeblocks] @@ -264,21 +216,16 @@ </description> </method> <method name="is_equal_approx" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="to" type="Color"> - </argument> + <return type="bool" /> + <argument index="0" name="to" type="Color" /> <description> Returns [code]true[/code] if this color and [code]color[/code] are approximately equal, by running [method @GlobalScope.is_equal_approx] on each component. </description> </method> <method name="lerp" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="to" type="Color"> - </argument> - <argument index="1" name="weight" type="float"> - </argument> + <return type="Color" /> + <argument index="0" name="to" type="Color" /> + <argument index="1" name="weight" type="float" /> <description> Returns the linear interpolation with another color. The interpolation factor [code]weight[/code] is between 0 and 1. [codeblocks] @@ -296,10 +243,8 @@ </description> </method> <method name="lightened" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="amount" type="float"> - </argument> + <return type="Color" /> + <argument index="0" name="amount" type="float" /> <description> Returns a new color resulting from making this color lighter by the specified percentage (ratio from 0 to 1). [codeblocks] @@ -315,108 +260,83 @@ </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Color"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Color" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="right" type="Color"> - </argument> + <return type="Color" /> + <argument index="0" name="right" type="Color" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Color" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="right" type="Color"> - </argument> + <return type="Color" /> + <argument index="0" name="right" type="Color" /> <description> </description> </method> <method name="operator -" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="right" type="Color"> - </argument> + <return type="Color" /> + <argument index="0" name="right" type="Color" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="right" type="Color"> - </argument> + <return type="Color" /> + <argument index="0" name="right" type="Color" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Color" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Color"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Color" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="operator unary+" qualifiers="operator"> - <return type="Color"> - </return> + <return type="Color" /> <description> </description> </method> <method name="operator unary-" qualifiers="operator"> - <return type="Color"> - </return> + <return type="Color" /> <description> </description> </method> <method name="to_abgr32" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the color converted to a 32-bit integer in ABGR format (each byte represents a color channel). ABGR is the reversed version of the default format. [codeblocks] @@ -432,8 +352,7 @@ </description> </method> <method name="to_abgr64" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the color converted to a 64-bit integer in ABGR format (each word represents a color channel). ABGR is the reversed version of the default format. [codeblocks] @@ -449,8 +368,7 @@ </description> </method> <method name="to_argb32" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the color converted to a 32-bit integer in ARGB format (each byte represents a color channel). ARGB is more compatible with DirectX. [codeblocks] @@ -466,8 +384,7 @@ </description> </method> <method name="to_argb64" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the color converted to a 64-bit integer in ARGB format (each word represents a color channel). ARGB is more compatible with DirectX. [codeblocks] @@ -483,10 +400,8 @@ </description> </method> <method name="to_html" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="with_alpha" type="bool" default="true"> - </argument> + <return type="String" /> + <argument index="0" name="with_alpha" type="bool" default="true" /> <description> Returns the color converted to an HTML hexadecimal color string in RGBA format (ex: [code]ff34f822[/code]). Setting [code]with_alpha[/code] to [code]false[/code] excludes alpha from the hexadecimal string (and uses RGB instead of RGBA format). @@ -505,8 +420,7 @@ </description> </method> <method name="to_rgba32" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the color converted to a 32-bit integer in RGBA format (each byte represents a color channel). RGBA is Godot's default format. [codeblocks] @@ -522,8 +436,7 @@ </description> </method> <method name="to_rgba64" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the color converted to a 64-bit integer in RGBA format (each word represents a color channel). RGBA is Godot's default format. [codeblocks] diff --git a/doc/classes/ColorPicker.xml b/doc/classes/ColorPicker.xml index 2111358ef4..7b357034eb 100644 --- a/doc/classes/ColorPicker.xml +++ b/doc/classes/ColorPicker.xml @@ -11,27 +11,22 @@ </tutorials> <methods> <method name="add_preset"> - <return type="void"> - </return> - <argument index="0" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="color" type="Color" /> <description> Adds the given color to a list of color presets. The presets are displayed in the color picker and the user will be able to select them. [b]Note:[/b] the presets list is only for [i]this[/i] color picker. </description> </method> <method name="erase_preset"> - <return type="void"> - </return> - <argument index="0" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="color" type="Color" /> <description> Removes the given color from the list of color presets of this color picker. </description> </method> <method name="get_presets" qualifiers="const"> - <return type="PackedColorArray"> - </return> + <return type="PackedColorArray" /> <description> Returns the list of colors in the presets of the color picker. </description> @@ -67,22 +62,19 @@ </members> <signals> <signal name="color_changed"> - <argument index="0" name="color" type="Color"> - </argument> + <argument index="0" name="color" type="Color" /> <description> Emitted when the color is changed. </description> </signal> <signal name="preset_added"> - <argument index="0" name="color" type="Color"> - </argument> + <argument index="0" name="color" type="Color" /> <description> Emitted when a preset is added. </description> </signal> <signal name="preset_removed"> - <argument index="0" name="color" type="Color"> - </argument> + <argument index="0" name="color" type="Color" /> <description> Emitted when a preset is removed. </description> diff --git a/doc/classes/ColorPickerButton.xml b/doc/classes/ColorPickerButton.xml index 09b828366f..770daa79c6 100644 --- a/doc/classes/ColorPickerButton.xml +++ b/doc/classes/ColorPickerButton.xml @@ -13,15 +13,13 @@ </tutorials> <methods> <method name="get_picker"> - <return type="ColorPicker"> - </return> + <return type="ColorPicker" /> <description> Returns the [ColorPicker] that this node toggles. </description> </method> <method name="get_popup"> - <return type="PopupPanel"> - </return> + <return type="PopupPanel" /> <description> Returns the control's [PopupPanel] which allows you to connect to popup signals. This allows you to handle events when the ColorPicker is shown or hidden. </description> @@ -38,8 +36,7 @@ </members> <signals> <signal name="color_changed"> - <argument index="0" name="color" type="Color"> - </argument> + <argument index="0" name="color" type="Color" /> <description> Emitted when the color changes. </description> diff --git a/doc/classes/ConcavePolygonShape3D.xml b/doc/classes/ConcavePolygonShape3D.xml index b510905d1f..34fb06a476 100644 --- a/doc/classes/ConcavePolygonShape3D.xml +++ b/doc/classes/ConcavePolygonShape3D.xml @@ -12,17 +12,14 @@ </tutorials> <methods> <method name="get_faces" qualifiers="const"> - <return type="PackedVector3Array"> - </return> + <return type="PackedVector3Array" /> <description> Returns the faces (an array of triangles). </description> </method> <method name="set_faces"> - <return type="void"> - </return> - <argument index="0" name="faces" type="PackedVector3Array"> - </argument> + <return type="void" /> + <argument index="0" name="faces" type="PackedVector3Array" /> <description> Sets the faces (an array of triangles). </description> diff --git a/doc/classes/ConeTwistJoint3D.xml b/doc/classes/ConeTwistJoint3D.xml index bd6e24dafd..dd65b3c688 100644 --- a/doc/classes/ConeTwistJoint3D.xml +++ b/doc/classes/ConeTwistJoint3D.xml @@ -12,20 +12,15 @@ </tutorials> <methods> <method name="get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="ConeTwistJoint3D.Param"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="ConeTwistJoint3D.Param" /> <description> </description> </method> <method name="set_param"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="ConeTwistJoint3D.Param"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="ConeTwistJoint3D.Param" /> + <argument index="1" name="value" type="float" /> <description> </description> </method> diff --git a/doc/classes/ConfigFile.xml b/doc/classes/ConfigFile.xml index 76855fc19f..bcd4266f6c 100644 --- a/doc/classes/ConfigFile.xml +++ b/doc/classes/ConfigFile.xml @@ -50,167 +50,127 @@ </tutorials> <methods> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="erase_section"> - <return type="void"> - </return> - <argument index="0" name="section" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="section" type="String" /> <description> Deletes the specified section along with all the key-value pairs inside. Raises an error if the section does not exist. </description> </method> <method name="erase_section_key"> - <return type="void"> - </return> - <argument index="0" name="section" type="String"> - </argument> - <argument index="1" name="key" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="section" type="String" /> + <argument index="1" name="key" type="String" /> <description> Deletes the specified key in a section. Raises an error if either the section or the key do not exist. </description> </method> <method name="get_section_keys" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="section" type="String"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="section" type="String" /> <description> Returns an array of all defined key identifiers in the specified section. Raises an error and returns an empty array if the section does not exist. </description> </method> <method name="get_sections" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns an array of all defined section identifiers. </description> </method> <method name="get_value" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="section" type="String"> - </argument> - <argument index="1" name="key" type="String"> - </argument> - <argument index="2" name="default" type="Variant" default="null"> - </argument> + <return type="Variant" /> + <argument index="0" name="section" type="String" /> + <argument index="1" name="key" type="String" /> + <argument index="2" name="default" type="Variant" default="null" /> <description> Returns the current value for the specified section and key. If either the section or the key do not exist, the method returns the fallback [code]default[/code] value. If [code]default[/code] is not specified or set to [code]null[/code], an error is also raised. </description> </method> <method name="has_section" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="section" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="section" type="String" /> <description> Returns [code]true[/code] if the specified section exists. </description> </method> <method name="has_section_key" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="section" type="String"> - </argument> - <argument index="1" name="key" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="section" type="String" /> + <argument index="1" name="key" type="String" /> <description> Returns [code]true[/code] if the specified section-key pair exists. </description> </method> <method name="load"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Loads the config file specified as a parameter. The file's contents are parsed and loaded in the [ConfigFile] object which the method was called on. Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="load_encrypted"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="key" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="key" type="PackedByteArray" /> <description> Loads the encrypted config file specified as a parameter, using the provided [code]key[/code] to decrypt it. The file's contents are parsed and loaded in the [ConfigFile] object which the method was called on. Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="load_encrypted_pass"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="password" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="password" type="String" /> <description> Loads the encrypted config file specified as a parameter, using the provided [code]password[/code] to decrypt it. The file's contents are parsed and loaded in the [ConfigFile] object which the method was called on. Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="parse"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="data" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="data" type="String" /> <description> Parses the passed string as the contents of a config file. The string is parsed and loaded in the ConfigFile object which the method was called on. Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="save"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Saves the contents of the [ConfigFile] object to the file specified as a parameter. The output file uses an INI-style structure. Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="save_encrypted"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="key" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="key" type="PackedByteArray" /> <description> Saves the contents of the [ConfigFile] object to the AES-256 encrypted file specified as a parameter, using the provided [code]key[/code] to encrypt it. The output file uses an INI-style structure. Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="save_encrypted_pass"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="password" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="password" type="String" /> <description> Saves the contents of the [ConfigFile] object to the AES-256 encrypted file specified as a parameter, using the provided [code]password[/code] to encrypt it. The output file uses an INI-style structure. Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="set_value"> - <return type="void"> - </return> - <argument index="0" name="section" type="String"> - </argument> - <argument index="1" name="key" type="String"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="section" type="String" /> + <argument index="1" name="key" type="String" /> + <argument index="2" name="value" type="Variant" /> <description> Assigns a value to the specified key of the specified section. If either the section or the key do not exist, they are created. Passing a [code]null[/code] value deletes the specified key if it exists, and deletes the section if it ends up empty once the key has been removed. </description> diff --git a/doc/classes/ConfirmationDialog.xml b/doc/classes/ConfirmationDialog.xml index 0253ef21df..871082696c 100644 --- a/doc/classes/ConfirmationDialog.xml +++ b/doc/classes/ConfirmationDialog.xml @@ -19,8 +19,7 @@ </tutorials> <methods> <method name="get_cancel_button"> - <return type="Button"> - </return> + <return type="Button" /> <description> Returns the cancel button. </description> diff --git a/doc/classes/Container.xml b/doc/classes/Container.xml index c285b448d8..e78eb8d259 100644 --- a/doc/classes/Container.xml +++ b/doc/classes/Container.xml @@ -11,19 +11,15 @@ </tutorials> <methods> <method name="fit_child_in_rect"> - <return type="void"> - </return> - <argument index="0" name="child" type="Control"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> + <return type="void" /> + <argument index="0" name="child" type="Control" /> + <argument index="1" name="rect" type="Rect2" /> <description> Fit a child control in a given rect. This is mainly a helper for creating custom container classes. </description> </method> <method name="queue_sort"> - <return type="void"> - </return> + <return type="void" /> <description> Queue resort of the contained children. This is called automatically anyway, but can be called upon request. </description> diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 4753b34efb..43e3c97bff 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -23,12 +23,9 @@ </tutorials> <methods> <method name="_can_drop_data" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="data" type="Variant"> - </argument> + <return type="bool" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="data" type="Variant" /> <description> Godot calls this method to test if [code]data[/code] from a control's [method _get_drag_data] can be dropped at [code]position[/code]. [code]position[/code] is local to this control. This method should only be used to test the data. Process the data in [method _drop_data]. @@ -51,12 +48,9 @@ </description> </method> <method name="_drop_data" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="data" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="data" type="Variant" /> <description> Godot calls this method to pass you the [code]data[/code] from a control's [method _get_drag_data] result. Godot first calls [method _can_drop_data] to test if [code]data[/code] is allowed to drop at [code]position[/code] where [code]position[/code] is local to this control. [codeblocks] @@ -80,10 +74,8 @@ </description> </method> <method name="_get_drag_data" qualifiers="virtual"> - <return type="Variant"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> + <return type="Variant" /> + <argument index="0" name="position" type="Vector2" /> <description> Godot calls this method to get data that can be dragged and dropped onto controls that expect drop data. Returns [code]null[/code] if there is no data to drag. Controls that want to receive drop data should implement [method _can_drop_data] and [method _drop_data]. [code]position[/code] is local to this control. Drag may be forced with [method force_drag]. A preview that will follow the mouse that should represent the data can be set with [method set_drag_preview]. A good time to set the preview is in this method. @@ -106,18 +98,15 @@ </description> </method> <method name="_get_minimum_size" qualifiers="virtual"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Virtual method to be implemented by the user. Returns the minimum size for this control. Alternative to [member rect_min_size] for controlling minimum size via code. The actual minimum size will be the max value of these two (in each axis separately). If not overridden, defaults to [constant Vector2.ZERO]. </description> </method> <method name="_gui_input" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> + <return type="void" /> + <argument index="0" name="event" type="InputEvent" /> <description> Virtual method to be implemented by the user. Use this method to process and accept inputs on UI elements. See [method accept_event]. Example: clicking a control. @@ -151,10 +140,8 @@ </description> </method> <method name="_has_point" qualifiers="virtual const"> - <return type="bool"> - </return> - <argument index="0" name="" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="" type="Vector2" /> <description> Virtual method to be implemented by the user. Returns whether the given [code]point[/code] is inside this control. If not overridden, default behavior is checking if the point is within control's Rect. @@ -162,10 +149,8 @@ </description> </method> <method name="_make_custom_tooltip" qualifiers="virtual"> - <return type="Control"> - </return> - <argument index="0" name="for_text" type="String"> - </argument> + <return type="Control" /> + <argument index="0" name="for_text" type="String" /> <description> Virtual method to be implemented by the user. Returns a [Control] node that should be used as a tooltip instead of the default one. The [code]for_text[/code] includes the contents of the [member hint_tooltip] property. The returned node must be of type [Control] or Control-derived. It can have child nodes of any type. It is freed when the tooltip disappears, so make sure you always provide a new instance (if you want to use a pre-existing node from your scene tree, you can duplicate it and pass the duplicated instance). When [code]null[/code] or a non-Control node is returned, the default tooltip will be used instead. @@ -209,31 +194,24 @@ </description> </method> <method name="_structured_text_parser" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="args" type="Array"> - </argument> - <argument index="1" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="args" type="Array" /> + <argument index="1" name="text" type="String" /> <description> User defined BiDi algorithm override function. Return [code]Array[/code] of [code]Vector2i[/code] text ranges, in the left-to-right order. Ranges should cover full source [code]text[/code] without overlaps. BiDi algorithm will be used on each range separately. </description> </method> <method name="accept_event"> - <return type="void"> - </return> + <return type="void" /> <description> Marks an input event as handled. Once you accept an input event, it stops propagating, even to nodes listening to [method Node._unhandled_input] or [method Node._unhandled_key_input]. </description> </method> <method name="add_theme_color_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="color" type="Color" /> <description> Creates a local override for a theme [Color] with the specified [code]name[/code]. Local overrides always take precedence when fetching theme items for the control. An override can be removed with [method remove_theme_color_override]. See also [method get_theme_color]. @@ -259,60 +237,45 @@ </description> </method> <method name="add_theme_constant_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="constant" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="constant" type="int" /> <description> Creates a local override for a theme constant with the specified [code]name[/code]. Local overrides always take precedence when fetching theme items for the control. An override can be removed with [method remove_theme_constant_override]. See also [method get_theme_constant]. </description> </method> <method name="add_theme_font_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="font" type="Font"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="font" type="Font" /> <description> Creates a local override for a theme [Font] with the specified [code]name[/code]. Local overrides always take precedence when fetching theme items for the control. An override can be removed with [method remove_theme_font_override]. See also [method get_theme_font]. </description> </method> <method name="add_theme_font_size_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="font_size" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="font_size" type="int" /> <description> Creates a local override for a theme font size with the specified [code]name[/code]. Local overrides always take precedence when fetching theme items for the control. An override can be removed with [method remove_theme_font_size_override]. See also [method get_theme_font_size]. </description> </method> <method name="add_theme_icon_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="texture" type="Texture2D" /> <description> Creates a local override for a theme icon with the specified [code]name[/code]. Local overrides always take precedence when fetching theme items for the control. An override can be removed with [method remove_theme_icon_override]. See also [method get_theme_icon]. </description> </method> <method name="add_theme_stylebox_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="stylebox" type="StyleBox"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="stylebox" type="StyleBox" /> <description> Creates a local override for a theme [StyleBox] with the specified [code]name[/code]. Local overrides always take precedence when fetching theme items for the control. An override can be removed with [method remove_theme_stylebox_override]. See also [method get_theme_stylebox]. @@ -344,137 +307,112 @@ </description> </method> <method name="find_next_valid_focus" qualifiers="const"> - <return type="Control"> - </return> + <return type="Control" /> <description> Finds the next (below in the tree) [Control] that can receive the focus. </description> </method> <method name="find_prev_valid_focus" qualifiers="const"> - <return type="Control"> - </return> + <return type="Control" /> <description> Finds the previous (above in the tree) [Control] that can receive the focus. </description> </method> <method name="force_drag"> - <return type="void"> - </return> - <argument index="0" name="data" type="Variant"> - </argument> - <argument index="1" name="preview" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="data" type="Variant" /> + <argument index="1" name="preview" type="Control" /> <description> Forces drag and bypasses [method _get_drag_data] and [method set_drag_preview] by passing [code]data[/code] and [code]preview[/code]. Drag will start even if the mouse is neither over nor pressed on this control. The methods [method _can_drop_data] and [method _drop_data] must be implemented on controls that want to receive drop data. </description> </method> <method name="get_anchor" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="side" type="int" enum="Side"> - </argument> + <return type="float" /> + <argument index="0" name="side" type="int" enum="Side" /> <description> Returns the anchor for the specified [enum Side]. A getter method for [member anchor_bottom], [member anchor_left], [member anchor_right] and [member anchor_top]. </description> </method> <method name="get_begin" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns [member offset_left] and [member offset_top]. See also [member rect_position]. </description> </method> <method name="get_combined_minimum_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns combined minimum size from [member rect_min_size] and [method get_minimum_size]. </description> </method> <method name="get_cursor_shape" qualifiers="const"> - <return type="int" enum="Control.CursorShape"> - </return> - <argument index="0" name="position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="int" enum="Control.CursorShape" /> + <argument index="0" name="position" type="Vector2" default="Vector2(0, 0)" /> <description> Returns the mouse cursor shape the control displays on mouse hover. See [enum CursorShape]. </description> </method> <method name="get_end" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns [member offset_right] and [member offset_bottom]. </description> </method> <method name="get_focus_neighbor" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="side" type="int" enum="Side"> - </argument> + <return type="NodePath" /> + <argument index="0" name="side" type="int" enum="Side" /> <description> Returns the focus neighbor for the specified [enum Side]. A getter method for [member focus_neighbor_bottom], [member focus_neighbor_left], [member focus_neighbor_right] and [member focus_neighbor_top]. </description> </method> <method name="get_focus_owner" qualifiers="const"> - <return type="Control"> - </return> + <return type="Control" /> <description> Returns the control that has the keyboard focus or [code]null[/code] if none. </description> </method> <method name="get_global_rect" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns the position and size of the control relative to the top-left corner of the screen. See [member rect_position] and [member rect_size]. </description> </method> <method name="get_minimum_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the minimum size for this control. See [member rect_min_size]. </description> </method> <method name="get_offset" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="offset" type="int" enum="Side"> - </argument> + <return type="float" /> + <argument index="0" name="offset" type="int" enum="Side" /> <description> Returns the anchor for the specified [enum Side]. A getter method for [member offset_bottom], [member offset_left], [member offset_right] and [member offset_top]. </description> </method> <method name="get_parent_area_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the width/height occupied in the parent control. </description> </method> <method name="get_parent_control" qualifiers="const"> - <return type="Control"> - </return> + <return type="Control" /> <description> Returns the parent control node. </description> </method> <method name="get_rect" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns the position and size of the control relative to the top-left corner of the parent Control. See [member rect_position] and [member rect_size]. </description> </method> <method name="get_theme_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="Color" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns a [Color] from the first matching [Theme] in the tree if that [Theme] has a color item with the specified [code]name[/code] and [code]theme_type[/code]. If [code]theme_type[/code] is omitted the class name of the current control is used as the type, or [member theme_type_variation] if it is defined. If the type is a class name its parent classes are also checked, in order of inheritance. If the type is a variation its base types are checked, in order of dependency, then the control's class name and its parent classes are checked. For the current control its local overrides are considered first (see [method add_theme_color_override]), then its assigned [member theme]. After the current control, each parent control and its assigned [member theme] are considered; controls without a [member theme] assigned are skipped. If no matching [Theme] is found in the tree, a custom project [Theme] (see [member ProjectSettings.gui/theme/custom]) and the default [Theme] are used. @@ -499,77 +437,59 @@ </description> </method> <method name="get_theme_constant" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="int" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns a constant from the first matching [Theme] in the tree if that [Theme] has a constant item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="get_theme_font" qualifiers="const"> - <return type="Font"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="Font" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns a [Font] from the first matching [Theme] in the tree if that [Theme] has a font item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="get_theme_font_size" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="int" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns a font size from the first matching [Theme] in the tree if that [Theme] has a font size item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="get_theme_icon" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="Texture2D" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns an icon from the first matching [Theme] in the tree if that [Theme] has an icon item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="get_theme_stylebox" qualifiers="const"> - <return type="StyleBox"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="StyleBox" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns a [StyleBox] from the first matching [Theme] in the tree if that [Theme] has a stylebox item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="get_tooltip" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="at_position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="String" /> + <argument index="0" name="at_position" type="Vector2" default="Vector2(0, 0)" /> <description> Returns the tooltip, which will appear when the cursor is resting over this control. See [member hint_tooltip]. </description> </method> <method name="grab_click_focus"> - <return type="void"> - </return> + <return type="void" /> <description> Creates an [InputEventMouseButton] that attempts to click the control. If the event is received, the control acquires focus. [codeblocks] @@ -587,237 +507,185 @@ </description> </method> <method name="grab_focus"> - <return type="void"> - </return> + <return type="void" /> <description> Steal the focus from another control and become the focused control (see [member focus_mode]). </description> </method> <method name="has_focus" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this is the current focused control. See [member focus_mode]. </description> </method> <method name="has_theme_color" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns [code]true[/code] if there is a matching [Theme] in the tree that has a color item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="has_theme_color_override" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if there is a local override for a theme [Color] with the specified [code]name[/code] in this [Control] node. See [method add_theme_color_override]. </description> </method> <method name="has_theme_constant" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns [code]true[/code] if there is a matching [Theme] in the tree that has a constant item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="has_theme_constant_override" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if there is a local override for a theme constant with the specified [code]name[/code] in this [Control] node. See [method add_theme_constant_override]. </description> </method> <method name="has_theme_font" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns [code]true[/code] if there is a matching [Theme] in the tree that has a font item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="has_theme_font_override" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if there is a local override for a theme [Font] with the specified [code]name[/code] in this [Control] node. See [method add_theme_font_override]. </description> </method> <method name="has_theme_font_size" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns [code]true[/code] if there is a matching [Theme] in the tree that has a font size item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="has_theme_font_size_override" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if there is a local override for a theme font size with the specified [code]name[/code] in this [Control] node. See [method add_theme_font_size_override]. </description> </method> <method name="has_theme_icon" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns [code]true[/code] if there is a matching [Theme] in the tree that has an icon item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="has_theme_icon_override" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if there is a local override for a theme icon with the specified [code]name[/code] in this [Control] node. See [method add_theme_icon_override]. </description> </method> <method name="has_theme_stylebox" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns [code]true[/code] if there is a matching [Theme] in the tree that has a stylebox item with the specified [code]name[/code] and [code]theme_type[/code]. See [method get_theme_color] for details. </description> </method> <method name="has_theme_stylebox_override" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if there is a local override for a theme [StyleBox] with the specified [code]name[/code] in this [Control] node. See [method add_theme_stylebox_override]. </description> </method> <method name="is_layout_rtl" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if layout is right-to-left. </description> </method> <method name="minimum_size_changed"> - <return type="void"> - </return> + <return type="void" /> <description> Invalidates the size cache in this node and in parent nodes up to top_level. Intended to be used with [method get_minimum_size] when the return value is changed. Setting [member rect_min_size] directly calls this method automatically. </description> </method> <method name="release_focus"> - <return type="void"> - </return> + <return type="void" /> <description> Give up the focus. No other control will be able to receive keyboard input. </description> </method> <method name="remove_theme_color_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Removes a local override for a theme [Color] with the specified [code]name[/code] previously added by [method add_theme_color_override] or via the Inspector dock. </description> </method> <method name="remove_theme_constant_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Removes a local override for a theme constant with the specified [code]name[/code] previously added by [method add_theme_constant_override] or via the Inspector dock. </description> </method> <method name="remove_theme_font_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Removes a local override for a theme [Font] with the specified [code]name[/code] previously added by [method add_theme_font_override] or via the Inspector dock. </description> </method> <method name="remove_theme_font_size_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Removes a local override for a theme font size with the specified [code]name[/code] previously added by [method add_theme_font_size_override] or via the Inspector dock. </description> </method> <method name="remove_theme_icon_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Removes a local override for a theme icon with the specified [code]name[/code] previously added by [method add_theme_icon_override] or via the Inspector dock. </description> </method> <method name="remove_theme_stylebox_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Removes a local override for a theme [StyleBox] with the specified [code]name[/code] previously added by [method add_theme_stylebox_override] or via the Inspector dock. </description> </method> <method name="set_anchor"> - <return type="void"> - </return> - <argument index="0" name="side" type="int" enum="Side"> - </argument> - <argument index="1" name="anchor" type="float"> - </argument> - <argument index="2" name="keep_offset" type="bool" default="false"> - </argument> - <argument index="3" name="push_opposite_anchor" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="side" type="int" enum="Side" /> + <argument index="1" name="anchor" type="float" /> + <argument index="2" name="keep_offset" type="bool" default="false" /> + <argument index="3" name="push_opposite_anchor" type="bool" default="true" /> <description> Sets the anchor for the specified [enum Side] to [code]anchor[/code]. A setter method for [member anchor_bottom], [member anchor_left], [member anchor_right] and [member anchor_top]. If [code]keep_offset[/code] is [code]true[/code], offsets aren't updated after this operation. @@ -825,59 +693,43 @@ </description> </method> <method name="set_anchor_and_offset"> - <return type="void"> - </return> - <argument index="0" name="side" type="int" enum="Side"> - </argument> - <argument index="1" name="anchor" type="float"> - </argument> - <argument index="2" name="offset" type="float"> - </argument> - <argument index="3" name="push_opposite_anchor" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="side" type="int" enum="Side" /> + <argument index="1" name="anchor" type="float" /> + <argument index="2" name="offset" type="float" /> + <argument index="3" name="push_opposite_anchor" type="bool" default="false" /> <description> Works the same as [method set_anchor], but instead of [code]keep_offset[/code] argument and automatic update of offset, it allows to set the offset yourself (see [method set_offset]). </description> </method> <method name="set_anchors_and_offsets_preset"> - <return type="void"> - </return> - <argument index="0" name="preset" type="int" enum="Control.LayoutPreset"> - </argument> - <argument index="1" name="resize_mode" type="int" enum="Control.LayoutPresetMode" default="0"> - </argument> - <argument index="2" name="margin" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="preset" type="int" enum="Control.LayoutPreset" /> + <argument index="1" name="resize_mode" type="int" enum="Control.LayoutPresetMode" default="0" /> + <argument index="2" name="margin" type="int" default="0" /> <description> Sets both anchor preset and offset preset. See [method set_anchors_preset] and [method set_offsets_preset]. </description> </method> <method name="set_anchors_preset"> - <return type="void"> - </return> - <argument index="0" name="preset" type="int" enum="Control.LayoutPreset"> - </argument> - <argument index="1" name="keep_offsets" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="preset" type="int" enum="Control.LayoutPreset" /> + <argument index="1" name="keep_offsets" type="bool" default="false" /> <description> Sets the anchors to a [code]preset[/code] from [enum Control.LayoutPreset] enum. This is the code equivalent to using the Layout menu in the 2D editor. If [code]keep_offsets[/code] is [code]true[/code], control's position will also be updated. </description> </method> <method name="set_begin"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2" /> <description> Sets [member offset_left] and [member offset_top] at the same time. Equivalent of changing [member rect_position]. </description> </method> <method name="set_drag_forwarding"> - <return type="void"> - </return> - <argument index="0" name="target" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="target" type="Control" /> <description> Forwards the handling of this control's drag and drop to [code]target[/code] control. Forwarding can be implemented in the target control similar to the methods [method _get_drag_data], [method _can_drop_data], and [method _drop_data] but with two differences: @@ -941,10 +793,8 @@ </description> </method> <method name="set_drag_preview"> - <return type="void"> - </return> - <argument index="0" name="control" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="control" type="Control" /> <description> Shows the given control at the mouse pointer. A good time to call this method is in [method _get_drag_data]. The control must not be in the scene tree. You should not free the control, and you should not keep a reference to the control beyond the duration of the drag. It will be deleted automatically after the drag has ended. [codeblocks] @@ -977,57 +827,42 @@ </description> </method> <method name="set_end"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2" /> <description> Sets [member offset_right] and [member offset_bottom] at the same time. </description> </method> <method name="set_focus_neighbor"> - <return type="void"> - </return> - <argument index="0" name="side" type="int" enum="Side"> - </argument> - <argument index="1" name="neighbor" type="NodePath"> - </argument> + <return type="void" /> + <argument index="0" name="side" type="int" enum="Side" /> + <argument index="1" name="neighbor" type="NodePath" /> <description> Sets the anchor for the specified [enum Side] to the [Control] at [code]neighbor[/code] node path. A setter method for [member focus_neighbor_bottom], [member focus_neighbor_left], [member focus_neighbor_right] and [member focus_neighbor_top]. </description> </method> <method name="set_global_position"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="keep_offsets" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="keep_offsets" type="bool" default="false" /> <description> Sets the [member rect_global_position] to given [code]position[/code]. If [code]keep_offsets[/code] is [code]true[/code], control's anchors will be updated instead of offsets. </description> </method> <method name="set_offset"> - <return type="void"> - </return> - <argument index="0" name="side" type="int" enum="Side"> - </argument> - <argument index="1" name="offset" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="side" type="int" enum="Side" /> + <argument index="1" name="offset" type="float" /> <description> Sets the offset for the specified [enum Side] to [code]offset[/code]. A setter method for [member offset_bottom], [member offset_left], [member offset_right] and [member offset_top]. </description> </method> <method name="set_offsets_preset"> - <return type="void"> - </return> - <argument index="0" name="preset" type="int" enum="Control.LayoutPreset"> - </argument> - <argument index="1" name="resize_mode" type="int" enum="Control.LayoutPresetMode" default="0"> - </argument> - <argument index="2" name="margin" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="preset" type="int" enum="Control.LayoutPreset" /> + <argument index="1" name="resize_mode" type="int" enum="Control.LayoutPresetMode" default="0" /> + <argument index="2" name="margin" type="int" default="0" /> <description> Sets the offsets to a [code]preset[/code] from [enum Control.LayoutPreset] enum. This is the code equivalent to using the Layout menu in the 2D editor. Use parameter [code]resize_mode[/code] with constants from [enum Control.LayoutPresetMode] to better determine the resulting size of the [Control]. Constant size will be ignored if used with presets that change size, e.g. [code]PRESET_LEFT_WIDE[/code]. @@ -1035,34 +870,26 @@ </description> </method> <method name="set_position"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="keep_offsets" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="keep_offsets" type="bool" default="false" /> <description> Sets the [member rect_position] to given [code]position[/code]. If [code]keep_offsets[/code] is [code]true[/code], control's anchors will be updated instead of offsets. </description> </method> <method name="set_size"> - <return type="void"> - </return> - <argument index="0" name="size" type="Vector2"> - </argument> - <argument index="1" name="keep_offsets" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="Vector2" /> + <argument index="1" name="keep_offsets" type="bool" default="false" /> <description> Sets the size (see [member rect_size]). If [code]keep_offsets[/code] is [code]true[/code], control's anchors will be updated instead of offsets. </description> </method> <method name="warp_mouse"> - <return type="void"> - </return> - <argument index="0" name="to_position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="to_position" type="Vector2" /> <description> Moves the mouse cursor to [code]to_position[/code], relative to [member rect_position] of this [Control]. </description> @@ -1218,8 +1045,7 @@ </description> </signal> <signal name="gui_input"> - <argument index="0" name="event" type="InputEvent"> - </argument> + <argument index="0" name="event" type="InputEvent" /> <description> Emitted when the node receives an [InputEvent]. </description> diff --git a/doc/classes/ConvexPolygonShape2D.xml b/doc/classes/ConvexPolygonShape2D.xml index d53900e6c5..243605e2b7 100644 --- a/doc/classes/ConvexPolygonShape2D.xml +++ b/doc/classes/ConvexPolygonShape2D.xml @@ -11,10 +11,8 @@ </tutorials> <methods> <method name="set_point_cloud"> - <return type="void"> - </return> - <argument index="0" name="point_cloud" type="PackedVector2Array"> - </argument> + <return type="void" /> + <argument index="0" name="point_cloud" type="PackedVector2Array" /> <description> Based on the set of points provided, this creates and assigns the [member points] property using the convex hull algorithm. Removing all unneeded points. See [method Geometry2D.convex_hull] for details. </description> diff --git a/doc/classes/Crypto.xml b/doc/classes/Crypto.xml index deda6116f4..3d7ca956da 100644 --- a/doc/classes/Crypto.xml +++ b/doc/classes/Crypto.xml @@ -74,70 +74,52 @@ </tutorials> <methods> <method name="constant_time_compare"> - <return type="bool"> - </return> - <argument index="0" name="trusted" type="PackedByteArray"> - </argument> - <argument index="1" name="received" type="PackedByteArray"> - </argument> + <return type="bool" /> + <argument index="0" name="trusted" type="PackedByteArray" /> + <argument index="1" name="received" type="PackedByteArray" /> <description> Compares two [PackedByteArray]s for equality without leaking timing information in order to prevent timing attacks. See [url=https://paragonie.com/blog/2015/11/preventing-timing-attacks-on-string-comparison-with-double-hmac-strategy]this blog post[/url] for more information. </description> </method> <method name="decrypt"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="key" type="CryptoKey"> - </argument> - <argument index="1" name="ciphertext" type="PackedByteArray"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="key" type="CryptoKey" /> + <argument index="1" name="ciphertext" type="PackedByteArray" /> <description> Decrypt the given [code]ciphertext[/code] with the provided private [code]key[/code]. [b]Note[/b]: The maximum size of accepted ciphertext is limited by the key size. </description> </method> <method name="encrypt"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="key" type="CryptoKey"> - </argument> - <argument index="1" name="plaintext" type="PackedByteArray"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="key" type="CryptoKey" /> + <argument index="1" name="plaintext" type="PackedByteArray" /> <description> Encrypt the given [code]plaintext[/code] with the provided public [code]key[/code]. [b]Note[/b]: The maximum size of accepted plaintext is limited by the key size. </description> </method> <method name="generate_random_bytes"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="size" type="int" /> <description> Generates a [PackedByteArray] of cryptographically secure random bytes with given [code]size[/code]. </description> </method> <method name="generate_rsa"> - <return type="CryptoKey"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="CryptoKey" /> + <argument index="0" name="size" type="int" /> <description> Generates an RSA [CryptoKey] that can be used for creating self-signed certificates and passed to [method StreamPeerSSL.accept_stream]. </description> </method> <method name="generate_self_signed_certificate"> - <return type="X509Certificate"> - </return> - <argument index="0" name="key" type="CryptoKey"> - </argument> - <argument index="1" name="issuer_name" type="String" default=""CN=myserver,O=myorganisation,C=IT""> - </argument> - <argument index="2" name="not_before" type="String" default=""20140101000000""> - </argument> - <argument index="3" name="not_after" type="String" default=""20340101000000""> - </argument> + <return type="X509Certificate" /> + <argument index="0" name="key" type="CryptoKey" /> + <argument index="1" name="issuer_name" type="String" default=""CN=myserver,O=myorganisation,C=IT"" /> + <argument index="2" name="not_before" type="String" default=""20140101000000"" /> + <argument index="3" name="not_after" type="String" default=""20340101000000"" /> <description> Generates a self-signed [X509Certificate] from the given [CryptoKey] and [code]issuer_name[/code]. The certificate validity will be defined by [code]not_before[/code] and [code]not_after[/code] (first valid date and last valid date). The [code]issuer_name[/code] must contain at least "CN=" (common name, i.e. the domain name), "O=" (organization, i.e. your company name), "C=" (country, i.e. 2 lettered ISO-3166 code of the country the organization is based in). A small example to generate an RSA key and a X509 self-signed certificate. @@ -160,43 +142,30 @@ </description> </method> <method name="hmac_digest"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="hash_type" type="int" enum="HashingContext.HashType"> - </argument> - <argument index="1" name="key" type="PackedByteArray"> - </argument> - <argument index="2" name="msg" type="PackedByteArray"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="hash_type" type="int" enum="HashingContext.HashType" /> + <argument index="1" name="key" type="PackedByteArray" /> + <argument index="2" name="msg" type="PackedByteArray" /> <description> Generates an [url=https://en.wikipedia.org/wiki/HMAC]HMAC[/url] digest of [code]msg[/code] using [code]key[/code]. The [code]hash_type[/code] parameter is the hashing algorithm that is used for the inner and outer hashes. Currently, only [constant HashingContext.HASH_SHA256] and [constant HashingContext.HASH_SHA1] are supported. </description> </method> <method name="sign"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="hash_type" type="int" enum="HashingContext.HashType"> - </argument> - <argument index="1" name="hash" type="PackedByteArray"> - </argument> - <argument index="2" name="key" type="CryptoKey"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="hash_type" type="int" enum="HashingContext.HashType" /> + <argument index="1" name="hash" type="PackedByteArray" /> + <argument index="2" name="key" type="CryptoKey" /> <description> Sign a given [code]hash[/code] of type [code]hash_type[/code] with the provided private [code]key[/code]. </description> </method> <method name="verify"> - <return type="bool"> - </return> - <argument index="0" name="hash_type" type="int" enum="HashingContext.HashType"> - </argument> - <argument index="1" name="hash" type="PackedByteArray"> - </argument> - <argument index="2" name="signature" type="PackedByteArray"> - </argument> - <argument index="3" name="key" type="CryptoKey"> - </argument> + <return type="bool" /> + <argument index="0" name="hash_type" type="int" enum="HashingContext.HashType" /> + <argument index="1" name="hash" type="PackedByteArray" /> + <argument index="2" name="signature" type="PackedByteArray" /> + <argument index="3" name="key" type="CryptoKey" /> <description> Verify that a given [code]signature[/code] for [code]hash[/code] of type [code]hash_type[/code] against the provided public [code]key[/code]. </description> diff --git a/doc/classes/CryptoKey.xml b/doc/classes/CryptoKey.xml index 26b3087b21..afe2c6b301 100644 --- a/doc/classes/CryptoKey.xml +++ b/doc/classes/CryptoKey.xml @@ -12,52 +12,40 @@ </tutorials> <methods> <method name="is_public_only" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Return [code]true[/code] if this CryptoKey only has the public part, and not the private one. </description> </method> <method name="load"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="public_only" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="public_only" type="bool" default="false" /> <description> Loads a key from [code]path[/code]. If [code]public_only[/code] is [code]true[/code], only the public key will be loaded. [b]Note[/b]: [code]path[/code] should be a "*.pub" file if [code]public_only[/code] is [code]true[/code], a "*.key" file otherwise. </description> </method> <method name="load_from_string"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="string_key" type="String"> - </argument> - <argument index="1" name="public_only" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="string_key" type="String" /> + <argument index="1" name="public_only" type="bool" default="false" /> <description> Loads a key from the given [code]string[/code]. If [code]public_only[/code] is [code]true[/code], only the public key will be loaded. </description> </method> <method name="save"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="public_only" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="public_only" type="bool" default="false" /> <description> Saves a key to the given [code]path[/code]. If [code]public_only[/code] is [code]true[/code], only the public key will be saved. [b]Note[/b]: [code]path[/code] should be a "*.pub" file if [code]public_only[/code] is [code]true[/code], a "*.key" file otherwise. </description> </method> <method name="save_to_string"> - <return type="String"> - </return> - <argument index="0" name="public_only" type="bool" default="false"> - </argument> + <return type="String" /> + <argument index="0" name="public_only" type="bool" default="false" /> <description> Returns a string containing the key in PEM format. If [code]public_only[/code] is [code]true[/code], only the public key will be included. </description> diff --git a/doc/classes/Curve.xml b/doc/classes/Curve.xml index e47c420a3b..2c337c32db 100644 --- a/doc/classes/Curve.xml +++ b/doc/classes/Curve.xml @@ -10,184 +10,140 @@ </tutorials> <methods> <method name="add_point"> - <return type="int"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="left_tangent" type="float" default="0"> - </argument> - <argument index="2" name="right_tangent" type="float" default="0"> - </argument> - <argument index="3" name="left_mode" type="int" enum="Curve.TangentMode" default="0"> - </argument> - <argument index="4" name="right_mode" type="int" enum="Curve.TangentMode" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="left_tangent" type="float" default="0" /> + <argument index="2" name="right_tangent" type="float" default="0" /> + <argument index="3" name="left_mode" type="int" enum="Curve.TangentMode" default="0" /> + <argument index="4" name="right_mode" type="int" enum="Curve.TangentMode" default="0" /> <description> Adds a point to the curve. For each side, if the [code]*_mode[/code] is [constant TANGENT_LINEAR], the [code]*_tangent[/code] angle (in degrees) uses the slope of the curve halfway to the adjacent point. Allows custom assignments to the [code]*_tangent[/code] angle if [code]*_mode[/code] is set to [constant TANGENT_FREE]. </description> </method> <method name="bake"> - <return type="void"> - </return> + <return type="void" /> <description> Recomputes the baked cache of points for the curve. </description> </method> <method name="clean_dupes"> - <return type="void"> - </return> + <return type="void" /> <description> Removes points that are closer than [code]CMP_EPSILON[/code] (0.00001) units to their neighbor on the curve. </description> </method> <method name="clear_points"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all points from the curve. </description> </method> <method name="get_point_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of points describing the curve. </description> </method> <method name="get_point_left_mode" qualifiers="const"> - <return type="int" enum="Curve.TangentMode"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" enum="Curve.TangentMode" /> + <argument index="0" name="index" type="int" /> <description> Returns the left [enum TangentMode] for the point at [code]index[/code]. </description> </method> <method name="get_point_left_tangent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="index" type="int" /> <description> Returns the left tangent angle (in degrees) for the point at [code]index[/code]. </description> </method> <method name="get_point_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="index" type="int" /> <description> Returns the curve coordinates for the point at [code]index[/code]. </description> </method> <method name="get_point_right_mode" qualifiers="const"> - <return type="int" enum="Curve.TangentMode"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" enum="Curve.TangentMode" /> + <argument index="0" name="index" type="int" /> <description> Returns the right [enum TangentMode] for the point at [code]index[/code]. </description> </method> <method name="get_point_right_tangent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="index" type="int" /> <description> Returns the right tangent angle (in degrees) for the point at [code]index[/code]. </description> </method> <method name="interpolate" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="offset" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="offset" type="float" /> <description> Returns the Y value for the point that would exist at the X position [code]offset[/code] along the curve. </description> </method> <method name="interpolate_baked" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="offset" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="offset" type="float" /> <description> Returns the Y value for the point that would exist at the X position [code]offset[/code] along the curve using the baked cache. Bakes the curve's points if not already baked. </description> </method> <method name="remove_point"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes the point at [code]index[/code] from the curve. </description> </method> <method name="set_point_left_mode"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="mode" type="int" enum="Curve.TangentMode"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="mode" type="int" enum="Curve.TangentMode" /> <description> Sets the left [enum TangentMode] for the point at [code]index[/code] to [code]mode[/code]. </description> </method> <method name="set_point_left_tangent"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="tangent" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="tangent" type="float" /> <description> Sets the left tangent angle for the point at [code]index[/code] to [code]tangent[/code]. </description> </method> <method name="set_point_offset"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="offset" type="float"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="offset" type="float" /> <description> Sets the offset from [code]0.5[/code]. </description> </method> <method name="set_point_right_mode"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="mode" type="int" enum="Curve.TangentMode"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="mode" type="int" enum="Curve.TangentMode" /> <description> Sets the right [enum TangentMode] for the point at [code]index[/code] to [code]mode[/code]. </description> </method> <method name="set_point_right_tangent"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="tangent" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="tangent" type="float" /> <description> Sets the right tangent angle for the point at [code]index[/code] to [code]tangent[/code]. </description> </method> <method name="set_point_value"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="y" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="y" type="float" /> <description> Assigns the vertical position [code]y[/code] to the point at [code]index[/code]. </description> diff --git a/doc/classes/Curve2D.xml b/doc/classes/Curve2D.xml index c9fcbd2892..c02b0f7ead 100644 --- a/doc/classes/Curve2D.xml +++ b/doc/classes/Curve2D.xml @@ -11,115 +11,90 @@ </tutorials> <methods> <method name="add_point"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="in" type="Vector2" default="Vector2(0, 0)"> - </argument> - <argument index="2" name="out" type="Vector2" default="Vector2(0, 0)"> - </argument> - <argument index="3" name="at_position" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="in" type="Vector2" default="Vector2(0, 0)" /> + <argument index="2" name="out" type="Vector2" default="Vector2(0, 0)" /> + <argument index="3" name="at_position" type="int" default="-1" /> <description> Adds a point to a curve at [code]position[/code], with control points [code]in[/code] and [code]out[/code]. If [code]at_position[/code] is given, the point is inserted before the point number [code]at_position[/code], moving that point (and every point after) after the inserted point. If [code]at_position[/code] is not given, or is an illegal value ([code]at_position <0[/code] or [code]at_position >= [method get_point_count][/code]), the point will be appended at the end of the point list. </description> </method> <method name="clear_points"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all points from the curve. </description> </method> <method name="get_baked_length" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the total length of the curve, based on the cached points. Given enough density (see [member bake_interval]), it should be approximate enough. </description> </method> <method name="get_baked_points" qualifiers="const"> - <return type="PackedVector2Array"> - </return> + <return type="PackedVector2Array" /> <description> Returns the cache of points as a [PackedVector2Array]. </description> </method> <method name="get_closest_offset" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="to_point" type="Vector2"> - </argument> + <return type="float" /> + <argument index="0" name="to_point" type="Vector2" /> <description> Returns the closest offset to [code]to_point[/code]. This offset is meant to be used in [method interpolate_baked]. [code]to_point[/code] must be in this curve's local space. </description> </method> <method name="get_closest_point" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="to_point" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="to_point" type="Vector2" /> <description> Returns the closest baked point (in curve's local space) to [code]to_point[/code]. [code]to_point[/code] must be in this curve's local space. </description> </method> <method name="get_point_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of points describing the curve. </description> </method> <method name="get_point_in" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="idx" type="int" /> <description> Returns the position of the control point leading to the vertex [code]idx[/code]. The returned position is relative to the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console, and returns [code](0, 0)[/code]. </description> </method> <method name="get_point_out" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="idx" type="int" /> <description> Returns the position of the control point leading out of the vertex [code]idx[/code]. The returned position is relative to the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console, and returns [code](0, 0)[/code]. </description> </method> <method name="get_point_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="idx" type="int" /> <description> Returns the position of the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console, and returns [code](0, 0)[/code]. </description> </method> <method name="interpolate" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="t" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="t" type="float" /> <description> Returns the position between the vertex [code]idx[/code] and the vertex [code]idx + 1[/code], where [code]t[/code] controls if the point is the first vertex ([code]t = 0.0[/code]), the last vertex ([code]t = 1.0[/code]), or in between. Values of [code]t[/code] outside the range ([code]0.0 >= t <=1[/code]) give strange, but predictable results. If [code]idx[/code] is out of bounds it is truncated to the first or last vertex, and [code]t[/code] is ignored. If the curve has no points, the function sends an error to the console, and returns [code](0, 0)[/code]. </description> </method> <method name="interpolate_baked" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="offset" type="float"> - </argument> - <argument index="1" name="cubic" type="bool" default="false"> - </argument> + <return type="Vector2" /> + <argument index="0" name="offset" type="float" /> + <argument index="1" name="cubic" type="bool" default="false" /> <description> Returns a point within the curve at position [code]offset[/code], where [code]offset[/code] is measured as a pixel distance along the curve. To do that, it finds the two cached points where the [code]offset[/code] lies between, then interpolates the values. This interpolation is cubic if [code]cubic[/code] is set to [code]true[/code], or linear if set to [code]false[/code]. @@ -127,63 +102,47 @@ </description> </method> <method name="interpolatef" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="fofs" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="fofs" type="float" /> <description> Returns the position at the vertex [code]fofs[/code]. It calls [method interpolate] using the integer part of [code]fofs[/code] as [code]idx[/code], and its fractional part as [code]t[/code]. </description> </method> <method name="remove_point"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Deletes the point [code]idx[/code] from the curve. Sends an error to the console if [code]idx[/code] is out of bounds. </description> </method> <method name="set_point_in"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="position" type="Vector2" /> <description> Sets the position of the control point leading to the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console. The position is relative to the vertex. </description> </method> <method name="set_point_out"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="position" type="Vector2" /> <description> Sets the position of the control point leading out of the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console. The position is relative to the vertex. </description> </method> <method name="set_point_position"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="position" type="Vector2" /> <description> Sets the position for the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console. </description> </method> <method name="tessellate" qualifiers="const"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="max_stages" type="int" default="5"> - </argument> - <argument index="1" name="tolerance_degrees" type="float" default="4"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="max_stages" type="int" default="5" /> + <argument index="1" name="tolerance_degrees" type="float" default="4" /> <description> Returns a list of points along the curve, with a curvature controlled point density. That is, the curvier parts will have more points than the straighter parts. This approximation makes straight segments between each point, then subdivides those segments until the resulting shape is similar enough. diff --git a/doc/classes/Curve3D.xml b/doc/classes/Curve3D.xml index fdf96b4262..5839ccba02 100644 --- a/doc/classes/Curve3D.xml +++ b/doc/classes/Curve3D.xml @@ -11,139 +11,110 @@ </tutorials> <methods> <method name="add_point"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector3"> - </argument> - <argument index="1" name="in" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> - <argument index="2" name="out" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> - <argument index="3" name="at_position" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector3" /> + <argument index="1" name="in" type="Vector3" default="Vector3(0, 0, 0)" /> + <argument index="2" name="out" type="Vector3" default="Vector3(0, 0, 0)" /> + <argument index="3" name="at_position" type="int" default="-1" /> <description> Adds a point to a curve at [code]position[/code], with control points [code]in[/code] and [code]out[/code]. If [code]at_position[/code] is given, the point is inserted before the point number [code]at_position[/code], moving that point (and every point after) after the inserted point. If [code]at_position[/code] is not given, or is an illegal value ([code]at_position <0[/code] or [code]at_position >= [method get_point_count][/code]), the point will be appended at the end of the point list. </description> </method> <method name="clear_points"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all points from the curve. </description> </method> <method name="get_baked_length" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the total length of the curve, based on the cached points. Given enough density (see [member bake_interval]), it should be approximate enough. </description> </method> <method name="get_baked_points" qualifiers="const"> - <return type="PackedVector3Array"> - </return> + <return type="PackedVector3Array" /> <description> Returns the cache of points as a [PackedVector3Array]. </description> </method> <method name="get_baked_tilts" qualifiers="const"> - <return type="PackedFloat32Array"> - </return> + <return type="PackedFloat32Array" /> <description> Returns the cache of tilts as a [PackedFloat32Array]. </description> </method> <method name="get_baked_up_vectors" qualifiers="const"> - <return type="PackedVector3Array"> - </return> + <return type="PackedVector3Array" /> <description> Returns the cache of up vectors as a [PackedVector3Array]. If [member up_vector_enabled] is [code]false[/code], the cache will be empty. </description> </method> <method name="get_closest_offset" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="to_point" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="to_point" type="Vector3" /> <description> Returns the closest offset to [code]to_point[/code]. This offset is meant to be used in [method interpolate_baked] or [method interpolate_baked_up_vector]. [code]to_point[/code] must be in this curve's local space. </description> </method> <method name="get_closest_point" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="to_point" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="to_point" type="Vector3" /> <description> Returns the closest baked point (in curve's local space) to [code]to_point[/code]. [code]to_point[/code] must be in this curve's local space. </description> </method> <method name="get_point_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of points describing the curve. </description> </method> <method name="get_point_in" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="idx" type="int" /> <description> Returns the position of the control point leading to the vertex [code]idx[/code]. The returned position is relative to the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console, and returns [code](0, 0, 0)[/code]. </description> </method> <method name="get_point_out" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="idx" type="int" /> <description> Returns the position of the control point leading out of the vertex [code]idx[/code]. The returned position is relative to the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console, and returns [code](0, 0, 0)[/code]. </description> </method> <method name="get_point_position" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="idx" type="int" /> <description> Returns the position of the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console, and returns [code](0, 0, 0)[/code]. </description> </method> <method name="get_point_tilt" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="idx" type="int" /> <description> Returns the tilt angle in radians for the point [code]idx[/code]. If the index is out of bounds, the function sends an error to the console, and returns [code]0[/code]. </description> </method> <method name="interpolate" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="t" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="t" type="float" /> <description> Returns the position between the vertex [code]idx[/code] and the vertex [code]idx + 1[/code], where [code]t[/code] controls if the point is the first vertex ([code]t = 0.0[/code]), the last vertex ([code]t = 1.0[/code]), or in between. Values of [code]t[/code] outside the range ([code]0.0 >= t <=1[/code]) give strange, but predictable results. If [code]idx[/code] is out of bounds it is truncated to the first or last vertex, and [code]t[/code] is ignored. If the curve has no points, the function sends an error to the console, and returns [code](0, 0, 0)[/code]. </description> </method> <method name="interpolate_baked" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="offset" type="float"> - </argument> - <argument index="1" name="cubic" type="bool" default="false"> - </argument> + <return type="Vector3" /> + <argument index="0" name="offset" type="float" /> + <argument index="1" name="cubic" type="bool" default="false" /> <description> Returns a point within the curve at position [code]offset[/code], where [code]offset[/code] is measured as a distance in 3D units along the curve. To do that, it finds the two cached points where the [code]offset[/code] lies between, then interpolates the values. This interpolation is cubic if [code]cubic[/code] is set to [code]true[/code], or linear if set to [code]false[/code]. @@ -151,12 +122,9 @@ </description> </method> <method name="interpolate_baked_up_vector" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="offset" type="float"> - </argument> - <argument index="1" name="apply_tilt" type="bool" default="false"> - </argument> + <return type="Vector3" /> + <argument index="0" name="offset" type="float" /> + <argument index="1" name="apply_tilt" type="bool" default="false" /> <description> Returns an up vector within the curve at position [code]offset[/code], where [code]offset[/code] is measured as a distance in 3D units along the curve. To do that, it finds the two cached up vectors where the [code]offset[/code] lies between, then interpolates the values. If [code]apply_tilt[/code] is [code]true[/code], an interpolated tilt is applied to the interpolated up vector. @@ -164,75 +132,56 @@ </description> </method> <method name="interpolatef" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="fofs" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="fofs" type="float" /> <description> Returns the position at the vertex [code]fofs[/code]. It calls [method interpolate] using the integer part of [code]fofs[/code] as [code]idx[/code], and its fractional part as [code]t[/code]. </description> </method> <method name="remove_point"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Deletes the point [code]idx[/code] from the curve. Sends an error to the console if [code]idx[/code] is out of bounds. </description> </method> <method name="set_point_in"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="position" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="position" type="Vector3" /> <description> Sets the position of the control point leading to the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console. The position is relative to the vertex. </description> </method> <method name="set_point_out"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="position" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="position" type="Vector3" /> <description> Sets the position of the control point leading out of the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console. The position is relative to the vertex. </description> </method> <method name="set_point_position"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="position" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="position" type="Vector3" /> <description> Sets the position for the vertex [code]idx[/code]. If the index is out of bounds, the function sends an error to the console. </description> </method> <method name="set_point_tilt"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="tilt" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="tilt" type="float" /> <description> Sets the tilt angle in radians for the point [code]idx[/code]. If the index is out of bounds, the function sends an error to the console. The tilt controls the rotation along the look-at axis an object traveling the path would have. In the case of a curve controlling a [PathFollow3D], this tilt is an offset over the natural tilt the [PathFollow3D] calculates. </description> </method> <method name="tessellate" qualifiers="const"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="max_stages" type="int" default="5"> - </argument> - <argument index="1" name="tolerance_degrees" type="float" default="4"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="max_stages" type="int" default="5" /> + <argument index="1" name="tolerance_degrees" type="float" default="4" /> <description> Returns a list of points along the curve, with a curvature controlled point density. That is, the curvier parts will have more points than the straighter parts. This approximation makes straight segments between each point, then subdivides those segments until the resulting shape is similar enough. diff --git a/doc/classes/DTLSServer.xml b/doc/classes/DTLSServer.xml index 28d68d309f..627a7a65a5 100644 --- a/doc/classes/DTLSServer.xml +++ b/doc/classes/DTLSServer.xml @@ -147,23 +147,17 @@ </tutorials> <methods> <method name="setup"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="key" type="CryptoKey"> - </argument> - <argument index="1" name="certificate" type="X509Certificate"> - </argument> - <argument index="2" name="chain" type="X509Certificate" default="null"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="key" type="CryptoKey" /> + <argument index="1" name="certificate" type="X509Certificate" /> + <argument index="2" name="chain" type="X509Certificate" default="null" /> <description> Setup the DTLS server to use the given [code]private_key[/code] and provide the given [code]certificate[/code] to clients. You can pass the optional [code]chain[/code] parameter to provide additional CA chain information along with the certificate. </description> </method> <method name="take_connection"> - <return type="PacketPeerDTLS"> - </return> - <argument index="0" name="udp_peer" type="PacketPeerUDP"> - </argument> + <return type="PacketPeerDTLS" /> + <argument index="0" name="udp_peer" type="PacketPeerUDP" /> <description> Try to initiate the DTLS handshake with the given [code]udp_peer[/code] which must be already connected (see [method PacketPeerUDP.connect_to_host]). [b]Note[/b]: You must check that the state of the return PacketPeerUDP is [constant PacketPeerDTLS.STATUS_HANDSHAKING], as it is normal that 50% of the new connections will be invalid due to cookie exchange. diff --git a/doc/classes/Decal.xml b/doc/classes/Decal.xml index e84cea7c30..e993fc6198 100644 --- a/doc/classes/Decal.xml +++ b/doc/classes/Decal.xml @@ -12,10 +12,8 @@ </tutorials> <methods> <method name="get_texture" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="type" type="int" enum="Decal.DecalTexture"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="type" type="int" enum="Decal.DecalTexture" /> <description> Returns the [Texture2D] associated with the specified [enum DecalTexture]. This is a convenience method, in most cases you should access the texture directly. For example, instead of [code]albedo_tex = $Decal.get_texture(Decal.TEXTURE_ALBEDO)[/code], use [code]albedo_tex = $Decal.texture_albedo[/code]. @@ -35,12 +33,9 @@ </description> </method> <method name="set_texture"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="Decal.DecalTexture"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="Decal.DecalTexture" /> + <argument index="1" name="texture" type="Texture2D" /> <description> Sets the [Texture2D] associated with the specified [enum DecalTexture]. This is a convenience method, in most cases you should access the texture directly. For example, instead of [code]$Decal.set_texture(Decal.TEXTURE_ALBEDO, albedo_tex)[/code], use [code]$Decal.texture_albedo = albedo_tex[/code]. diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index 16c4348994..59088f33fd 100644 --- a/doc/classes/Dictionary.xml +++ b/doc/classes/Dictionary.xml @@ -184,62 +184,49 @@ </tutorials> <methods> <method name="Dictionary" qualifiers="constructor"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Constructs an empty [Dictionary]. </description> </method> <method name="Dictionary" qualifiers="constructor"> - <return type="Dictionary"> - </return> - <argument index="0" name="from" type="Dictionary"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="from" type="Dictionary" /> <description> Constructs a [Dictionary] as a copy of the given [Dictionary]. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clear the dictionary, removing all key/value pairs. </description> </method> <method name="duplicate" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="deep" type="bool" default="false"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="deep" type="bool" default="false" /> <description> Creates a copy of the dictionary, and returns it. The [code]deep[/code] parameter causes inner dictionaries and arrays to be copied recursively, but does not apply to objects. </description> </method> <method name="erase"> - <return type="bool"> - </return> - <argument index="0" name="key" type="Variant"> - </argument> + <return type="bool" /> + <argument index="0" name="key" type="Variant" /> <description> Erase a dictionary key/value pair by key. Returns [code]true[/code] if the given key was present in the dictionary, [code]false[/code] otherwise. Does not erase elements while iterating over the dictionary. </description> </method> <method name="get" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="key" type="Variant"> - </argument> - <argument index="1" name="default" type="Variant" default="null"> - </argument> + <return type="Variant" /> + <argument index="0" name="key" type="Variant" /> + <argument index="1" name="default" type="Variant" default="null" /> <description> Returns the current value for the specified key in the [Dictionary]. If the key does not exist, the method returns the value of the optional default argument, or [code]null[/code] if it is omitted. </description> </method> <method name="has" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="key" type="Variant"> - </argument> + <return type="bool" /> + <argument index="0" name="key" type="Variant" /> <description> Returns [code]true[/code] if the dictionary has a given key. [b]Note:[/b] This is equivalent to using the [code]in[/code] operator as follows: @@ -261,17 +248,14 @@ </description> </method> <method name="has_all" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="keys" type="Array"> - </argument> + <return type="bool" /> + <argument index="0" name="keys" type="Array" /> <description> Returns [code]true[/code] if the dictionary has all the keys in the given array. </description> </method> <method name="hash" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns a hashed integer value representing the dictionary contents. This can be used to compare dictionaries by value: [codeblocks] @@ -293,53 +277,43 @@ </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the dictionary is empty. </description> </method> <method name="keys" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the list of keys in the [Dictionary]. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Dictionary"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Dictionary" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Dictionary"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Dictionary" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="Variant"> - </return> - <argument index="0" name="key" type="Variant"> - </argument> + <return type="Variant" /> + <argument index="0" name="key" type="Variant" /> <description> </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of keys in the dictionary. </description> </method> <method name="values" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the list of values in the [Dictionary]. </description> diff --git a/doc/classes/Directory.xml b/doc/classes/Directory.xml index ff92f6c5ef..919960cc9f 100644 --- a/doc/classes/Directory.xml +++ b/doc/classes/Directory.xml @@ -58,106 +58,86 @@ </tutorials> <methods> <method name="change_dir"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="todir" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="todir" type="String" /> <description> Changes the currently opened directory to the one passed as an argument. The argument can be relative to the current directory (e.g. [code]newdir[/code] or [code]../newdir[/code]), or an absolute path (e.g. [code]/tmp/newdir[/code] or [code]res://somedir/newdir[/code]). Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="copy"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="from" type="String"> - </argument> - <argument index="1" name="to" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="from" type="String" /> + <argument index="1" name="to" type="String" /> <description> Copies the [code]from[/code] file to the [code]to[/code] destination. Both arguments should be paths to files, either relative or absolute. If the destination file exists and is not access-protected, it will be overwritten. Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="current_is_dir" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the current item processed with the last [method get_next] call is a directory ([code].[/code] and [code]..[/code] are considered directories). </description> </method> <method name="dir_exists"> - <return type="bool"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="path" type="String" /> <description> Returns whether the target directory exists. The argument can be relative to the current directory, or an absolute path. If the [Directory] is not open, the path is relative to [code]res://[/code]. </description> </method> <method name="file_exists"> - <return type="bool"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="path" type="String" /> <description> Returns whether the target file exists. The argument can be relative to the current directory, or an absolute path. If the [Directory] is not open, the path is relative to [code]res://[/code]. </description> </method> <method name="get_current_dir"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the absolute path to the currently opened directory (e.g. [code]res://folder[/code] or [code]C:\tmp\folder[/code]). </description> </method> <method name="get_current_drive"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the currently opened directory's drive index. See [method get_drive] to convert returned index to the name of the drive. </description> </method> <method name="get_drive"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> On Windows, returns the name of the drive (partition) passed as an argument (e.g. [code]C:[/code]). On other platforms, or if the requested drive does not exist, the method returns an empty String. </description> </method> <method name="get_drive_count"> - <return type="int"> - </return> + <return type="int" /> <description> On Windows, returns the number of drives (partitions) mounted on the current filesystem. On other platforms, the method returns 0. </description> </method> <method name="get_next"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the next element (file or directory) in the current directory (including [code].[/code] and [code]..[/code], unless [code]skip_navigational[/code] was given to [method list_dir_begin]). The name of the file or directory is returned (and not its full path). Once the stream has been fully processed, the method returns an empty String and closes the stream automatically (i.e. [method list_dir_end] would not be mandatory in such a case). </description> </method> <method name="get_space_left"> - <return type="int"> - </return> + <return type="int" /> <description> On UNIX desktop systems, returns the available space on the current directory's disk. On other platforms, this information is not available and the method returns 0 or -1. </description> </method> <method name="list_dir_begin"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="show_navigational" type="bool" default="false"> - </argument> - <argument index="1" name="show_hidden" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="show_navigational" type="bool" default="false" /> + <argument index="1" name="show_hidden" type="bool" default="false" /> <description> Initializes the stream used to list all files and directories using the [method get_next] function, closing the currently opened stream if needed. Once the stream has been processed, it should typically be closed with [method list_dir_end]. If [code]show_navigational[/code] is [code]true[/code], [code].[/code] and [code]..[/code] are included too. @@ -165,59 +145,47 @@ </description> </method> <method name="list_dir_end"> - <return type="void"> - </return> + <return type="void" /> <description> Closes the current stream opened with [method list_dir_begin] (whether it has been fully processed with [method get_next] does not matter). </description> </method> <method name="make_dir"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Creates a directory. The argument can be relative to the current directory, or an absolute path. The target directory should be placed in an already existing directory (to create the full path recursively, see [method make_dir_recursive]). Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="make_dir_recursive"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Creates a target directory and all necessary intermediate directories in its path, by calling [method make_dir] recursively. The argument can be relative to the current directory, or an absolute path. Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="open"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Opens an existing directory of the filesystem. The [code]path[/code] argument can be within the project tree ([code]res://folder[/code]), the user directory ([code]user://folder[/code]) or an absolute path of the user filesystem (e.g. [code]/tmp/folder[/code] or [code]C:\tmp\folder[/code]). Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="remove"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Deletes the target file or an empty directory. The argument can be relative to the current directory, or an absolute path. If the target directory is not empty, the operation will fail. Returns one of the [enum Error] code constants ([code]OK[/code] on success). </description> </method> <method name="rename"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="from" type="String"> - </argument> - <argument index="1" name="to" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="from" type="String" /> + <argument index="1" name="to" type="String" /> <description> Renames (move) the [code]from[/code] file to the [code]to[/code] destination. Both arguments should be paths to files, either relative or absolute. If the destination file exists and is not access-protected, it will be overwritten. Returns one of the [enum Error] code constants ([code]OK[/code] on success). diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml index 5c9bcc5014..abb715b34e 100644 --- a/doc/classes/DisplayServer.xml +++ b/doc/classes/DisplayServer.xml @@ -8,470 +8,345 @@ </tutorials> <methods> <method name="clipboard_get" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="clipboard_set"> - <return type="void"> - </return> - <argument index="0" name="clipboard" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="clipboard" type="String" /> <description> </description> </method> <method name="console_set_visible"> - <return type="void"> - </return> - <argument index="0" name="console_visible" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="console_visible" type="bool" /> <description> </description> </method> <method name="create_sub_window"> - <return type="int"> - </return> - <argument index="0" name="mode" type="int" enum="DisplayServer.WindowMode"> - </argument> - <argument index="1" name="vsync_mode" type="int" enum="DisplayServer.VSyncMode"> - </argument> - <argument index="2" name="flags" type="int"> - </argument> - <argument index="3" name="rect" type="Rect2i" default="Rect2i(0, 0, 0, 0)"> - </argument> + <return type="int" /> + <argument index="0" name="mode" type="int" enum="DisplayServer.WindowMode" /> + <argument index="1" name="vsync_mode" type="int" enum="DisplayServer.VSyncMode" /> + <argument index="2" name="flags" type="int" /> + <argument index="3" name="rect" type="Rect2i" default="Rect2i(0, 0, 0, 0)" /> <description> </description> </method> <method name="cursor_get_shape" qualifiers="const"> - <return type="int" enum="DisplayServer.CursorShape"> - </return> + <return type="int" enum="DisplayServer.CursorShape" /> <description> </description> </method> <method name="cursor_set_custom_image"> - <return type="void"> - </return> - <argument index="0" name="cursor" type="Resource"> - </argument> - <argument index="1" name="shape" type="int" enum="DisplayServer.CursorShape" default="0"> - </argument> - <argument index="2" name="hotspot" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="cursor" type="Resource" /> + <argument index="1" name="shape" type="int" enum="DisplayServer.CursorShape" default="0" /> + <argument index="2" name="hotspot" type="Vector2" default="Vector2(0, 0)" /> <description> </description> </method> <method name="cursor_set_shape"> - <return type="void"> - </return> - <argument index="0" name="shape" type="int" enum="DisplayServer.CursorShape"> - </argument> + <return type="void" /> + <argument index="0" name="shape" type="int" enum="DisplayServer.CursorShape" /> <description> </description> </method> <method name="delete_sub_window"> - <return type="void"> - </return> - <argument index="0" name="window_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="window_id" type="int" /> <description> </description> </method> <method name="dialog_input_text"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="title" type="String"> - </argument> - <argument index="1" name="description" type="String"> - </argument> - <argument index="2" name="existing_text" type="String"> - </argument> - <argument index="3" name="callback" type="Callable"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="title" type="String" /> + <argument index="1" name="description" type="String" /> + <argument index="2" name="existing_text" type="String" /> + <argument index="3" name="callback" type="Callable" /> <description> </description> </method> <method name="dialog_show"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="title" type="String"> - </argument> - <argument index="1" name="description" type="String"> - </argument> - <argument index="2" name="buttons" type="PackedStringArray"> - </argument> - <argument index="3" name="callback" type="Callable"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="title" type="String" /> + <argument index="1" name="description" type="String" /> + <argument index="2" name="buttons" type="PackedStringArray" /> + <argument index="3" name="callback" type="Callable" /> <description> </description> </method> <method name="enable_for_stealing_focus"> - <return type="void"> - </return> - <argument index="0" name="process_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="process_id" type="int" /> <description> </description> </method> <method name="force_process_and_drop_events"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="get_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="get_screen_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_swap_cancel_ok"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="get_window_at_screen_position" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="position" type="Vector2i"> - </argument> + <return type="int" /> + <argument index="0" name="position" type="Vector2i" /> <description> </description> </method> <method name="get_window_list" qualifiers="const"> - <return type="PackedInt32Array"> - </return> + <return type="PackedInt32Array" /> <description> </description> </method> <method name="global_menu_add_check_item"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="callback" type="Callable"> - </argument> - <argument index="3" name="tag" type="Variant" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="label" type="String" /> + <argument index="2" name="callback" type="Callable" /> + <argument index="3" name="tag" type="Variant" default="null" /> <description> </description> </method> <method name="global_menu_add_item"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="callback" type="Callable"> - </argument> - <argument index="3" name="tag" type="Variant" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="label" type="String" /> + <argument index="2" name="callback" type="Callable" /> + <argument index="3" name="tag" type="Variant" default="null" /> <description> </description> </method> <method name="global_menu_add_separator"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> <description> </description> </method> <method name="global_menu_add_submenu_item"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="submenu" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="label" type="String" /> + <argument index="2" name="submenu" type="String" /> <description> </description> </method> <method name="global_menu_clear"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> <description> </description> </method> <method name="global_menu_get_item_callback"> - <return type="Callable"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> + <return type="Callable" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> <description> </description> </method> <method name="global_menu_get_item_submenu"> - <return type="String"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> <description> </description> </method> <method name="global_menu_get_item_tag"> - <return type="Variant"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> <description> </description> </method> <method name="global_menu_get_item_text"> - <return type="String"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> <description> </description> </method> <method name="global_menu_is_item_checkable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> <description> </description> </method> <method name="global_menu_is_item_checked" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> <description> </description> </method> <method name="global_menu_remove_item"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> <description> </description> </method> <method name="global_menu_set_item_callback"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> - <argument index="2" name="callback" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> + <argument index="2" name="callback" type="Callable" /> <description> </description> </method> <method name="global_menu_set_item_checkable"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> - <argument index="2" name="checkable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> + <argument index="2" name="checkable" type="bool" /> <description> </description> </method> <method name="global_menu_set_item_checked"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> - <argument index="2" name="checked" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> + <argument index="2" name="checked" type="bool" /> <description> </description> </method> <method name="global_menu_set_item_submenu"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> - <argument index="2" name="submenu" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> + <argument index="2" name="submenu" type="String" /> <description> </description> </method> <method name="global_menu_set_item_tag"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> - <argument index="2" name="tag" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> + <argument index="2" name="tag" type="Variant" /> <description> </description> </method> <method name="global_menu_set_item_text"> - <return type="void"> - </return> - <argument index="0" name="menu_root" type="String"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> - <argument index="2" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="menu_root" type="String" /> + <argument index="1" name="idx" type="int" /> + <argument index="2" name="text" type="String" /> <description> </description> </method> <method name="has_feature" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="feature" type="int" enum="DisplayServer.Feature"> - </argument> + <return type="bool" /> + <argument index="0" name="feature" type="int" enum="DisplayServer.Feature" /> <description> </description> </method> <method name="ime_get_selection" qualifiers="const"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> </description> </method> <method name="ime_get_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="is_console_visible" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="keyboard_get_current_layout" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns active keyboard layout index. [b]Note:[/b] This method is implemented on Linux, macOS and Windows. </description> </method> <method name="keyboard_get_layout_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of keyboard layouts. [b]Note:[/b] This method is implemented on Linux, macOS and Windows. </description> </method> <method name="keyboard_get_layout_language" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="index" type="int" /> <description> Returns the ISO-639/BCP-47 language code of the keyboard layout at position [code]index[/code]. [b]Note:[/b] This method is implemented on Linux, macOS and Windows. </description> </method> <method name="keyboard_get_layout_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="index" type="int" /> <description> Returns the localized name of the keyboard layout at position [code]index[/code]. [b]Note:[/b] This method is implemented on Linux, macOS and Windows. </description> </method> <method name="keyboard_set_current_layout"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Sets active keyboard layout. [b]Note:[/b] This method is implemented on Linux, macOS and Windows. </description> </method> <method name="mouse_get_absolute_position" qualifiers="const"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> </description> </method> <method name="mouse_get_button_state" qualifiers="const"> - <return type="int" enum="MouseButton"> - </return> + <return type="int" enum="MouseButton" /> <description> </description> </method> <method name="mouse_get_mode" qualifiers="const"> - <return type="int" enum="DisplayServer.MouseMode"> - </return> + <return type="int" enum="DisplayServer.MouseMode" /> <description> </description> </method> <method name="mouse_get_position" qualifiers="const"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> </description> </method> <method name="mouse_set_mode"> - <return type="void"> - </return> - <argument index="0" name="mouse_mode" type="int" enum="DisplayServer.MouseMode"> - </argument> + <return type="void" /> + <argument index="0" name="mouse_mode" type="int" enum="DisplayServer.MouseMode" /> <description> </description> </method> <method name="mouse_warp_to_position"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2i"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2i" /> <description> </description> </method> <method name="process_events"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="screen_get_dpi" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="screen" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="screen" type="int" default="-1" /> <description> Returns the dots per inch density of the specified screen. If [code]screen[/code] is [/code]SCREEN_OF_MAIN_WINDOW[/code] (the default value), a screen with the main window will be used. [b]Note:[/b] On macOS, returned value is inaccurate if fractional display scaling mode is used. @@ -488,8 +363,7 @@ </description> </method> <method name="screen_get_max_scale" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Return the greatest scale factor of all screens. [b]Note:[/b] On macOS returned value is [code]2.0[/code] if there is at least one hiDPI (Retina) screen in the system, and [code]1.0[/code] in all other cases. @@ -497,26 +371,20 @@ </description> </method> <method name="screen_get_orientation" qualifiers="const"> - <return type="int" enum="DisplayServer.ScreenOrientation"> - </return> - <argument index="0" name="screen" type="int" default="-1"> - </argument> + <return type="int" enum="DisplayServer.ScreenOrientation" /> + <argument index="0" name="screen" type="int" default="-1" /> <description> </description> </method> <method name="screen_get_position" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="screen" type="int" default="-1"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="screen" type="int" default="-1" /> <description> </description> </method> <method name="screen_get_scale" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="screen" type="int" default="-1"> - </argument> + <return type="float" /> + <argument index="0" name="screen" type="int" default="-1" /> <description> Return the scale factor of the specified screen by index. [b]Note:[/b] On macOS returned value is [code]2.0[/code] for hiDPI (Retina) screen, and [code]1.0[/code] for all other cases. @@ -524,134 +392,103 @@ </description> </method> <method name="screen_get_size" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="screen" type="int" default="-1"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="screen" type="int" default="-1" /> <description> </description> </method> <method name="screen_get_usable_rect" qualifiers="const"> - <return type="Rect2i"> - </return> - <argument index="0" name="screen" type="int" default="-1"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="screen" type="int" default="-1" /> <description> </description> </method> <method name="screen_is_kept_on" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="screen_is_touchscreen" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="screen" type="int" default="-1"> - </argument> + <return type="bool" /> + <argument index="0" name="screen" type="int" default="-1" /> <description> </description> </method> <method name="screen_set_keep_on"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> </description> </method> <method name="screen_set_orientation"> - <return type="void"> - </return> - <argument index="0" name="orientation" type="int" enum="DisplayServer.ScreenOrientation"> - </argument> - <argument index="1" name="screen" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="orientation" type="int" enum="DisplayServer.ScreenOrientation" /> + <argument index="1" name="screen" type="int" default="-1" /> <description> </description> </method> <method name="set_icon"> - <return type="void"> - </return> - <argument index="0" name="image" type="Image"> - </argument> + <return type="void" /> + <argument index="0" name="image" type="Image" /> <description> </description> </method> <method name="set_native_icon"> - <return type="void"> - </return> - <argument index="0" name="filename" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="filename" type="String" /> <description> </description> </method> <method name="tablet_get_current_driver" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns current active tablet driver name. [b]Note:[/b] This method is implemented on Windows. </description> </method> <method name="tablet_get_driver_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the total number of available tablet drivers. [b]Note:[/b] This method is implemented on Windows. </description> </method> <method name="tablet_get_driver_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the tablet driver name for the given index. [b]Note:[/b] This method is implemented on Windows. </description> </method> <method name="tablet_set_current_driver"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> <description> Set active tablet driver name. [b]Note:[/b] This method is implemented on Windows. </description> </method> <method name="virtual_keyboard_get_height" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the on-screen keyboard's height in pixels. Returns 0 if there is no keyboard or if it is currently hidden. </description> </method> <method name="virtual_keyboard_hide"> - <return type="void"> - </return> + <return type="void" /> <description> Hides the virtual keyboard if it is shown, does nothing otherwise. </description> </method> <method name="virtual_keyboard_show"> - <return type="void"> - </return> - <argument index="0" name="existing_text" type="String"> - </argument> - <argument index="1" name="position" type="Rect2" default="Rect2i(0, 0, 0, 0)"> - </argument> - <argument index="2" name="multiline" type="bool" default="false"> - </argument> - <argument index="3" name="max_length" type="int" default="-1"> - </argument> - <argument index="4" name="cursor_start" type="int" default="-1"> - </argument> - <argument index="5" name="cursor_end" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="existing_text" type="String" /> + <argument index="1" name="position" type="Rect2" default="Rect2i(0, 0, 0, 0)" /> + <argument index="2" name="multiline" type="bool" default="false" /> + <argument index="3" name="max_length" type="int" default="-1" /> + <argument index="4" name="cursor_start" type="int" default="-1" /> + <argument index="5" name="cursor_end" type="int" default="-1" /> <description> Shows the virtual keyboard if the platform has one. [code]existing_text[/code] parameter is useful for implementing your own [LineEdit] or [TextEdit], as it tells the virtual keyboard what text has already been typed (the virtual keyboard uses it for auto-correct and predictions). @@ -664,231 +501,167 @@ </description> </method> <method name="window_attach_instance_id"> - <return type="void"> - </return> - <argument index="0" name="instance_id" type="int"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="instance_id" type="int" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_can_draw" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="bool" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_get_attached_instance_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_get_current_screen" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_get_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="flag" type="int" enum="DisplayServer.WindowFlags"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="bool" /> + <argument index="0" name="flag" type="int" enum="DisplayServer.WindowFlags" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_get_max_size" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_get_min_size" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_get_mode" qualifiers="const"> - <return type="int" enum="DisplayServer.WindowMode"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="int" enum="DisplayServer.WindowMode" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_get_position" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_get_real_size" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_get_size" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_get_vsync_mode" qualifiers="const"> - <return type="int" enum="DisplayServer.VSyncMode"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="int" enum="DisplayServer.VSyncMode" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> Returns the VSync mode of the given window. </description> </method> <method name="window_move_to_foreground"> - <return type="void"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_request_attention"> - <return type="void"> - </return> - <argument index="0" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_current_screen"> - <return type="void"> - </return> - <argument index="0" name="screen" type="int"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="screen" type="int" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_drop_files_callback"> - <return type="void"> - </return> - <argument index="0" name="callback" type="Callable"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="callback" type="Callable" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_flag"> - <return type="void"> - </return> - <argument index="0" name="flag" type="int" enum="DisplayServer.WindowFlags"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> - <argument index="2" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="flag" type="int" enum="DisplayServer.WindowFlags" /> + <argument index="1" name="enabled" type="bool" /> + <argument index="2" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_ime_active"> - <return type="void"> - </return> - <argument index="0" name="active" type="bool"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="active" type="bool" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_ime_position"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2i"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2i" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_input_event_callback"> - <return type="void"> - </return> - <argument index="0" name="callback" type="Callable"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="callback" type="Callable" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_input_text_callback"> - <return type="void"> - </return> - <argument index="0" name="callback" type="Callable"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="callback" type="Callable" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_max_size"> - <return type="void"> - </return> - <argument index="0" name="max_size" type="Vector2i"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="max_size" type="Vector2i" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_min_size"> - <return type="void"> - </return> - <argument index="0" name="min_size" type="Vector2i"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="min_size" type="Vector2i" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_mode"> - <return type="void"> - </return> - <argument index="0" name="mode" type="int" enum="DisplayServer.WindowMode"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="mode" type="int" enum="DisplayServer.WindowMode" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_mouse_passthrough"> - <return type="void"> - </return> - <argument index="0" name="region" type="PackedVector2Array"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="region" type="PackedVector2Array" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> Sets a polygonal region of the window which accepts mouse events. Mouse events outside the region will be passed through. Passing an empty array will disable passthrough support (all mouse events will be intercepted by the window, which is the default behavior). @@ -919,62 +692,44 @@ </description> </method> <method name="window_set_position"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2i"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2i" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_rect_changed_callback"> - <return type="void"> - </return> - <argument index="0" name="callback" type="Callable"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="callback" type="Callable" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_size"> - <return type="void"> - </return> - <argument index="0" name="size" type="Vector2i"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="Vector2i" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_title"> - <return type="void"> - </return> - <argument index="0" name="title" type="String"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="title" type="String" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> <method name="window_set_transient"> - <return type="void"> - </return> - <argument index="0" name="window_id" type="int"> - </argument> - <argument index="1" name="parent_window_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="window_id" type="int" /> + <argument index="1" name="parent_window_id" type="int" /> <description> </description> </method> <method name="window_set_vsync_mode"> - <return type="void"> - </return> - <argument index="0" name="vsync_mode" type="int" enum="DisplayServer.VSyncMode"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="vsync_mode" type="int" enum="DisplayServer.VSyncMode" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> Sets the VSync mode of the given window. See [enum DisplayServer.VSyncMode] for possible values and how they affect the behavior of your application. @@ -982,12 +737,9 @@ </description> </method> <method name="window_set_window_event_callback"> - <return type="void"> - </return> - <argument index="0" name="callback" type="Callable"> - </argument> - <argument index="1" name="window_id" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="callback" type="Callable" /> + <argument index="1" name="window_id" type="int" default="0" /> <description> </description> </method> diff --git a/doc/classes/EditorDebuggerPlugin.xml b/doc/classes/EditorDebuggerPlugin.xml index 9484d33252..d67df8dfee 100644 --- a/doc/classes/EditorDebuggerPlugin.xml +++ b/doc/classes/EditorDebuggerPlugin.xml @@ -12,63 +12,50 @@ </tutorials> <methods> <method name="has_capture"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if a message capture with given name is present otherwise [code]false[/code]. </description> </method> <method name="is_breaked"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the game is in break state otherwise [code]false[/code]. </description> </method> <method name="is_debuggable"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the game can be debugged otherwise [code]false[/code]. </description> </method> <method name="is_session_active"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if there is an instance of the game running with the attached debugger otherwise [code]false[/code]. </description> </method> <method name="register_message_capture"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="callable" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="callable" type="Callable" /> <description> Registers a message capture with given [code]name[/code]. If [code]name[/code] is "my_message" then messages starting with "my_message:" will be called with the given callable. Callable must accept a message string and a data array as argument. If the message and data are valid then callable must return [code]true[/code] otherwise [code]false[/code]. </description> </method> <method name="send_message"> - <return type="void"> - </return> - <argument index="0" name="message" type="String"> - </argument> - <argument index="1" name="data" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="message" type="String" /> + <argument index="1" name="data" type="Array" /> <description> Sends a message with given [code]message[/code] and [code]data[/code] array. </description> </method> <method name="unregister_message_capture"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Unregisters the message capture with given name. </description> @@ -76,8 +63,7 @@ </methods> <signals> <signal name="breaked"> - <argument index="0" name="can_debug" type="bool"> - </argument> + <argument index="0" name="can_debug" type="bool" /> <description> Emitted when the game enters a break state. </description> diff --git a/doc/classes/EditorExportPlugin.xml b/doc/classes/EditorExportPlugin.xml index d9e3003fbb..16c50b4d3e 100644 --- a/doc/classes/EditorExportPlugin.xml +++ b/doc/classes/EditorExportPlugin.xml @@ -10,77 +10,57 @@ </tutorials> <methods> <method name="_export_begin" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="features" type="PackedStringArray"> - </argument> - <argument index="1" name="is_debug" type="bool"> - </argument> - <argument index="2" name="path" type="String"> - </argument> - <argument index="3" name="flags" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="features" type="PackedStringArray" /> + <argument index="1" name="is_debug" type="bool" /> + <argument index="2" name="path" type="String" /> + <argument index="3" name="flags" type="int" /> <description> Virtual method to be overridden by the user. It is called when the export starts and provides all information about the export. [code]features[/code] is the list of features for the export, [code]is_debug[/code] is [code]true[/code] for debug builds, [code]path[/code] is the target path for the exported project. [code]flags[/code] is only used when running a runnable profile, e.g. when using native run on Android. </description> </method> <method name="_export_end" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Virtual method to be overridden by the user. Called when the export is finished. </description> </method> <method name="_export_file" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="features" type="PackedStringArray"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="type" type="String" /> + <argument index="2" name="features" type="PackedStringArray" /> <description> Virtual method to be overridden by the user. Called for each exported file, providing arguments that can be used to identify the file. [code]path[/code] is the path of the file, [code]type[/code] is the [Resource] represented by the file (e.g. [PackedScene]) and [code]features[/code] is the list of features for the export. Calling [method skip] inside this callback will make the file not included in the export. </description> </method> <method name="add_file"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="file" type="PackedByteArray"> - </argument> - <argument index="2" name="remap" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="file" type="PackedByteArray" /> + <argument index="2" name="remap" type="bool" /> <description> Adds a custom file to be exported. [code]path[/code] is the virtual path that can be used to load the file, [code]file[/code] is the binary data of the file. If [code]remap[/code] is [code]true[/code], file will not be exported, but instead remapped to the given [code]path[/code]. </description> </method> <method name="add_ios_bundle_file"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> <description> Adds an iOS bundle file from the given [code]path[/code] to the exported project. </description> </method> <method name="add_ios_cpp_code"> - <return type="void"> - </return> - <argument index="0" name="code" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="code" type="String" /> <description> Adds a C++ code to the iOS export. The final code is created from the code appended by each active export plugin. </description> </method> <method name="add_ios_embedded_framework"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> <description> Adds a dynamic library (*.dylib, *.framework) to Linking Phase in iOS's Xcode project and embeds it into resulting binary. [b]Note:[/b] For static libraries (*.a) works in same way as [code]add_ios_framework[/code]. @@ -88,55 +68,43 @@ </description> </method> <method name="add_ios_framework"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> <description> Adds a static library (*.a) or dynamic library (*.dylib, *.framework) to Linking Phase in iOS's Xcode project. </description> </method> <method name="add_ios_linker_flags"> - <return type="void"> - </return> - <argument index="0" name="flags" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="flags" type="String" /> <description> Adds linker flags for the iOS export. </description> </method> <method name="add_ios_plist_content"> - <return type="void"> - </return> - <argument index="0" name="plist_content" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="plist_content" type="String" /> <description> Adds content for iOS Property List files. </description> </method> <method name="add_ios_project_static_lib"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> <description> Adds a static lib from the given [code]path[/code] to the iOS project. </description> </method> <method name="add_shared_object"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="tags" type="PackedStringArray"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="tags" type="PackedStringArray" /> <description> Adds a shared object with the given [code]tags[/code] and destination [code]path[/code]. </description> </method> <method name="skip"> - <return type="void"> - </return> + <return type="void" /> <description> To be called inside [method _export_file]. Skips the current file, so it's not included in the export. </description> diff --git a/doc/classes/EditorFeatureProfile.xml b/doc/classes/EditorFeatureProfile.xml index 0cd839f370..a41730d5d0 100644 --- a/doc/classes/EditorFeatureProfile.xml +++ b/doc/classes/EditorFeatureProfile.xml @@ -11,112 +11,84 @@ </tutorials> <methods> <method name="get_feature_name"> - <return type="String"> - </return> - <argument index="0" name="feature" type="int" enum="EditorFeatureProfile.Feature"> - </argument> + <return type="String" /> + <argument index="0" name="feature" type="int" enum="EditorFeatureProfile.Feature" /> <description> Returns the specified [code]feature[/code]'s human-readable name. </description> </method> <method name="is_class_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class_name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="class_name" type="StringName" /> <description> Returns [code]true[/code] if the class specified by [code]class_name[/code] is disabled. When disabled, the class won't appear in the Create New Node dialog. </description> </method> <method name="is_class_editor_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class_name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="class_name" type="StringName" /> <description> Returns [code]true[/code] if editing for the class specified by [code]class_name[/code] is disabled. When disabled, the class will still appear in the Create New Node dialog but the inspector will be read-only when selecting a node that extends the class. </description> </method> <method name="is_class_property_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class_name" type="StringName"> - </argument> - <argument index="1" name="property" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="class_name" type="StringName" /> + <argument index="1" name="property" type="StringName" /> <description> Returns [code]true[/code] if [code]property[/code] is disabled in the class specified by [code]class_name[/code]. When a property is disabled, it won't appear in the inspector when selecting a node that extends the class specified by [code]class_name[/code]. </description> </method> <method name="is_feature_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="feature" type="int" enum="EditorFeatureProfile.Feature"> - </argument> + <return type="bool" /> + <argument index="0" name="feature" type="int" enum="EditorFeatureProfile.Feature" /> <description> Returns [code]true[/code] if the [code]feature[/code] is disabled. When a feature is disabled, it will disappear from the editor entirely. </description> </method> <method name="load_from_file"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Loads an editor feature profile from a file. The file must follow the JSON format obtained by using the feature profile manager's [b]Export[/b] button or the [method save_to_file] method. </description> </method> <method name="save_to_file"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Saves the editor feature profile to a file in JSON format. It can then be imported using the feature profile manager's [b]Import[/b] button or the [method load_from_file] button. </description> </method> <method name="set_disable_class"> - <return type="void"> - </return> - <argument index="0" name="class_name" type="StringName"> - </argument> - <argument index="1" name="disable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="class_name" type="StringName" /> + <argument index="1" name="disable" type="bool" /> <description> If [code]disable[/code] is [code]true[/code], disables the class specified by [code]class_name[/code]. When disabled, the class won't appear in the Create New Node dialog. </description> </method> <method name="set_disable_class_editor"> - <return type="void"> - </return> - <argument index="0" name="class_name" type="StringName"> - </argument> - <argument index="1" name="disable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="class_name" type="StringName" /> + <argument index="1" name="disable" type="bool" /> <description> If [code]disable[/code] is [code]true[/code], disables editing for the class specified by [code]class_name[/code]. When disabled, the class will still appear in the Create New Node dialog but the inspector will be read-only when selecting a node that extends the class. </description> </method> <method name="set_disable_class_property"> - <return type="void"> - </return> - <argument index="0" name="class_name" type="StringName"> - </argument> - <argument index="1" name="property" type="StringName"> - </argument> - <argument index="2" name="disable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="class_name" type="StringName" /> + <argument index="1" name="property" type="StringName" /> + <argument index="2" name="disable" type="bool" /> <description> If [code]disable[/code] is [code]true[/code], disables editing for [code]property[/code] in the class specified by [code]class_name[/code]. When a property is disabled, it won't appear in the inspector when selecting a node that extends the class specified by [code]class_name[/code]. </description> </method> <method name="set_disable_feature"> - <return type="void"> - </return> - <argument index="0" name="feature" type="int" enum="EditorFeatureProfile.Feature"> - </argument> - <argument index="1" name="disable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="feature" type="int" enum="EditorFeatureProfile.Feature" /> + <argument index="1" name="disable" type="bool" /> <description> If [code]disable[/code] is [code]true[/code], disables the editor feature specified in [code]feature[/code]. When a feature is disabled, it will disappear from the editor entirely. </description> diff --git a/doc/classes/EditorFileDialog.xml b/doc/classes/EditorFileDialog.xml index 084459e518..53fba9f3b8 100644 --- a/doc/classes/EditorFileDialog.xml +++ b/doc/classes/EditorFileDialog.xml @@ -9,32 +9,27 @@ </tutorials> <methods> <method name="add_filter"> - <return type="void"> - </return> - <argument index="0" name="filter" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="filter" type="String" /> <description> Adds a comma-delimited file extension filter option to the [EditorFileDialog] with an optional semi-colon-delimited label. For example, [code]"*.tscn, *.scn; Scenes"[/code] results in filter text "Scenes (*.tscn, *.scn)". </description> </method> <method name="clear_filters"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all filters except for "All Files (*)". </description> </method> <method name="get_vbox"> - <return type="VBoxContainer"> - </return> + <return type="VBoxContainer" /> <description> Returns the [code]VBoxContainer[/code] used to display the file system. </description> </method> <method name="invalidate"> - <return type="void"> - </return> + <return type="void" /> <description> Notify the [EditorFileDialog] that its view of the data is no longer accurate. Updates the view contents on next view update. </description> @@ -70,22 +65,19 @@ </members> <signals> <signal name="dir_selected"> - <argument index="0" name="dir" type="String"> - </argument> + <argument index="0" name="dir" type="String" /> <description> Emitted when a directory is selected. </description> </signal> <signal name="file_selected"> - <argument index="0" name="path" type="String"> - </argument> + <argument index="0" name="path" type="String" /> <description> Emitted when a file is selected. </description> </signal> <signal name="files_selected"> - <argument index="0" name="paths" type="PackedStringArray"> - </argument> + <argument index="0" name="paths" type="PackedStringArray" /> <description> Emitted when multiple files are selected. </description> diff --git a/doc/classes/EditorFileSystem.xml b/doc/classes/EditorFileSystem.xml index 3a045817c2..6b4a2b03a3 100644 --- a/doc/classes/EditorFileSystem.xml +++ b/doc/classes/EditorFileSystem.xml @@ -11,70 +11,58 @@ </tutorials> <methods> <method name="get_file_type" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="path" type="String" /> <description> Gets the type of the file, given the full path. </description> </method> <method name="get_filesystem"> - <return type="EditorFileSystemDirectory"> - </return> + <return type="EditorFileSystemDirectory" /> <description> Gets the root directory object. </description> </method> <method name="get_filesystem_path"> - <return type="EditorFileSystemDirectory"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="EditorFileSystemDirectory" /> + <argument index="0" name="path" type="String" /> <description> Returns a view into the filesystem at [code]path[/code]. </description> </method> <method name="get_scanning_progress" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the scan progress for 0 to 1 if the FS is being scanned. </description> </method> <method name="is_scanning" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] of the filesystem is being scanned. </description> </method> <method name="scan"> - <return type="void"> - </return> + <return type="void" /> <description> Scan the filesystem for changes. </description> </method> <method name="scan_sources"> - <return type="void"> - </return> + <return type="void" /> <description> Check if the source of any imported resource changed. </description> </method> <method name="update_file"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> <description> Update a file information. Call this if an external program (not Godot) modified the file. </description> </method> <method name="update_script_classes"> - <return type="void"> - </return> + <return type="void" /> <description> Scans the script files and updates the list of custom class names. </description> @@ -87,22 +75,19 @@ </description> </signal> <signal name="resources_reimported"> - <argument index="0" name="resources" type="PackedStringArray"> - </argument> + <argument index="0" name="resources" type="PackedStringArray" /> <description> Emitted if a resource is reimported. </description> </signal> <signal name="resources_reload"> - <argument index="0" name="resources" type="PackedStringArray"> - </argument> + <argument index="0" name="resources" type="PackedStringArray" /> <description> Emitted if at least one resource is reloaded when the filesystem is scanned. </description> </signal> <signal name="sources_changed"> - <argument index="0" name="exist" type="bool"> - </argument> + <argument index="0" name="exist" type="bool" /> <description> Emitted if the source of any imported file changed. </description> diff --git a/doc/classes/EditorFileSystemDirectory.xml b/doc/classes/EditorFileSystemDirectory.xml index b852ae1063..28793cb8af 100644 --- a/doc/classes/EditorFileSystemDirectory.xml +++ b/doc/classes/EditorFileSystemDirectory.xml @@ -10,117 +10,94 @@ </tutorials> <methods> <method name="find_dir_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="String" /> <description> Returns the index of the directory with name [code]name[/code] or [code]-1[/code] if not found. </description> </method> <method name="find_file_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="String" /> <description> Returns the index of the file with name [code]name[/code] or [code]-1[/code] if not found. </description> </method> <method name="get_file" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the name of the file at index [code]idx[/code]. </description> </method> <method name="get_file_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of files in this directory. </description> </method> <method name="get_file_import_is_valid" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the file at index [code]idx[/code] imported properly. </description> </method> <method name="get_file_path" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the path to the file at index [code]idx[/code]. </description> </method> <method name="get_file_script_class_extends" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the base class of the script class defined in the file at index [code]idx[/code]. If the file doesn't define a script class using the [code]class_name[/code] syntax, this will return an empty string. </description> </method> <method name="get_file_script_class_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the name of the script class defined in the file at index [code]idx[/code]. If the file doesn't define a script class using the [code]class_name[/code] syntax, this will return an empty string. </description> </method> <method name="get_file_type" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="idx" type="int" /> <description> Returns the file extension of the file at index [code]idx[/code]. </description> </method> <method name="get_name"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the name of this directory. </description> </method> <method name="get_parent"> - <return type="EditorFileSystemDirectory"> - </return> + <return type="EditorFileSystemDirectory" /> <description> Returns the parent directory for this directory or [code]null[/code] if called on a directory at [code]res://[/code] or [code]user://[/code]. </description> </method> <method name="get_path" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the path to this directory. </description> </method> <method name="get_subdir"> - <return type="EditorFileSystemDirectory"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="EditorFileSystemDirectory" /> + <argument index="0" name="idx" type="int" /> <description> Returns the subdirectory at index [code]idx[/code]. </description> </method> <method name="get_subdir_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of subdirectories in this directory. </description> diff --git a/doc/classes/EditorImportPlugin.xml b/doc/classes/EditorImportPlugin.xml index 1722b278f8..b379ccc8c6 100644 --- a/doc/classes/EditorImportPlugin.xml +++ b/doc/classes/EditorImportPlugin.xml @@ -114,35 +114,28 @@ </tutorials> <methods> <method name="_get_import_options" qualifiers="virtual"> - <return type="Array"> - </return> - <argument index="0" name="preset" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="preset" type="int" /> <description> Gets the options and default values for the preset at this index. Returns an Array of Dictionaries with the following keys: [code]name[/code], [code]default_value[/code], [code]property_hint[/code] (optional), [code]hint_string[/code] (optional), [code]usage[/code] (optional). </description> </method> <method name="_get_import_order" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> Gets the order of this importer to be run when importing resources. Importers with [i]lower[/i] import orders will be called first, and higher values will be called later. Use this to ensure the importer runs after the dependencies are already imported. The default import order is [code]0[/code] unless overridden by a specific importer. See [enum ResourceImporter.ImportOrder] for some predefined values. </description> </method> <method name="_get_importer_name" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Gets the unique name of the importer. </description> </method> <method name="_get_option_visibility" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="option" type="String"> - </argument> - <argument index="1" name="options" type="Dictionary"> - </argument> + <return type="bool" /> + <argument index="0" name="option" type="String" /> + <argument index="1" name="options" type="Dictionary" /> <description> This method can be overridden to hide specific import options if conditions are met. This is mainly useful for hiding options that depend on others if one of them is disabled. For example: [codeblocks] @@ -171,69 +164,55 @@ </description> </method> <method name="_get_preset_count" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> Gets the number of initial presets defined by the plugin. Use [method _get_import_options] to get the default options for the preset and [method _get_preset_name] to get the name of the preset. </description> </method> <method name="_get_preset_name" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="preset" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="preset" type="int" /> <description> Gets the name of the options preset at this index. </description> </method> <method name="_get_priority" qualifiers="virtual"> - <return type="float"> - </return> + <return type="float" /> <description> Gets the priority of this plugin for the recognized extension. Higher priority plugins will be preferred. The default priority is [code]1.0[/code]. </description> </method> <method name="_get_recognized_extensions" qualifiers="virtual"> - <return type="Array"> - </return> + <return type="Array" /> <description> Gets the list of file extensions to associate with this loader (case-insensitive). e.g. [code]["obj"][/code]. </description> </method> <method name="_get_resource_type" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Gets the Godot resource type associated with this loader. e.g. [code]"Mesh"[/code] or [code]"Animation"[/code]. </description> </method> <method name="_get_save_extension" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Gets the extension used to save this resource in the [code].godot/imported[/code] directory. </description> </method> <method name="_get_visible_name" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Gets the name to display in the import window. You should choose this name as a continuation to "Import as", e.g. "Import as Special Mesh". </description> </method> <method name="_import" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="source_file" type="String"> - </argument> - <argument index="1" name="save_path" type="String"> - </argument> - <argument index="2" name="options" type="Dictionary"> - </argument> - <argument index="3" name="platform_variants" type="Array"> - </argument> - <argument index="4" name="gen_files" type="Array"> - </argument> + <return type="int" /> + <argument index="0" name="source_file" type="String" /> + <argument index="1" name="save_path" type="String" /> + <argument index="2" name="options" type="Dictionary" /> + <argument index="3" name="platform_variants" type="Array" /> + <argument index="4" name="gen_files" type="Array" /> <description> Imports [code]source_file[/code] into [code]save_path[/code] with the import [code]options[/code] specified. The [code]platform_variants[/code] and [code]gen_files[/code] arrays will be modified by this function. This method must be overridden to do the actual importing work. See this class' description for an example of overriding this method. diff --git a/doc/classes/EditorInspector.xml b/doc/classes/EditorInspector.xml index d85f95baff..515c4b4d32 100644 --- a/doc/classes/EditorInspector.xml +++ b/doc/classes/EditorInspector.xml @@ -16,55 +16,46 @@ </members> <signals> <signal name="object_id_selected"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted when the Edit button of an [Object] has been pressed in the inspector. This is mainly used in the remote scene tree inspector. </description> </signal> <signal name="property_deleted"> - <argument index="0" name="property" type="String"> - </argument> + <argument index="0" name="property" type="String" /> <description> Emitted when a property is removed from the inspector. </description> </signal> <signal name="property_edited"> - <argument index="0" name="property" type="String"> - </argument> + <argument index="0" name="property" type="String" /> <description> Emitted when a property is edited in the inspector. </description> </signal> <signal name="property_keyed"> - <argument index="0" name="property" type="String"> - </argument> + <argument index="0" name="property" type="String" /> <description> Emitted when a property is keyed in the inspector. Properties can be keyed by clicking the "key" icon next to a property when the Animation panel is toggled. </description> </signal> <signal name="property_selected"> - <argument index="0" name="property" type="String"> - </argument> + <argument index="0" name="property" type="String" /> <description> Emitted when a property is selected in the inspector. </description> </signal> <signal name="property_toggled"> - <argument index="0" name="property" type="String"> - </argument> - <argument index="1" name="checked" type="bool"> - </argument> + <argument index="0" name="property" type="String" /> + <argument index="1" name="checked" type="bool" /> <description> Emitted when a boolean property is toggled in the inspector. [b]Note:[/b] This signal is never emitted if the internal [code]autoclear[/code] property enabled. Since this property is always enabled in the editor inspector, this signal is never emitted by the editor itself. </description> </signal> <signal name="resource_selected"> - <argument index="0" name="res" type="Object"> - </argument> - <argument index="1" name="prop" type="String"> - </argument> + <argument index="0" name="res" type="Object" /> + <argument index="1" name="prop" type="String" /> <description> Emitted when a resource is selected in the inspector. </description> diff --git a/doc/classes/EditorInspectorPlugin.xml b/doc/classes/EditorInspectorPlugin.xml index c992d0fbb4..085568466a 100644 --- a/doc/classes/EditorInspectorPlugin.xml +++ b/doc/classes/EditorInspectorPlugin.xml @@ -16,83 +16,62 @@ </tutorials> <methods> <method name="_can_handle" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="object" type="Object"> - </argument> + <return type="bool" /> + <argument index="0" name="object" type="Object" /> <description> Returns [code]true[/code] if this object can be handled by this plugin. </description> </method> <method name="_parse_begin" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called to allow adding controls at the beginning of the list. </description> </method> <method name="_parse_category" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="category" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="category" type="String" /> <description> Called to allow adding controls at the beginning of the category. </description> </method> <method name="_parse_end" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called to allow adding controls at the end of the list. </description> </method> <method name="_parse_property" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="type" type="int"> - </argument> - <argument index="1" name="path" type="String"> - </argument> - <argument index="2" name="hint" type="int"> - </argument> - <argument index="3" name="hint_text" type="String"> - </argument> - <argument index="4" name="usage" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="type" type="int" /> + <argument index="1" name="path" type="String" /> + <argument index="2" name="hint" type="int" /> + <argument index="3" name="hint_text" type="String" /> + <argument index="4" name="usage" type="int" /> <description> Called to allow adding property specific editors to the inspector. Usually these inherit [EditorProperty]. Returning [code]true[/code] removes the built-in editor for this property, otherwise allows to insert a custom editor before the built-in one. </description> </method> <method name="add_custom_control"> - <return type="void"> - </return> - <argument index="0" name="control" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="control" type="Control" /> <description> Adds a custom control, not necessarily a property editor. </description> </method> <method name="add_property_editor"> - <return type="void"> - </return> - <argument index="0" name="property" type="String"> - </argument> - <argument index="1" name="editor" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="property" type="String" /> + <argument index="1" name="editor" type="Control" /> <description> Adds a property editor, this must inherit [EditorProperty]. </description> </method> <method name="add_property_editor_for_multiple_properties"> - <return type="void"> - </return> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="properties" type="PackedStringArray"> - </argument> - <argument index="2" name="editor" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="label" type="String" /> + <argument index="1" name="properties" type="PackedStringArray" /> + <argument index="2" name="editor" type="Control" /> <description> Adds an editor that allows modifying multiple properties, this must inherit [EditorProperty]. </description> diff --git a/doc/classes/EditorInterface.xml b/doc/classes/EditorInterface.xml index 3f324bf1a0..185b4f8c39 100644 --- a/doc/classes/EditorInterface.xml +++ b/doc/classes/EditorInterface.xml @@ -11,267 +11,217 @@ </tutorials> <methods> <method name="edit_node"> - <return type="void"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Node" /> <description> Edits the given [Node]. The node will be also selected if it's inside the scene tree. </description> </method> <method name="edit_resource"> - <return type="void"> - </return> - <argument index="0" name="resource" type="Resource"> - </argument> + <return type="void" /> + <argument index="0" name="resource" type="Resource" /> <description> Edits the given [Resource]. </description> </method> <method name="get_base_control"> - <return type="Control"> - </return> + <return type="Control" /> <description> Returns the main container of Godot editor's window. For example, you can use it to retrieve the size of the container and place your controls accordingly. </description> </method> <method name="get_current_path" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the current path being viewed in the [FileSystemDock]. </description> </method> <method name="get_edited_scene_root"> - <return type="Node"> - </return> + <return type="Node" /> <description> Returns the edited (current) scene's root [Node]. </description> </method> <method name="get_editor_main_control"> - <return type="Control"> - </return> + <return type="Control" /> <description> Returns the main editor control. Use this as a parent for main screens. [b]Note:[/b] This returns the main editor control containing the whole editor, not the 2D or 3D viewports specifically. </description> </method> <method name="get_editor_paths"> - <return type="EditorPaths"> - </return> + <return type="EditorPaths" /> <description> </description> </method> <method name="get_editor_scale" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the actual scale of the editor UI ([code]1.0[/code] being 100% scale). This can be used to adjust position and dimensions of the UI added by plugins. [b]Note:[/b] This value is set via the [code]interface/editor/display_scale[/code] and [code]interface/editor/custom_display_scale[/code] editor settings. Editor must be restarted for changes to be properly applied. </description> </method> <method name="get_editor_settings"> - <return type="EditorSettings"> - </return> + <return type="EditorSettings" /> <description> Returns the editor's [EditorSettings] instance. </description> </method> <method name="get_file_system_dock"> - <return type="FileSystemDock"> - </return> + <return type="FileSystemDock" /> <description> Returns the editor's [FileSystemDock] instance. </description> </method> <method name="get_inspector" qualifiers="const"> - <return type="EditorInspector"> - </return> + <return type="EditorInspector" /> <description> Returns the editor's [EditorInspector] instance. </description> </method> <method name="get_open_scenes" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an [Array] with the file paths of the currently opened scenes. </description> </method> <method name="get_playing_scene" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the name of the scene that is being played. If no scene is currently being played, returns an empty string. </description> </method> <method name="get_resource_filesystem"> - <return type="EditorFileSystem"> - </return> + <return type="EditorFileSystem" /> <description> Returns the editor's [EditorFileSystem] instance. </description> </method> <method name="get_resource_previewer"> - <return type="EditorResourcePreview"> - </return> + <return type="EditorResourcePreview" /> <description> Returns the editor's [EditorResourcePreview] instance. </description> </method> <method name="get_script_editor"> - <return type="ScriptEditor"> - </return> + <return type="ScriptEditor" /> <description> Returns the editor's [ScriptEditor] instance. </description> </method> <method name="get_selected_path" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the path of the directory currently selected in the [FileSystemDock]. If a file is selected, its base directory will be returned using [method String.get_base_dir] instead. </description> </method> <method name="get_selection"> - <return type="EditorSelection"> - </return> + <return type="EditorSelection" /> <description> Returns the editor's [EditorSelection] instance. </description> </method> <method name="inspect_object"> - <return type="void"> - </return> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="for_property" type="String" default=""""> - </argument> - <argument index="2" name="inspector_only" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="object" type="Object" /> + <argument index="1" name="for_property" type="String" default="""" /> + <argument index="2" name="inspector_only" type="bool" default="false" /> <description> Shows the given property on the given [code]object[/code] in the editor's Inspector dock. If [code]inspector_only[/code] is [code]true[/code], plugins will not attempt to edit [code]object[/code]. </description> </method> <method name="is_playing_scene" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if a scene is currently being played, [code]false[/code] otherwise. Paused scenes are considered as being played. </description> </method> <method name="is_plugin_enabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="plugin" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="plugin" type="String" /> <description> Returns [code]true[/code] if the specified [code]plugin[/code] is enabled. The plugin name is the same as its directory name. </description> </method> <method name="make_mesh_previews"> - <return type="Array"> - </return> - <argument index="0" name="meshes" type="Array"> - </argument> - <argument index="1" name="preview_size" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="meshes" type="Array" /> + <argument index="1" name="preview_size" type="int" /> <description> Returns mesh previews rendered at the given size as an [Array] of [Texture2D]s. </description> </method> <method name="open_scene_from_path"> - <return type="void"> - </return> - <argument index="0" name="scene_filepath" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="scene_filepath" type="String" /> <description> Opens the scene at the given path. </description> </method> <method name="play_current_scene"> - <return type="void"> - </return> + <return type="void" /> <description> Plays the currently active scene. </description> </method> <method name="play_custom_scene"> - <return type="void"> - </return> - <argument index="0" name="scene_filepath" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="scene_filepath" type="String" /> <description> Plays the scene specified by its filepath. </description> </method> <method name="play_main_scene"> - <return type="void"> - </return> + <return type="void" /> <description> Plays the main scene. </description> </method> <method name="reload_scene_from_path"> - <return type="void"> - </return> - <argument index="0" name="scene_filepath" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="scene_filepath" type="String" /> <description> Reloads the scene at the given path. </description> </method> <method name="save_scene"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Saves the scene. Returns either [code]OK[/code] or [code]ERR_CANT_CREATE[/code] (see [@GlobalScope] constants). </description> </method> <method name="save_scene_as"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="with_preview" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="with_preview" type="bool" default="true" /> <description> Saves the scene as a file at [code]path[/code]. </description> </method> <method name="select_file"> - <return type="void"> - </return> - <argument index="0" name="file" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="file" type="String" /> <description> Selects the file, with the path provided by [code]file[/code], in the FileSystem dock. </description> </method> <method name="set_main_screen_editor"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> <description> Sets the editor's current main screen to the one specified in [code]name[/code]. [code]name[/code] must match the text of the tab in question exactly ([code]2D[/code], [code]3D[/code], [code]Script[/code], [code]AssetLib[/code]). </description> </method> <method name="set_plugin_enabled"> - <return type="void"> - </return> - <argument index="0" name="plugin" type="String"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="plugin" type="String" /> + <argument index="1" name="enabled" type="bool" /> <description> Sets the enabled status of a plugin. The plugin name is the same as its directory name. </description> </method> <method name="stop_playing_scene"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the scene that is currently playing. </description> diff --git a/doc/classes/EditorNode3DGizmo.xml b/doc/classes/EditorNode3DGizmo.xml index d4d1e4a652..39f6805254 100644 --- a/doc/classes/EditorNode3DGizmo.xml +++ b/doc/classes/EditorNode3DGizmo.xml @@ -10,253 +10,189 @@ </tutorials> <methods> <method name="_commit_handle" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="restore" type="Variant"> - </argument> - <argument index="2" name="cancel" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="restore" type="Variant" /> + <argument index="2" name="cancel" type="bool" default="false" /> <description> Override this method to commit a handle being edited (handles must have been previously added by [method add_handles]). This usually means creating an [UndoRedo] action for the change, using the current handle value as "do" and the [code]restore[/code] argument as "undo". If the [code]cancel[/code] argument is [code]true[/code], the [code]restore[/code] value should be directly set, without any [UndoRedo] action. </description> </method> <method name="_commit_subgizmos" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="ids" type="PackedInt32Array"> - </argument> - <argument index="1" name="restore" type="Array"> - </argument> - <argument index="2" name="cancel" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="ids" type="PackedInt32Array" /> + <argument index="1" name="restore" type="Array" /> + <argument index="2" name="cancel" type="bool" default="false" /> <description> Override this method to commit a group of subgizmos being edited (see [method _subgizmos_intersect_ray] and [method _subgizmos_intersect_frustum]). This usually means creating an [UndoRedo] action for the change, using the current transforms as "do" and the [code]restore[/code] transforms as "undo". If the [code]cancel[/code] argument is [code]true[/code], the [code]restore[/code] transforms should be directly set, without any [UndoRedo] action. </description> </method> <method name="_get_handle_name" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="id" type="int" /> <description> Override this method to return the name of an edited handle (handles must have been previously added by [method add_handles]). Handles can be named for reference to the user when editing. </description> </method> <method name="_get_handle_value" qualifiers="virtual"> - <return type="Variant"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="id" type="int" /> <description> Override this method to return the current value of a handle. This value will be requested at the start of an edit and used as the [code]restore[/code] argument in [method _commit_handle]. </description> </method> <method name="_get_subgizmo_transform" qualifiers="virtual"> - <return type="Transform3D"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="id" type="int" /> <description> Override this method to return the current transform of a subgizmo. This transform will be requested at the start of an edit and used as the [code]restore[/code] argument in [method _commit_subgizmos]. </description> </method> <method name="_is_handle_highlighted" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> Override this method to return [code]true[/code] whenever the given handle should be highlighted in the editor. </description> </method> <method name="_redraw" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Override this method to add all the gizmo elements whenever a gizmo update is requested. It's common to call [method clear] at the beginning of this method and then add visual elements depending on the node's properties. </description> </method> <method name="_set_handle" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="camera" type="Camera3D"> - </argument> - <argument index="2" name="point" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="camera" type="Camera3D" /> + <argument index="2" name="point" type="Vector2" /> <description> Override this method to update the node properties when the user drags a gizmo handle (previously added with [method add_handles]). The provided [code]point[/code] is the mouse position in screen coordinates and the [code]camera[/code] can be used to convert it to raycasts. </description> </method> <method name="_set_subgizmo_transform" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="transform" type="Transform3D" /> <description> Override this method to update the node properties during subgizmo editing (see [method _subgizmos_intersect_ray] and [method _subgizmos_intersect_frustum]). The [code]transform[/code] is given in the Node3D's local coordinate system. </description> </method> <method name="_subgizmos_intersect_frustum" qualifiers="virtual"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="camera" type="Camera3D"> - </argument> - <argument index="1" name="frustum" type="Array"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="camera" type="Camera3D" /> + <argument index="1" name="frustum" type="Array" /> <description> Override this method to allow selecting subgizmos using mouse drag box selection. Given a [code]camera[/code] and a [code]frustum[/code], this method should return which subgizmos are contained within the frustum. The [code]frustum[/code] argument consists of an [code]Array[/code] with all the [code]Plane[/code]s that make up the selection frustum. The returned value should contain a list of unique subgizmo identifiers, which can have any non-negative value and will be used in other virtual methods like [method _get_subgizmo_transform] or [method _commit_subgizmos]. </description> </method> <method name="_subgizmos_intersect_ray" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="camera" type="Camera3D"> - </argument> - <argument index="1" name="point" type="Vector2"> - </argument> + <return type="int" /> + <argument index="0" name="camera" type="Camera3D" /> + <argument index="1" name="point" type="Vector2" /> <description> Override this method to allow selecting subgizmos using mouse clicks. Given a [code]camera[/code] and a [code]point[/code] in screen coordinates, this method should return which subgizmo should be selected. The returned value should be a unique subgizmo identifier, which can have any non-negative value and will be used in other virtual methods like [method _get_subgizmo_transform] or [method _commit_subgizmos]. </description> </method> <method name="add_collision_segments"> - <return type="void"> - </return> - <argument index="0" name="segments" type="PackedVector3Array"> - </argument> + <return type="void" /> + <argument index="0" name="segments" type="PackedVector3Array" /> <description> Adds the specified [code]segments[/code] to the gizmo's collision shape for picking. Call this method during [method _redraw]. </description> </method> <method name="add_collision_triangles"> - <return type="void"> - </return> - <argument index="0" name="triangles" type="TriangleMesh"> - </argument> + <return type="void" /> + <argument index="0" name="triangles" type="TriangleMesh" /> <description> Adds collision triangles to the gizmo for picking. A [TriangleMesh] can be generated from a regular [Mesh] too. Call this method during [method _redraw]. </description> </method> <method name="add_handles"> - <return type="void"> - </return> - <argument index="0" name="handles" type="PackedVector3Array"> - </argument> - <argument index="1" name="material" type="Material"> - </argument> - <argument index="2" name="ids" type="PackedInt32Array"> - </argument> - <argument index="3" name="billboard" type="bool" default="false"> - </argument> - <argument index="4" name="secondary" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="handles" type="PackedVector3Array" /> + <argument index="1" name="material" type="Material" /> + <argument index="2" name="ids" type="PackedInt32Array" /> + <argument index="3" name="billboard" type="bool" default="false" /> + <argument index="4" name="secondary" type="bool" default="false" /> <description> Adds a list of handles (points) which can be used to edit the properties of the gizmo's Node3D. The [code]ids[/code] argument can be used to specify a custom identifier for each handle, if an empty [code]Array[/code] is passed, the ids will be assigned automatically from the [code]handles[/code] argument order. There are virtual methods which will be called upon editing of these handles. Call this method during [method _redraw]. </description> </method> <method name="add_lines"> - <return type="void"> - </return> - <argument index="0" name="lines" type="PackedVector3Array"> - </argument> - <argument index="1" name="material" type="Material"> - </argument> - <argument index="2" name="billboard" type="bool" default="false"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="lines" type="PackedVector3Array" /> + <argument index="1" name="material" type="Material" /> + <argument index="2" name="billboard" type="bool" default="false" /> + <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> <description> Adds lines to the gizmo (as sets of 2 points), with a given material. The lines are used for visualizing the gizmo. Call this method during [method _redraw]. </description> </method> <method name="add_mesh"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="ArrayMesh"> - </argument> - <argument index="1" name="material" type="Material" default="null"> - </argument> - <argument index="2" name="transform" type="Transform3D" default="Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)"> - </argument> - <argument index="3" name="skeleton" type="SkinReference" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="ArrayMesh" /> + <argument index="1" name="material" type="Material" default="null" /> + <argument index="2" name="transform" type="Transform3D" default="Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)" /> + <argument index="3" name="skeleton" type="SkinReference" default="null" /> <description> Adds a mesh to the gizmo with the specified [code]material[/code], local [code]transform[/code] and [code]skeleton[/code]. Call this method during [method _redraw]. </description> </method> <method name="add_unscaled_billboard"> - <return type="void"> - </return> - <argument index="0" name="material" type="Material"> - </argument> - <argument index="1" name="default_scale" type="float" default="1"> - </argument> - <argument index="2" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="material" type="Material" /> + <argument index="1" name="default_scale" type="float" default="1" /> + <argument index="2" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> <description> Adds an unscaled billboard for visualization and selection. Call this method during [method _redraw]. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Removes everything in the gizmo including meshes, collisions and handles. </description> </method> <method name="get_plugin" qualifiers="const"> - <return type="EditorNode3DGizmoPlugin"> - </return> + <return type="EditorNode3DGizmoPlugin" /> <description> Returns the [EditorNode3DGizmoPlugin] that owns this gizmo. It's useful to retrieve materials using [method EditorNode3DGizmoPlugin.get_material]. </description> </method> <method name="get_spatial_node" qualifiers="const"> - <return type="Node3D"> - </return> + <return type="Node3D" /> <description> Returns the Node3D node associated with this gizmo. </description> </method> <method name="get_subgizmo_selection" qualifiers="const"> - <return type="PackedInt32Array"> - </return> + <return type="PackedInt32Array" /> <description> Returns a list of the currently selected subgizmos. Can be used to highlight selected elements during [method _redraw]. </description> </method> <method name="is_subgizmo_selected" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="arg0" type="int" /> <description> Returns [code]true[/code] if the given subgizmo is currently selected. Can be used to highlight selected elements during [method _redraw]. </description> </method> <method name="set_hidden"> - <return type="void"> - </return> - <argument index="0" name="hidden" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="hidden" type="bool" /> <description> Sets the gizmo's hidden state. If [code]true[/code], the gizmo will be hidden. If [code]false[/code], it will be shown. </description> </method> <method name="set_spatial_node"> - <return type="void"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Node" /> <description> Sets the reference [Node3D] node for the gizmo. [code]node[/code] must inherit from [Node3D]. </description> diff --git a/doc/classes/EditorNode3DGizmoPlugin.xml b/doc/classes/EditorNode3DGizmoPlugin.xml index 6152487eaf..fb72427a7a 100644 --- a/doc/classes/EditorNode3DGizmoPlugin.xml +++ b/doc/classes/EditorNode3DGizmoPlugin.xml @@ -11,255 +11,185 @@ </tutorials> <methods> <method name="_can_be_hidden" qualifiers="virtual"> - <return type="bool"> - </return> + <return type="bool" /> <description> Override this method to define whether the gizmos handled by this plugin can be hidden or not. Returns [code]true[/code] if not overridden. </description> </method> <method name="_commit_handle" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <argument index="2" name="restore" type="Variant"> - </argument> - <argument index="3" name="cancel" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> + <argument index="1" name="id" type="int" /> + <argument index="2" name="restore" type="Variant" /> + <argument index="3" name="cancel" type="bool" default="false" /> <description> Override this method to commit a handle being edited (handles must have been previously added by [method EditorNode3DGizmo.add_handles] during [method _redraw]). This usually means creating an [UndoRedo] action for the change, using the current handle value as "do" and the [code]restore[/code] argument as "undo". If the [code]cancel[/code] argument is [code]true[/code], the [code]restore[/code] value should be directly set, without any [UndoRedo] action. Called for this plugin's active gizmos. </description> </method> <method name="_commit_subgizmos" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> - <argument index="1" name="ids" type="PackedInt32Array"> - </argument> - <argument index="2" name="restore" type="Array"> - </argument> - <argument index="3" name="cancel" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> + <argument index="1" name="ids" type="PackedInt32Array" /> + <argument index="2" name="restore" type="Array" /> + <argument index="3" name="cancel" type="bool" default="false" /> <description> Override this method to commit a group of subgizmos being edited (see [method _subgizmos_intersect_ray] and [method _subgizmos_intersect_frustum]). This usually means creating an [UndoRedo] action for the change, using the current transforms as "do" and the [code]restore[/code] transforms as "undo". If the [code]cancel[/code] argument is [code]true[/code], the [code]restore[/code] transforms should be directly set, without any [UndoRedo] action. As with all subgizmo methods, transforms are given in local space respect to the gizmo's Node3D. Called for this plugin's active gizmos. </description> </method> <method name="_create_gizmo" qualifiers="virtual"> - <return type="EditorNode3DGizmo"> - </return> - <argument index="0" name="spatial" type="Node3D"> - </argument> + <return type="EditorNode3DGizmo" /> + <argument index="0" name="spatial" type="Node3D" /> <description> Override this method to return a custom [EditorNode3DGizmo] for the spatial nodes of your choice, return [code]null[/code] for the rest of nodes. See also [method _has_gizmo]. </description> </method> <method name="_get_gizmo_name" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Override this method to provide the name that will appear in the gizmo visibility menu. </description> </method> <method name="_get_handle_name" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> + <argument index="1" name="id" type="int" /> <description> Override this method to provide gizmo's handle names. Called for this plugin's active gizmos. </description> </method> <method name="_get_handle_value" qualifiers="virtual"> - <return type="Variant"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> + <argument index="1" name="id" type="int" /> <description> Override this method to return the current value of a handle. This value will be requested at the start of an edit and used as the [code]restore[/code] argument in [method _commit_handle]. Called for this plugin's active gizmos. </description> </method> <method name="_get_priority" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> Override this method to set the gizmo's priority. Gizmos with higher priority will have precedence when processing inputs like handles or subgizmos selection. All built-in editor gizmos return a priority of [code]-1[/code]. If not overridden, this method will return [code]0[/code], which means custom gizmos will automatically get higher priority than built-in gizmos. </description> </method> <method name="_get_subgizmo_transform" qualifiers="virtual"> - <return type="Transform3D"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> + <argument index="1" name="id" type="int" /> <description> Override this method to return the current transform of a subgizmo. As with all subgizmo methods, the transform should be in local space respect to the gizmo's Node3D. This transform will be requested at the start of an edit and used in the [code]restore[/code] argument in [method _commit_subgizmos]. Called for this plugin's active gizmos. </description> </method> <method name="_has_gizmo" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="spatial" type="Node3D"> - </argument> + <return type="bool" /> + <argument index="0" name="spatial" type="Node3D" /> <description> Override this method to define which Node3D nodes have a gizmo from this plugin. Whenever a [Node3D] node is added to a scene this method is called, if it returns [code]true[/code] the node gets a generic [EditorNode3DGizmo] assigned and is added to this plugin's list of active gizmos. </description> </method> <method name="_is_handle_highlighted" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> + <argument index="1" name="id" type="int" /> <description> Override this method to return [code]true[/code] whenever to given handle should be highlighted in the editor. Called for this plugin's active gizmos. </description> </method> <method name="_is_selectable_when_hidden" qualifiers="virtual"> - <return type="bool"> - </return> + <return type="bool" /> <description> Override this method to define whether Node3D with this gizmo should be selectable even when the gizmo is hidden. </description> </method> <method name="_redraw" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> + <return type="void" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> <description> Override this method to add all the gizmo elements whenever a gizmo update is requested. It's common to call [method EditorNode3DGizmo.clear] at the beginning of this method and then add visual elements depending on the node's properties. </description> </method> <method name="_set_handle" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <argument index="2" name="camera" type="Camera3D"> - </argument> - <argument index="3" name="point" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> + <argument index="1" name="id" type="int" /> + <argument index="2" name="camera" type="Camera3D" /> + <argument index="3" name="point" type="Vector2" /> <description> Override this method to update the node's properties when the user drags a gizmo handle (previously added with [method EditorNode3DGizmo.add_handles]). The provided [code]point[/code] is the mouse position in screen coordinates and the [code]camera[/code] can be used to convert it to raycasts. Called for this plugin's active gizmos. </description> </method> <method name="_set_subgizmo_transform" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <argument index="2" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> + <argument index="1" name="id" type="int" /> + <argument index="2" name="transform" type="Transform3D" /> <description> Override this method to update the node properties during subgizmo editing (see [method _subgizmos_intersect_ray] and [method _subgizmos_intersect_frustum]). The [code]transform[/code] is given in the Node3D's local coordinate system. Called for this plugin's active gizmos. </description> </method> <method name="_subgizmos_intersect_frustum" qualifiers="virtual"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> - <argument index="1" name="camera" type="Camera3D"> - </argument> - <argument index="2" name="frustum" type="Array"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> + <argument index="1" name="camera" type="Camera3D" /> + <argument index="2" name="frustum" type="Array" /> <description> Override this method to allow selecting subgizmos using mouse drag box selection. Given a [code]camera[/code] and a [code]frustum[/code], this method should return which subgizmos are contained within the frustum. The [code]frustum[/code] argument consists of an [code]Array[/code] with all the [code]Plane[/code]s that make up the selection frustum. The returned value should contain a list of unique subgizmo identifiers, these identifiers can have any non-negative value and will be used in other virtual methods like [method _get_subgizmo_transform] or [method _commit_subgizmos]. Called for this plugin's active gizmos. </description> </method> <method name="_subgizmos_intersect_ray" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="gizmo" type="EditorNode3DGizmo"> - </argument> - <argument index="1" name="camera" type="Camera3D"> - </argument> - <argument index="2" name="point" type="Vector2"> - </argument> + <return type="int" /> + <argument index="0" name="gizmo" type="EditorNode3DGizmo" /> + <argument index="1" name="camera" type="Camera3D" /> + <argument index="2" name="point" type="Vector2" /> <description> Override this method to allow selecting subgizmos using mouse clicks. Given a [code]camera[/code] and a [code]point[/code] in screen coordinates, this method should return which subgizmo should be selected. The returned value should be a unique subgizmo identifier, which can have any non-negative value and will be used in other virtual methods like [method _get_subgizmo_transform] or [method _commit_subgizmos]. Called for this plugin's active gizmos. </description> </method> <method name="add_material"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="material" type="StandardMaterial3D"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="material" type="StandardMaterial3D" /> <description> Adds a new material to the internal material list for the plugin. It can then be accessed with [method get_material]. Should not be overridden. </description> </method> <method name="create_handle_material"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="billboard" type="bool" default="false"> - </argument> - <argument index="2" name="texture" type="Texture2D" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="billboard" type="bool" default="false" /> + <argument index="2" name="texture" type="Texture2D" default="null" /> <description> Creates a handle material with its variants (selected and/or editable) and adds them to the internal material list. They can then be accessed with [method get_material] and used in [method EditorNode3DGizmo.add_handles]. Should not be overridden. You can optionally provide a texture to use instead of the default icon. </description> </method> <method name="create_icon_material"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> - <argument index="2" name="on_top" type="bool" default="false"> - </argument> - <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="texture" type="Texture2D" /> + <argument index="2" name="on_top" type="bool" default="false" /> + <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Creates an icon material with its variants (selected and/or editable) and adds them to the internal material list. They can then be accessed with [method get_material] and used in [method EditorNode3DGizmo.add_unscaled_billboard]. Should not be overridden. </description> </method> <method name="create_material"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <argument index="2" name="billboard" type="bool" default="false"> - </argument> - <argument index="3" name="on_top" type="bool" default="false"> - </argument> - <argument index="4" name="use_vertex_color" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="color" type="Color" /> + <argument index="2" name="billboard" type="bool" default="false" /> + <argument index="3" name="on_top" type="bool" default="false" /> + <argument index="4" name="use_vertex_color" type="bool" default="false" /> <description> Creates an unshaded material with its variants (selected and/or editable) and adds them to the internal material list. They can then be accessed with [method get_material] and used in [method EditorNode3DGizmo.add_mesh] and [method EditorNode3DGizmo.add_lines]. Should not be overridden. </description> </method> <method name="get_material"> - <return type="StandardMaterial3D"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="gizmo" type="EditorNode3DGizmo" default="null"> - </argument> + <return type="StandardMaterial3D" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="gizmo" type="EditorNode3DGizmo" default="null" /> <description> Gets material from the internal list of materials. If an [EditorNode3DGizmo] is provided, it will try to get the corresponding variant (selected and/or editable). </description> diff --git a/doc/classes/EditorPaths.xml b/doc/classes/EditorPaths.xml index d0d785dbb8..28a8314857 100644 --- a/doc/classes/EditorPaths.xml +++ b/doc/classes/EditorPaths.xml @@ -8,32 +8,27 @@ </tutorials> <methods> <method name="get_cache_dir" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="get_config_dir" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="get_data_dir" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="get_self_contained_file" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="is_self_contained" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> diff --git a/doc/classes/EditorPlugin.xml b/doc/classes/EditorPlugin.xml index efd1d30565..37efca7f48 100644 --- a/doc/classes/EditorPlugin.xml +++ b/doc/classes/EditorPlugin.xml @@ -11,56 +11,47 @@ </tutorials> <methods> <method name="_apply_changes" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> This method is called when the editor is about to save the project, switch to another tab, etc. It asks the plugin to apply any pending state changes to ensure consistency. This is used, for example, in shader editors to let the plugin know that it must apply the shader code being written by the user to the object. </description> </method> <method name="_build" qualifiers="virtual"> - <return type="bool"> - </return> + <return type="bool" /> <description> This method is called when the editor is about to run the project. The plugin can then perform required operations before the project runs. This method must return a boolean. If this method returns [code]false[/code], the project will not run. The run is aborted immediately, so this also prevents all other plugins' [method _build] methods from running. </description> </method> <method name="_clear" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Clear all the state and reset the object being edited to zero. This ensures your plugin does not keep editing a currently existing node, or a node from the wrong scene. </description> </method> <method name="_disable_plugin" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called by the engine when the user disables the [EditorPlugin] in the Plugin tab of the project settings window. </description> </method> <method name="_edit" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="object" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="object" type="Object" /> <description> This function is used for plugins that edit specific object types (nodes or resources). It requests the editor to edit the given object. </description> </method> <method name="_enable_plugin" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called by the engine when the user enables the [EditorPlugin] in the Plugin tab of the project settings window. </description> </method> <method name="_forward_canvas_draw_over_viewport" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="overlay" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="overlay" type="Control" /> <description> Called by the engine when the 2D editor's viewport is updated. Use the [code]overlay[/code] [Control] for drawing. You can update the viewport manually by calling [method update_overlays]. [codeblocks] @@ -97,20 +88,16 @@ </description> </method> <method name="_forward_canvas_force_draw_over_viewport" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="overlay" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="overlay" type="Control" /> <description> This method is the same as [method _forward_canvas_draw_over_viewport], except it draws on top of everything. Useful when you need an extra layer that shows over anything else. You need to enable calling of this method by using [method set_force_draw_over_forwarding_enabled]. </description> </method> <method name="_forward_canvas_gui_input" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> + <return type="bool" /> + <argument index="0" name="event" type="InputEvent" /> <description> Called when there is a root node in the current edited scene, [method _handles] is implemented and an [InputEvent] happens in the 2D viewport. Intercepts the [InputEvent], if [code]return true[/code] [EditorPlugin] consumes the [code]event[/code], otherwise forwards [code]event[/code] to other Editor classes. Example: [codeblocks] @@ -145,10 +132,8 @@ </description> </method> <method name="_forward_spatial_draw_over_viewport" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="overlay" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="overlay" type="Control" /> <description> Called by the engine when the 3D editor's viewport is updated. Use the [code]overlay[/code] [Control] for drawing. You can update the viewport manually by calling [method update_overlays]. [codeblocks] @@ -185,22 +170,17 @@ </description> </method> <method name="_forward_spatial_force_draw_over_viewport" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="overlay" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="overlay" type="Control" /> <description> This method is the same as [method _forward_spatial_draw_over_viewport], except it draws on top of everything. Useful when you need an extra layer that shows over anything else. You need to enable calling of this method by using [method set_force_draw_over_forwarding_enabled]. </description> </method> <method name="_forward_spatial_gui_input" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="camera" type="Camera3D"> - </argument> - <argument index="1" name="event" type="InputEvent"> - </argument> + <return type="bool" /> + <argument index="0" name="camera" type="Camera3D" /> + <argument index="1" name="event" type="InputEvent" /> <description> Called when there is a root node in the current edited scene, [method _handles] is implemented and an [InputEvent] happens in the 3D viewport. Intercepts the [InputEvent], if [code]return true[/code] [EditorPlugin] consumes the [code]event[/code], otherwise forwards [code]event[/code] to other Editor classes. Example: [codeblocks] @@ -235,15 +215,13 @@ </description> </method> <method name="_get_breakpoints" qualifiers="virtual"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> This is for editors that edit script-based objects. You can return a list of breakpoints in the format ([code]script:line[/code]), for example: [code]res://path_to_script.gd:25[/code]. </description> </method> <method name="_get_plugin_icon" qualifiers="virtual"> - <return type="Texture2D"> - </return> + <return type="Texture2D" /> <description> Override this method in your plugin to return a [Texture2D] in order to give it an icon. For main screen plugins, this appears at the top of the screen, to the right of the "2D", "3D", "Script", and "AssetLib" buttons. @@ -269,109 +247,86 @@ </description> </method> <method name="_get_plugin_name" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Override this method in your plugin to provide the name of the plugin when displayed in the Godot editor. For main screen plugins, this appears at the top of the screen, to the right of the "2D", "3D", "Script", and "AssetLib" buttons. </description> </method> <method name="_get_state" qualifiers="virtual"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Gets the state of your plugin editor. This is used when saving the scene (so state is kept when opening it again) and for switching tabs (so state can be restored when the tab returns). </description> </method> <method name="_get_window_layout" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="layout" type="ConfigFile"> - </argument> + <return type="void" /> + <argument index="0" name="layout" type="ConfigFile" /> <description> Gets the GUI layout of the plugin. This is used to save the project's editor layout when [method queue_save_layout] is called or the editor layout was changed(For example changing the position of a dock). </description> </method> <method name="_handles" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="object" type="Object"> - </argument> + <return type="bool" /> + <argument index="0" name="object" type="Object" /> <description> Implement this function if your plugin edits a specific type of object (Resource or Node). If you return [code]true[/code], then you will get the functions [method _edit] and [method _make_visible] called when the editor requests them. If you have declared the methods [method _forward_canvas_gui_input] and [method _forward_spatial_gui_input] these will be called too. </description> </method> <method name="_has_main_screen" qualifiers="virtual"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this is a main screen editor plugin (it goes in the workspace selector together with [b]2D[/b], [b]3D[/b], [b]Script[/b] and [b]AssetLib[/b]). </description> </method> <method name="_make_visible" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="visible" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="visible" type="bool" /> <description> This function will be called when the editor is requested to become visible. It is used for plugins that edit a specific object type. Remember that you have to manage the visibility of all your editor controls manually. </description> </method> <method name="_save_external_data" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> This method is called after the editor saves the project or when it's closed. It asks the plugin to save edited external scenes/resources. </description> </method> <method name="_set_state" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="state" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="state" type="Dictionary" /> <description> Restore the state saved by [method _get_state]. </description> </method> <method name="_set_window_layout" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="layout" type="ConfigFile"> - </argument> + <return type="void" /> + <argument index="0" name="layout" type="ConfigFile" /> <description> Restore the plugin GUI layout saved by [method _get_window_layout]. </description> </method> <method name="add_autoload_singleton"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="path" type="String" /> <description> Adds a script at [code]path[/code] to the Autoload list as [code]name[/code]. </description> </method> <method name="add_control_to_bottom_panel"> - <return type="Button"> - </return> - <argument index="0" name="control" type="Control"> - </argument> - <argument index="1" name="title" type="String"> - </argument> + <return type="Button" /> + <argument index="0" name="control" type="Control" /> + <argument index="1" name="title" type="String" /> <description> Adds a control to the bottom panel (together with Output, Debug, Animation, etc). Returns a reference to the button added. It's up to you to hide/show the button when needed. When your plugin is deactivated, make sure to remove your custom control with [method remove_control_from_bottom_panel] and free it with [method Node.queue_free]. </description> </method> <method name="add_control_to_container"> - <return type="void"> - </return> - <argument index="0" name="container" type="int" enum="EditorPlugin.CustomControlContainer"> - </argument> - <argument index="1" name="control" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="container" type="int" enum="EditorPlugin.CustomControlContainer" /> + <argument index="1" name="control" type="Control" /> <description> Adds a custom control to a container (see [enum CustomControlContainer]). There are many locations where custom controls can be added in the editor UI. Please remember that you have to manage the visibility of your custom controls yourself (and likely hide it after adding it). @@ -379,12 +334,9 @@ </description> </method> <method name="add_control_to_dock"> - <return type="void"> - </return> - <argument index="0" name="slot" type="int" enum="EditorPlugin.DockSlot"> - </argument> - <argument index="1" name="control" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="slot" type="int" enum="EditorPlugin.DockSlot" /> + <argument index="1" name="control" type="Control" /> <description> Adds the control to a specific dock slot (see [enum DockSlot] for options). If the dock is repositioned and as long as the plugin is active, the editor will save the dock position on further sessions. @@ -392,16 +344,11 @@ </description> </method> <method name="add_custom_type"> - <return type="void"> - </return> - <argument index="0" name="type" type="String"> - </argument> - <argument index="1" name="base" type="String"> - </argument> - <argument index="2" name="script" type="Script"> - </argument> - <argument index="3" name="icon" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="String" /> + <argument index="1" name="base" type="String" /> + <argument index="2" name="script" type="Script" /> + <argument index="3" name="icon" type="Texture2D" /> <description> Adds a custom type, which will appear in the list of nodes or resources. An icon can be optionally passed. When a given node or resource is selected, the base type will be instantiated (e.g. "Node3D", "Control", "Resource"), then the script will be loaded and set to this object. @@ -410,29 +357,23 @@ </description> </method> <method name="add_debugger_plugin"> - <return type="void"> - </return> - <argument index="0" name="script" type="Script"> - </argument> + <return type="void" /> + <argument index="0" name="script" type="Script" /> <description> Adds a [Script] as debugger plugin to the Debugger. The script must extend [EditorDebuggerPlugin]. </description> </method> <method name="add_export_plugin"> - <return type="void"> - </return> - <argument index="0" name="plugin" type="EditorExportPlugin"> - </argument> + <return type="void" /> + <argument index="0" name="plugin" type="EditorExportPlugin" /> <description> Registers a new [EditorExportPlugin]. Export plugins are used to perform tasks when the project is being exported. See [method add_inspector_plugin] for an example of how to register a plugin. </description> </method> <method name="add_import_plugin"> - <return type="void"> - </return> - <argument index="0" name="importer" type="EditorImportPlugin"> - </argument> + <return type="void" /> + <argument index="0" name="importer" type="EditorImportPlugin" /> <description> Registers a new [EditorImportPlugin]. Import plugins are used to import custom and unsupported assets as a custom [Resource] type. [b]Note:[/b] If you want to import custom 3D asset formats use [method add_scene_import_plugin] instead. @@ -440,10 +381,8 @@ </description> </method> <method name="add_inspector_plugin"> - <return type="void"> - </return> - <argument index="0" name="plugin" type="EditorInspectorPlugin"> - </argument> + <return type="void" /> + <argument index="0" name="plugin" type="EditorInspectorPlugin" /> <description> Registers a new [EditorInspectorPlugin]. Inspector plugins are used to extend [EditorInspector] and provide custom configuration tools for your object's properties. [b]Note:[/b] Always use [method remove_inspector_plugin] to remove the registered [EditorInspectorPlugin] when your [EditorPlugin] is disabled to prevent leaks and an unexpected behavior. @@ -462,255 +401,202 @@ </description> </method> <method name="add_scene_import_plugin"> - <return type="void"> - </return> - <argument index="0" name="scene_importer" type="EditorSceneImporter"> - </argument> + <return type="void" /> + <argument index="0" name="scene_importer" type="EditorSceneImporter" /> <description> Registers a new [EditorSceneImporter]. Scene importers are used to import custom 3D asset formats as scenes. </description> </method> <method name="add_spatial_gizmo_plugin"> - <return type="void"> - </return> - <argument index="0" name="plugin" type="EditorNode3DGizmoPlugin"> - </argument> + <return type="void" /> + <argument index="0" name="plugin" type="EditorNode3DGizmoPlugin" /> <description> Registers a new [EditorNode3DGizmoPlugin]. Gizmo plugins are used to add custom gizmos to the 3D preview viewport for a [Node3D]. See [method add_inspector_plugin] for an example of how to register a plugin. </description> </method> <method name="add_tool_menu_item"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="callable" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="callable" type="Callable" /> <description> Adds a custom menu item to [b]Project > Tools[/b] named [code]name[/code]. When clicked, the provided [code]callable[/code] will be called. </description> </method> <method name="add_tool_submenu_item"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="submenu" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="submenu" type="Object" /> <description> Adds a custom submenu under [b]Project > Tools >[/b] [code]name[/code]. [code]submenu[/code] should be an object of class [PopupMenu]. Use [code]remove_tool_menu_item(name)[/code] on plugin clean up to remove the menu. </description> </method> <method name="add_translation_parser_plugin"> - <return type="void"> - </return> - <argument index="0" name="parser" type="EditorTranslationParserPlugin"> - </argument> + <return type="void" /> + <argument index="0" name="parser" type="EditorTranslationParserPlugin" /> <description> Registers a custom translation parser plugin for extracting translatable strings from custom files. </description> </method> <method name="add_undo_redo_inspector_hook_callback"> - <return type="void"> - </return> - <argument index="0" name="callable" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="callable" type="Callable" /> <description> Hooks a callback into the undo/redo action creation when a property is modified in the inspector. This allows, for example, to save other properties that may be lost when a given property is modified. The callback should have 4 arguments: [Object] [code]undo_redo[/code], [Object] [code]modified_object[/code], [String] [code]property[/code] and [Variant] [code]new_value[/code]. They are, respectively, the [UndoRedo] object used by the inspector, the currently modified object, the name of the modified property and the new value the property is about to take. </description> </method> <method name="get_editor_interface"> - <return type="EditorInterface"> - </return> + <return type="EditorInterface" /> <description> Returns the [EditorInterface] object that gives you control over Godot editor's window and its functionalities. </description> </method> <method name="get_script_create_dialog"> - <return type="ScriptCreateDialog"> - </return> + <return type="ScriptCreateDialog" /> <description> Gets the Editor's dialogue used for making scripts. [b]Note:[/b] Users can configure it before use. </description> </method> <method name="get_undo_redo"> - <return type="UndoRedo"> - </return> + <return type="UndoRedo" /> <description> Gets the undo/redo object. Most actions in the editor can be undoable, so use this object to make sure this happens when it's worth it. </description> </method> <method name="hide_bottom_panel"> - <return type="void"> - </return> + <return type="void" /> <description> Minimizes the bottom panel. </description> </method> <method name="make_bottom_panel_item_visible"> - <return type="void"> - </return> - <argument index="0" name="item" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="Control" /> <description> Makes a specific item in the bottom panel visible. </description> </method> <method name="queue_save_layout"> - <return type="void"> - </return> + <return type="void" /> <description> Queue save the project's editor layout. </description> </method> <method name="remove_autoload_singleton"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> <description> Removes an Autoload [code]name[/code] from the list. </description> </method> <method name="remove_control_from_bottom_panel"> - <return type="void"> - </return> - <argument index="0" name="control" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="control" type="Control" /> <description> Removes the control from the bottom panel. You have to manually [method Node.queue_free] the control. </description> </method> <method name="remove_control_from_container"> - <return type="void"> - </return> - <argument index="0" name="container" type="int" enum="EditorPlugin.CustomControlContainer"> - </argument> - <argument index="1" name="control" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="container" type="int" enum="EditorPlugin.CustomControlContainer" /> + <argument index="1" name="control" type="Control" /> <description> Removes the control from the specified container. You have to manually [method Node.queue_free] the control. </description> </method> <method name="remove_control_from_docks"> - <return type="void"> - </return> - <argument index="0" name="control" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="control" type="Control" /> <description> Removes the control from the dock. You have to manually [method Node.queue_free] the control. </description> </method> <method name="remove_custom_type"> - <return type="void"> - </return> - <argument index="0" name="type" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="String" /> <description> Removes a custom type added by [method add_custom_type]. </description> </method> <method name="remove_debugger_plugin"> - <return type="void"> - </return> - <argument index="0" name="script" type="Script"> - </argument> + <return type="void" /> + <argument index="0" name="script" type="Script" /> <description> Removes the debugger plugin with given script from the Debugger. </description> </method> <method name="remove_export_plugin"> - <return type="void"> - </return> - <argument index="0" name="plugin" type="EditorExportPlugin"> - </argument> + <return type="void" /> + <argument index="0" name="plugin" type="EditorExportPlugin" /> <description> Removes an export plugin registered by [method add_export_plugin]. </description> </method> <method name="remove_import_plugin"> - <return type="void"> - </return> - <argument index="0" name="importer" type="EditorImportPlugin"> - </argument> + <return type="void" /> + <argument index="0" name="importer" type="EditorImportPlugin" /> <description> Removes an import plugin registered by [method add_import_plugin]. </description> </method> <method name="remove_inspector_plugin"> - <return type="void"> - </return> - <argument index="0" name="plugin" type="EditorInspectorPlugin"> - </argument> + <return type="void" /> + <argument index="0" name="plugin" type="EditorInspectorPlugin" /> <description> Removes an inspector plugin registered by [method add_import_plugin] </description> </method> <method name="remove_scene_import_plugin"> - <return type="void"> - </return> - <argument index="0" name="scene_importer" type="EditorSceneImporter"> - </argument> + <return type="void" /> + <argument index="0" name="scene_importer" type="EditorSceneImporter" /> <description> Removes a scene importer registered by [method add_scene_import_plugin]. </description> </method> <method name="remove_spatial_gizmo_plugin"> - <return type="void"> - </return> - <argument index="0" name="plugin" type="EditorNode3DGizmoPlugin"> - </argument> + <return type="void" /> + <argument index="0" name="plugin" type="EditorNode3DGizmoPlugin" /> <description> Removes a gizmo plugin registered by [method add_spatial_gizmo_plugin]. </description> </method> <method name="remove_tool_menu_item"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> <description> Removes a menu [code]name[/code] from [b]Project > Tools[/b]. </description> </method> <method name="remove_translation_parser_plugin"> - <return type="void"> - </return> - <argument index="0" name="parser" type="EditorTranslationParserPlugin"> - </argument> + <return type="void" /> + <argument index="0" name="parser" type="EditorTranslationParserPlugin" /> <description> Removes a custom translation parser plugin registered by [method add_translation_parser_plugin]. </description> </method> <method name="remove_undo_redo_inspector_hook_callback"> - <return type="void"> - </return> - <argument index="0" name="callable" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="callable" type="Callable" /> <description> Removes a callback previsously added by [method add_undo_redo_inspector_hook_callback]. </description> </method> <method name="set_force_draw_over_forwarding_enabled"> - <return type="void"> - </return> + <return type="void" /> <description> Enables calling of [method _forward_canvas_force_draw_over_viewport] for the 2D editor and [method _forward_spatial_force_draw_over_viewport] for the 3D editor when their viewports are updated. You need to call this method only once and it will work permanently for this plugin. </description> </method> <method name="set_input_event_forwarding_always_enabled"> - <return type="void"> - </return> + <return type="void" /> <description> Use this method if you always want to receive inputs from 3D view screen inside [method _forward_spatial_gui_input]. It might be especially usable if your plugin will want to use raycast in the scene. </description> </method> <method name="update_overlays" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Updates the overlays of the 2D and 3D editor viewport. Causes methods [method _forward_canvas_draw_over_viewport], [method _forward_canvas_force_draw_over_viewport], [method _forward_spatial_draw_over_viewport] and [method _forward_spatial_force_draw_over_viewport] to be called. </description> @@ -718,8 +604,7 @@ </methods> <signals> <signal name="main_screen_changed"> - <argument index="0" name="screen_name" type="String"> - </argument> + <argument index="0" name="screen_name" type="String" /> <description> Emitted when user changes the workspace ([b]2D[/b], [b]3D[/b], [b]Script[/b], [b]AssetLib[/b]). Also works with custom screens defined by plugins. </description> @@ -729,21 +614,18 @@ </description> </signal> <signal name="resource_saved"> - <argument index="0" name="resource" type="Resource"> - </argument> + <argument index="0" name="resource" type="Resource" /> <description> </description> </signal> <signal name="scene_changed"> - <argument index="0" name="scene_root" type="Node"> - </argument> + <argument index="0" name="scene_root" type="Node" /> <description> Emitted when the scene is changed in the editor. The argument will return the root node of the scene that has just become active. If this scene is new and empty, the argument will be [code]null[/code]. </description> </signal> <signal name="scene_closed"> - <argument index="0" name="filepath" type="String"> - </argument> + <argument index="0" name="filepath" type="String" /> <description> Emitted when user closes a scene. The argument is file path to a closed scene. </description> diff --git a/doc/classes/EditorProperty.xml b/doc/classes/EditorProperty.xml index 549d2c1628..41f42568ad 100644 --- a/doc/classes/EditorProperty.xml +++ b/doc/classes/EditorProperty.xml @@ -10,62 +10,49 @@ </tutorials> <methods> <method name="_update_property" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> When this virtual function is called, you must update your editor. </description> </method> <method name="add_focusable"> - <return type="void"> - </return> - <argument index="0" name="control" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="control" type="Control" /> <description> If any of the controls added can gain keyboard focus, add it here. This ensures that focus will be restored if the inspector is refreshed. </description> </method> <method name="emit_changed"> - <return type="void"> - </return> - <argument index="0" name="property" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> - <argument index="2" name="field" type="StringName" default="&"""> - </argument> - <argument index="3" name="changing" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="property" type="StringName" /> + <argument index="1" name="value" type="Variant" /> + <argument index="2" name="field" type="StringName" default="&""" /> + <argument index="3" name="changing" type="bool" default="false" /> <description> If one or several properties have changed, this must be called. [code]field[/code] is used in case your editor can modify fields separately (as an example, Vector3.x). The [code]changing[/code] argument avoids the editor requesting this property to be refreshed (leave as [code]false[/code] if unsure). </description> </method> <method name="get_edited_object"> - <return type="Object"> - </return> + <return type="Object" /> <description> Gets the edited object. </description> </method> <method name="get_edited_property"> - <return type="StringName"> - </return> + <return type="StringName" /> <description> Gets the edited property. If your editor is for a single property (added via [method EditorInspectorPlugin._parse_property]), then this will return the property. </description> </method> <method name="get_tooltip_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Override if you want to allow a custom tooltip over your property. </description> </method> <method name="set_bottom_editor"> - <return type="void"> - </return> - <argument index="0" name="editor" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="editor" type="Control" /> <description> Adds controls with this function if you want them on the bottom (below the label). </description> @@ -96,78 +83,62 @@ </members> <signals> <signal name="multiple_properties_changed"> - <argument index="0" name="properties" type="PackedStringArray"> - </argument> - <argument index="1" name="value" type="Array"> - </argument> + <argument index="0" name="properties" type="PackedStringArray" /> + <argument index="1" name="value" type="Array" /> <description> Emit it if you want multiple properties modified at the same time. Do not use if added via [method EditorInspectorPlugin._parse_property]. </description> </signal> <signal name="object_id_selected"> - <argument index="0" name="property" type="StringName"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <argument index="0" name="property" type="StringName" /> + <argument index="1" name="id" type="int" /> <description> Used by sub-inspectors. Emit it if what was selected was an Object ID. </description> </signal> <signal name="property_changed"> - <argument index="0" name="property" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <argument index="0" name="property" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> Do not emit this manually, use the [method emit_changed] method instead. </description> </signal> <signal name="property_checked"> - <argument index="0" name="property" type="StringName"> - </argument> - <argument index="1" name="bool" type="String"> - </argument> + <argument index="0" name="property" type="StringName" /> + <argument index="1" name="bool" type="String" /> <description> Emitted when a property was checked. Used internally. </description> </signal> <signal name="property_deleted"> - <argument index="0" name="property" type="StringName"> - </argument> + <argument index="0" name="property" type="StringName" /> <description> Emitted when a property was deleted. Used internally. </description> </signal> <signal name="property_keyed"> - <argument index="0" name="property" type="StringName"> - </argument> + <argument index="0" name="property" type="StringName" /> <description> Emit it if you want to add this value as an animation key (check for keying being enabled first). </description> </signal> <signal name="property_keyed_with_value"> - <argument index="0" name="property" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <argument index="0" name="property" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> Emit it if you want to key a property with a single value. </description> </signal> <signal name="resource_selected"> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="resource" type="Resource"> - </argument> + <argument index="0" name="path" type="String" /> + <argument index="1" name="resource" type="Resource" /> <description> If you want a sub-resource to be edited, emit this signal with the resource. </description> </signal> <signal name="selected"> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="focusable_idx" type="int"> - </argument> + <argument index="0" name="path" type="String" /> + <argument index="1" name="focusable_idx" type="int" /> <description> Emitted when selected. Used internally. </description> diff --git a/doc/classes/EditorResourceConversionPlugin.xml b/doc/classes/EditorResourceConversionPlugin.xml index 1d7e98c99d..3de508c88d 100644 --- a/doc/classes/EditorResourceConversionPlugin.xml +++ b/doc/classes/EditorResourceConversionPlugin.xml @@ -8,16 +8,13 @@ </tutorials> <methods> <method name="_convert" qualifiers="virtual"> - <return type="Resource"> - </return> - <argument index="0" name="resource" type="Resource"> - </argument> + <return type="Resource" /> + <argument index="0" name="resource" type="Resource" /> <description> </description> </method> <method name="_converts_to" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> diff --git a/doc/classes/EditorResourcePicker.xml b/doc/classes/EditorResourcePicker.xml index 0029955819..a0f2df1f0c 100644 --- a/doc/classes/EditorResourcePicker.xml +++ b/doc/classes/EditorResourcePicker.xml @@ -11,36 +11,29 @@ </tutorials> <methods> <method name="_handle_menu_selected" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> This virtual method can be implemented to handle context menu items not handled by default. See [method _set_create_options]. </description> </method> <method name="_set_create_options" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="menu_node" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="menu_node" type="Object" /> <description> This virtual method is called when updating the context menu of [EditorResourcePicker]. Implement this method to override the "New ..." items with your own options. [code]menu_node[/code] is a reference to the [PopupMenu] node. [b]Note:[/b] Implement [method _handle_menu_selected] to handle these custom items. </description> </method> <method name="get_allowed_types" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns a list of all allowed types and subtypes corresponding to the [member base_type]. If the [member base_type] is empty, an empty list is returned. </description> </method> <method name="set_toggle_pressed"> - <return type="void"> - </return> - <argument index="0" name="pressed" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="pressed" type="bool" /> <description> Sets the toggle mode state for the main button. Works only if [member toggle_mode] is set to [code]true[/code]. </description> @@ -62,15 +55,13 @@ </members> <signals> <signal name="resource_changed"> - <argument index="0" name="resource" type="Resource"> - </argument> + <argument index="0" name="resource" type="Resource" /> <description> Emitted when the value of the edited resource was changed. </description> </signal> <signal name="resource_selected"> - <argument index="0" name="resource" type="Resource"> - </argument> + <argument index="0" name="resource" type="Resource" /> <description> Emitted when the resource value was set and user clicked to edit it. </description> diff --git a/doc/classes/EditorResourcePreview.xml b/doc/classes/EditorResourcePreview.xml index 3239a75ada..c2693b4e1e 100644 --- a/doc/classes/EditorResourcePreview.xml +++ b/doc/classes/EditorResourcePreview.xml @@ -11,60 +11,44 @@ </tutorials> <methods> <method name="add_preview_generator"> - <return type="void"> - </return> - <argument index="0" name="generator" type="EditorResourcePreviewGenerator"> - </argument> + <return type="void" /> + <argument index="0" name="generator" type="EditorResourcePreviewGenerator" /> <description> Create an own, custom preview generator. </description> </method> <method name="check_for_invalidation"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> <description> Check if the resource changed, if so, it will be invalidated and the corresponding signal emitted. </description> </method> <method name="queue_edited_resource_preview"> - <return type="void"> - </return> - <argument index="0" name="resource" type="Resource"> - </argument> - <argument index="1" name="receiver" type="Object"> - </argument> - <argument index="2" name="receiver_func" type="StringName"> - </argument> - <argument index="3" name="userdata" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="resource" type="Resource" /> + <argument index="1" name="receiver" type="Object" /> + <argument index="2" name="receiver_func" type="StringName" /> + <argument index="3" name="userdata" type="Variant" /> <description> Queue the [code]resource[/code] being edited for preview. Once the preview is ready, the [code]receiver[/code]'s [code]receiver_func[/code] will be called. The [code]receiver_func[/code] must take the following four arguments: [String] path, [Texture2D] preview, [Texture2D] thumbnail_preview, [Variant] userdata. [code]userdata[/code] can be anything, and will be returned when [code]receiver_func[/code] is called. [b]Note[/b]: If it was not possible to create the preview the [code]receiver_func[/code] will still be called, but the preview will be null. </description> </method> <method name="queue_resource_preview"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="receiver" type="Object"> - </argument> - <argument index="2" name="receiver_func" type="StringName"> - </argument> - <argument index="3" name="userdata" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="receiver" type="Object" /> + <argument index="2" name="receiver_func" type="StringName" /> + <argument index="3" name="userdata" type="Variant" /> <description> Queue a resource file located at [code]path[/code] for preview. Once the preview is ready, the [code]receiver[/code]'s [code]receiver_func[/code] will be called. The [code]receiver_func[/code] must take the following four arguments: [String] path, [Texture2D] preview, [Texture2D] thumbnail_preview, [Variant] userdata. [code]userdata[/code] can be anything, and will be returned when [code]receiver_func[/code] is called. [b]Note[/b]: If it was not possible to create the preview the [code]receiver_func[/code] will still be called, but the preview will be null. </description> </method> <method name="remove_preview_generator"> - <return type="void"> - </return> - <argument index="0" name="generator" type="EditorResourcePreviewGenerator"> - </argument> + <return type="void" /> + <argument index="0" name="generator" type="EditorResourcePreviewGenerator" /> <description> Removes a custom preview generator. </description> @@ -72,8 +56,7 @@ </methods> <signals> <signal name="preview_invalidated"> - <argument index="0" name="path" type="String"> - </argument> + <argument index="0" name="path" type="String" /> <description> Emitted if a preview was invalidated (changed). [code]path[/code] corresponds to the path of the preview. </description> diff --git a/doc/classes/EditorResourcePreviewGenerator.xml b/doc/classes/EditorResourcePreviewGenerator.xml index 3594474e36..7054b1f4d0 100644 --- a/doc/classes/EditorResourcePreviewGenerator.xml +++ b/doc/classes/EditorResourcePreviewGenerator.xml @@ -10,20 +10,16 @@ </tutorials> <methods> <method name="_can_generate_small_preview" qualifiers="virtual"> - <return type="bool"> - </return> + <return type="bool" /> <description> If this function returns [code]true[/code], the generator will call [method _generate] or [method _generate_from_path] for small previews as well. By default, it returns [code]false[/code]. </description> </method> <method name="_generate" qualifiers="virtual"> - <return type="Texture2D"> - </return> - <argument index="0" name="from" type="Resource"> - </argument> - <argument index="1" name="size" type="Vector2"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="from" type="Resource" /> + <argument index="1" name="size" type="Vector2" /> <description> Generate a preview from a given resource with the specified size. This must always be implemented. Returning an empty texture is an OK way to fail and let another generator take care. @@ -31,12 +27,9 @@ </description> </method> <method name="_generate_from_path" qualifiers="virtual"> - <return type="Texture2D"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="size" type="Vector2"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="size" type="Vector2" /> <description> Generate a preview directly from a path with the specified size. Implementing this is optional, as default code will load and call [method _generate]. Returning an empty texture is an OK way to fail and let another generator take care. @@ -44,18 +37,15 @@ </description> </method> <method name="_generate_small_preview_automatically" qualifiers="virtual"> - <return type="bool"> - </return> + <return type="bool" /> <description> If this function returns [code]true[/code], the generator will automatically generate the small previews from the normal preview texture generated by the methods [method _generate] or [method _generate_from_path]. By default, it returns [code]false[/code]. </description> </method> <method name="_handles" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="type" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="type" type="String" /> <description> Returns [code]true[/code] if your generator supports the resource of type [code]type[/code]. </description> diff --git a/doc/classes/EditorSceneImporter.xml b/doc/classes/EditorSceneImporter.xml index 8df3091057..2e9d6a43d8 100644 --- a/doc/classes/EditorSceneImporter.xml +++ b/doc/classes/EditorSceneImporter.xml @@ -9,62 +9,44 @@ </tutorials> <methods> <method name="_get_extensions" qualifiers="virtual"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="_get_import_flags" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="_import_animation" qualifiers="virtual"> - <return type="Animation"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="flags" type="int"> - </argument> - <argument index="2" name="bake_fps" type="int"> - </argument> + <return type="Animation" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="flags" type="int" /> + <argument index="2" name="bake_fps" type="int" /> <description> </description> </method> <method name="_import_scene" qualifiers="virtual"> - <return type="Node"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="flags" type="int"> - </argument> - <argument index="2" name="bake_fps" type="int"> - </argument> + <return type="Node" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="flags" type="int" /> + <argument index="2" name="bake_fps" type="int" /> <description> </description> </method> <method name="import_animation_from_other_importer"> - <return type="Animation"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="flags" type="int"> - </argument> - <argument index="2" name="bake_fps" type="int"> - </argument> + <return type="Animation" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="flags" type="int" /> + <argument index="2" name="bake_fps" type="int" /> <description> </description> </method> <method name="import_scene_from_other_importer"> - <return type="Node"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="flags" type="int"> - </argument> - <argument index="2" name="bake_fps" type="int"> - </argument> + <return type="Node" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="flags" type="int" /> + <argument index="2" name="bake_fps" type="int" /> <description> </description> </method> diff --git a/doc/classes/EditorSceneImporterMesh.xml b/doc/classes/EditorSceneImporterMesh.xml index 90eca9072b..3a9eea87bb 100644 --- a/doc/classes/EditorSceneImporterMesh.xml +++ b/doc/classes/EditorSceneImporterMesh.xml @@ -8,161 +8,120 @@ </tutorials> <methods> <method name="add_blend_shape"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> <description> </description> </method> <method name="add_surface"> - <return type="void"> - </return> - <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType"> - </argument> - <argument index="1" name="arrays" type="Array"> - </argument> - <argument index="2" name="blend_shapes" type="Array" default="[]"> - </argument> + <return type="void" /> + <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType" /> + <argument index="1" name="arrays" type="Array" /> + <argument index="2" name="blend_shapes" type="Array" default="[]" /> <argument index="3" name="lods" type="Dictionary" default="{ -}"> - </argument> - <argument index="4" name="material" type="Material" default="null"> - </argument> - <argument index="5" name="name" type="String" default=""""> - </argument> +}" /> + <argument index="4" name="material" type="Material" default="null" /> + <argument index="5" name="name" type="String" default="""" /> <description> </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="get_blend_shape_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_blend_shape_mode" qualifiers="const"> - <return type="int" enum="Mesh.BlendShapeMode"> - </return> + <return type="int" enum="Mesh.BlendShapeMode" /> <description> </description> </method> <method name="get_blend_shape_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="blend_shape_idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="blend_shape_idx" type="int" /> <description> </description> </method> <method name="get_lightmap_size_hint" qualifiers="const"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> </description> </method> <method name="get_mesh"> - <return type="ArrayMesh"> - </return> - <argument index="0" name="arg0" type="Mesh"> - </argument> + <return type="ArrayMesh" /> + <argument index="0" name="arg0" type="Mesh" /> <description> </description> </method> <method name="get_surface_arrays" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="surface_idx" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="surface_idx" type="int" /> <description> </description> </method> <method name="get_surface_blend_shape_arrays" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="surface_idx" type="int"> - </argument> - <argument index="1" name="blend_shape_idx" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="surface_idx" type="int" /> + <argument index="1" name="blend_shape_idx" type="int" /> <description> </description> </method> <method name="get_surface_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_surface_lod_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="surface_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="surface_idx" type="int" /> <description> </description> </method> <method name="get_surface_lod_indices" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="surface_idx" type="int"> - </argument> - <argument index="1" name="lod_idx" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="surface_idx" type="int" /> + <argument index="1" name="lod_idx" type="int" /> <description> </description> </method> <method name="get_surface_lod_size" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="surface_idx" type="int"> - </argument> - <argument index="1" name="lod_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="surface_idx" type="int" /> + <argument index="1" name="lod_idx" type="int" /> <description> </description> </method> <method name="get_surface_material" qualifiers="const"> - <return type="Material"> - </return> - <argument index="0" name="surface_idx" type="int"> - </argument> + <return type="Material" /> + <argument index="0" name="surface_idx" type="int" /> <description> </description> </method> <method name="get_surface_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="surface_idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="surface_idx" type="int" /> <description> </description> </method> <method name="get_surface_primitive_type"> - <return type="int" enum="Mesh.PrimitiveType"> - </return> - <argument index="0" name="surface_idx" type="int"> - </argument> + <return type="int" enum="Mesh.PrimitiveType" /> + <argument index="0" name="surface_idx" type="int" /> <description> </description> </method> <method name="set_blend_shape_mode"> - <return type="void"> - </return> - <argument index="0" name="mode" type="int" enum="Mesh.BlendShapeMode"> - </argument> + <return type="void" /> + <argument index="0" name="mode" type="int" enum="Mesh.BlendShapeMode" /> <description> </description> </method> <method name="set_lightmap_size_hint"> - <return type="void"> - </return> - <argument index="0" name="size" type="Vector2i"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="Vector2i" /> <description> </description> </method> diff --git a/doc/classes/EditorScenePostImport.xml b/doc/classes/EditorScenePostImport.xml index d2b5e84ff7..95b0b42d9f 100644 --- a/doc/classes/EditorScenePostImport.xml +++ b/doc/classes/EditorScenePostImport.xml @@ -56,17 +56,14 @@ </tutorials> <methods> <method name="_post_import" qualifiers="virtual"> - <return type="Object"> - </return> - <argument index="0" name="scene" type="Object"> - </argument> + <return type="Object" /> + <argument index="0" name="scene" type="Object" /> <description> Called after the scene was imported. This method must return the modified version of the scene. </description> </method> <method name="get_source_file" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the source file path which got imported (e.g. [code]res://scene.dae[/code]). </description> diff --git a/doc/classes/EditorScript.xml b/doc/classes/EditorScript.xml index a91ea0eb14..6d793fe961 100644 --- a/doc/classes/EditorScript.xml +++ b/doc/classes/EditorScript.xml @@ -35,32 +35,27 @@ </tutorials> <methods> <method name="_run" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> This method is executed by the Editor when [b]File > Run[/b] is used. </description> </method> <method name="add_root_node"> - <return type="void"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Node" /> <description> Adds [code]node[/code] as a child of the root node in the editor context. [b]Warning:[/b] The implementation of this method is currently disabled. </description> </method> <method name="get_editor_interface"> - <return type="EditorInterface"> - </return> + <return type="EditorInterface" /> <description> Returns the [EditorInterface] singleton instance. </description> </method> <method name="get_scene"> - <return type="Node"> - </return> + <return type="Node" /> <description> Returns the Editor's currently active scene. </description> diff --git a/doc/classes/EditorSelection.xml b/doc/classes/EditorSelection.xml index 63e89750c3..69ae865d5d 100644 --- a/doc/classes/EditorSelection.xml +++ b/doc/classes/EditorSelection.xml @@ -11,41 +11,34 @@ </tutorials> <methods> <method name="add_node"> - <return type="void"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Node" /> <description> Adds a node to the selection. [b]Note:[/b] The newly selected node will not be automatically edited in the inspector. If you want to edit a node, use [method EditorInterface.edit_node]. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clear the selection. </description> </method> <method name="get_selected_nodes"> - <return type="Node[]"> - </return> + <return type="Node[]" /> <description> Gets the list of selected nodes. </description> </method> <method name="get_transformable_selected_nodes"> - <return type="Array"> - </return> + <return type="Array" /> <description> Gets the list of selected nodes, optimized for transform operations (i.e. moving them, rotating, etc). This list avoids situations where a node is selected and also child/grandchild. </description> </method> <method name="remove_node"> - <return type="void"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Node" /> <description> Removes a node from the selection. </description> diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xml index e732223516..ad63abafa6 100644 --- a/doc/classes/EditorSettings.xml +++ b/doc/classes/EditorSettings.xml @@ -31,10 +31,8 @@ </tutorials> <methods> <method name="add_property_info"> - <return type="void"> - </return> - <argument index="0" name="info" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="info" type="Dictionary" /> <description> Adds a custom property info to a property. The dictionary must contain: - [code]name[/code]: [String] (the name of the property) @@ -73,145 +71,110 @@ </description> </method> <method name="erase"> - <return type="void"> - </return> - <argument index="0" name="property" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="property" type="String" /> <description> Erases the setting whose name is specified by [code]property[/code]. </description> </method> <method name="get_favorites" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns the list of favorite files and directories for this project. </description> </method> <method name="get_project_metadata" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="section" type="String"> - </argument> - <argument index="1" name="key" type="String"> - </argument> - <argument index="2" name="default" type="Variant" default="null"> - </argument> + <return type="Variant" /> + <argument index="0" name="section" type="String" /> + <argument index="1" name="key" type="String" /> + <argument index="2" name="default" type="Variant" default="null" /> <description> Returns project-specific metadata for the [code]section[/code] and [code]key[/code] specified. If the metadata doesn't exist, [code]default[/code] will be returned instead. See also [method set_project_metadata]. </description> </method> <method name="get_project_settings_dir" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the project-specific settings path. Projects all have a unique subdirectory inside the settings path where project-specific settings are saved. </description> </method> <method name="get_recent_dirs" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns the list of recently visited folders in the file dialog for this project. </description> </method> <method name="get_setting" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="Variant" /> + <argument index="0" name="name" type="String" /> <description> Returns the value of the setting specified by [code]name[/code]. This is equivalent to using [method Object.get] on the EditorSettings instance. </description> </method> <method name="has_setting" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="String" /> <description> Returns [code]true[/code] if the setting specified by [code]name[/code] exists, [code]false[/code] otherwise. </description> </method> <method name="property_can_revert"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="String" /> <description> Returns [code]true[/code] if the setting specified by [code]name[/code] can have its value reverted to the default value, [code]false[/code] otherwise. When this method returns [code]true[/code], a Revert button will display next to the setting in the Editor Settings. </description> </method> <method name="property_get_revert"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="Variant" /> + <argument index="0" name="name" type="String" /> <description> Returns the default value of the setting specified by [code]name[/code]. This is the value that would be applied when clicking the Revert button in the Editor Settings. </description> </method> <method name="set_builtin_action_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="actions_list" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="actions_list" type="Array" /> <description> </description> </method> <method name="set_favorites"> - <return type="void"> - </return> - <argument index="0" name="dirs" type="PackedStringArray"> - </argument> + <return type="void" /> + <argument index="0" name="dirs" type="PackedStringArray" /> <description> Sets the list of favorite files and directories for this project. </description> </method> <method name="set_initial_value"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> - <argument index="2" name="update_current" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="value" type="Variant" /> + <argument index="2" name="update_current" type="bool" /> <description> Sets the initial value of the setting specified by [code]name[/code] to [code]value[/code]. This is used to provide a value for the Revert button in the Editor Settings. If [code]update_current[/code] is true, the current value of the setting will be set to [code]value[/code] as well. </description> </method> <method name="set_project_metadata"> - <return type="void"> - </return> - <argument index="0" name="section" type="String"> - </argument> - <argument index="1" name="key" type="String"> - </argument> - <argument index="2" name="data" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="section" type="String" /> + <argument index="1" name="key" type="String" /> + <argument index="2" name="data" type="Variant" /> <description> Sets project-specific metadata with the [code]section[/code], [code]key[/code] and [code]data[/code] specified. This metadata is stored outside the project folder and therefore won't be checked into version control. See also [method get_project_metadata]. </description> </method> <method name="set_recent_dirs"> - <return type="void"> - </return> - <argument index="0" name="dirs" type="PackedStringArray"> - </argument> + <return type="void" /> + <argument index="0" name="dirs" type="PackedStringArray" /> <description> Sets the list of recently visited folders in the file dialog for this project. </description> </method> <method name="set_setting"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="value" type="Variant" /> <description> Sets the [code]value[/code] of the setting specified by [code]name[/code]. This is equivalent to using [method Object.set] on the EditorSettings instance. </description> diff --git a/doc/classes/EditorSyntaxHighlighter.xml b/doc/classes/EditorSyntaxHighlighter.xml index d81b25345f..37644a8595 100644 --- a/doc/classes/EditorSyntaxHighlighter.xml +++ b/doc/classes/EditorSyntaxHighlighter.xml @@ -11,22 +11,19 @@ </tutorials> <methods> <method name="_get_name" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Virtual method which can be overridden to return the syntax highlighter name. </description> </method> <method name="_get_supported_extentions" qualifiers="virtual"> - <return type="Array"> - </return> + <return type="Array" /> <description> Virtual method which can be overridden to return the supported file extensions. </description> </method> <method name="_get_supported_languages" qualifiers="virtual"> - <return type="Array"> - </return> + <return type="Array" /> <description> Virtual method which can be overridden to return the supported language names. </description> diff --git a/doc/classes/EditorTranslationParserPlugin.xml b/doc/classes/EditorTranslationParserPlugin.xml index a9f4e90e72..47da8ec37b 100644 --- a/doc/classes/EditorTranslationParserPlugin.xml +++ b/doc/classes/EditorTranslationParserPlugin.xml @@ -103,21 +103,16 @@ </tutorials> <methods> <method name="_get_recognized_extensions" qualifiers="virtual"> - <return type="Array"> - </return> + <return type="Array" /> <description> Gets the list of file extensions to associate with this parser, e.g. [code]["csv"][/code]. </description> </method> <method name="_parse_file" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="msgids" type="Array"> - </argument> - <argument index="2" name="msgids_context_plural" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="msgids" type="Array" /> + <argument index="2" name="msgids_context_plural" type="Array" /> <description> Override this method to define a custom parsing logic to extract the translatable strings. </description> diff --git a/doc/classes/EditorVCSInterface.xml b/doc/classes/EditorVCSInterface.xml index 0056b5ce16..5dd4901e3e 100644 --- a/doc/classes/EditorVCSInterface.xml +++ b/doc/classes/EditorVCSInterface.xml @@ -10,19 +10,15 @@ </tutorials> <methods> <method name="commit"> - <return type="void"> - </return> - <argument index="0" name="msg" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="msg" type="String" /> <description> Creates a version commit if the addon is initialized, else returns without doing anything. Uses the files which have been staged previously, with the commit message set to a value as provided as in the argument. </description> </method> <method name="get_file_diff"> - <return type="Array"> - </return> - <argument index="0" name="file_path" type="String"> - </argument> + <return type="Array" /> + <argument index="0" name="file_path" type="String" /> <description> Returns an [Array] of [Dictionary] objects containing the diff output from the VCS in use, if a VCS addon is initialized, else returns an empty [Array] object. The diff contents also consist of some contextual lines which provide context to the observed line change in the file. Each [Dictionary] object has the line diff contents under the keys: @@ -35,8 +31,7 @@ </description> </method> <method name="get_modified_files_data"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Returns a [Dictionary] containing the path of the detected file change mapped to an integer signifying what kind of change the corresponding file has experienced. The following integer values are being used to signify that the detected file is: @@ -48,63 +43,52 @@ </description> </method> <method name="get_project_name"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the project name of the VCS working directory. </description> </method> <method name="get_vcs_name"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the name of the VCS if the VCS has been initialized, else return an empty string. </description> </method> <method name="initialize"> - <return type="bool"> - </return> - <argument index="0" name="project_root_path" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="project_root_path" type="String" /> <description> Initializes the VCS addon if not already. Uses the argument value as the path to the working directory of the project. Creates the initial commit if required. Returns [code]true[/code] if no failure occurs, else returns [code]false[/code]. </description> </method> <method name="is_addon_ready"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the addon is ready to respond to function calls, else returns [code]false[/code]. </description> </method> <method name="is_vcs_initialized"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the VCS addon has been initialized, else returns [code]false[/code]. </description> </method> <method name="shut_down"> - <return type="bool"> - </return> + <return type="bool" /> <description> Shuts down the VCS addon to allow cleanup code to run on call. Returns [code]true[/code] is no failure occurs, else returns [code]false[/code]. </description> </method> <method name="stage_file"> - <return type="void"> - </return> - <argument index="0" name="file_path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="file_path" type="String" /> <description> Stages the file which should be committed when [method EditorVCSInterface.commit] is called. Argument should contain the absolute path. </description> </method> <method name="unstage_file"> - <return type="void"> - </return> - <argument index="0" name="file_path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="file_path" type="String" /> <description> Unstages the file which was staged previously to be committed, so that it is no longer committed when [method EditorVCSInterface.commit] is called. Argument should contain the absolute path. </description> diff --git a/doc/classes/Engine.xml b/doc/classes/Engine.xml index 3fa7894fdc..e4411ab125 100644 --- a/doc/classes/Engine.xml +++ b/doc/classes/Engine.xml @@ -10,8 +10,7 @@ </tutorials> <methods> <method name="get_author_info" qualifiers="const"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Returns engine author information in a Dictionary. [code]lead_developers[/code] - Array of Strings, lead developer names @@ -21,8 +20,7 @@ </description> </method> <method name="get_copyright_info" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an Array of copyright information Dictionaries. [code]name[/code] - String, component name @@ -30,81 +28,69 @@ </description> </method> <method name="get_donor_info" qualifiers="const"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Returns a Dictionary of Arrays of donor names. {[code]platinum_sponsors[/code], [code]gold_sponsors[/code], [code]silver_sponsors[/code], [code]bronze_sponsors[/code], [code]mini_sponsors[/code], [code]gold_donors[/code], [code]silver_donors[/code], [code]bronze_donors[/code]} </description> </method> <method name="get_frames_drawn"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the total number of frames drawn. If the render loop is disabled with [code]--disable-render-loop[/code] via command line, this returns [code]0[/code]. See also [method get_process_frames]. </description> </method> <method name="get_frames_per_second" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the frames per second of the running game. </description> </method> <method name="get_license_info" qualifiers="const"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Returns Dictionary of licenses used by Godot and included third party components. </description> </method> <method name="get_license_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns Godot license text. </description> </method> <method name="get_main_loop" qualifiers="const"> - <return type="MainLoop"> - </return> + <return type="MainLoop" /> <description> Returns the main loop object (see [MainLoop] and [SceneTree]). </description> </method> <method name="get_physics_frames" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the total number of frames passed since engine initialization which is advanced on each [b]physics frame[/b]. </description> </method> <method name="get_physics_interpolation_fraction" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the fraction through the current physics tick we are at the time of rendering the frame. This can be used to implement fixed timestep interpolation. </description> </method> <method name="get_process_frames" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the total number of frames passed since engine initialization which is advanced on each [b]process frame[/b], regardless of whether the render loop is enabled. See also [method get_frames_drawn]. </description> </method> <method name="get_singleton" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="Object" /> + <argument index="0" name="name" type="String" /> <description> Returns a global singleton with given [code]name[/code]. Often used for plugins, e.g. GodotPayments. </description> </method> <method name="get_version_info" qualifiers="const"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Returns the current engine version information in a Dictionary. [code]major[/code] - Holds the major version number as an int @@ -138,17 +124,14 @@ </description> </method> <method name="has_singleton" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="String" /> <description> Returns [code]true[/code] if a singleton with given [code]name[/code] exists in global scope. </description> </method> <method name="is_in_physics_frame" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the game is inside the fixed process and physics phase of the game loop. </description> diff --git a/doc/classes/EngineDebugger.xml b/doc/classes/EngineDebugger.xml index 50ccb6b075..30d5193384 100644 --- a/doc/classes/EngineDebugger.xml +++ b/doc/classes/EngineDebugger.xml @@ -10,86 +10,64 @@ </tutorials> <methods> <method name="has_capture"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if a capture with the given name is present otherwise [code]false[/code]. </description> </method> <method name="has_profiler"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if a profiler with the given name is present otherwise [code]false[/code]. </description> </method> <method name="is_active"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the debugger is active otherwise [code]false[/code]. </description> </method> <method name="is_profiling"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if a profiler with the given name is present and active otherwise [code]false[/code]. </description> </method> <method name="profiler_add_frame_data"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="data" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="data" type="Array" /> <description> Calls the [code]add[/code] callable of the profiler with given [code]name[/code] and [code]data[/code]. </description> </method> <method name="profiler_enable"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="arguments" type="Array" default="[]"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="arguments" type="Array" default="[]" /> <description> Calls the [code]toggle[/code] callable of the profiler with given [code]name[/code] and [code]arguments[/code]. Enables/Disables the same profiler depending on [code]enable[/code] argument. </description> </method> <method name="register_message_capture"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="callable" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="callable" type="Callable" /> <description> Registers a message capture with given [code]name[/code]. If [code]name[/code] is "my_message" then messages starting with "my_message:" will be called with the given callable. Callable must accept a message string and a data array as argument. If the message and data are valid then callable must return [code]true[/code] otherwise [code]false[/code]. </description> </method> <method name="register_profiler"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="toggle" type="Callable"> - </argument> - <argument index="2" name="add" type="Callable"> - </argument> - <argument index="3" name="tick" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="toggle" type="Callable" /> + <argument index="2" name="add" type="Callable" /> + <argument index="3" name="tick" type="Callable" /> <description> Registers a profiler with the given [code]name[/code]. [code]toggle[/code] callable is called when the profiler is enabled/disabled. It must take an argument array as an argument. @@ -98,30 +76,23 @@ </description> </method> <method name="send_message"> - <return type="void"> - </return> - <argument index="0" name="message" type="String"> - </argument> - <argument index="1" name="data" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="message" type="String" /> + <argument index="1" name="data" type="Array" /> <description> Sends a message with given [code]message[/code] and [code]data[/code] array. </description> </method> <method name="unregister_message_capture"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Unregisters the message capture with given [code]name[/code]. </description> </method> <method name="unregister_profiler"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Unregisters a profiler with given [code]name[/code]. </description> diff --git a/doc/classes/Environment.xml b/doc/classes/Environment.xml index ae87a62c84..2c4e5ea886 100644 --- a/doc/classes/Environment.xml +++ b/doc/classes/Environment.xml @@ -19,21 +19,16 @@ </tutorials> <methods> <method name="get_glow_level" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="idx" type="int" /> <description> Returns the intensity of the glow level [code]idx[/code]. </description> </method> <method name="set_glow_level"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="intensity" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="intensity" type="float" /> <description> Sets the intensity of the glow level [code]idx[/code]. A value above [code]0.0[/code] enables the level. Each level relies on the previous level. This means that enabling higher glow levels will slow down the glow effect rendering, even if previous levels aren't enabled. </description> diff --git a/doc/classes/Expression.xml b/doc/classes/Expression.xml index 640b45dca4..809a5bb80c 100644 --- a/doc/classes/Expression.xml +++ b/doc/classes/Expression.xml @@ -52,40 +52,31 @@ </tutorials> <methods> <method name="execute"> - <return type="Variant"> - </return> - <argument index="0" name="inputs" type="Array" default="[]"> - </argument> - <argument index="1" name="base_instance" type="Object" default="null"> - </argument> - <argument index="2" name="show_error" type="bool" default="true"> - </argument> + <return type="Variant" /> + <argument index="0" name="inputs" type="Array" default="[]" /> + <argument index="1" name="base_instance" type="Object" default="null" /> + <argument index="2" name="show_error" type="bool" default="true" /> <description> Executes the expression that was previously parsed by [method parse] and returns the result. Before you use the returned object, you should check if the method failed by calling [method has_execute_failed]. If you defined input variables in [method parse], you can specify their values in the inputs array, in the same order. </description> </method> <method name="get_error_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the error text if [method parse] has failed. </description> </method> <method name="has_execute_failed" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if [method execute] has failed. </description> </method> <method name="parse"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="expression" type="String"> - </argument> - <argument index="1" name="input_names" type="PackedStringArray" default="PackedStringArray()"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="expression" type="String" /> + <argument index="1" name="input_names" type="PackedStringArray" default="PackedStringArray()" /> <description> 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. diff --git a/doc/classes/File.xml b/doc/classes/File.xml index f98c31dc7f..de3beedf0f 100644 --- a/doc/classes/File.xml +++ b/doc/classes/File.xml @@ -50,285 +50,231 @@ </tutorials> <methods> <method name="close"> - <return type="void"> - </return> + <return type="void" /> <description> Closes the currently opened file and prevents subsequent read/write operations. Use [method flush] to persist the data to disk without closing the file. </description> </method> <method name="eof_reached" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the file cursor has read past the end of the file. [b]Note:[/b] This function will still return [code]false[/code] while at the end of the file and only activates when reading past it. This can be confusing but it conforms to how low-level file access works in all operating systems. There is always [method get_length] and [method get_position] to implement a custom logic. </description> </method> <method name="file_exists" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="path" type="String" /> <description> Returns [code]true[/code] if the file exists in the given path. [b]Note:[/b] Many resources types are imported (e.g. textures or sound files), and their source asset will not be included in the exported game, as only the imported version is used. See [method ResourceLoader.exists] for an alternative approach that takes resource remapping into account. </description> </method> <method name="flush"> - <return type="void"> - </return> + <return type="void" /> <description> Writes the file's buffer to disk. Flushing is automatically performed when the file is closed. This means you don't need to call [method flush] manually before closing a file using [method close]. Still, calling [method flush] can be used to ensure the data is safe even if the project crashes instead of being closed gracefully. [b]Note:[/b] Only call [method flush] when you actually need it. Otherwise, it will decrease performance due to constant disk writes. </description> </method> <method name="get_16" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the next 16 bits from the file as an integer. See [method store_16] for details on what values can be stored and retrieved this way. </description> </method> <method name="get_32" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the next 32 bits from the file as an integer. See [method store_32] for details on what values can be stored and retrieved this way. </description> </method> <method name="get_64" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the next 64 bits from the file as an integer. See [method store_64] for details on what values can be stored and retrieved this way. </description> </method> <method name="get_8" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the next 8 bits from the file as an integer. See [method store_8] for details on what values can be stored and retrieved this way. </description> </method> <method name="get_as_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the whole file as a [String]. Text is interpreted as being UTF-8 encoded. </description> </method> <method name="get_buffer" qualifiers="const"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="length" type="int"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="length" type="int" /> <description> Returns next [code]length[/code] bytes of the file as a [PackedByteArray]. </description> </method> <method name="get_csv_line" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="delim" type="String" default="",""> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="delim" type="String" default="","" /> <description> Returns the next value of the file in CSV (Comma-Separated Values) format. You can pass a different delimiter [code]delim[/code] to use other than the default [code]","[/code] (comma). This delimiter must be one-character long. Text is interpreted as being UTF-8 encoded. </description> </method> <method name="get_double" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the next 64 bits from the file as a floating-point number. </description> </method> <method name="get_error" qualifiers="const"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> 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"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the next 32 bits from the file as a floating-point number. </description> </method> <method name="get_length" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the size of the file in bytes. </description> </method> <method name="get_line" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the next line of the file as a [String]. Text is interpreted as being UTF-8 encoded. </description> </method> <method name="get_md5" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="path" type="String" /> <description> Returns an MD5 String representing the file at the given path or an empty [String] on failure. </description> </method> <method name="get_modified_time" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="file" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="file" type="String" /> <description> Returns the last time the [code]file[/code] was modified in Unix timestamp format or returns a [String] "ERROR IN [code]file[/code]". This Unix timestamp can be converted to another format using the [Time] singleton. </description> </method> <method name="get_pascal_string"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a [String] saved in Pascal format from the file. Text is interpreted as being UTF-8 encoded. </description> </method> <method name="get_path" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the path as a [String] for the current open file. </description> </method> <method name="get_path_absolute" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the absolute path as a [String] for the current open file. </description> </method> <method name="get_position" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the file cursor's position. </description> </method> <method name="get_real" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the next bits from the file as a floating-point number. </description> </method> <method name="get_sha256" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="path" type="String" /> <description> Returns a SHA-256 [String] representing the file at the given path or an empty [String] on failure. </description> </method> <method name="get_var" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="allow_objects" type="bool" default="false"> - </argument> + <return type="Variant" /> + <argument index="0" name="allow_objects" type="bool" default="false" /> <description> Returns the next [Variant] value from the file. If [code]allow_objects[/code] is [code]true[/code], decoding objects is allowed. [b]Warning:[/b] Deserialized objects can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats such as remote code execution. </description> </method> <method name="is_open" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the file is currently opened. </description> </method> <method name="open"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="flags" type="int" enum="File.ModeFlags"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="flags" type="int" enum="File.ModeFlags" /> <description> Opens the file for writing or reading, depending on the flags. </description> </method> <method name="open_compressed"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="mode_flags" type="int" enum="File.ModeFlags"> - </argument> - <argument index="2" name="compression_mode" type="int" enum="File.CompressionMode" default="0"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="mode_flags" type="int" enum="File.ModeFlags" /> + <argument index="2" name="compression_mode" type="int" enum="File.CompressionMode" default="0" /> <description> Opens a compressed file for reading or writing. [b]Note:[/b] [method open_compressed] can only read files that were saved by Godot, not third-party compression formats. See [url=https://github.com/godotengine/godot/issues/28999]GitHub issue #28999[/url] for a workaround. </description> </method> <method name="open_encrypted"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="mode_flags" type="int" enum="File.ModeFlags"> - </argument> - <argument index="2" name="key" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="mode_flags" type="int" enum="File.ModeFlags" /> + <argument index="2" name="key" type="PackedByteArray" /> <description> Opens an encrypted file in write or read mode. You need to pass a binary key to encrypt/decrypt it. [b]Note:[/b] The provided key must be 32 bytes long. </description> </method> <method name="open_encrypted_with_pass"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="mode_flags" type="int" enum="File.ModeFlags"> - </argument> - <argument index="2" name="pass" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="mode_flags" type="int" enum="File.ModeFlags" /> + <argument index="2" name="pass" type="String" /> <description> Opens an encrypted file in write or read mode. You need to pass a password to encrypt/decrypt it. </description> </method> <method name="seek"> - <return type="void"> - </return> - <argument index="0" name="position" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="int" /> <description> Changes the file reading/writing cursor to the specified position (in bytes from the beginning of the file). </description> </method> <method name="seek_end"> - <return type="void"> - </return> - <argument index="0" name="position" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="int" default="0" /> <description> Changes the file reading/writing cursor to the specified position (in bytes from the end of the file). [b]Note:[/b] This is an offset, so you should use negative numbers or the cursor will be at the end of the file. </description> </method> <method name="store_16"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Stores an integer as 16 bits in the file. [b]Note:[/b] The [code]value[/code] should lie in the interval [code][0, 2^16 - 1][/code]. Any other value will overflow and wrap around. @@ -370,10 +316,8 @@ </description> </method> <method name="store_32"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Stores an integer as 32 bits in the file. [b]Note:[/b] The [code]value[/code] should lie in the interval [code][0, 2^32 - 1][/code]. Any other value will overflow and wrap around. @@ -381,20 +325,16 @@ </description> </method> <method name="store_64"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Stores an integer as 64 bits in the file. [b]Note:[/b] The [code]value[/code] must lie in the interval [code][-2^63, 2^63 - 1][/code] (i.e. be a valid [int] value). </description> </method> <method name="store_8"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Stores an integer as 8 bits in the file. [b]Note:[/b] The [code]value[/code] should lie in the interval [code][0, 255][/code]. Any other value will overflow and wrap around. @@ -402,88 +342,68 @@ </description> </method> <method name="store_buffer"> - <return type="void"> - </return> - <argument index="0" name="buffer" type="PackedByteArray"> - </argument> + <return type="void" /> + <argument index="0" name="buffer" type="PackedByteArray" /> <description> Stores the given array of bytes in the file. </description> </method> <method name="store_csv_line"> - <return type="void"> - </return> - <argument index="0" name="values" type="PackedStringArray"> - </argument> - <argument index="1" name="delim" type="String" default="",""> - </argument> + <return type="void" /> + <argument index="0" name="values" type="PackedStringArray" /> + <argument index="1" name="delim" type="String" default="","" /> <description> Store the given [PackedStringArray] in the file as a line formatted in the CSV (Comma-Separated Values) format. You can pass a different delimiter [code]delim[/code] to use other than the default [code]","[/code] (comma). This delimiter must be one-character long. Text will be encoded as UTF-8. </description> </method> <method name="store_double"> - <return type="void"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="float" /> <description> Stores a floating-point number as 64 bits in the file. </description> </method> <method name="store_float"> - <return type="void"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="float" /> <description> Stores a floating-point number as 32 bits in the file. </description> </method> <method name="store_line"> - <return type="void"> - </return> - <argument index="0" name="line" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="String" /> <description> Appends [code]line[/code] to the file followed by a line return character ([code]\n[/code]), encoding the text as UTF-8. </description> </method> <method name="store_pascal_string"> - <return type="void"> - </return> - <argument index="0" name="string" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="string" type="String" /> <description> Stores the given [String] as a line in the file in Pascal format (i.e. also store the length of the string). Text will be encoded as UTF-8. </description> </method> <method name="store_real"> - <return type="void"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="float" /> <description> Stores a floating-point number in the file. </description> </method> <method name="store_string"> - <return type="void"> - </return> - <argument index="0" name="string" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="string" type="String" /> <description> Appends [code]string[/code] to the file without a line return, encoding the text as UTF-8. </description> </method> <method name="store_var"> - <return type="void"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> - <argument index="1" name="full_objects" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="Variant" /> + <argument index="1" name="full_objects" type="bool" default="false" /> <description> Stores any Variant value in the file. If [code]full_objects[/code] is [code]true[/code], encoding objects is allowed (and can potentially include code). [b]Note:[/b] Not all properties are included. Only properties that are configured with the [constant PROPERTY_USAGE_STORAGE] flag set will be serialized. You can add a new usage flag to a property by overriding the [method Object._get_property_list] method in your class. You can also check how property usage is configured by calling [method Object._get_property_list]. See [enum PropertyUsageFlags] for the possible usage flags. diff --git a/doc/classes/FileDialog.xml b/doc/classes/FileDialog.xml index 8ccee1c82e..7e16a6bf5a 100644 --- a/doc/classes/FileDialog.xml +++ b/doc/classes/FileDialog.xml @@ -10,45 +10,38 @@ </tutorials> <methods> <method name="add_filter"> - <return type="void"> - </return> - <argument index="0" name="filter" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="filter" type="String" /> <description> Adds [code]filter[/code] as a custom filter; [code]filter[/code] should be of the form [code]"filename.extension ; Description"[/code]. For example, [code]"*.png ; PNG Images"[/code]. </description> </method> <method name="clear_filters"> - <return type="void"> - </return> + <return type="void" /> <description> Clear all the added filters in the dialog. </description> </method> <method name="deselect_all"> - <return type="void"> - </return> + <return type="void" /> <description> Clear all currently selected items in the dialog. </description> </method> <method name="get_line_edit"> - <return type="LineEdit"> - </return> + <return type="LineEdit" /> <description> Returns the LineEdit for the selected file. </description> </method> <method name="get_vbox"> - <return type="VBoxContainer"> - </return> + <return type="VBoxContainer" /> <description> Returns the vertical box container of the dialog, custom controls can be added to it. </description> </method> <method name="invalidate"> - <return type="void"> - </return> + <return type="void" /> <description> Invalidate and update the current dialog content list. </description> @@ -85,22 +78,19 @@ </members> <signals> <signal name="dir_selected"> - <argument index="0" name="dir" type="String"> - </argument> + <argument index="0" name="dir" type="String" /> <description> Emitted when the user selects a directory. </description> </signal> <signal name="file_selected"> - <argument index="0" name="path" type="String"> - </argument> + <argument index="0" name="path" type="String" /> <description> Emitted when the user selects a file by double-clicking it or pressing the [b]OK[/b] button. </description> </signal> <signal name="files_selected"> - <argument index="0" name="paths" type="PackedStringArray"> - </argument> + <argument index="0" name="paths" type="PackedStringArray" /> <description> Emitted when the user selects multiple files. </description> diff --git a/doc/classes/FileSystemDock.xml b/doc/classes/FileSystemDock.xml index 15f92e90e3..a164415245 100644 --- a/doc/classes/FileSystemDock.xml +++ b/doc/classes/FileSystemDock.xml @@ -8,10 +8,8 @@ </tutorials> <methods> <method name="navigate_to_path"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> <description> </description> </method> @@ -22,42 +20,34 @@ </description> </signal> <signal name="file_removed"> - <argument index="0" name="file" type="String"> - </argument> + <argument index="0" name="file" type="String" /> <description> </description> </signal> <signal name="files_moved"> - <argument index="0" name="old_file" type="String"> - </argument> - <argument index="1" name="new_file" type="String"> - </argument> + <argument index="0" name="old_file" type="String" /> + <argument index="1" name="new_file" type="String" /> <description> </description> </signal> <signal name="folder_moved"> - <argument index="0" name="old_folder" type="String"> - </argument> - <argument index="1" name="new_file" type="String"> - </argument> + <argument index="0" name="old_folder" type="String" /> + <argument index="1" name="new_file" type="String" /> <description> </description> </signal> <signal name="folder_removed"> - <argument index="0" name="folder" type="String"> - </argument> + <argument index="0" name="folder" type="String" /> <description> </description> </signal> <signal name="inherit"> - <argument index="0" name="file" type="String"> - </argument> + <argument index="0" name="file" type="String" /> <description> </description> </signal> <signal name="instance"> - <argument index="0" name="files" type="PackedStringArray"> - </argument> + <argument index="0" name="files" type="PackedStringArray" /> <description> </description> </signal> diff --git a/doc/classes/Font.xml b/doc/classes/Font.xml index 186bfbb931..06dcaca846 100644 --- a/doc/classes/Font.xml +++ b/doc/classes/Font.xml @@ -64,188 +64,131 @@ </tutorials> <methods> <method name="add_data"> - <return type="void"> - </return> - <argument index="0" name="data" type="FontData"> - </argument> + <return type="void" /> + <argument index="0" name="data" type="FontData" /> <description> Add font data source to the set. </description> </method> <method name="draw_char" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="char" type="int"> - </argument> - <argument index="3" name="next" type="int" default="0"> - </argument> - <argument index="4" name="size" type="int" default="-1"> - </argument> - <argument index="5" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="6" name="outline_size" type="int" default="0"> - </argument> - <argument index="7" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)"> - </argument> + <return type="float" /> + <argument index="0" name="canvas_item" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="char" type="int" /> + <argument index="3" name="next" type="int" default="0" /> + <argument index="4" name="size" type="int" default="-1" /> + <argument index="5" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="6" name="outline_size" type="int" default="0" /> + <argument index="7" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)" /> <description> Draw a single Unicode character [code]char[/code] into a canvas item using the font, at a given position, with [code]modulate[/code] color, and optionally kerning if [code]next[/code] is passed. [code]position[/code] specifies the baseline, not the top. To draw from the top, [i]ascent[/i] must be added to the Y axis. [b]Note:[/b] Do not use this function to draw strings character by character, use [method draw_string] or [TextLine] instead. </description> </method> <method name="draw_multiline_string" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="text" type="String"> - </argument> - <argument index="3" name="align" type="int" enum="HAlign" default="0"> - </argument> - <argument index="4" name="width" type="float" default="-1"> - </argument> - <argument index="5" name="max_lines" type="int" default="-1"> - </argument> - <argument index="6" name="size" type="int" default="-1"> - </argument> - <argument index="7" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="8" name="outline_size" type="int" default="0"> - </argument> - <argument index="9" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)"> - </argument> - <argument index="10" name="flags" type="int" default="51"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_item" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="text" type="String" /> + <argument index="3" name="align" type="int" enum="HAlign" default="0" /> + <argument index="4" name="width" type="float" default="-1" /> + <argument index="5" name="max_lines" type="int" default="-1" /> + <argument index="6" name="size" type="int" default="-1" /> + <argument index="7" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="8" name="outline_size" type="int" default="0" /> + <argument index="9" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)" /> + <argument index="10" name="flags" type="int" default="51" /> <description> Breaks [code]text[/code] to the lines using rules specified by [code]flags[/code] and draws it into a canvas item using the font, at a given position, with [code]modulate[/code] color, optionally clipping the width and aligning horizontally. [code]position[/code] specifies the baseline of the first line, not the top. To draw from the top, [i]ascent[/i] must be added to the Y axis. See also [method CanvasItem.draw_multiline_string]. </description> </method> <method name="draw_string" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="text" type="String"> - </argument> - <argument index="3" name="align" type="int" enum="HAlign" default="0"> - </argument> - <argument index="4" name="width" type="float" default="-1"> - </argument> - <argument index="5" name="size" type="int" default="-1"> - </argument> - <argument index="6" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="7" name="outline_size" type="int" default="0"> - </argument> - <argument index="8" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)"> - </argument> - <argument index="9" name="flags" type="int" default="3"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_item" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="text" type="String" /> + <argument index="3" name="align" type="int" enum="HAlign" default="0" /> + <argument index="4" name="width" type="float" default="-1" /> + <argument index="5" name="size" type="int" default="-1" /> + <argument index="6" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="7" name="outline_size" type="int" default="0" /> + <argument index="8" name="outline_modulate" type="Color" default="Color(1, 1, 1, 0)" /> + <argument index="9" name="flags" type="int" default="3" /> <description> Draw [code]text[/code] into a canvas item using the font, at a given position, with [code]modulate[/code] color, optionally clipping the width and aligning horizontally. [code]position[/code] specifies the baseline, not the top. To draw from the top, [i]ascent[/i] must be added to the Y axis. See also [method CanvasItem.draw_string]. </description> </method> <method name="get_ascent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="size" type="int" default="-1"> - </argument> + <return type="float" /> + <argument index="0" name="size" type="int" default="-1" /> <description> Returns the average font ascent (number of pixels above the baseline). [b]Note:[/b] Real ascent of the string is context-dependent and can be significantly different from the value returned by this function. Use it only as rough estimate (e.g. as the ascent of empty line). </description> </method> <method name="get_char_size" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="char" type="int"> - </argument> - <argument index="1" name="next" type="int" default="0"> - </argument> - <argument index="2" name="size" type="int" default="-1"> - </argument> + <return type="Vector2" /> + <argument index="0" name="char" type="int" /> + <argument index="1" name="next" type="int" default="0" /> + <argument index="2" name="size" type="int" default="-1" /> <description> Returns the size of a character, optionally taking kerning into account if the next character is provided. [b]Note:[/b] Do not use this function to calculate width of the string character by character, use [method get_string_size] or [TextLine] instead. The height returned is the font height (see also [method get_height]) and has no relation to the glyph height. </description> </method> <method name="get_data" qualifiers="const"> - <return type="FontData"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="FontData" /> + <argument index="0" name="idx" type="int" /> <description> Returns the font data source at index [code]idx[/code]. If the index does not exist, returns [code]null[/code]. </description> </method> <method name="get_data_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of font data sources. </description> </method> <method name="get_descent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="size" type="int" default="-1"> - </argument> + <return type="float" /> + <argument index="0" name="size" type="int" default="-1" /> <description> Returns the average font descent (number of pixels below the baseline). [b]Note:[/b] Real descent of the string is context-dependent and can be significantly different from the value returned by this function. Use it only as rough estimate (e.g. as the descent of empty line). </description> </method> <method name="get_height" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="size" type="int" default="-1"> - </argument> + <return type="float" /> + <argument index="0" name="size" type="int" default="-1" /> <description> Returns the total average font height (ascent plus descent) in pixels. [b]Note:[/b] Real height of the string is context-dependent and can be significantly different from the value returned by this function. Use it only as rough estimate (e.g. as the height of empty line). </description> </method> <method name="get_multiline_string_size" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="text" type="String"> - </argument> - <argument index="1" name="width" type="float" default="-1"> - </argument> - <argument index="2" name="size" type="int" default="-1"> - </argument> - <argument index="3" name="flags" type="int" default="48"> - </argument> + <return type="Vector2" /> + <argument index="0" name="text" type="String" /> + <argument index="1" name="width" type="float" default="-1" /> + <argument index="2" name="size" type="int" default="-1" /> + <argument index="3" name="flags" type="int" default="48" /> <description> Returns the size of a bounding box of a string broken into the lines, taking kerning and advance into account. See also [method draw_multiline_string]. </description> </method> <method name="get_spacing" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="type" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="type" type="int" /> <description> Returns the spacing for the given [code]type[/code] (see [enum SpacingType]). </description> </method> <method name="get_string_size" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="text" type="String"> - </argument> - <argument index="1" name="size" type="int" default="-1"> - </argument> + <return type="Vector2" /> + <argument index="0" name="text" type="String" /> + <argument index="1" name="size" type="int" default="-1" /> <description> Returns the size of a bounding box of a string, taking kerning and advance into account. [b]Note:[/b] Real height of the string is context-dependent and can be significantly different from the value returned by [method get_height]. @@ -253,76 +196,60 @@ </description> </method> <method name="get_supported_chars" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a string containing all the characters available in the font. If a given character is included in more than one font data source, it appears only once in the returned string. </description> </method> <method name="get_underline_position" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="size" type="int" default="-1"> - </argument> + <return type="float" /> + <argument index="0" name="size" type="int" default="-1" /> <description> Return average pixel offset of the underline below the baseline. [b]Note:[/b] Real underline position of the string is context-dependent and can be significantly different from the value returned by this function. Use it only as rough estimate. </description> </method> <method name="get_underline_thickness" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="size" type="int" default="-1"> - </argument> + <return type="float" /> + <argument index="0" name="size" type="int" default="-1" /> <description> Return average thickness of the underline. [b]Note:[/b] Real underline thickness of the string is context-dependent and can be significantly different from the value returned by this function. Use it only as rough estimate. </description> </method> <method name="has_char" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="char" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="char" type="int" /> <description> Return [code]true[/code] if a Unicode [code]char[/code] is available in the font. </description> </method> <method name="remove_data"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Removes the font data source at index [code]idx[/code]. If the index does not exist, nothing happens. </description> </method> <method name="set_data"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="data" type="FontData"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="data" type="FontData" /> <description> Sets the font data source at index [code]idx[/code]. If the index does not exist, nothing happens. </description> </method> <method name="set_spacing"> - <return type="void"> - </return> - <argument index="0" name="type" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" /> + <argument index="1" name="value" type="int" /> <description> Sets the spacing for [code]type[/code] (see [enum SpacingType]) to [code]value[/code] in pixels (not relative to the font size). </description> </method> <method name="update_changes"> - <return type="void"> - </return> + <return type="void" /> <description> After editing a font (changing data sources, etc.). Call this function to propagate changes to controls that might use it. </description> diff --git a/doc/classes/FontData.xml b/doc/classes/FontData.xml index 0a2fb03750..7a845a698f 100644 --- a/doc/classes/FontData.xml +++ b/doc/classes/FontData.xml @@ -12,57 +12,39 @@ </tutorials> <methods> <method name="bitmap_add_char"> - <return type="void"> - </return> - <argument index="0" name="char" type="int"> - </argument> - <argument index="1" name="texture_idx" type="int"> - </argument> - <argument index="2" name="rect" type="Rect2"> - </argument> - <argument index="3" name="align" type="Vector2"> - </argument> - <argument index="4" name="advance" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="char" type="int" /> + <argument index="1" name="texture_idx" type="int" /> + <argument index="2" name="rect" type="Rect2" /> + <argument index="3" name="align" type="Vector2" /> + <argument index="4" name="advance" type="float" /> <description> Adds a character to the font, where [code]character[/code] is the Unicode value, [code]texture[/code] is the texture index, [code]rect[/code] is the region in the texture (in pixels!), [code]align[/code] is the (optional) alignment for the character and [code]advance[/code] is the (optional) advance. </description> </method> <method name="bitmap_add_kerning_pair"> - <return type="void"> - </return> - <argument index="0" name="A" type="int"> - </argument> - <argument index="1" name="B" type="int"> - </argument> - <argument index="2" name="kerning" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="A" type="int" /> + <argument index="1" name="B" type="int" /> + <argument index="2" name="kerning" type="int" /> <description> Adds a kerning pair to the bitmap font as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character. </description> </method> <method name="bitmap_add_texture"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture" /> <description> Adds a texture to the bitmap font. </description> </method> <method name="draw_glyph" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="size" type="int"> - </argument> - <argument index="2" name="pos" type="Vector2"> - </argument> - <argument index="3" name="index" type="int"> - </argument> - <argument index="4" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="Vector2" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="size" type="int" /> + <argument index="2" name="pos" type="Vector2" /> + <argument index="3" name="index" type="int" /> + <argument index="4" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draws single glyph into a canvas item at the position, using [code]font[/code] at the size [code]size[/code]. Returns advance of the glyph for horizontal and vertical layouts. @@ -70,20 +52,13 @@ </description> </method> <method name="draw_glyph_outline" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="size" type="int"> - </argument> - <argument index="2" name="outline_size" type="int"> - </argument> - <argument index="3" name="pos" type="Vector2"> - </argument> - <argument index="4" name="index" type="int"> - </argument> - <argument index="5" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="Vector2" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="size" type="int" /> + <argument index="2" name="outline_size" type="int" /> + <argument index="3" name="pos" type="Vector2" /> + <argument index="4" name="index" type="int" /> + <argument index="5" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draws single glyph outline of size [code]outline_size[/code] into a canvas item at the position, using [code]font[/code] at the size [code]size[/code]. If outline drawing is not supported, nothing is drawn. Returns advance of the glyph for horizontal and vertical layouts (regardless of outline drawing support). @@ -91,290 +66,223 @@ </description> </method> <method name="get_ascent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="size" type="int" /> <description> Returns the font ascent (number of pixels above the baseline). </description> </method> <method name="get_base_size" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the base size of the font (the only size supported for non-scalable fonts, meaningless for scalable fonts). </description> </method> <method name="get_descent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="size" type="int" /> <description> Returns the font descent (number of pixels below the baseline). </description> </method> <method name="get_glyph_advance" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="size" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="size" type="int" /> <description> Returns advance of the glyph for horizontal and vertical layouts. Note: Glyph index is bound to the font data, use only glyphs indices returned by [method TextServer.shaped_text_get_glyphs] or [method get_glyph_index] for this font data. </description> </method> <method name="get_glyph_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="char" type="int"> - </argument> - <argument index="1" name="variation_selector" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="char" type="int" /> + <argument index="1" name="variation_selector" type="int" default="0" /> <description> Return the glyph index of a [code]char[/code], optionally modified by the [code]variation_selector[/code]. </description> </method> <method name="get_glyph_kerning" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="index_a" type="int"> - </argument> - <argument index="1" name="index_b" type="int"> - </argument> - <argument index="2" name="size" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="index_a" type="int" /> + <argument index="1" name="index_b" type="int" /> + <argument index="2" name="size" type="int" /> <description> Returns a kerning of the pair of glyphs for horizontal and vertical layouts. Note: Glyph index is bound to the font data, use only glyphs indices returned by [method TextServer.shaped_text_get_glyphs] or [method get_glyph_index] for this font data. </description> </method> <method name="get_height" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="size" type="int" /> <description> Returns the total font height (ascent plus descent) in pixels. </description> </method> <method name="get_language_support_override" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="language" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="language" type="String" /> <description> Returns [code]true[/code] if support override is enabled for the [code]language[/code]. </description> </method> <method name="get_language_support_overrides" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns list of language support overrides. </description> </method> <method name="get_script_support_override" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="script" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="script" type="String" /> <description> Returns [code]true[/code] if support override is enabled for the [code]script[/code]. </description> </method> <method name="get_script_support_overrides" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns list of script support overrides. </description> </method> <method name="get_spacing" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="type" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="type" type="int" /> <description> Returns the spacing for the given [code]type[/code] (see [enum SpacingType]). </description> </method> <method name="get_supported_chars" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a string containing all the characters available in the font. </description> </method> <method name="get_underline_position" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="size" type="int" /> <description> Returns underline offset (number of pixels below the baseline). </description> </method> <method name="get_underline_thickness" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="size" type="int" /> <description> Returns underline thickness in pixels. </description> </method> <method name="get_variation" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="tag" type="String"> - </argument> + <return type="float" /> + <argument index="0" name="tag" type="String" /> <description> Returns variation coordinate [code]tag[/code]. </description> </method> <method name="get_variation_list" qualifiers="const"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Returns list of supported [url=https://docs.microsoft.com/en-us/typography/opentype/spec/dvaraxisreg]variation coordinates[/url], each coordinate is returned as [code]tag: Vector3i(min_value,max_value,default_value)[/code]. Font variations allow for continuous change of glyph characteristics along some given design axis, such as weight, width or slant. </description> </method> <method name="has_char" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="char" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="char" type="int" /> <description> Return [code]true[/code] if a Unicode [code]char[/code] is available in the font. </description> </method> <method name="has_outline" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code], if font supports drawing glyph outlines. </description> </method> <method name="is_language_supported" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="language" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="language" type="String" /> <description> Returns [code]true[/code], if font supports given language ([url=https://en.wikipedia.org/wiki/ISO_639-1]ISO 639[/url] code). </description> </method> <method name="is_script_supported" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="script" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="script" type="String" /> <description> Returns [code]true[/code], if font supports given script ([url=https://en.wikipedia.org/wiki/ISO_15924]ISO 15924[/url] code). </description> </method> <method name="load_memory"> - <return type="void"> - </return> - <argument index="0" name="data" type="PackedByteArray"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="base_size" type="int" default="16"> - </argument> + <return type="void" /> + <argument index="0" name="data" type="PackedByteArray" /> + <argument index="1" name="type" type="String" /> + <argument index="2" name="base_size" type="int" default="16" /> <description> Creates new font from the data in memory. Note: For non-scalable fonts [code]base_size[/code] is ignored, use [method get_base_size] to check actual font size. </description> </method> <method name="load_resource"> - <return type="void"> - </return> - <argument index="0" name="filename" type="String"> - </argument> - <argument index="1" name="base_size" type="int" default="16"> - </argument> + <return type="void" /> + <argument index="0" name="filename" type="String" /> + <argument index="1" name="base_size" type="int" default="16" /> <description> Creates new font from the file. Note: For non-scalable fonts [code]base_size[/code] is ignored, use [method get_base_size] to check actual font size. </description> </method> <method name="new_bitmap"> - <return type="void"> - </return> - <argument index="0" name="height" type="float"> - </argument> - <argument index="1" name="ascent" type="float"> - </argument> - <argument index="2" name="base_size" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="height" type="float" /> + <argument index="1" name="ascent" type="float" /> + <argument index="2" name="base_size" type="int" /> <description> Creates new, empty bitmap font. </description> </method> <method name="remove_language_support_override"> - <return type="void"> - </return> - <argument index="0" name="language" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="language" type="String" /> <description> Remove language support override. </description> </method> <method name="remove_script_support_override"> - <return type="void"> - </return> - <argument index="0" name="script" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="script" type="String" /> <description> Removes script support override. </description> </method> <method name="set_language_support_override"> - <return type="void"> - </return> - <argument index="0" name="language" type="String"> - </argument> - <argument index="1" name="supported" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="language" type="String" /> + <argument index="1" name="supported" type="bool" /> <description> Adds override for [method is_language_supported]. </description> </method> <method name="set_script_support_override"> - <return type="void"> - </return> - <argument index="0" name="script" type="String"> - </argument> - <argument index="1" name="supported" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="script" type="String" /> + <argument index="1" name="supported" type="bool" /> <description> Adds override for [method is_script_supported]. </description> </method> <method name="set_spacing"> - <return type="void"> - </return> - <argument index="0" name="type" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" /> + <argument index="1" name="value" type="int" /> <description> Sets the spacing for [code]type[/code] (see [enum SpacingType]) to [code]value[/code] in pixels (not relative to the font size). </description> </method> <method name="set_variation"> - <return type="void"> - </return> - <argument index="0" name="tag" type="String"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="tag" type="String" /> + <argument index="1" name="value" type="float" /> <description> Sets variation coordinate [code]tag[/code]. </description> diff --git a/doc/classes/GPUParticles2D.xml b/doc/classes/GPUParticles2D.xml index 8684a7f41a..72bd6a6411 100644 --- a/doc/classes/GPUParticles2D.xml +++ b/doc/classes/GPUParticles2D.xml @@ -13,15 +13,13 @@ </tutorials> <methods> <method name="capture_rect" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns a rectangle containing the positions of all existing particles. </description> </method> <method name="restart"> - <return type="void"> - </return> + <return type="void" /> <description> Restarts all the existing particles. </description> diff --git a/doc/classes/GPUParticles3D.xml b/doc/classes/GPUParticles3D.xml index 55e9b33aa8..3f7b20f274 100644 --- a/doc/classes/GPUParticles3D.xml +++ b/doc/classes/GPUParticles3D.xml @@ -13,51 +13,38 @@ </tutorials> <methods> <method name="capture_aabb" qualifiers="const"> - <return type="AABB"> - </return> + <return type="AABB" /> <description> Returns the axis-aligned bounding box that contains all the particles that are active in the current frame. </description> </method> <method name="emit_particle"> - <return type="void"> - </return> - <argument index="0" name="xform" type="Transform3D"> - </argument> - <argument index="1" name="velocity" type="Vector3"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> - <argument index="3" name="custom" type="Color"> - </argument> - <argument index="4" name="flags" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="xform" type="Transform3D" /> + <argument index="1" name="velocity" type="Vector3" /> + <argument index="2" name="color" type="Color" /> + <argument index="3" name="custom" type="Color" /> + <argument index="4" name="flags" type="int" /> <description> </description> </method> <method name="get_draw_pass_mesh" qualifiers="const"> - <return type="Mesh"> - </return> - <argument index="0" name="pass" type="int"> - </argument> + <return type="Mesh" /> + <argument index="0" name="pass" type="int" /> <description> Returns the [Mesh] that is drawn at index [code]pass[/code]. </description> </method> <method name="restart"> - <return type="void"> - </return> + <return type="void" /> <description> Restarts the particle emission, clearing existing particles. </description> </method> <method name="set_draw_pass_mesh"> - <return type="void"> - </return> - <argument index="0" name="pass" type="int"> - </argument> - <argument index="1" name="mesh" type="Mesh"> - </argument> + <return type="void" /> + <argument index="0" name="pass" type="int" /> + <argument index="1" name="mesh" type="Mesh" /> <description> Sets the [Mesh] that is drawn at index [code]pass[/code]. </description> diff --git a/doc/classes/Generic6DOFJoint3D.xml b/doc/classes/Generic6DOFJoint3D.xml index 79b861dfb8..ebfcaa7678 100644 --- a/doc/classes/Generic6DOFJoint3D.xml +++ b/doc/classes/Generic6DOFJoint3D.xml @@ -10,110 +10,80 @@ </tutorials> <methods> <method name="get_flag_x" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag"> - </argument> + <return type="bool" /> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag" /> <description> </description> </method> <method name="get_flag_y" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag"> - </argument> + <return type="bool" /> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag" /> <description> </description> </method> <method name="get_flag_z" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag"> - </argument> + <return type="bool" /> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag" /> <description> </description> </method> <method name="get_param_x" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param" /> <description> </description> </method> <method name="get_param_y" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param" /> <description> </description> </method> <method name="get_param_z" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param" /> <description> </description> </method> <method name="set_flag_x"> - <return type="void"> - </return> - <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag" /> + <argument index="1" name="value" type="bool" /> <description> </description> </method> <method name="set_flag_y"> - <return type="void"> - </return> - <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag" /> + <argument index="1" name="value" type="bool" /> <description> </description> </method> <method name="set_flag_z"> - <return type="void"> - </return> - <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint3D.Flag" /> + <argument index="1" name="value" type="bool" /> <description> </description> </method> <method name="set_param_x"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param" /> + <argument index="1" name="value" type="float" /> <description> </description> </method> <method name="set_param_y"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param" /> + <argument index="1" name="value" type="float" /> <description> </description> </method> <method name="set_param_z"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint3D.Param" /> + <argument index="1" name="value" type="float" /> <description> </description> </method> diff --git a/doc/classes/Geometry2D.xml b/doc/classes/Geometry2D.xml index 13354ec19e..157124cded 100644 --- a/doc/classes/Geometry2D.xml +++ b/doc/classes/Geometry2D.xml @@ -10,192 +10,139 @@ </tutorials> <methods> <method name="clip_polygons"> - <return type="Array"> - </return> - <argument index="0" name="polygon_a" type="PackedVector2Array"> - </argument> - <argument index="1" name="polygon_b" type="PackedVector2Array"> - </argument> + <return type="Array" /> + <argument index="0" name="polygon_a" type="PackedVector2Array" /> + <argument index="1" name="polygon_b" type="PackedVector2Array" /> <description> Clips [code]polygon_a[/code] against [code]polygon_b[/code] and returns an array of clipped polygons. This performs [constant OPERATION_DIFFERENCE] between polygons. Returns an empty array if [code]polygon_b[/code] completely overlaps [code]polygon_a[/code]. If [code]polygon_b[/code] is enclosed by [code]polygon_a[/code], returns an outer polygon (boundary) and inner polygon (hole) which could be distinguished by calling [method is_polygon_clockwise]. </description> </method> <method name="clip_polyline_with_polygon"> - <return type="Array"> - </return> - <argument index="0" name="polyline" type="PackedVector2Array"> - </argument> - <argument index="1" name="polygon" type="PackedVector2Array"> - </argument> + <return type="Array" /> + <argument index="0" name="polyline" type="PackedVector2Array" /> + <argument index="1" name="polygon" type="PackedVector2Array" /> <description> Clips [code]polyline[/code] against [code]polygon[/code] and returns an array of clipped polylines. This performs [constant OPERATION_DIFFERENCE] between the polyline and the polygon. This operation can be thought of as cutting a line with a closed shape. </description> </method> <method name="convex_hull"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="points" type="PackedVector2Array"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="points" type="PackedVector2Array" /> <description> Given an array of [Vector2]s, returns the convex hull as a list of points in counterclockwise order. The last point is the same as the first one. </description> </method> <method name="exclude_polygons"> - <return type="Array"> - </return> - <argument index="0" name="polygon_a" type="PackedVector2Array"> - </argument> - <argument index="1" name="polygon_b" type="PackedVector2Array"> - </argument> + <return type="Array" /> + <argument index="0" name="polygon_a" type="PackedVector2Array" /> + <argument index="1" name="polygon_b" type="PackedVector2Array" /> <description> Mutually excludes common area defined by intersection of [code]polygon_a[/code] and [code]polygon_b[/code] (see [method intersect_polygons]) and returns an array of excluded polygons. This performs [constant OPERATION_XOR] between polygons. In other words, returns all but common area between polygons. The operation may result in an outer polygon (boundary) and inner polygon (hole) produced which could be distinguished by calling [method is_polygon_clockwise]. </description> </method> <method name="get_closest_point_to_segment"> - <return type="Vector2"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> - <argument index="1" name="s1" type="Vector2"> - </argument> - <argument index="2" name="s2" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="point" type="Vector2" /> + <argument index="1" name="s1" type="Vector2" /> + <argument index="2" name="s2" type="Vector2" /> <description> Returns the 2D point on the 2D segment ([code]s1[/code], [code]s2[/code]) that is closest to [code]point[/code]. The returned point will always be inside the specified segment. </description> </method> <method name="get_closest_point_to_segment_uncapped"> - <return type="Vector2"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> - <argument index="1" name="s1" type="Vector2"> - </argument> - <argument index="2" name="s2" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="point" type="Vector2" /> + <argument index="1" name="s1" type="Vector2" /> + <argument index="2" name="s2" type="Vector2" /> <description> Returns the 2D point on the 2D line defined by ([code]s1[/code], [code]s2[/code]) that is closest to [code]point[/code]. The returned point can be inside the segment ([code]s1[/code], [code]s2[/code]) or outside of it, i.e. somewhere on the line extending from the segment. </description> </method> <method name="get_closest_points_between_segments"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="p1" type="Vector2"> - </argument> - <argument index="1" name="q1" type="Vector2"> - </argument> - <argument index="2" name="p2" type="Vector2"> - </argument> - <argument index="3" name="q2" type="Vector2"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="p1" type="Vector2" /> + <argument index="1" name="q1" type="Vector2" /> + <argument index="2" name="p2" type="Vector2" /> + <argument index="3" name="q2" type="Vector2" /> <description> Given the two 2D segments ([code]p1[/code], [code]q1[/code]) and ([code]p2[/code], [code]q2[/code]), finds those two points on the two segments that are closest to each other. Returns a [PackedVector2Array] that contains this point on ([code]p1[/code], [code]q1[/code]) as well the accompanying point on ([code]p2[/code], [code]q2[/code]). </description> </method> <method name="intersect_polygons"> - <return type="Array"> - </return> - <argument index="0" name="polygon_a" type="PackedVector2Array"> - </argument> - <argument index="1" name="polygon_b" type="PackedVector2Array"> - </argument> + <return type="Array" /> + <argument index="0" name="polygon_a" type="PackedVector2Array" /> + <argument index="1" name="polygon_b" type="PackedVector2Array" /> <description> Intersects [code]polygon_a[/code] with [code]polygon_b[/code] and returns an array of intersected polygons. This performs [constant OPERATION_INTERSECTION] between polygons. In other words, returns common area shared by polygons. Returns an empty array if no intersection occurs. The operation may result in an outer polygon (boundary) and inner polygon (hole) produced which could be distinguished by calling [method is_polygon_clockwise]. </description> </method> <method name="intersect_polyline_with_polygon"> - <return type="Array"> - </return> - <argument index="0" name="polyline" type="PackedVector2Array"> - </argument> - <argument index="1" name="polygon" type="PackedVector2Array"> - </argument> + <return type="Array" /> + <argument index="0" name="polyline" type="PackedVector2Array" /> + <argument index="1" name="polygon" type="PackedVector2Array" /> <description> Intersects [code]polyline[/code] with [code]polygon[/code] and returns an array of intersected polylines. This performs [constant OPERATION_INTERSECTION] between the polyline and the polygon. This operation can be thought of as chopping a line with a closed shape. </description> </method> <method name="is_point_in_circle"> - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> - <argument index="1" name="circle_position" type="Vector2"> - </argument> - <argument index="2" name="circle_radius" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="point" type="Vector2" /> + <argument index="1" name="circle_position" type="Vector2" /> + <argument index="2" name="circle_radius" type="float" /> <description> Returns [code]true[/code] if [code]point[/code] is inside the circle or if it's located exactly [i]on[/i] the circle's boundary, otherwise returns [code]false[/code]. </description> </method> <method name="is_point_in_polygon"> - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> - <argument index="1" name="polygon" type="PackedVector2Array"> - </argument> + <return type="bool" /> + <argument index="0" name="point" type="Vector2" /> + <argument index="1" name="polygon" type="PackedVector2Array" /> <description> Returns [code]true[/code] if [code]point[/code] is inside [code]polygon[/code] or if it's located exactly [i]on[/i] polygon's boundary, otherwise returns [code]false[/code]. </description> </method> <method name="is_polygon_clockwise"> - <return type="bool"> - </return> - <argument index="0" name="polygon" type="PackedVector2Array"> - </argument> + <return type="bool" /> + <argument index="0" name="polygon" type="PackedVector2Array" /> <description> Returns [code]true[/code] if [code]polygon[/code]'s vertices are ordered in clockwise order, otherwise returns [code]false[/code]. </description> </method> <method name="line_intersects_line"> - <return type="Variant"> - </return> - <argument index="0" name="from_a" type="Vector2"> - </argument> - <argument index="1" name="dir_a" type="Vector2"> - </argument> - <argument index="2" name="from_b" type="Vector2"> - </argument> - <argument index="3" name="dir_b" type="Vector2"> - </argument> + <return type="Variant" /> + <argument index="0" name="from_a" type="Vector2" /> + <argument index="1" name="dir_a" type="Vector2" /> + <argument index="2" name="from_b" type="Vector2" /> + <argument index="3" name="dir_b" type="Vector2" /> <description> Checks if the two lines ([code]from_a[/code], [code]dir_a[/code]) and ([code]from_b[/code], [code]dir_b[/code]) intersect. If yes, return the point of intersection as [Vector2]. If no intersection takes place, returns an empty [Variant]. [b]Note:[/b] The lines are specified using direction vectors, not end points. </description> </method> <method name="make_atlas"> - <return type="Dictionary"> - </return> - <argument index="0" name="sizes" type="PackedVector2Array"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="sizes" type="PackedVector2Array" /> <description> Given an array of [Vector2]s representing tiles, builds an atlas. The returned dictionary has two keys: [code]points[/code] is a vector of [Vector2] that specifies the positions of each tile, [code]size[/code] contains the overall size of the whole atlas as [Vector2]. </description> </method> <method name="merge_polygons"> - <return type="Array"> - </return> - <argument index="0" name="polygon_a" type="PackedVector2Array"> - </argument> - <argument index="1" name="polygon_b" type="PackedVector2Array"> - </argument> + <return type="Array" /> + <argument index="0" name="polygon_a" type="PackedVector2Array" /> + <argument index="1" name="polygon_b" type="PackedVector2Array" /> <description> Merges (combines) [code]polygon_a[/code] and [code]polygon_b[/code] and returns an array of merged polygons. This performs [constant OPERATION_UNION] between polygons. The operation may result in an outer polygon (boundary) and multiple inner polygons (holes) produced which could be distinguished by calling [method is_polygon_clockwise]. </description> </method> <method name="offset_polygon"> - <return type="Array"> - </return> - <argument index="0" name="polygon" type="PackedVector2Array"> - </argument> - <argument index="1" name="delta" type="float"> - </argument> - <argument index="2" name="join_type" type="int" enum="Geometry2D.PolyJoinType" default="0"> - </argument> + <return type="Array" /> + <argument index="0" name="polygon" type="PackedVector2Array" /> + <argument index="1" name="delta" type="float" /> + <argument index="2" name="join_type" type="int" enum="Geometry2D.PolyJoinType" default="0" /> <description> Inflates or deflates [code]polygon[/code] by [code]delta[/code] units (pixels). If [code]delta[/code] is positive, makes the polygon grow outward. If [code]delta[/code] is negative, shrinks the polygon inward. Returns an array of polygons because inflating/deflating may result in multiple discrete polygons. Returns an empty array if [code]delta[/code] is negative and the absolute value of it approximately exceeds the minimum bounding rectangle dimensions of the polygon. Each polygon's vertices will be rounded as determined by [code]join_type[/code], see [enum PolyJoinType]. @@ -219,16 +166,11 @@ </description> </method> <method name="offset_polyline"> - <return type="Array"> - </return> - <argument index="0" name="polyline" type="PackedVector2Array"> - </argument> - <argument index="1" name="delta" type="float"> - </argument> - <argument index="2" name="join_type" type="int" enum="Geometry2D.PolyJoinType" default="0"> - </argument> - <argument index="3" name="end_type" type="int" enum="Geometry2D.PolyEndType" default="3"> - </argument> + <return type="Array" /> + <argument index="0" name="polyline" type="PackedVector2Array" /> + <argument index="1" name="delta" type="float" /> + <argument index="2" name="join_type" type="int" enum="Geometry2D.PolyJoinType" default="0" /> + <argument index="3" name="end_type" type="int" enum="Geometry2D.PolyEndType" default="3" /> <description> Inflates or deflates [code]polyline[/code] by [code]delta[/code] units (pixels), producing polygons. If [code]delta[/code] is positive, makes the polyline grow outward. Returns an array of polygons because inflating/deflating may result in multiple discrete polygons. If [code]delta[/code] is negative, returns an empty array. Each polygon's vertices will be rounded as determined by [code]join_type[/code], see [enum PolyJoinType]. @@ -237,49 +179,35 @@ </description> </method> <method name="point_is_inside_triangle" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> - <argument index="1" name="a" type="Vector2"> - </argument> - <argument index="2" name="b" type="Vector2"> - </argument> - <argument index="3" name="c" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="point" type="Vector2" /> + <argument index="1" name="a" type="Vector2" /> + <argument index="2" name="b" type="Vector2" /> + <argument index="3" name="c" type="Vector2" /> <description> Returns if [code]point[/code] is inside the triangle specified by [code]a[/code], [code]b[/code] and [code]c[/code]. </description> </method> <method name="segment_intersects_segment"> - <return type="Variant"> - </return> - <argument index="0" name="from_a" type="Vector2"> - </argument> - <argument index="1" name="to_a" type="Vector2"> - </argument> - <argument index="2" name="from_b" type="Vector2"> - </argument> - <argument index="3" name="to_b" type="Vector2"> - </argument> + <return type="Variant" /> + <argument index="0" name="from_a" type="Vector2" /> + <argument index="1" name="to_a" type="Vector2" /> + <argument index="2" name="from_b" type="Vector2" /> + <argument index="3" name="to_b" type="Vector2" /> <description> Checks if the two segments ([code]from_a[/code], [code]to_a[/code]) and ([code]from_b[/code], [code]to_b[/code]) intersect. If yes, return the point of intersection as [Vector2]. If no intersection takes place, returns an empty [Variant]. </description> </method> <method name="triangulate_delaunay"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="points" type="PackedVector2Array"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="points" type="PackedVector2Array" /> <description> Triangulates the area specified by discrete set of [code]points[/code] such that no point is inside the circumcircle of any resulting triangle. Returns a [PackedInt32Array] where each triangle consists of three consecutive point indices into [code]points[/code] (i.e. the returned array will have [code]n * 3[/code] elements, with [code]n[/code] being the number of found triangles). If the triangulation did not succeed, an empty [PackedInt32Array] is returned. </description> </method> <method name="triangulate_polygon"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="polygon" type="PackedVector2Array"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="polygon" type="PackedVector2Array" /> <description> Triangulates the polygon specified by the points in [code]polygon[/code]. Returns a [PackedInt32Array] where each triangle consists of three consecutive point indices into [code]polygon[/code] (i.e. the returned array will have [code]n * 3[/code] elements, with [code]n[/code] being the number of found triangles). If the triangulation did not succeed, an empty [PackedInt32Array] is returned. </description> diff --git a/doc/classes/Geometry3D.xml b/doc/classes/Geometry3D.xml index 9f012008e3..9d0234529a 100644 --- a/doc/classes/Geometry3D.xml +++ b/doc/classes/Geometry3D.xml @@ -10,171 +10,116 @@ </tutorials> <methods> <method name="build_box_planes"> - <return type="Array"> - </return> - <argument index="0" name="extents" type="Vector3"> - </argument> + <return type="Array" /> + <argument index="0" name="extents" type="Vector3" /> <description> Returns an array with 6 [Plane]s that describe the sides of a box centered at the origin. The box size is defined by [code]extents[/code], which represents one (positive) corner of the box (i.e. half its actual size). </description> </method> <method name="build_capsule_planes"> - <return type="Array"> - </return> - <argument index="0" name="radius" type="float"> - </argument> - <argument index="1" name="height" type="float"> - </argument> - <argument index="2" name="sides" type="int"> - </argument> - <argument index="3" name="lats" type="int"> - </argument> - <argument index="4" name="axis" type="int" enum="Vector3.Axis" default="2"> - </argument> + <return type="Array" /> + <argument index="0" name="radius" type="float" /> + <argument index="1" name="height" type="float" /> + <argument index="2" name="sides" type="int" /> + <argument index="3" name="lats" type="int" /> + <argument index="4" name="axis" type="int" enum="Vector3.Axis" default="2" /> <description> Returns an array of [Plane]s closely bounding a faceted capsule centered at the origin with radius [code]radius[/code] and height [code]height[/code]. The parameter [code]sides[/code] defines how many planes will be generated for the side part of the capsule, whereas [code]lats[/code] gives the number of latitudinal steps at the bottom and top of the capsule. The parameter [code]axis[/code] describes the axis along which the capsule is oriented (0 for X, 1 for Y, 2 for Z). </description> </method> <method name="build_cylinder_planes"> - <return type="Array"> - </return> - <argument index="0" name="radius" type="float"> - </argument> - <argument index="1" name="height" type="float"> - </argument> - <argument index="2" name="sides" type="int"> - </argument> - <argument index="3" name="axis" type="int" enum="Vector3.Axis" default="2"> - </argument> + <return type="Array" /> + <argument index="0" name="radius" type="float" /> + <argument index="1" name="height" type="float" /> + <argument index="2" name="sides" type="int" /> + <argument index="3" name="axis" type="int" enum="Vector3.Axis" default="2" /> <description> Returns an array of [Plane]s closely bounding a faceted cylinder centered at the origin with radius [code]radius[/code] and height [code]height[/code]. The parameter [code]sides[/code] defines how many planes will be generated for the round part of the cylinder. The parameter [code]axis[/code] describes the axis along which the cylinder is oriented (0 for X, 1 for Y, 2 for Z). </description> </method> <method name="clip_polygon"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="points" type="PackedVector3Array"> - </argument> - <argument index="1" name="plane" type="Plane"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="points" type="PackedVector3Array" /> + <argument index="1" name="plane" type="Plane" /> <description> Clips the polygon defined by the points in [code]points[/code] against the [code]plane[/code] and returns the points of the clipped polygon. </description> </method> <method name="get_closest_point_to_segment"> - <return type="Vector3"> - </return> - <argument index="0" name="point" type="Vector3"> - </argument> - <argument index="1" name="s1" type="Vector3"> - </argument> - <argument index="2" name="s2" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="point" type="Vector3" /> + <argument index="1" name="s1" type="Vector3" /> + <argument index="2" name="s2" type="Vector3" /> <description> Returns the 3D point on the 3D segment ([code]s1[/code], [code]s2[/code]) that is closest to [code]point[/code]. The returned point will always be inside the specified segment. </description> </method> <method name="get_closest_point_to_segment_uncapped"> - <return type="Vector3"> - </return> - <argument index="0" name="point" type="Vector3"> - </argument> - <argument index="1" name="s1" type="Vector3"> - </argument> - <argument index="2" name="s2" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="point" type="Vector3" /> + <argument index="1" name="s1" type="Vector3" /> + <argument index="2" name="s2" type="Vector3" /> <description> Returns the 3D point on the 3D line defined by ([code]s1[/code], [code]s2[/code]) that is closest to [code]point[/code]. The returned point can be inside the segment ([code]s1[/code], [code]s2[/code]) or outside of it, i.e. somewhere on the line extending from the segment. </description> </method> <method name="get_closest_points_between_segments"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="p1" type="Vector3"> - </argument> - <argument index="1" name="p2" type="Vector3"> - </argument> - <argument index="2" name="q1" type="Vector3"> - </argument> - <argument index="3" name="q2" type="Vector3"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="p1" type="Vector3" /> + <argument index="1" name="p2" type="Vector3" /> + <argument index="2" name="q1" type="Vector3" /> + <argument index="3" name="q2" type="Vector3" /> <description> Given the two 3D segments ([code]p1[/code], [code]p2[/code]) and ([code]q1[/code], [code]q2[/code]), finds those two points on the two segments that are closest to each other. Returns a [PackedVector3Array] that contains this point on ([code]p1[/code], [code]p2[/code]) as well the accompanying point on ([code]q1[/code], [code]q2[/code]). </description> </method> <method name="ray_intersects_triangle"> - <return type="Variant"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="dir" type="Vector3"> - </argument> - <argument index="2" name="a" type="Vector3"> - </argument> - <argument index="3" name="b" type="Vector3"> - </argument> - <argument index="4" name="c" type="Vector3"> - </argument> + <return type="Variant" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="dir" type="Vector3" /> + <argument index="2" name="a" type="Vector3" /> + <argument index="3" name="b" type="Vector3" /> + <argument index="4" name="c" type="Vector3" /> <description> Tests if the 3D ray starting at [code]from[/code] with the direction of [code]dir[/code] intersects the triangle specified by [code]a[/code], [code]b[/code] and [code]c[/code]. If yes, returns the point of intersection as [Vector3]. If no intersection takes place, an empty [Variant] is returned. </description> </method> <method name="segment_intersects_convex"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="to" type="Vector3"> - </argument> - <argument index="2" name="planes" type="Array"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="to" type="Vector3" /> + <argument index="2" name="planes" type="Array" /> <description> Given a convex hull defined though the [Plane]s in the array [code]planes[/code], tests if the segment ([code]from[/code], [code]to[/code]) intersects with that hull. If an intersection is found, returns a [PackedVector3Array] containing the point the intersection and the hull's normal. Otherwise, returns an empty array. </description> </method> <method name="segment_intersects_cylinder"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="to" type="Vector3"> - </argument> - <argument index="2" name="height" type="float"> - </argument> - <argument index="3" name="radius" type="float"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="to" type="Vector3" /> + <argument index="2" name="height" type="float" /> + <argument index="3" name="radius" type="float" /> <description> Checks if the segment ([code]from[/code], [code]to[/code]) intersects the cylinder with height [code]height[/code] that is centered at the origin and has radius [code]radius[/code]. If no, returns an empty [PackedVector3Array]. If an intersection takes place, the returned array contains the point of intersection and the cylinder's normal at the point of intersection. </description> </method> <method name="segment_intersects_sphere"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="to" type="Vector3"> - </argument> - <argument index="2" name="sphere_position" type="Vector3"> - </argument> - <argument index="3" name="sphere_radius" type="float"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="to" type="Vector3" /> + <argument index="2" name="sphere_position" type="Vector3" /> + <argument index="3" name="sphere_radius" type="float" /> <description> Checks if the segment ([code]from[/code], [code]to[/code]) intersects the sphere that is located at [code]sphere_position[/code] and has radius [code]sphere_radius[/code]. If no, returns an empty [PackedVector3Array]. If yes, returns a [PackedVector3Array] containing the point of intersection and the sphere's normal at the point of intersection. </description> </method> <method name="segment_intersects_triangle"> - <return type="Variant"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="to" type="Vector3"> - </argument> - <argument index="2" name="a" type="Vector3"> - </argument> - <argument index="3" name="b" type="Vector3"> - </argument> - <argument index="4" name="c" type="Vector3"> - </argument> + <return type="Variant" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="to" type="Vector3" /> + <argument index="2" name="a" type="Vector3" /> + <argument index="3" name="b" type="Vector3" /> + <argument index="4" name="c" type="Vector3" /> <description> Tests if the segment ([code]from[/code], [code]to[/code]) intersects the triangle [code]a[/code], [code]b[/code], [code]c[/code]. If yes, returns the point of intersection as [Vector3]. If no intersection takes place, an empty [Variant] is returned. </description> diff --git a/doc/classes/GeometryInstance3D.xml b/doc/classes/GeometryInstance3D.xml index 667ca2dacf..97cef205c3 100644 --- a/doc/classes/GeometryInstance3D.xml +++ b/doc/classes/GeometryInstance3D.xml @@ -10,29 +10,22 @@ </tutorials> <methods> <method name="get_shader_instance_uniform" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="uniform" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="uniform" type="StringName" /> <description> </description> </method> <method name="set_custom_aabb"> - <return type="void"> - </return> - <argument index="0" name="aabb" type="AABB"> - </argument> + <return type="void" /> + <argument index="0" name="aabb" type="AABB" /> <description> Overrides the bounding box of this node with a custom one. To remove it, set an [AABB] with all fields set to zero. </description> </method> <method name="set_shader_instance_uniform"> - <return type="void"> - </return> - <argument index="0" name="uniform" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="uniform" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> </description> </method> diff --git a/doc/classes/Gradient.xml b/doc/classes/Gradient.xml index 1f1f266c59..a9577fda90 100644 --- a/doc/classes/Gradient.xml +++ b/doc/classes/Gradient.xml @@ -10,77 +10,59 @@ </tutorials> <methods> <method name="add_point"> - <return type="void"> - </return> - <argument index="0" name="offset" type="float"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="offset" type="float" /> + <argument index="1" name="color" type="Color" /> <description> Adds the specified color to the end of the gradient, with the specified offset. </description> </method> <method name="get_color"> - <return type="Color"> - </return> - <argument index="0" name="point" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="point" type="int" /> <description> Returns the color of the gradient color at index [code]point[/code]. </description> </method> <method name="get_offset"> - <return type="float"> - </return> - <argument index="0" name="point" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="point" type="int" /> <description> Returns the offset of the gradient color at index [code]point[/code]. </description> </method> <method name="get_point_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of colors in the gradient. </description> </method> <method name="interpolate"> - <return type="Color"> - </return> - <argument index="0" name="offset" type="float"> - </argument> + <return type="Color" /> + <argument index="0" name="offset" type="float" /> <description> Returns the interpolated color specified by [code]offset[/code]. </description> </method> <method name="remove_point"> - <return type="void"> - </return> - <argument index="0" name="point" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="int" /> <description> Removes the color at the index [code]point[/code]. </description> </method> <method name="set_color"> - <return type="void"> - </return> - <argument index="0" name="point" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="int" /> + <argument index="1" name="color" type="Color" /> <description> Sets the color of the gradient color at index [code]point[/code]. </description> </method> <method name="set_offset"> - <return type="void"> - </return> - <argument index="0" name="point" type="int"> - </argument> - <argument index="1" name="offset" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="int" /> + <argument index="1" name="offset" type="float" /> <description> Sets the offset for the gradient color at index [code]point[/code]. </description> diff --git a/doc/classes/GraphEdit.xml b/doc/classes/GraphEdit.xml index 65701b3a6a..44c571e800 100644 --- a/doc/classes/GraphEdit.xml +++ b/doc/classes/GraphEdit.xml @@ -11,163 +11,120 @@ </tutorials> <methods> <method name="add_valid_connection_type"> - <return type="void"> - </return> - <argument index="0" name="from_type" type="int"> - </argument> - <argument index="1" name="to_type" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from_type" type="int" /> + <argument index="1" name="to_type" type="int" /> <description> Makes possible the connection between two different slot types. The type is defined with the [method GraphNode.set_slot] method. </description> </method> <method name="add_valid_left_disconnect_type"> - <return type="void"> - </return> - <argument index="0" name="type" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" /> <description> Makes possible to disconnect nodes when dragging from the slot at the left if it has the specified type. </description> </method> <method name="add_valid_right_disconnect_type"> - <return type="void"> - </return> - <argument index="0" name="type" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" /> <description> Makes possible to disconnect nodes when dragging from the slot at the right if it has the specified type. </description> </method> <method name="clear_connections"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all connections between nodes. </description> </method> <method name="connect_node"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="from" type="StringName"> - </argument> - <argument index="1" name="from_port" type="int"> - </argument> - <argument index="2" name="to" type="StringName"> - </argument> - <argument index="3" name="to_port" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="from" type="StringName" /> + <argument index="1" name="from_port" type="int" /> + <argument index="2" name="to" type="StringName" /> + <argument index="3" name="to_port" type="int" /> <description> Create a connection between the [code]from_port[/code] slot of the [code]from[/code] GraphNode and the [code]to_port[/code] slot of the [code]to[/code] GraphNode. If the connection already exists, no connection is created. </description> </method> <method name="disconnect_node"> - <return type="void"> - </return> - <argument index="0" name="from" type="StringName"> - </argument> - <argument index="1" name="from_port" type="int"> - </argument> - <argument index="2" name="to" type="StringName"> - </argument> - <argument index="3" name="to_port" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from" type="StringName" /> + <argument index="1" name="from_port" type="int" /> + <argument index="2" name="to" type="StringName" /> + <argument index="3" name="to_port" type="int" /> <description> Removes the connection between the [code]from_port[/code] slot of the [code]from[/code] GraphNode and the [code]to_port[/code] slot of the [code]to[/code] GraphNode. If the connection does not exist, no connection is removed. </description> </method> <method name="get_connection_list" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an Array containing the list of connections. A connection consists in a structure of the form [code]{ from_port: 0, from: "GraphNode name 0", to_port: 1, to: "GraphNode name 1" }[/code]. </description> </method> <method name="get_zoom_hbox"> - <return type="HBoxContainer"> - </return> + <return type="HBoxContainer" /> <description> Gets the [HBoxContainer] that contains the zooming and grid snap controls in the top left of the graph. Warning: The intended usage of this function is to allow you to reposition or add your own custom controls to the container. This is an internal control and as such should not be freed. If you wish to hide this or any of its children, use their [member CanvasItem.visible] property instead. </description> </method> <method name="is_node_connected"> - <return type="bool"> - </return> - <argument index="0" name="from" type="StringName"> - </argument> - <argument index="1" name="from_port" type="int"> - </argument> - <argument index="2" name="to" type="StringName"> - </argument> - <argument index="3" name="to_port" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="from" type="StringName" /> + <argument index="1" name="from_port" type="int" /> + <argument index="2" name="to" type="StringName" /> + <argument index="3" name="to_port" type="int" /> <description> Returns [code]true[/code] if the [code]from_port[/code] slot of the [code]from[/code] GraphNode is connected to the [code]to_port[/code] slot of the [code]to[/code] GraphNode. </description> </method> <method name="is_valid_connection_type" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="from_type" type="int"> - </argument> - <argument index="1" name="to_type" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="from_type" type="int" /> + <argument index="1" name="to_type" type="int" /> <description> Returns whether it's possible to connect slots of the specified types. </description> </method> <method name="remove_valid_connection_type"> - <return type="void"> - </return> - <argument index="0" name="from_type" type="int"> - </argument> - <argument index="1" name="to_type" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from_type" type="int" /> + <argument index="1" name="to_type" type="int" /> <description> Makes it not possible to connect between two different slot types. The type is defined with the [method GraphNode.set_slot] method. </description> </method> <method name="remove_valid_left_disconnect_type"> - <return type="void"> - </return> - <argument index="0" name="type" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" /> <description> Removes the possibility to disconnect nodes when dragging from the slot at the left if it has the specified type. </description> </method> <method name="remove_valid_right_disconnect_type"> - <return type="void"> - </return> - <argument index="0" name="type" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" /> <description> Removes the possibility to disconnect nodes when dragging from the slot at the right if it has the specified type. </description> </method> <method name="set_connection_activity"> - <return type="void"> - </return> - <argument index="0" name="from" type="StringName"> - </argument> - <argument index="1" name="from_port" type="int"> - </argument> - <argument index="2" name="to" type="StringName"> - </argument> - <argument index="3" name="to_port" type="int"> - </argument> - <argument index="4" name="amount" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="from" type="StringName" /> + <argument index="1" name="from_port" type="int" /> + <argument index="2" name="to" type="StringName" /> + <argument index="3" name="to_port" type="int" /> + <argument index="4" name="amount" type="float" /> <description> Sets the coloration of the connection between [code]from[/code]'s [code]from_port[/code] and [code]to[/code]'s [code]to_port[/code] with the color provided in the [code]activity[/code] theme property. </description> </method> <method name="set_selected"> - <return type="void"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Node" /> <description> Sets the specified [code]node[/code] as the one selected. </description> @@ -226,36 +183,26 @@ </description> </signal> <signal name="connection_from_empty"> - <argument index="0" name="to" type="StringName"> - </argument> - <argument index="1" name="to_slot" type="int"> - </argument> - <argument index="2" name="release_position" type="Vector2"> - </argument> + <argument index="0" name="to" type="StringName" /> + <argument index="1" name="to_slot" type="int" /> + <argument index="2" name="release_position" type="Vector2" /> <description> Emitted when user dragging connection from input port into empty space of the graph. </description> </signal> <signal name="connection_request"> - <argument index="0" name="from" type="StringName"> - </argument> - <argument index="1" name="from_slot" type="int"> - </argument> - <argument index="2" name="to" type="StringName"> - </argument> - <argument index="3" name="to_slot" type="int"> - </argument> + <argument index="0" name="from" type="StringName" /> + <argument index="1" name="from_slot" type="int" /> + <argument index="2" name="to" type="StringName" /> + <argument index="3" name="to_slot" type="int" /> <description> Emitted to the GraphEdit when the connection between the [code]from_slot[/code] slot of the [code]from[/code] GraphNode and the [code]to_slot[/code] slot of the [code]to[/code] GraphNode is attempted to be created. </description> </signal> <signal name="connection_to_empty"> - <argument index="0" name="from" type="StringName"> - </argument> - <argument index="1" name="from_slot" type="int"> - </argument> - <argument index="2" name="release_position" type="Vector2"> - </argument> + <argument index="0" name="from" type="StringName" /> + <argument index="1" name="from_slot" type="int" /> + <argument index="2" name="release_position" type="Vector2" /> <description> Emitted when user dragging connection from output port into empty space of the graph. </description> @@ -271,14 +218,10 @@ </description> </signal> <signal name="disconnection_request"> - <argument index="0" name="from" type="StringName"> - </argument> - <argument index="1" name="from_slot" type="int"> - </argument> - <argument index="2" name="to" type="StringName"> - </argument> - <argument index="3" name="to_slot" type="int"> - </argument> + <argument index="0" name="from" type="StringName" /> + <argument index="1" name="from_slot" type="int" /> + <argument index="2" name="to" type="StringName" /> + <argument index="3" name="to_slot" type="int" /> <description> Emitted to the GraphEdit when the connection between [code]from_slot[/code] slot of [code]from[/code] GraphNode and [code]to_slot[/code] slot of [code]to[/code] GraphNode is attempted to be removed. </description> @@ -294,14 +237,12 @@ </description> </signal> <signal name="node_deselected"> - <argument index="0" name="node" type="Node"> - </argument> + <argument index="0" name="node" type="Node" /> <description> </description> </signal> <signal name="node_selected"> - <argument index="0" name="node" type="Node"> - </argument> + <argument index="0" name="node" type="Node" /> <description> Emitted when a GraphNode is selected. </description> @@ -312,15 +253,13 @@ </description> </signal> <signal name="popup_request"> - <argument index="0" name="position" type="Vector2"> - </argument> + <argument index="0" name="position" type="Vector2" /> <description> Emitted when a popup is requested. Happens on right-clicking in the GraphEdit. [code]position[/code] is the position of the mouse pointer when the signal is sent. </description> </signal> <signal name="scroll_offset_changed"> - <argument index="0" name="ofs" type="Vector2"> - </argument> + <argument index="0" name="ofs" type="Vector2" /> <description> Emitted when the scroll offset is changed by the user. It will not be emitted when changed in code. </description> diff --git a/doc/classes/GraphNode.xml b/doc/classes/GraphNode.xml index 84eda7fcea..e1374b4f7a 100644 --- a/doc/classes/GraphNode.xml +++ b/doc/classes/GraphNode.xml @@ -12,191 +12,146 @@ </tutorials> <methods> <method name="clear_all_slots"> - <return type="void"> - </return> + <return type="void" /> <description> Disables all input and output slots of the GraphNode. </description> </method> <method name="clear_opentype_features"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all OpenType features. </description> </method> <method name="clear_slot"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Disables input and output slot whose index is [code]idx[/code]. </description> </method> <method name="get_connection_input_color"> - <return type="Color"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="idx" type="int" /> <description> Returns the [Color] of the input connection [code]idx[/code]. </description> </method> <method name="get_connection_input_count"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of enabled input slots (connections) to the GraphNode. </description> </method> <method name="get_connection_input_position"> - <return type="Vector2"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="idx" type="int" /> <description> Returns the position of the input connection [code]idx[/code]. </description> </method> <method name="get_connection_input_type"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Returns the type of the input connection [code]idx[/code]. </description> </method> <method name="get_connection_output_color"> - <return type="Color"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="idx" type="int" /> <description> Returns the [Color] of the output connection [code]idx[/code]. </description> </method> <method name="get_connection_output_count"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of enabled output slots (connections) of the GraphNode. </description> </method> <method name="get_connection_output_position"> - <return type="Vector2"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="idx" type="int" /> <description> Returns the position of the output connection [code]idx[/code]. </description> </method> <method name="get_connection_output_type"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Returns the type of the output connection [code]idx[/code]. </description> </method> <method name="get_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code]. </description> </method> <method name="get_slot_color_left" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="idx" type="int" /> <description> Returns the left (input) [Color] of the slot [code]idx[/code]. </description> </method> <method name="get_slot_color_right" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="idx" type="int" /> <description> Returns the right (output) [Color] of the slot [code]idx[/code]. </description> </method> <method name="get_slot_type_left" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Returns the left (input) type of the slot [code]idx[/code]. </description> </method> <method name="get_slot_type_right" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Returns the right (output) type of the slot [code]idx[/code]. </description> </method> <method name="is_slot_enabled_left" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if left (input) side of the slot [code]idx[/code] is enabled. </description> </method> <method name="is_slot_enabled_right" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if right (output) side of the slot [code]idx[/code] is enabled. </description> </method> <method name="set_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="tag" type="String"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="tag" type="String" /> + <argument index="1" name="value" type="int" /> <description> Sets OpenType feature [code]tag[/code]. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url]. </description> </method> <method name="set_slot"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="enable_left" type="bool"> - </argument> - <argument index="2" name="type_left" type="int"> - </argument> - <argument index="3" name="color_left" type="Color"> - </argument> - <argument index="4" name="enable_right" type="bool"> - </argument> - <argument index="5" name="type_right" type="int"> - </argument> - <argument index="6" name="color_right" type="Color"> - </argument> - <argument index="7" name="custom_left" type="Texture2D" default="null"> - </argument> - <argument index="8" name="custom_right" type="Texture2D" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="enable_left" type="bool" /> + <argument index="2" name="type_left" type="int" /> + <argument index="3" name="color_left" type="Color" /> + <argument index="4" name="enable_right" type="bool" /> + <argument index="5" name="type_right" type="int" /> + <argument index="6" name="color_right" type="Color" /> + <argument index="7" name="custom_left" type="Texture2D" default="null" /> + <argument index="8" name="custom_right" type="Texture2D" default="null" /> <description> Sets properties of the slot with ID [code]idx[/code]. If [code]enable_left[/code]/[code]right[/code], a port will appear and the slot will be able to be connected from this side. @@ -208,67 +163,49 @@ </description> </method> <method name="set_slot_color_left"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="color_left" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="color_left" type="Color" /> <description> Sets the [Color] of the left (input) side of the slot [code]idx[/code] to [code]color_left[/code]. </description> </method> <method name="set_slot_color_right"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="color_right" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="color_right" type="Color" /> <description> Sets the [Color] of the right (output) side of the slot [code]idx[/code] to [code]color_right[/code]. </description> </method> <method name="set_slot_enabled_left"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="enable_left" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="enable_left" type="bool" /> <description> Toggles the left (input) side of the slot [code]idx[/code]. If [code]enable_left[/code] is [code]true[/code], a port will appear on the left side and the slot will be able to be connected from this side. </description> </method> <method name="set_slot_enabled_right"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="enable_right" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="enable_right" type="bool" /> <description> Toggles the right (output) side of the slot [code]idx[/code]. If [code]enable_right[/code] is [code]true[/code], a port will appear on the right side and the slot will be able to be connected from this side. </description> </method> <method name="set_slot_type_left"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="type_left" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="type_left" type="int" /> <description> Sets the left (input) type of the slot [code]idx[/code] to [code]type_left[/code]. </description> </method> <method name="set_slot_type_right"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="type_right" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="type_right" type="int" /> <description> Sets the right (output) type of the slot [code]idx[/code] to [code]type_right[/code]. </description> @@ -314,10 +251,8 @@ </description> </signal> <signal name="dragged"> - <argument index="0" name="from" type="Vector2"> - </argument> - <argument index="1" name="to" type="Vector2"> - </argument> + <argument index="0" name="from" type="Vector2" /> + <argument index="1" name="to" type="Vector2" /> <description> Emitted when the GraphNode is dragged. </description> @@ -333,15 +268,13 @@ </description> </signal> <signal name="resize_request"> - <argument index="0" name="new_minsize" type="Vector2"> - </argument> + <argument index="0" name="new_minsize" type="Vector2" /> <description> Emitted when the GraphNode is requested to be resized. Happens on dragging the resizer handle (see [member resizable]). </description> </signal> <signal name="slot_updated"> - <argument index="0" name="idx" type="int"> - </argument> + <argument index="0" name="idx" type="int" /> <description> Emitted when any GraphNode's slot is updated. </description> diff --git a/doc/classes/HMACContext.xml b/doc/classes/HMACContext.xml index 9fa96e5ddf..88d3c5e2f3 100644 --- a/doc/classes/HMACContext.xml +++ b/doc/classes/HMACContext.xml @@ -56,28 +56,22 @@ </tutorials> <methods> <method name="finish"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Returns the resulting HMAC. If the HMAC failed, an empty [PackedByteArray] is returned. </description> </method> <method name="start"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="hash_type" type="int" enum="HashingContext.HashType"> - </argument> - <argument index="1" name="key" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="hash_type" type="int" enum="HashingContext.HashType" /> + <argument index="1" name="key" type="PackedByteArray" /> <description> Initializes the HMACContext. This method cannot be called again on the same HMACContext until [method finish] has been called. </description> </method> <method name="update"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="data" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="data" type="PackedByteArray" /> <description> Updates the message to be HMACed. This can be called multiple times before [method finish] is called to append [code]data[/code] to the message, but cannot be called until [method start] has been called. </description> diff --git a/doc/classes/HTTPClient.xml b/doc/classes/HTTPClient.xml index a08bed751f..df42869dbe 100644 --- a/doc/classes/HTTPClient.xml +++ b/doc/classes/HTTPClient.xml @@ -17,23 +17,17 @@ </tutorials> <methods> <method name="close"> - <return type="void"> - </return> + <return type="void" /> <description> Closes the current connection, allowing reuse of this [HTTPClient]. </description> </method> <method name="connect_to_host"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <argument index="1" name="port" type="int" default="-1"> - </argument> - <argument index="2" name="use_ssl" type="bool" default="false"> - </argument> - <argument index="3" name="verify_host" type="bool" default="true"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="host" type="String" /> + <argument index="1" name="port" type="int" default="-1" /> + <argument index="2" name="use_ssl" type="bool" default="false" /> + <argument index="3" name="verify_host" type="bool" default="true" /> <description> Connects to a host. This needs to be done before any requests are sent. The host should not have http:// prepended but will strip the protocol identifier if provided. @@ -42,30 +36,26 @@ </description> </method> <method name="get_response_body_length" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the response's body length. [b]Note:[/b] Some Web servers may not send a body length. In this case, the value returned will be [code]-1[/code]. If using chunked transfer encoding, the body length will also be [code]-1[/code]. </description> </method> <method name="get_response_code" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the response's HTTP status code. </description> </method> <method name="get_response_headers"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns the response headers. </description> </method> <method name="get_response_headers_as_dictionary"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Returns all response headers as a Dictionary of structure [code]{ "key": "value1; value2" }[/code] where the case-sensitivity of the keys and values is kept like the server delivers it. A value is a simple String, this string can have more than one value where "; " is used as separator. [b]Example:[/b] @@ -78,38 +68,32 @@ </description> </method> <method name="get_status" qualifiers="const"> - <return type="int" enum="HTTPClient.Status"> - </return> + <return type="int" enum="HTTPClient.Status" /> <description> Returns a [enum Status] constant. Need to call [method poll] in order to get status updates. </description> </method> <method name="has_response" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> If [code]true[/code], this [HTTPClient] has a response available. </description> </method> <method name="is_response_chunked" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> If [code]true[/code], this [HTTPClient] has a response that is chunked. </description> </method> <method name="poll"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> This needs to be called in order to have any request processed. Check results with [method get_status]. </description> </method> <method name="query_string_from_dict"> - <return type="String"> - </return> - <argument index="0" name="fields" type="Dictionary"> - </argument> + <return type="String" /> + <argument index="0" name="fields" type="Dictionary" /> <description> Generates a GET/POST application/x-www-form-urlencoded style query string from a provided dictionary, e.g.: [codeblocks] @@ -140,23 +124,17 @@ </description> </method> <method name="read_response_body_chunk"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Reads one chunk from the response. </description> </method> <method name="request"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="method" type="int" enum="HTTPClient.Method"> - </argument> - <argument index="1" name="url" type="String"> - </argument> - <argument index="2" name="headers" type="PackedStringArray"> - </argument> - <argument index="3" name="body" type="String" default=""""> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="method" type="int" enum="HTTPClient.Method" /> + <argument index="1" name="url" type="String" /> + <argument index="2" name="headers" type="PackedStringArray" /> + <argument index="3" name="body" type="String" default="""" /> <description> Sends a request to the connected host. The URL parameter is usually just the part after the host, so for [code]http://somehost.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]). @@ -180,16 +158,11 @@ </description> </method> <method name="request_raw"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="method" type="int" enum="HTTPClient.Method"> - </argument> - <argument index="1" name="url" type="String"> - </argument> - <argument index="2" name="headers" type="PackedStringArray"> - </argument> - <argument index="3" name="body" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="method" type="int" enum="HTTPClient.Method" /> + <argument index="1" name="url" type="String" /> + <argument index="2" name="headers" type="PackedStringArray" /> + <argument index="3" name="body" type="PackedByteArray" /> <description> Sends a raw request to the connected host. The URL parameter is usually just the part after the host, so for [code]http://somehost.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]). diff --git a/doc/classes/HTTPRequest.xml b/doc/classes/HTTPRequest.xml index 908e355db3..4a56c7e3fd 100644 --- a/doc/classes/HTTPRequest.xml +++ b/doc/classes/HTTPRequest.xml @@ -159,47 +159,37 @@ </tutorials> <methods> <method name="cancel_request"> - <return type="void"> - </return> + <return type="void" /> <description> Cancels the current request. </description> </method> <method name="get_body_size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the response body length. [b]Note:[/b] Some Web servers may not send a body length. In this case, the value returned will be [code]-1[/code]. If using chunked transfer encoding, the body length will also be [code]-1[/code]. </description> </method> <method name="get_downloaded_bytes" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of bytes this HTTPRequest downloaded. </description> </method> <method name="get_http_client_status" qualifiers="const"> - <return type="int" enum="HTTPClient.Status"> - </return> + <return type="int" enum="HTTPClient.Status" /> <description> Returns the current status of the underlying [HTTPClient]. See [enum HTTPClient.Status]. </description> </method> <method name="request"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="url" type="String"> - </argument> - <argument index="1" name="custom_headers" type="PackedStringArray" default="PackedStringArray()"> - </argument> - <argument index="2" name="ssl_validate_domain" type="bool" default="true"> - </argument> - <argument index="3" name="method" type="int" enum="HTTPClient.Method" default="0"> - </argument> - <argument index="4" name="request_data" type="String" default=""""> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="url" type="String" /> + <argument index="1" name="custom_headers" type="PackedStringArray" default="PackedStringArray()" /> + <argument index="2" name="ssl_validate_domain" type="bool" default="true" /> + <argument index="3" name="method" type="int" enum="HTTPClient.Method" default="0" /> + <argument index="4" name="request_data" type="String" default="""" /> <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 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. @@ -207,18 +197,12 @@ </description> </method> <method name="request_raw"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="url" type="String"> - </argument> - <argument index="1" name="custom_headers" type="PackedStringArray" default="PackedStringArray()"> - </argument> - <argument index="2" name="ssl_validate_domain" type="bool" default="true"> - </argument> - <argument index="3" name="method" type="int" enum="HTTPClient.Method" default="0"> - </argument> - <argument index="4" name="request_data_raw" type="PackedByteArray" default="PackedByteArray()"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="url" type="String" /> + <argument index="1" name="custom_headers" type="PackedStringArray" default="PackedStringArray()" /> + <argument index="2" name="ssl_validate_domain" type="bool" default="true" /> + <argument index="3" name="method" type="int" enum="HTTPClient.Method" default="0" /> + <argument index="4" name="request_data_raw" type="PackedByteArray" default="PackedByteArray()" /> <description> Creates request on the underlying [HTTPClient] using a raw array of bytes for the request body. 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 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. @@ -253,14 +237,10 @@ </members> <signals> <signal name="request_completed"> - <argument index="0" name="result" type="int"> - </argument> - <argument index="1" name="response_code" type="int"> - </argument> - <argument index="2" name="headers" type="PackedStringArray"> - </argument> - <argument index="3" name="body" type="PackedByteArray"> - </argument> + <argument index="0" name="result" type="int" /> + <argument index="1" name="response_code" type="int" /> + <argument index="2" name="headers" type="PackedStringArray" /> + <argument index="3" name="body" type="PackedByteArray" /> <description> Emitted when a request is completed. </description> diff --git a/doc/classes/HashingContext.xml b/doc/classes/HashingContext.xml index 1c7b7ca937..f470f1611d 100644 --- a/doc/classes/HashingContext.xml +++ b/doc/classes/HashingContext.xml @@ -63,26 +63,21 @@ </tutorials> <methods> <method name="finish"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Closes the current context, and return the computed hash. </description> </method> <method name="start"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="type" type="int" enum="HashingContext.HashType"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="type" type="int" enum="HashingContext.HashType" /> <description> Starts a new hash computation of the given [code]type[/code] (e.g. [constant HASH_SHA256] to start computation of a SHA-256). </description> </method> <method name="update"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="chunk" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="chunk" type="PackedByteArray" /> <description> Updates the computation with the given [code]chunk[/code] of data. </description> diff --git a/doc/classes/HingeJoint3D.xml b/doc/classes/HingeJoint3D.xml index f2c652d51a..a8e7f343ff 100644 --- a/doc/classes/HingeJoint3D.xml +++ b/doc/classes/HingeJoint3D.xml @@ -10,41 +10,31 @@ </tutorials> <methods> <method name="get_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="flag" type="int" enum="HingeJoint3D.Flag"> - </argument> + <return type="bool" /> + <argument index="0" name="flag" type="int" enum="HingeJoint3D.Flag" /> <description> Returns the value of the specified flag. </description> </method> <method name="get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="HingeJoint3D.Param"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="HingeJoint3D.Param" /> <description> Returns the value of the specified parameter. </description> </method> <method name="set_flag"> - <return type="void"> - </return> - <argument index="0" name="flag" type="int" enum="HingeJoint3D.Flag"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="flag" type="int" enum="HingeJoint3D.Flag" /> + <argument index="1" name="enabled" type="bool" /> <description> If [code]true[/code], enables the specified flag. </description> </method> <method name="set_param"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="HingeJoint3D.Param"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="HingeJoint3D.Param" /> + <argument index="1" name="value" type="float" /> <description> Sets the value of the specified parameter. </description> diff --git a/doc/classes/IP.xml b/doc/classes/IP.xml index b3ce1abaeb..8eb994a913 100644 --- a/doc/classes/IP.xml +++ b/doc/classes/IP.xml @@ -10,33 +10,27 @@ </tutorials> <methods> <method name="clear_cache"> - <return type="void"> - </return> - <argument index="0" name="hostname" type="String" default=""""> - </argument> + <return type="void" /> + <argument index="0" name="hostname" type="String" default="""" /> <description> Removes all of a [code]hostname[/code]'s cached references. If no [code]hostname[/code] is given, all cached IP addresses are removed. </description> </method> <method name="erase_resolve_item"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> Removes a given item [code]id[/code] from the queue. This should be used to free a queue after it has completed to enable more queries to happen. </description> </method> <method name="get_local_addresses" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns all the user's current IPv4 and IPv6 addresses as an array. </description> </method> <method name="get_local_interfaces" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns all network adapters as an array. Each adapter is a dictionary of the form: @@ -51,61 +45,46 @@ </description> </method> <method name="get_resolve_item_address" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="id" type="int" /> <description> Returns a queued hostname's IP address, given its queue [code]id[/code]. Returns an empty string on error or if resolution hasn't happened yet (see [method get_resolve_item_status]). </description> </method> <method name="get_resolve_item_addresses" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="id" type="int" /> <description> Returns resolved addresses, or an empty array if an error happened or resolution didn't happen yet (see [method get_resolve_item_status]). </description> </method> <method name="get_resolve_item_status" qualifiers="const"> - <return type="int" enum="IP.ResolverStatus"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="int" enum="IP.ResolverStatus" /> + <argument index="0" name="id" type="int" /> <description> Returns a queued hostname's status as a [enum ResolverStatus] constant, given its queue [code]id[/code]. </description> </method> <method name="resolve_hostname"> - <return type="String"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <argument index="1" name="ip_type" type="int" enum="IP.Type" default="3"> - </argument> + <return type="String" /> + <argument index="0" name="host" type="String" /> + <argument index="1" name="ip_type" type="int" enum="IP.Type" default="3" /> <description> Returns a given hostname's IPv4 or IPv6 address when resolved (blocking-type method). The address type returned depends on the [enum Type] constant given as [code]ip_type[/code]. </description> </method> <method name="resolve_hostname_addresses"> - <return type="Array"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <argument index="1" name="ip_type" type="int" enum="IP.Type" default="3"> - </argument> + <return type="Array" /> + <argument index="0" name="host" type="String" /> + <argument index="1" name="ip_type" type="int" enum="IP.Type" default="3" /> <description> Resolves a given hostname in a blocking way. Addresses are returned as an [Array] of IPv4 or IPv6 addresses depending on [code]ip_type[/code]. </description> </method> <method name="resolve_hostname_queue_item"> - <return type="int"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <argument index="1" name="ip_type" type="int" enum="IP.Type" default="3"> - </argument> + <return type="int" /> + <argument index="0" name="host" type="String" /> + <argument index="1" name="ip_type" type="int" enum="IP.Type" default="3" /> <description> Creates a queue item to resolve a hostname to an IPv4 or IPv6 address depending on the [enum Type] constant given as [code]ip_type[/code]. Returns the queue ID if successful, or [constant RESOLVER_INVALID_ID] on error. </description> diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index 37a96fef3d..34c5fb582e 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -13,352 +13,269 @@ </tutorials> <methods> <method name="adjust_bcs"> - <return type="void"> - </return> - <argument index="0" name="brightness" type="float"> - </argument> - <argument index="1" name="contrast" type="float"> - </argument> - <argument index="2" name="saturation" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="brightness" type="float" /> + <argument index="1" name="contrast" type="float" /> + <argument index="2" name="saturation" type="float" /> <description> </description> </method> <method name="blend_rect"> - <return type="void"> - </return> - <argument index="0" name="src" type="Image"> - </argument> - <argument index="1" name="src_rect" type="Rect2"> - </argument> - <argument index="2" name="dst" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="src" type="Image" /> + <argument index="1" name="src_rect" type="Rect2" /> + <argument index="2" name="dst" type="Vector2" /> <description> Alpha-blends [code]src_rect[/code] from [code]src[/code] image to this image at coordinates [code]dest[/code]. </description> </method> <method name="blend_rect_mask"> - <return type="void"> - </return> - <argument index="0" name="src" type="Image"> - </argument> - <argument index="1" name="mask" type="Image"> - </argument> - <argument index="2" name="src_rect" type="Rect2"> - </argument> - <argument index="3" name="dst" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="src" type="Image" /> + <argument index="1" name="mask" type="Image" /> + <argument index="2" name="src_rect" type="Rect2" /> + <argument index="3" name="dst" type="Vector2" /> <description> Alpha-blends [code]src_rect[/code] from [code]src[/code] image to this image using [code]mask[/code] image at coordinates [code]dst[/code]. Alpha channels are required for both [code]src[/code] and [code]mask[/code]. [code]dst[/code] pixels and [code]src[/code] pixels will blend if the corresponding mask pixel's alpha value is not 0. [code]src[/code] image and [code]mask[/code] image [b]must[/b] have the same size (width and height) but they can have different formats. </description> </method> <method name="blit_rect"> - <return type="void"> - </return> - <argument index="0" name="src" type="Image"> - </argument> - <argument index="1" name="src_rect" type="Rect2"> - </argument> - <argument index="2" name="dst" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="src" type="Image" /> + <argument index="1" name="src_rect" type="Rect2" /> + <argument index="2" name="dst" type="Vector2" /> <description> Copies [code]src_rect[/code] from [code]src[/code] image to this image at coordinates [code]dst[/code]. </description> </method> <method name="blit_rect_mask"> - <return type="void"> - </return> - <argument index="0" name="src" type="Image"> - </argument> - <argument index="1" name="mask" type="Image"> - </argument> - <argument index="2" name="src_rect" type="Rect2"> - </argument> - <argument index="3" name="dst" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="src" type="Image" /> + <argument index="1" name="mask" type="Image" /> + <argument index="2" name="src_rect" type="Rect2" /> + <argument index="3" name="dst" type="Vector2" /> <description> Blits [code]src_rect[/code] area from [code]src[/code] image to this image at the coordinates given by [code]dst[/code]. [code]src[/code] pixel is copied onto [code]dst[/code] if the corresponding [code]mask[/code] pixel's alpha value is not 0. [code]src[/code] image and [code]mask[/code] image [b]must[/b] have the same size (width and height) but they can have different formats. </description> </method> <method name="bump_map_to_normal_map"> - <return type="void"> - </return> - <argument index="0" name="bump_scale" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="bump_scale" type="float" default="1.0" /> <description> Converts a bump map to a normal map. A bump map provides a height offset per-pixel, while a normal map provides a normal direction per pixel. </description> </method> <method name="clear_mipmaps"> - <return type="void"> - </return> + <return type="void" /> <description> Removes the image's mipmaps. </description> </method> <method name="compress"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="mode" type="int" enum="Image.CompressMode"> - </argument> - <argument index="1" name="source" type="int" enum="Image.CompressSource" default="0"> - </argument> - <argument index="2" name="lossy_quality" type="float" default="0.7"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="mode" type="int" enum="Image.CompressMode" /> + <argument index="1" name="source" type="int" enum="Image.CompressSource" default="0" /> + <argument index="2" name="lossy_quality" type="float" default="0.7" /> <description> Compresses the image to use less memory. Can not directly access pixel data while the image is compressed. Returns error if the chosen compression mode is not available. See [enum CompressMode] and [enum CompressSource] constants. </description> </method> <method name="compress_from_channels"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="mode" type="int" enum="Image.CompressMode"> - </argument> - <argument index="1" name="channels" type="int" enum="Image.UsedChannels"> - </argument> - <argument index="2" name="lossy_quality" type="float" default="0.7"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="mode" type="int" enum="Image.CompressMode" /> + <argument index="1" name="channels" type="int" enum="Image.UsedChannels" /> + <argument index="2" name="lossy_quality" type="float" default="0.7" /> <description> </description> </method> <method name="convert"> - <return type="void"> - </return> - <argument index="0" name="format" type="int" enum="Image.Format"> - </argument> + <return type="void" /> + <argument index="0" name="format" type="int" enum="Image.Format" /> <description> Converts the image's format. See [enum Format] constants. </description> </method> <method name="copy_from"> - <return type="void"> - </return> - <argument index="0" name="src" type="Image"> - </argument> + <return type="void" /> + <argument index="0" name="src" type="Image" /> <description> Copies [code]src[/code] image to this image. </description> </method> <method name="create"> - <return type="void"> - </return> - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> - <argument index="2" name="use_mipmaps" type="bool"> - </argument> - <argument index="3" name="format" type="int" enum="Image.Format"> - </argument> + <return type="void" /> + <argument index="0" name="width" type="int" /> + <argument index="1" name="height" type="int" /> + <argument index="2" name="use_mipmaps" type="bool" /> + <argument index="3" name="format" type="int" enum="Image.Format" /> <description> Creates an empty image of given size and format. See [enum Format] constants. If [code]use_mipmaps[/code] is [code]true[/code] then generate mipmaps for this image. See the [method generate_mipmaps]. </description> </method> <method name="create_from_data"> - <return type="void"> - </return> - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> - <argument index="2" name="use_mipmaps" type="bool"> - </argument> - <argument index="3" name="format" type="int" enum="Image.Format"> - </argument> - <argument index="4" name="data" type="PackedByteArray"> - </argument> + <return type="void" /> + <argument index="0" name="width" type="int" /> + <argument index="1" name="height" type="int" /> + <argument index="2" name="use_mipmaps" type="bool" /> + <argument index="3" name="format" type="int" enum="Image.Format" /> + <argument index="4" name="data" type="PackedByteArray" /> <description> Creates a new image of given size and format. See [enum Format] constants. Fills the image with the given raw data. If [code]use_mipmaps[/code] is [code]true[/code] then loads mipmaps for this image from [code]data[/code]. See [method generate_mipmaps]. </description> </method> <method name="crop"> - <return type="void"> - </return> - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="width" type="int" /> + <argument index="1" name="height" type="int" /> <description> Crops the image to the given [code]width[/code] and [code]height[/code]. If the specified size is larger than the current size, the extra area is filled with black pixels. </description> </method> <method name="decompress"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Decompresses the image if it is VRAM compressed in a supported format. Returns [constant OK] if the format is supported, otherwise [constant ERR_UNAVAILABLE]. [b]Note:[/b] The following formats can be decompressed: DXT, RGTC, BPTC, PVRTC1. The formats ETC1 and ETC2 are not supported. </description> </method> <method name="detect_alpha" qualifiers="const"> - <return type="int" enum="Image.AlphaMode"> - </return> + <return type="int" enum="Image.AlphaMode" /> <description> Returns [constant ALPHA_BLEND] if the image has data for alpha values. Returns [constant ALPHA_BIT] if all the alpha values are stored in a single bit. Returns [constant ALPHA_NONE] if no data for alpha values is found. </description> </method> <method name="detect_used_channels"> - <return type="int" enum="Image.UsedChannels"> - </return> - <argument index="0" name="source" type="int" enum="Image.CompressSource" default="0"> - </argument> + <return type="int" enum="Image.UsedChannels" /> + <argument index="0" name="source" type="int" enum="Image.CompressSource" default="0" /> <description> </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="color" type="Color" /> <description> Fills the image with a given [Color]. </description> </method> <method name="fix_alpha_edges"> - <return type="void"> - </return> + <return type="void" /> <description> Blends low-alpha pixels with nearby pixels. </description> </method> <method name="flip_x"> - <return type="void"> - </return> + <return type="void" /> <description> Flips the image horizontally. </description> </method> <method name="flip_y"> - <return type="void"> - </return> + <return type="void" /> <description> Flips the image vertically. </description> </method> <method name="generate_mipmaps"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="renormalize" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="renormalize" type="bool" default="false" /> <description> Generates mipmaps for the image. Mipmaps are precalculated lower-resolution copies of the image that are automatically used if the image needs to be scaled down when rendered. They help improve image quality and performance when rendering. This method returns an error if the image is compressed, in a custom format, or if the image's width/height is [code]0[/code]. </description> </method> <method name="get_data" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Returns a copy of the image's raw data. </description> </method> <method name="get_format" qualifiers="const"> - <return type="int" enum="Image.Format"> - </return> + <return type="int" enum="Image.Format" /> <description> Returns the image's format. See [enum Format] constants. </description> </method> <method name="get_height" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the image's height. </description> </method> <method name="get_mipmap_offset" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="mipmap" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="mipmap" type="int" /> <description> Returns the offset where the image's mipmap with index [code]mipmap[/code] is stored in the [code]data[/code] dictionary. </description> </method> <method name="get_pixel" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="x" type="int" /> + <argument index="1" name="y" type="int" /> <description> Returns the color of the pixel at [code](x, y)[/code]. This is the same as [method get_pixelv], but with two integer arguments instead of a [Vector2i] argument. </description> </method> <method name="get_pixelv" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="point" type="Vector2i"> - </argument> + <return type="Color" /> + <argument index="0" name="point" type="Vector2i" /> <description> Returns the color of the pixel at [code]point[/code]. This is the same as [method get_pixel], but with a [Vector2i] argument instead of two integer arguments. </description> </method> <method name="get_rect" qualifiers="const"> - <return type="Image"> - </return> - <argument index="0" name="rect" type="Rect2"> - </argument> + <return type="Image" /> + <argument index="0" name="rect" type="Rect2" /> <description> Returns a new image that is a copy of the image's area specified with [code]rect[/code]. </description> </method> <method name="get_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the image's size (width and height). </description> </method> <method name="get_used_rect" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns a [Rect2] enclosing the visible portion of the image, considering each pixel with a non-zero alpha channel as visible. </description> </method> <method name="get_width" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the image's width. </description> </method> <method name="has_mipmaps" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the image has generated mipmaps. </description> </method> <method name="is_compressed" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the image is compressed. </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the image has no data. </description> </method> <method name="is_invisible" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if all the image's pixels have an alpha value of 0. Returns [code]false[/code] if any pixel has an alpha value higher than 0. </description> </method> <method name="load"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Loads an image from file [code]path[/code]. See [url=https://docs.godotengine.org/en/latest/getting_started/workflow/assets/importing_images.html#supported-image-formats]Supported image formats[/url] for a list of supported image formats and limitations. [b]Warning:[/b] This method should only be used in the editor or in cases when you need to load external images at run-time, such as images located at the [code]user://[/code] directory, and may not work in exported projects. @@ -366,132 +283,102 @@ </description> </method> <method name="load_bmp_from_buffer"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="buffer" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="buffer" type="PackedByteArray" /> <description> Loads an image from the binary contents of a BMP file. [b]Note:[/b] Godot's BMP module doesn't support 16-bit per pixel images. Only 1-bit, 4-bit, 8-bit, 24-bit, and 32-bit per pixel images are supported. </description> </method> <method name="load_jpg_from_buffer"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="buffer" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="buffer" type="PackedByteArray" /> <description> Loads an image from the binary contents of a JPEG file. </description> </method> <method name="load_png_from_buffer"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="buffer" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="buffer" type="PackedByteArray" /> <description> Loads an image from the binary contents of a PNG file. </description> </method> <method name="load_tga_from_buffer"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="buffer" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="buffer" type="PackedByteArray" /> <description> Loads an image from the binary contents of a TGA file. </description> </method> <method name="load_webp_from_buffer"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="buffer" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="buffer" type="PackedByteArray" /> <description> Loads an image from the binary contents of a WebP file. </description> </method> <method name="normal_map_to_xy"> - <return type="void"> - </return> + <return type="void" /> <description> Converts the image's data to represent coordinates on a 3D plane. This is used when the image represents a normal map. A normal map can add lots of detail to a 3D surface without increasing the polygon count. </description> </method> <method name="premultiply_alpha"> - <return type="void"> - </return> + <return type="void" /> <description> Multiplies color values with alpha values. Resulting color values for a pixel are [code](color * alpha)/256[/code]. </description> </method> <method name="resize"> - <return type="void"> - </return> - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> - <argument index="2" name="interpolation" type="int" enum="Image.Interpolation" default="1"> - </argument> + <return type="void" /> + <argument index="0" name="width" type="int" /> + <argument index="1" name="height" type="int" /> + <argument index="2" name="interpolation" type="int" enum="Image.Interpolation" default="1" /> <description> Resizes the image to the given [code]width[/code] and [code]height[/code]. New pixels are calculated using the [code]interpolation[/code] mode defined via [enum Interpolation] constants. </description> </method> <method name="resize_to_po2"> - <return type="void"> - </return> - <argument index="0" name="square" type="bool" default="false"> - </argument> - <argument index="1" name="interpolation" type="int" enum="Image.Interpolation" default="1"> - </argument> + <return type="void" /> + <argument index="0" name="square" type="bool" default="false" /> + <argument index="1" name="interpolation" type="int" enum="Image.Interpolation" default="1" /> <description> Resizes the image to the nearest power of 2 for the width and height. If [code]square[/code] is [code]true[/code] then set width and height to be the same. New pixels are calculated using the [code]interpolation[/code] mode defined via [enum Interpolation] constants. </description> </method> <method name="rgbe_to_srgb"> - <return type="Image"> - </return> + <return type="Image" /> <description> Converts a standard RGBE (Red Green Blue Exponent) image to an sRGB image. </description> </method> <method name="save_exr" qualifiers="const"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="grayscale" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="grayscale" type="bool" default="false" /> <description> Saves the image as an EXR file to [code]path[/code]. If [code]grayscale[/code] is [code]true[/code] and the image has only one channel, it will be saved explicitly as monochrome rather than one red channel. This function will return [constant ERR_UNAVAILABLE] if Godot was compiled without the TinyEXR module. [b]Note:[/b] The TinyEXR module is disabled in non-editor builds, which means [method save_exr] will return [constant ERR_UNAVAILABLE] when it is called from an exported project. </description> </method> <method name="save_png" qualifiers="const"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Saves the image as a PNG file to [code]path[/code]. </description> </method> <method name="save_png_to_buffer" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> </description> </method> <method name="set_pixel"> - <return type="void"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="x" type="int" /> + <argument index="1" name="y" type="int" /> + <argument index="2" name="color" type="Color" /> <description> Sets the [Color] of the pixel at [code](x, y)[/code] to [code]color[/code]. Example: [codeblocks] @@ -516,12 +403,9 @@ </description> </method> <method name="set_pixelv"> - <return type="void"> - </return> - <argument index="0" name="point" type="Vector2i"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="Vector2i" /> + <argument index="1" name="color" type="Color" /> <description> Sets the [Color] of the pixel at [code]point[/code] to [code]color[/code]. Example: [codeblocks] @@ -546,15 +430,13 @@ </description> </method> <method name="shrink_x2"> - <return type="void"> - </return> + <return type="void" /> <description> Shrinks the image by a factor of 2. </description> </method> <method name="srgb_to_linear"> - <return type="void"> - </return> + <return type="void" /> <description> Converts the raw data from the sRGB colorspace to a linear scale. </description> diff --git a/doc/classes/ImageTexture.xml b/doc/classes/ImageTexture.xml index f89b6ad57b..435fec6a50 100644 --- a/doc/classes/ImageTexture.xml +++ b/doc/classes/ImageTexture.xml @@ -32,35 +32,28 @@ </tutorials> <methods> <method name="create_from_image"> - <return type="void"> - </return> - <argument index="0" name="image" type="Image"> - </argument> + <return type="void" /> + <argument index="0" name="image" type="Image" /> <description> Initializes the texture by allocating and setting the data from an [Image]. </description> </method> <method name="get_format" qualifiers="const"> - <return type="int" enum="Image.Format"> - </return> + <return type="int" enum="Image.Format" /> <description> Returns the format of the texture, one of [enum Image.Format]. </description> </method> <method name="set_size_override"> - <return type="void"> - </return> - <argument index="0" name="size" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="Vector2" /> <description> Resizes the texture to the specified dimensions. </description> </method> <method name="update"> - <return type="void"> - </return> - <argument index="0" name="image" type="Image"> - </argument> + <return type="void" /> + <argument index="0" name="image" type="Image" /> <description> Replaces the texture's data with a new [Image]. [b]Note:[/b] The texture has to be initialized first with the [method create_from_image] method before it can be updated. The new image dimensions, format, and mipmaps configuration should match the existing texture's image configuration, otherwise it has to be re-created with the [method create_from_image] method. diff --git a/doc/classes/ImageTexture3D.xml b/doc/classes/ImageTexture3D.xml index d05082487d..538a836c1c 100644 --- a/doc/classes/ImageTexture3D.xml +++ b/doc/classes/ImageTexture3D.xml @@ -8,28 +8,19 @@ </tutorials> <methods> <method name="create"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="format" type="int" enum="Image.Format"> - </argument> - <argument index="1" name="width" type="int"> - </argument> - <argument index="2" name="height" type="int"> - </argument> - <argument index="3" name="depth" type="int"> - </argument> - <argument index="4" name="use_mipmaps" type="bool"> - </argument> - <argument index="5" name="data" type="Image[]"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="format" type="int" enum="Image.Format" /> + <argument index="1" name="width" type="int" /> + <argument index="2" name="height" type="int" /> + <argument index="3" name="depth" type="int" /> + <argument index="4" name="use_mipmaps" type="bool" /> + <argument index="5" name="data" type="Image[]" /> <description> </description> </method> <method name="update"> - <return type="void"> - </return> - <argument index="0" name="data" type="Image[]"> - </argument> + <return type="void" /> + <argument index="0" name="data" type="Image[]" /> <description> </description> </method> diff --git a/doc/classes/ImageTextureLayered.xml b/doc/classes/ImageTextureLayered.xml index d06b44afa9..1b7400803d 100644 --- a/doc/classes/ImageTextureLayered.xml +++ b/doc/classes/ImageTextureLayered.xml @@ -8,20 +8,15 @@ </tutorials> <methods> <method name="create_from_images"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="images" type="Array"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="images" type="Array" /> <description> </description> </method> <method name="update_layer"> - <return type="void"> - </return> - <argument index="0" name="image" type="Image"> - </argument> - <argument index="1" name="layer" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="image" type="Image" /> + <argument index="1" name="layer" type="int" /> <description> </description> </method> diff --git a/doc/classes/ImmediateMesh.xml b/doc/classes/ImmediateMesh.xml index d2ae091cad..69637d5bdd 100644 --- a/doc/classes/ImmediateMesh.xml +++ b/doc/classes/ImmediateMesh.xml @@ -10,89 +10,70 @@ </tutorials> <methods> <method name="clear_surfaces"> - <return type="void"> - </return> + <return type="void" /> <description> Clear all surfaces. </description> </method> <method name="surface_add_vertex"> - <return type="void"> - </return> - <argument index="0" name="vertex" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="vertex" type="Vector3" /> <description> Add a 3D vertex using the current attributes previously set. </description> </method> <method name="surface_add_vertex_2d"> - <return type="void"> - </return> - <argument index="0" name="vertex" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="vertex" type="Vector2" /> <description> Add a 2D vertex using the current attributes previously set. </description> </method> <method name="surface_begin"> - <return type="void"> - </return> - <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType"> - </argument> - <argument index="1" name="material" type="Material" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType" /> + <argument index="1" name="material" type="Material" default="null" /> <description> Begin a new surface. </description> </method> <method name="surface_end"> - <return type="void"> - </return> + <return type="void" /> <description> End and commit current surface. Note that surface being created will not be visible until this function is called. </description> </method> <method name="surface_set_color"> - <return type="void"> - </return> - <argument index="0" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="color" type="Color" /> <description> Set the color attribute that will be pushed with the next vertex. </description> </method> <method name="surface_set_normal"> - <return type="void"> - </return> - <argument index="0" name="normal" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="normal" type="Vector3" /> <description> Set the normal attribute that will be pushed with the next vertex. </description> </method> <method name="surface_set_tangent"> - <return type="void"> - </return> - <argument index="0" name="tangent" type="Plane"> - </argument> + <return type="void" /> + <argument index="0" name="tangent" type="Plane" /> <description> Set the tangent attribute that will be pushed with the next vertex. </description> </method> <method name="surface_set_uv"> - <return type="void"> - </return> - <argument index="0" name="uv" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="uv" type="Vector2" /> <description> Set the UV attribute that will be pushed with the next vertex. </description> </method> <method name="surface_set_uv2"> - <return type="void"> - </return> - <argument index="0" name="uv2" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="uv2" type="Vector2" /> <description> Set the UV2 attribute that will be pushed with the next vertex. </description> diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml index 89736e4a8d..293456b645 100644 --- a/doc/classes/Input.xml +++ b/doc/classes/Input.xml @@ -13,12 +13,9 @@ </tutorials> <methods> <method name="action_press"> - <return type="void"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="strength" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="strength" type="float" default="1.0" /> <description> This will simulate pressing the specified action. The strength can be used for non-boolean actions, it's ranged between 0 and 1 representing the intensity of the given action. @@ -26,28 +23,22 @@ </description> </method> <method name="action_release"> - <return type="void"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="action" type="StringName" /> <description> If the specified action is already pressed, this will release it. </description> </method> <method name="add_joy_mapping"> - <return type="void"> - </return> - <argument index="0" name="mapping" type="String"> - </argument> - <argument index="1" name="update_existing" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="mapping" type="String" /> + <argument index="1" name="update_existing" type="bool" default="false" /> <description> Adds a new mapping entry (in SDL2 format) to the mapping database. Optionally update already connected devices. </description> </method> <method name="get_accelerometer" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the acceleration in m/s² of the device's accelerometer sensor, if the device has one. Otherwise, the method returns [constant Vector3.ZERO]. Note this method returns an empty [Vector3] when running from the editor even when your device has an accelerometer. You must export your project to a supported device to read values from the accelerometer. @@ -55,160 +46,126 @@ </description> </method> <method name="get_action_raw_strength" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="exact_match" type="bool" default="false"> - </argument> + <return type="float" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="exact_match" type="bool" default="false" /> <description> Returns a value between 0 and 1 representing the raw intensity of the given action, ignoring the action's deadzone. In most cases, you should use [method get_action_strength] instead. If [code]exact_match[/code] is [code]false[/code], it ignores the input modifiers for [InputEventKey] and [InputEventMouseButton] events, and the direction for [InputEventJoypadMotion] events. </description> </method> <method name="get_action_strength" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="exact_match" type="bool" default="false"> - </argument> + <return type="float" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="exact_match" type="bool" default="false" /> <description> Returns a value between 0 and 1 representing the intensity of the given action. In a joypad, for example, the further away the axis (analog sticks or L2, R2 triggers) is from the dead zone, the closer the value will be to 1. If the action is mapped to a control that has no axis as the keyboard, the value returned will be 0 or 1. If [code]exact_match[/code] is [code]false[/code], it ignores the input modifiers for [InputEventKey] and [InputEventMouseButton] events, and the direction for [InputEventJoypadMotion] events. </description> </method> <method name="get_axis" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="negative_action" type="StringName"> - </argument> - <argument index="1" name="positive_action" type="StringName"> - </argument> + <return type="float" /> + <argument index="0" name="negative_action" type="StringName" /> + <argument index="1" name="positive_action" type="StringName" /> <description> Get axis input by specifying two actions, one negative and one positive. This is a shorthand for writing [code]Input.get_action_strength("positive_action") - Input.get_action_strength("negative_action")[/code]. </description> </method> <method name="get_connected_joypads"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an [Array] containing the device IDs of all currently connected joypads. </description> </method> <method name="get_current_cursor_shape" qualifiers="const"> - <return type="int" enum="Input.CursorShape"> - </return> + <return type="int" enum="Input.CursorShape" /> <description> Returns the currently assigned cursor shape (see [enum CursorShape]). </description> </method> <method name="get_gravity" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the gravity in m/s² of the device's accelerometer sensor, if the device has one. Otherwise, the method returns [constant Vector3.ZERO]. [b]Note:[/b] This method only works on Android and iOS. On other platforms, it always returns [constant Vector3.ZERO]. </description> </method> <method name="get_gyroscope" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the rotation rate in rad/s around a device's X, Y, and Z axes of the gyroscope sensor, if the device has one. Otherwise, the method returns [constant Vector3.ZERO]. [b]Note:[/b] This method only works on Android and iOS. On other platforms, it always returns [constant Vector3.ZERO]. </description> </method> <method name="get_joy_axis" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="device" type="int"> - </argument> - <argument index="1" name="axis" type="int" enum="JoyAxis"> - </argument> + <return type="float" /> + <argument index="0" name="device" type="int" /> + <argument index="1" name="axis" type="int" enum="JoyAxis" /> <description> Returns the current value of the joypad axis at given index (see [enum JoyAxis]). </description> </method> <method name="get_joy_guid" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="device" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="device" type="int" /> <description> Returns a SDL2-compatible device GUID on platforms that use gamepad remapping. Returns [code]"Default Gamepad"[/code] otherwise. </description> </method> <method name="get_joy_name"> - <return type="String"> - </return> - <argument index="0" name="device" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="device" type="int" /> <description> Returns the name of the joypad at the specified device index. </description> </method> <method name="get_joy_vibration_duration"> - <return type="float"> - </return> - <argument index="0" name="device" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="device" type="int" /> <description> Returns the duration of the current vibration effect in seconds. </description> </method> <method name="get_joy_vibration_strength"> - <return type="Vector2"> - </return> - <argument index="0" name="device" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="device" type="int" /> <description> Returns the strength of the joypad vibration: x is the strength of the weak motor, and y is the strength of the strong motor. </description> </method> <method name="get_last_mouse_speed" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the mouse speed for the last time the cursor was moved, and this until the next frame where the mouse moves. This means that even if the mouse is not moving, this function will still return the value of the last motion. </description> </method> <method name="get_magnetometer" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the magnetic field strength in micro-Tesla for all axes of the device's magnetometer sensor, if the device has one. Otherwise, the method returns [constant Vector3.ZERO]. [b]Note:[/b] This method only works on Android, iOS and UWP. On other platforms, it always returns [constant Vector3.ZERO]. </description> </method> <method name="get_mouse_button_mask" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns mouse buttons as a bitmask. If multiple mouse buttons are pressed at the same time, the bits are added together. </description> </method> <method name="get_mouse_mode" qualifiers="const"> - <return type="int" enum="Input.MouseMode"> - </return> + <return type="int" enum="Input.MouseMode" /> <description> Returns the mouse mode. See the constants for more information. </description> </method> <method name="get_vector" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="negative_x" type="StringName"> - </argument> - <argument index="1" name="positive_x" type="StringName"> - </argument> - <argument index="2" name="negative_y" type="StringName"> - </argument> - <argument index="3" name="positive_y" type="StringName"> - </argument> - <argument index="4" name="deadzone" type="float" default="-1.0"> - </argument> + <return type="Vector2" /> + <argument index="0" name="negative_x" type="StringName" /> + <argument index="1" name="positive_x" type="StringName" /> + <argument index="2" name="negative_y" type="StringName" /> + <argument index="3" name="positive_y" type="StringName" /> + <argument index="4" name="deadzone" type="float" default="-1.0" /> <description> Gets an input vector by specifying four actions for the positive and negative X and Y axes. This method is useful when getting vector input, such as from a joystick, directional pad, arrows, or WASD. The vector has its length limited to 1 and has a circular deadzone, which is useful for using vector input as movement. @@ -216,12 +173,9 @@ </description> </method> <method name="is_action_just_pressed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="exact_match" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="exact_match" type="bool" default="false" /> <description> Returns [code]true[/code] when the user starts pressing the action event, meaning it's [code]true[/code] only on the frame that the user pressed down the button. This is useful for code that needs to run only once when an action is pressed, instead of every frame while it's pressed. @@ -229,88 +183,66 @@ </description> </method> <method name="is_action_just_released" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="exact_match" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="exact_match" type="bool" default="false" /> <description> Returns [code]true[/code] when the user stops pressing the action event, meaning it's [code]true[/code] only on the frame that the user released the button. If [code]exact_match[/code] is [code]false[/code], it ignores the input modifiers for [InputEventKey] and [InputEventMouseButton] events, and the direction for [InputEventJoypadMotion] events. </description> </method> <method name="is_action_pressed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="exact_match" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="exact_match" type="bool" default="false" /> <description> Returns [code]true[/code] if you are pressing the action event. Note that if an action has multiple buttons assigned and more than one of them is pressed, releasing one button will release the action, even if some other button assigned to this action is still pressed. If [code]exact_match[/code] is [code]false[/code], it ignores the input modifiers for [InputEventKey] and [InputEventMouseButton] events, and the direction for [InputEventJoypadMotion] events. </description> </method> <method name="is_joy_button_pressed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="device" type="int"> - </argument> - <argument index="1" name="button" type="int" enum="JoyButton"> - </argument> + <return type="bool" /> + <argument index="0" name="device" type="int" /> + <argument index="1" name="button" type="int" enum="JoyButton" /> <description> Returns [code]true[/code] if you are pressing the joypad button (see [enum JoyButton]). </description> </method> <method name="is_joy_known"> - <return type="bool"> - </return> - <argument index="0" name="device" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="device" type="int" /> <description> Returns [code]true[/code] if the system knows the specified device. This means that it sets all button and axis indices. Unknown joypads are not expected to match these constants, but you can still retrieve events from them. </description> </method> <method name="is_key_pressed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="keycode" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="keycode" type="int" /> <description> Returns [code]true[/code] if you are pressing the key in the current keyboard layout. You can pass a [enum Key] constant. </description> </method> <method name="is_mouse_button_pressed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="button" type="int" enum="MouseButton"> - </argument> + <return type="bool" /> + <argument index="0" name="button" type="int" enum="MouseButton" /> <description> Returns [code]true[/code] if you are pressing the mouse button specified with [enum MouseButton]. </description> </method> <method name="joy_connection_changed"> - <return type="void"> - </return> - <argument index="0" name="device" type="int"> - </argument> - <argument index="1" name="connected" type="bool"> - </argument> - <argument index="2" name="name" type="String"> - </argument> - <argument index="3" name="guid" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="device" type="int" /> + <argument index="1" name="connected" type="bool" /> + <argument index="2" name="name" type="String" /> + <argument index="3" name="guid" type="String" /> <description> Notifies the [Input] singleton that a connection has changed, to update the state for the [code]device[/code] index. This is used internally and should not have to be called from user scripts. See [signal joy_connection_changed] for the signal emitted when this is triggered internally. </description> </method> <method name="parse_input_event"> - <return type="void"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> + <return type="void" /> + <argument index="0" name="event" type="InputEvent" /> <description> Feeds an [InputEvent] to the game. Can be used to artificially trigger input events from code. Also generates [method Node._input] calls. Example: @@ -331,23 +263,17 @@ </description> </method> <method name="remove_joy_mapping"> - <return type="void"> - </return> - <argument index="0" name="guid" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="guid" type="String" /> <description> Removes all mappings from the internal database that match the given GUID. </description> </method> <method name="set_custom_mouse_cursor"> - <return type="void"> - </return> - <argument index="0" name="image" type="Resource"> - </argument> - <argument index="1" name="shape" type="int" enum="Input.CursorShape" default="0"> - </argument> - <argument index="2" name="hotspot" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="image" type="Resource" /> + <argument index="1" name="shape" type="int" enum="Input.CursorShape" default="0" /> + <argument index="2" name="hotspot" type="Vector2" default="Vector2(0, 0)" /> <description> Sets a custom mouse cursor image, which is only visible inside the game window. The hotspot can also be specified. Passing [code]null[/code] to the image parameter resets to the system cursor. See [enum CursorShape] for the list of shapes. [code]image[/code]'s size must be lower than 256×256. @@ -357,10 +283,8 @@ </description> </method> <method name="set_default_cursor_shape"> - <return type="void"> - </return> - <argument index="0" name="shape" type="int" enum="Input.CursorShape" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="shape" type="int" enum="Input.CursorShape" default="0" /> <description> Sets the default cursor shape to be used in the viewport instead of [constant CURSOR_ARROW]. [b]Note:[/b] If you want to change the default cursor shape for [Control]'s nodes, use [member Control.mouse_default_cursor_shape] instead. @@ -368,64 +292,49 @@ </description> </method> <method name="set_mouse_mode"> - <return type="void"> - </return> - <argument index="0" name="mode" type="int" enum="Input.MouseMode"> - </argument> + <return type="void" /> + <argument index="0" name="mode" type="int" enum="Input.MouseMode" /> <description> Sets the mouse mode. See the constants for more information. </description> </method> <method name="set_use_accumulated_input"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Enables or disables the accumulation of similar input events sent by the operating system. When input accumulation is enabled, all input events generated during a frame will be merged and emitted when the frame is done rendering. Therefore, this limits the number of input method calls per second to the rendering FPS. Input accumulation is enabled by default. It can be disabled to get slightly more precise/reactive input at the cost of increased CPU usage. In applications where drawing freehand lines is required, input accumulation should generally be disabled while the user is drawing the line to get results that closely follow the actual input. </description> </method> <method name="start_joy_vibration"> - <return type="void"> - </return> - <argument index="0" name="device" type="int"> - </argument> - <argument index="1" name="weak_magnitude" type="float"> - </argument> - <argument index="2" name="strong_magnitude" type="float"> - </argument> - <argument index="3" name="duration" type="float" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="device" type="int" /> + <argument index="1" name="weak_magnitude" type="float" /> + <argument index="2" name="strong_magnitude" type="float" /> + <argument index="3" name="duration" type="float" default="0" /> <description> Starts to vibrate the joypad. Joypads usually come with two rumble motors, a strong and a weak one. [code]weak_magnitude[/code] is the strength of the weak motor (between 0 and 1) and [code]strong_magnitude[/code] is the strength of the strong motor (between 0 and 1). [code]duration[/code] is the duration of the effect in seconds (a duration of 0 will try to play the vibration indefinitely). [b]Note:[/b] Not every hardware is compatible with long effect durations; it is recommended to restart an effect if it has to be played for more than a few seconds. </description> </method> <method name="stop_joy_vibration"> - <return type="void"> - </return> - <argument index="0" name="device" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="device" type="int" /> <description> Stops the vibration of the joypad. </description> </method> <method name="vibrate_handheld"> - <return type="void"> - </return> - <argument index="0" name="duration_ms" type="int" default="500"> - </argument> + <return type="void" /> + <argument index="0" name="duration_ms" type="int" default="500" /> <description> Vibrate Android and iOS devices. [b]Note:[/b] It needs [code]VIBRATE[/code] permission for Android at export settings. iOS does not support duration. </description> </method> <method name="warp_mouse_position"> - <return type="void"> - </return> - <argument index="0" name="to" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="to" type="Vector2" /> <description> Sets the mouse position to the specified vector. </description> @@ -433,10 +342,8 @@ </methods> <signals> <signal name="joy_connection_changed"> - <argument index="0" name="device" type="int"> - </argument> - <argument index="1" name="connected" type="bool"> - </argument> + <argument index="0" name="device" type="int" /> + <argument index="1" name="connected" type="bool" /> <description> Emitted when a joypad device has been connected or disconnected. </description> diff --git a/doc/classes/InputEvent.xml b/doc/classes/InputEvent.xml index 9ed965bbf4..cd14965d1b 100644 --- a/doc/classes/InputEvent.xml +++ b/doc/classes/InputEvent.xml @@ -14,112 +14,87 @@ </tutorials> <methods> <method name="accumulate"> - <return type="bool"> - </return> - <argument index="0" name="with_event" type="InputEvent"> - </argument> + <return type="bool" /> + <argument index="0" name="with_event" type="InputEvent" /> <description> Returns [code]true[/code] if the given input event and this input event can be added together (only for events of type [InputEventMouseMotion]). The given input event's position, global position and speed will be copied. The resulting [code]relative[/code] is a sum of both events. Both events' modifiers have to be identical. </description> </method> <method name="as_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a [String] representation of the event. </description> </method> <method name="get_action_strength" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="exact_match" type="bool" default="false"> - </argument> + <return type="float" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="exact_match" type="bool" default="false" /> <description> Returns a value between 0.0 and 1.0 depending on the given actions' state. Useful for getting the value of events of type [InputEventJoypadMotion]. If [code]exact_match[/code] is [code]false[/code], it ignores the input modifiers for [InputEventKey] and [InputEventMouseButton] events, and the direction for [InputEventJoypadMotion] events. </description> </method> <method name="is_action" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="exact_match" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="exact_match" type="bool" default="false" /> <description> Returns [code]true[/code] if this input event matches a pre-defined action of any type. If [code]exact_match[/code] is [code]false[/code], it ignores the input modifiers for [InputEventKey] and [InputEventMouseButton] events, and the direction for [InputEventJoypadMotion] events. </description> </method> <method name="is_action_pressed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="allow_echo" type="bool" default="false"> - </argument> - <argument index="2" name="exact_match" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="allow_echo" type="bool" default="false" /> + <argument index="2" name="exact_match" type="bool" default="false" /> <description> Returns [code]true[/code] if the given action is being pressed (and is not an echo event for [InputEventKey] events, unless [code]allow_echo[/code] is [code]true[/code]). Not relevant for events of type [InputEventMouseMotion] or [InputEventScreenDrag]. If [code]exact_match[/code] is [code]false[/code], it ignores the input modifiers for [InputEventKey] and [InputEventMouseButton] events, and the direction for [InputEventJoypadMotion] events. </description> </method> <method name="is_action_released" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="exact_match" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="exact_match" type="bool" default="false" /> <description> Returns [code]true[/code] if the given action is released (i.e. not pressed). Not relevant for events of type [InputEventMouseMotion] or [InputEventScreenDrag]. If [code]exact_match[/code] is [code]false[/code], it ignores the input modifiers for [InputEventKey] and [InputEventMouseButton] events, and the direction for [InputEventJoypadMotion] events. </description> </method> <method name="is_action_type" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this input event's type is one that can be assigned to an input action. </description> </method> <method name="is_echo" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this input event is an echo event (only for events of type [InputEventKey]). </description> </method> <method name="is_match" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> - <argument index="1" name="exact_match" type="bool" default="true"> - </argument> + <return type="bool" /> + <argument index="0" name="event" type="InputEvent" /> + <argument index="1" name="exact_match" type="bool" default="true" /> <description> Returns [code]true[/code] if the specified [code]event[/code] matches this event. Only valid for action events i.e key ([InputEventKey]), button ([InputEventMouseButton] or [InputEventJoypadButton]), axis [InputEventJoypadMotion] or action ([InputEventAction]) events. If [code]exact_match[/code] is [code]false[/code], it ignores the input modifiers for [InputEventKey] and [InputEventMouseButton] events, and the direction for [InputEventJoypadMotion] events. </description> </method> <method name="is_pressed" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this input event is pressed. Not relevant for events of type [InputEventMouseMotion] or [InputEventScreenDrag]. </description> </method> <method name="xformed_by" qualifiers="const"> - <return type="InputEvent"> - </return> - <argument index="0" name="xform" type="Transform2D"> - </argument> - <argument index="1" name="local_ofs" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="InputEvent" /> + <argument index="0" name="xform" type="Transform2D" /> + <argument index="1" name="local_ofs" type="Vector2" default="Vector2(0, 0)" /> <description> Returns a copy of the given input event which has been offset by [code]local_ofs[/code] and transformed by [code]xform[/code]. Relevant for events of type [InputEventMouseButton], [InputEventMouseMotion], [InputEventScreenTouch], [InputEventScreenDrag], [InputEventMagnifyGesture] and [InputEventPanGesture]. </description> diff --git a/doc/classes/InputEventKey.xml b/doc/classes/InputEventKey.xml index 9f2b829823..1b09ddee94 100644 --- a/doc/classes/InputEventKey.xml +++ b/doc/classes/InputEventKey.xml @@ -11,16 +11,14 @@ </tutorials> <methods> <method name="get_keycode_with_modifiers" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the keycode combined with modifier keys such as [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See also [InputEventWithModifiers]. To get a human-readable representation of the [InputEventKey] with modifiers, use [code]OS.get_keycode_string(event.get_keycode_with_modifiers())[/code] where [code]event[/code] is the [InputEventKey]. </description> </method> <method name="get_physical_keycode_with_modifiers" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the physical keycode combined with modifier keys such as [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See also [InputEventWithModifiers]. To get a human-readable representation of the [InputEventKey] with modifiers, use [code]OS.get_keycode_string(event.get_physical_keycode_with_modifiers())[/code] where [code]event[/code] is the [InputEventKey]. diff --git a/doc/classes/InputMap.xml b/doc/classes/InputMap.xml index 3292555b4e..16c2695613 100644 --- a/doc/classes/InputMap.xml +++ b/doc/classes/InputMap.xml @@ -11,130 +11,99 @@ </tutorials> <methods> <method name="action_add_event"> - <return type="void"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="event" type="InputEvent"> - </argument> + <return type="void" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="event" type="InputEvent" /> <description> Adds an [InputEvent] to an action. This [InputEvent] will trigger the action. </description> </method> <method name="action_erase_event"> - <return type="void"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="event" type="InputEvent"> - </argument> + <return type="void" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="event" type="InputEvent" /> <description> Removes an [InputEvent] from an action. </description> </method> <method name="action_erase_events"> - <return type="void"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="action" type="StringName" /> <description> Removes all events from an action. </description> </method> <method name="action_get_deadzone"> - <return type="float"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> + <return type="float" /> + <argument index="0" name="action" type="StringName" /> <description> Returns a deadzone value for the action. </description> </method> <method name="action_get_events"> - <return type="Array"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> + <return type="Array" /> + <argument index="0" name="action" type="StringName" /> <description> Returns an array of [InputEvent]s associated with a given action. </description> </method> <method name="action_has_event"> - <return type="bool"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="event" type="InputEvent"> - </argument> + <return type="bool" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="event" type="InputEvent" /> <description> Returns [code]true[/code] if the action has the given [InputEvent] associated with it. </description> </method> <method name="action_set_deadzone"> - <return type="void"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="deadzone" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="deadzone" type="float" /> <description> Sets a deadzone value for the action. </description> </method> <method name="add_action"> - <return type="void"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> - <argument index="1" name="deadzone" type="float" default="0.5"> - </argument> + <return type="void" /> + <argument index="0" name="action" type="StringName" /> + <argument index="1" name="deadzone" type="float" default="0.5" /> <description> Adds an empty action to the [InputMap] with a configurable [code]deadzone[/code]. An [InputEvent] can then be added to this action with [method action_add_event]. </description> </method> <method name="erase_action"> - <return type="void"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="action" type="StringName" /> <description> Removes an action from the [InputMap]. </description> </method> <method name="event_is_action" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> - <argument index="1" name="action" type="StringName"> - </argument> - <argument index="2" name="exact_match" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="event" type="InputEvent" /> + <argument index="1" name="action" type="StringName" /> + <argument index="2" name="exact_match" type="bool" default="false" /> <description> Returns [code]true[/code] if the given event is part of an existing action. This method ignores keyboard modifiers if the given [InputEvent] is not pressed (for proper release detection). See [method action_has_event] if you don't want this behavior. If [code]exact_match[/code] is [code]false[/code], it ignores the input modifiers for [InputEventKey] and [InputEventMouseButton] events, and the direction for [InputEventJoypadMotion] events. </description> </method> <method name="get_actions"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of all actions in the [InputMap]. </description> </method> <method name="has_action" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="action" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="action" type="StringName" /> <description> Returns [code]true[/code] if the [InputMap] has a registered action with the given name. </description> </method> <method name="load_from_project_settings"> - <return type="void"> - </return> + <return type="void" /> <description> Clears all [InputEventAction] in the [InputMap] and load it anew from [ProjectSettings]. </description> diff --git a/doc/classes/InstancePlaceholder.xml b/doc/classes/InstancePlaceholder.xml index 934764b461..75892895d7 100644 --- a/doc/classes/InstancePlaceholder.xml +++ b/doc/classes/InstancePlaceholder.xml @@ -11,28 +11,22 @@ </tutorials> <methods> <method name="create_instance"> - <return type="Node"> - </return> - <argument index="0" name="replace" type="bool" default="false"> - </argument> - <argument index="1" name="custom_scene" type="PackedScene" default="null"> - </argument> + <return type="Node" /> + <argument index="0" name="replace" type="bool" default="false" /> + <argument index="1" name="custom_scene" type="PackedScene" default="null" /> <description> Not thread-safe. Use [method Object.call_deferred] if calling from a thread. </description> </method> <method name="get_instance_path" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Gets the path to the [PackedScene] resource file that is loaded by default when calling [method create_instance]. Not thread-safe. Use [method Object.call_deferred] if calling from a thread. </description> </method> <method name="get_stored_values"> - <return type="Dictionary"> - </return> - <argument index="0" name="with_order" type="bool" default="false"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="with_order" type="bool" default="false" /> <description> </description> </method> diff --git a/doc/classes/ItemList.xml b/doc/classes/ItemList.xml index c639e0b88e..c60864886e 100644 --- a/doc/classes/ItemList.xml +++ b/doc/classes/ItemList.xml @@ -12,25 +12,18 @@ </tutorials> <methods> <method name="add_icon_item"> - <return type="int"> - </return> - <argument index="0" name="icon" type="Texture2D"> - </argument> - <argument index="1" name="selectable" type="bool" default="true"> - </argument> + <return type="int" /> + <argument index="0" name="icon" type="Texture2D" /> + <argument index="1" name="selectable" type="bool" default="true" /> <description> Adds an item to the item list with no text, only an icon. Returns the index of an added item. </description> </method> <method name="add_item"> - <return type="int"> - </return> - <argument index="0" name="text" type="String"> - </argument> - <argument index="1" name="icon" type="Texture2D" default="null"> - </argument> - <argument index="2" name="selectable" type="bool" default="true"> - </argument> + <return type="int" /> + <argument index="0" name="text" type="String" /> + <argument index="1" name="icon" type="Texture2D" default="null" /> + <argument index="2" name="selectable" type="bool" default="true" /> <description> Adds an item to the item list with specified text. Returns the index of an added item. Specify an [code]icon[/code], or use [code]null[/code] as the [code]icon[/code] for a list item with no icon. @@ -38,433 +31,331 @@ </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all items from the list. </description> </method> <method name="clear_item_opentype_features"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Removes all OpenType features from the item's text. </description> </method> <method name="deselect"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Ensures the item associated with the specified index is not selected. </description> </method> <method name="deselect_all"> - <return type="void"> - </return> + <return type="void" /> <description> Ensures there are no items selected. </description> </method> <method name="ensure_current_is_visible"> - <return type="void"> - </return> + <return type="void" /> <description> Ensure current selection is visible, adjusting the scroll position as necessary. </description> </method> <method name="get_item_at_position" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="exact" type="bool" default="false"> - </argument> + <return type="int" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="exact" type="bool" default="false" /> <description> Returns the item index at the given [code]position[/code]. When there is no item at that point, -1 will be returned if [code]exact[/code] is [code]true[/code], and the closest item index will be returned otherwise. </description> </method> <method name="get_item_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of items currently in the list. </description> </method> <method name="get_item_custom_bg_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="idx" type="int" /> <description> Returns the custom background color of the item specified by [code]idx[/code] index. </description> </method> <method name="get_item_custom_fg_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="idx" type="int" /> <description> Returns the custom foreground color of the item specified by [code]idx[/code] index. </description> </method> <method name="get_item_icon" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="idx" type="int" /> <description> Returns the icon associated with the specified index. </description> </method> <method name="get_item_icon_modulate" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="idx" type="int" /> <description> Returns a [Color] modulating item's icon at the specified index. </description> </method> <method name="get_item_icon_region" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Rect2" /> + <argument index="0" name="idx" type="int" /> <description> Returns the region of item's icon used. The whole icon will be used if the region has no area. </description> </method> <method name="get_item_language" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns item's text language code. </description> </method> <method name="get_item_metadata" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="idx" type="int" /> <description> Returns the metadata value of the specified index. </description> </method> <method name="get_item_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code] of the item's text. </description> </method> <method name="get_item_text" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the text associated with the specified index. </description> </method> <method name="get_item_text_direction" qualifiers="const"> - <return type="int" enum="Control.TextDirection"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" enum="Control.TextDirection" /> + <argument index="0" name="idx" type="int" /> <description> Returns item's text base writing direction. </description> </method> <method name="get_item_tooltip" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the tooltip hint associated with the specified index. </description> </method> <method name="get_selected_items"> - <return type="PackedInt32Array"> - </return> + <return type="PackedInt32Array" /> <description> Returns an array with the indexes of the selected items. </description> </method> <method name="get_v_scroll"> - <return type="VScrollBar"> - </return> + <return type="VScrollBar" /> <description> Returns the [Object] ID associated with the list. </description> </method> <method name="is_anything_selected"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if one or more items are selected. </description> </method> <method name="is_item_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the item at the specified index is disabled. </description> </method> <method name="is_item_icon_transposed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the item icon will be drawn transposed, i.e. the X and Y axes are swapped. </description> </method> <method name="is_item_selectable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the item at the specified index is selectable. </description> </method> <method name="is_item_tooltip_enabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the tooltip is enabled for specified item index. </description> </method> <method name="is_selected" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the item at the specified index is currently selected. </description> </method> <method name="move_item"> - <return type="void"> - </return> - <argument index="0" name="from_idx" type="int"> - </argument> - <argument index="1" name="to_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from_idx" type="int" /> + <argument index="1" name="to_idx" type="int" /> <description> Moves item from index [code]from_idx[/code] to [code]to_idx[/code]. </description> </method> <method name="remove_item"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Removes the item specified by [code]idx[/code] index from the list. </description> </method> <method name="select"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="single" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="single" type="bool" default="true" /> <description> Select the item at the specified index. [b]Note:[/b] This method does not trigger the item selection signal. </description> </method> <method name="set_item_custom_bg_color"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="custom_bg_color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="custom_bg_color" type="Color" /> <description> Sets the background color of the item specified by [code]idx[/code] index to the specified [Color]. </description> </method> <method name="set_item_custom_fg_color"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="custom_fg_color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="custom_fg_color" type="Color" /> <description> Sets the foreground color of the item specified by [code]idx[/code] index to the specified [Color]. </description> </method> <method name="set_item_disabled"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="disabled" type="bool" /> <description> Disables (or enables) the item at the specified index. Disabled items cannot be selected and do not trigger activation signals (when double-clicking or pressing [kbd]Enter[/kbd]). </description> </method> <method name="set_item_icon"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="icon" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="icon" type="Texture2D" /> <description> Sets (or replaces) the icon's [Texture2D] associated with the specified index. </description> </method> <method name="set_item_icon_modulate"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="modulate" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="modulate" type="Color" /> <description> Sets a modulating [Color] of the item associated with the specified index. </description> </method> <method name="set_item_icon_region"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="rect" type="Rect2" /> <description> Sets the region of item's icon used. The whole icon will be used if the region has no area. </description> </method> <method name="set_item_icon_transposed"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="transposed" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="transposed" type="bool" /> <description> Sets whether the item icon will be drawn transposed. </description> </method> <method name="set_item_language"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="language" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="language" type="String" /> <description> Sets language code of item's text used for line-breaking and text shaping algorithms, if left empty current locale is used instead. </description> </method> <method name="set_item_metadata"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="metadata" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="metadata" type="Variant" /> <description> Sets a value (of any type) to be stored with the item associated with the specified index. </description> </method> <method name="set_item_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> - <argument index="2" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="tag" type="String" /> + <argument index="2" name="value" type="int" /> <description> Sets OpenType feature [code]tag[/code] for the item's text. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url]. </description> </method> <method name="set_item_selectable"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="selectable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="selectable" type="bool" /> <description> Allows or disallows selection of the item associated with the specified index. </description> </method> <method name="set_item_text"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="text" type="String" /> <description> Sets text of the item associated with the specified index. </description> </method> <method name="set_item_text_direction"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="direction" type="int" enum="Control.TextDirection"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="direction" type="int" enum="Control.TextDirection" /> <description> Sets item's text base writing direction. </description> </method> <method name="set_item_tooltip"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="tooltip" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="tooltip" type="String" /> <description> Sets the tooltip hint for the item associated with the specified index. </description> </method> <method name="set_item_tooltip_enabled"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> Sets whether the tooltip hint is enabled for specified item index. </description> </method> <method name="sort_items_by_text"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts items in the list by their text. </description> @@ -515,17 +406,14 @@ </members> <signals> <signal name="item_activated"> - <argument index="0" name="index" type="int"> - </argument> + <argument index="0" name="index" type="int" /> <description> Triggered when specified list item is activated via double-clicking or by pressing [kbd]Enter[/kbd]. </description> </signal> <signal name="item_rmb_selected"> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="at_position" type="Vector2"> - </argument> + <argument index="0" name="index" type="int" /> + <argument index="1" name="at_position" type="Vector2" /> <description> Triggered when specified list item has been selected via right mouse clicking. The click position is also provided to allow appropriate popup of context menus at the correct location. @@ -533,18 +421,15 @@ </description> </signal> <signal name="item_selected"> - <argument index="0" name="index" type="int"> - </argument> + <argument index="0" name="index" type="int" /> <description> Triggered when specified item has been selected. [member allow_reselect] must be enabled to reselect an item. </description> </signal> <signal name="multi_selected"> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="selected" type="bool"> - </argument> + <argument index="0" name="index" type="int" /> + <argument index="1" name="selected" type="bool" /> <description> Triggered when a multiple selection is altered on a list allowing multiple selection. </description> @@ -555,8 +440,7 @@ </description> </signal> <signal name="rmb_clicked"> - <argument index="0" name="at_position" type="Vector2"> - </argument> + <argument index="0" name="at_position" type="Vector2" /> <description> Triggered when a right mouse click is issued within the rect of the list but on empty space. [member allow_rmb_select] must be enabled. diff --git a/doc/classes/JSON.xml b/doc/classes/JSON.xml index b95aaed143..cee7db08e9 100644 --- a/doc/classes/JSON.xml +++ b/doc/classes/JSON.xml @@ -30,48 +30,38 @@ </tutorials> <methods> <method name="get_data" qualifiers="const"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns the [Variant] containing the data of a successful [method parse]. [b]Note:[/b] It will return [code]Null[/code] if the last call to parse was unsuccessful or [method parse] has not yet been called. </description> </method> <method name="get_error_line" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns [code]0[/code] if the last call to [method parse] was successful, or the line number where the parse failed. </description> </method> <method name="get_error_message" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns an empty string if the last call to [method parse] was successful, or the error message if it failed. </description> </method> <method name="parse"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="json_string" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="json_string" type="String" /> <description> Attempts to parse the [code]json_string[/code] provided. Returns an [enum Error]. If the parse was successful, it returns [code]OK[/code] and the result can be retrieved using [method get_data]. If unsuccessful, use [method get_error_line] and [method get_error_message] for identifying the source of the failure. </description> </method> <method name="stringify"> - <return type="String"> - </return> - <argument index="0" name="data" type="Variant"> - </argument> - <argument index="1" name="indent" type="String" default=""""> - </argument> - <argument index="2" name="sort_keys" type="bool" default="true"> - </argument> - <argument index="3" name="full_precision" type="bool" default="false"> - </argument> + <return type="String" /> + <argument index="0" name="data" type="Variant" /> + <argument index="1" name="indent" type="String" default="""" /> + <argument index="2" name="sort_keys" type="bool" default="true" /> + <argument index="3" name="full_precision" type="bool" default="false" /> <description> Converts a [Variant] var to JSON text and returns the result. Useful for serializing data to store or send over the network. [b]Note:[/b] The JSON specification does not define integer or float types, but only a [i]number[/i] type. Therefore, converting a Variant to JSON text will convert all numerical values to [float] types. diff --git a/doc/classes/JSONRPC.xml b/doc/classes/JSONRPC.xml index 1e74159f58..30e99f4a30 100644 --- a/doc/classes/JSONRPC.xml +++ b/doc/classes/JSONRPC.xml @@ -8,74 +8,52 @@ </tutorials> <methods> <method name="make_notification"> - <return type="Dictionary"> - </return> - <argument index="0" name="method" type="String"> - </argument> - <argument index="1" name="params" type="Variant"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="method" type="String" /> + <argument index="1" name="params" type="Variant" /> <description> </description> </method> <method name="make_request"> - <return type="Dictionary"> - </return> - <argument index="0" name="method" type="String"> - </argument> - <argument index="1" name="params" type="Variant"> - </argument> - <argument index="2" name="id" type="Variant"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="method" type="String" /> + <argument index="1" name="params" type="Variant" /> + <argument index="2" name="id" type="Variant" /> <description> </description> </method> <method name="make_response"> - <return type="Dictionary"> - </return> - <argument index="0" name="result" type="Variant"> - </argument> - <argument index="1" name="id" type="Variant"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="result" type="Variant" /> + <argument index="1" name="id" type="Variant" /> <description> </description> </method> <method name="make_response_error" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="code" type="int"> - </argument> - <argument index="1" name="message" type="String"> - </argument> - <argument index="2" name="id" type="Variant" default="null"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="code" type="int" /> + <argument index="1" name="message" type="String" /> + <argument index="2" name="id" type="Variant" default="null" /> <description> </description> </method> <method name="process_action"> - <return type="Variant"> - </return> - <argument index="0" name="action" type="Variant"> - </argument> - <argument index="1" name="recurse" type="bool" default="false"> - </argument> + <return type="Variant" /> + <argument index="0" name="action" type="Variant" /> + <argument index="1" name="recurse" type="bool" default="false" /> <description> </description> </method> <method name="process_string"> - <return type="String"> - </return> - <argument index="0" name="action" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="action" type="String" /> <description> </description> </method> <method name="set_scope"> - <return type="void"> - </return> - <argument index="0" name="scope" type="String"> - </argument> - <argument index="1" name="target" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="scope" type="String" /> + <argument index="1" name="target" type="Object" /> <description> </description> </method> diff --git a/doc/classes/JavaClassWrapper.xml b/doc/classes/JavaClassWrapper.xml index 7bad336af9..90d988f9bb 100644 --- a/doc/classes/JavaClassWrapper.xml +++ b/doc/classes/JavaClassWrapper.xml @@ -8,10 +8,8 @@ </tutorials> <methods> <method name="wrap"> - <return type="JavaClass"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="JavaClass" /> + <argument index="0" name="name" type="String" /> <description> </description> </method> diff --git a/doc/classes/JavaScript.xml b/doc/classes/JavaScript.xml index c87e637ff5..d68b4492c7 100644 --- a/doc/classes/JavaScript.xml +++ b/doc/classes/JavaScript.xml @@ -12,32 +12,24 @@ </tutorials> <methods> <method name="create_callback"> - <return type="JavaScriptObject"> - </return> - <argument index="0" name="callable" type="Callable"> - </argument> + <return type="JavaScriptObject" /> + <argument index="0" name="callable" type="Callable" /> <description> Creates a reference to a [Callable] that can be used as a callback by JavaScript. The reference must be kept until the callback happens, or it won't be called at all. See [JavaScriptObject] for usage. </description> </method> <method name="create_object" qualifiers="vararg"> - <return type="Variant"> - </return> - <argument index="0" name="object" type="String"> - </argument> + <return type="Variant" /> + <argument index="0" name="object" type="String" /> <description> Creates a new JavaScript object using the [code]new[/code] constructor. The [code]object[/code] must a valid property of the JavaScript [code]window[/code]. See [JavaScriptObject] for usage. </description> </method> <method name="download_buffer"> - <return type="void"> - </return> - <argument index="0" name="buffer" type="PackedByteArray"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <argument index="2" name="mime" type="String" default=""application/octet-stream""> - </argument> + <return type="void" /> + <argument index="0" name="buffer" type="PackedByteArray" /> + <argument index="1" name="name" type="String" /> + <argument index="2" name="mime" type="String" default=""application/octet-stream"" /> <description> Prompts the user to download a file containing the specified [code]buffer[/code]. The file will have the given [code]name[/code] and [code]mime[/code] type. [b]Note:[/b] The browser may override the [url=https://en.wikipedia.org/wiki/Media_type]MIME type[/url] provided based on the file [code]name[/code]'s extension. @@ -46,22 +38,17 @@ </description> </method> <method name="eval"> - <return type="Variant"> - </return> - <argument index="0" name="code" type="String"> - </argument> - <argument index="1" name="use_global_execution_context" type="bool" default="false"> - </argument> + <return type="Variant" /> + <argument index="0" name="code" type="String" /> + <argument index="1" name="use_global_execution_context" type="bool" default="false" /> <description> Execute the string [code]code[/code] as JavaScript code within the browser window. This is a call to the actual global JavaScript function [code]eval()[/code]. If [code]use_global_execution_context[/code] is [code]true[/code], the code will be evaluated in the global execution context. Otherwise, it is evaluated in the execution context of a function within the engine's runtime environment. </description> </method> <method name="get_interface"> - <return type="JavaScriptObject"> - </return> - <argument index="0" name="interface" type="String"> - </argument> + <return type="JavaScriptObject" /> + <argument index="0" name="interface" type="String" /> <description> Returns an interface to a JavaScript object that can be used by scripts. The [code]interface[/code] must be a valid property of the JavaScript [code]window[/code]. The callback must accept a single [Array] argument, which will contain the JavaScript [code]arguments[/code]. See [JavaScriptObject] for usage. </description> diff --git a/doc/classes/Label.xml b/doc/classes/Label.xml index 9e96f11ccc..42ee246730 100644 --- a/doc/classes/Label.xml +++ b/doc/classes/Label.xml @@ -12,24 +12,20 @@ </tutorials> <methods> <method name="clear_opentype_features"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all OpenType features. </description> </method> <method name="get_line_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of lines of text the Label has. </description> </method> <method name="get_line_height" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="line" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="line" type="int" default="-1" /> <description> Returns the height of the line [code]line[/code]. If [code]line[/code] is set to [code]-1[/code], returns the biggest line height. @@ -37,35 +33,28 @@ </description> </method> <method name="get_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code]. </description> </method> <method name="get_total_character_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the total number of printable characters in the text (excluding spaces and newlines). </description> </method> <method name="get_visible_line_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of lines shown. Useful if the [Label]'s height cannot currently display all lines. </description> </method> <method name="set_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="tag" type="String"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="tag" type="String" /> + <argument index="1" name="value" type="int" /> <description> Returns OpenType feature [code]tag[/code]. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url]. </description> diff --git a/doc/classes/Light2D.xml b/doc/classes/Light2D.xml index 0e71f29b58..918e8a5c8a 100644 --- a/doc/classes/Light2D.xml +++ b/doc/classes/Light2D.xml @@ -12,16 +12,13 @@ </tutorials> <methods> <method name="get_height" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> </description> </method> <method name="set_height"> - <return type="void"> - </return> - <argument index="0" name="height" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="height" type="float" /> <description> </description> </method> diff --git a/doc/classes/Light3D.xml b/doc/classes/Light3D.xml index 815d20223d..380e9314d4 100644 --- a/doc/classes/Light3D.xml +++ b/doc/classes/Light3D.xml @@ -12,21 +12,16 @@ </tutorials> <methods> <method name="get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="Light3D.Param"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="Light3D.Param" /> <description> Returns the value of the specified [enum Light3D.Param] parameter. </description> </method> <method name="set_param"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="Light3D.Param"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="Light3D.Param" /> + <argument index="1" name="value" type="float" /> <description> Sets the value of the specified [enum Light3D.Param] parameter. </description> diff --git a/doc/classes/LightmapGIData.xml b/doc/classes/LightmapGIData.xml index 3a37c6dcb7..c577439c8f 100644 --- a/doc/classes/LightmapGIData.xml +++ b/doc/classes/LightmapGIData.xml @@ -8,50 +8,38 @@ </tutorials> <methods> <method name="add_user"> - <return type="void"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> - <argument index="1" name="uv_scale" type="Rect2"> - </argument> - <argument index="2" name="slice_index" type="int"> - </argument> - <argument index="3" name="sub_instance" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="NodePath" /> + <argument index="1" name="uv_scale" type="Rect2" /> + <argument index="2" name="slice_index" type="int" /> + <argument index="3" name="sub_instance" type="int" /> <description> </description> </method> <method name="clear_users"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="get_user_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_user_path" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="user_idx" type="int"> - </argument> + <return type="NodePath" /> + <argument index="0" name="user_idx" type="int" /> <description> </description> </method> <method name="is_using_spherical_harmonics" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="set_uses_spherical_harmonics"> - <return type="void"> - </return> - <argument index="0" name="uses_spherical_harmonics" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="uses_spherical_harmonics" type="bool" /> <description> </description> </method> diff --git a/doc/classes/Line2D.xml b/doc/classes/Line2D.xml index 587d5833b9..093ba51755 100644 --- a/doc/classes/Line2D.xml +++ b/doc/classes/Line2D.xml @@ -12,56 +12,44 @@ </tutorials> <methods> <method name="add_point"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="at_position" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="at_position" type="int" default="-1" /> <description> Adds a point at the [code]position[/code]. Appends the point at the end of the line. If [code]at_position[/code] is given, the point is inserted before the point number [code]at_position[/code], moving that point (and every point after) after the inserted point. If [code]at_position[/code] is not given, or is an illegal value ([code]at_position < 0[/code] or [code]at_position >= [method get_point_count][/code]), the point will be appended at the end of the point list. </description> </method> <method name="clear_points"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all points from the line. </description> </method> <method name="get_point_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the Line2D's amount of points. </description> </method> <method name="get_point_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="i" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="i" type="int" /> <description> Returns point [code]i[/code]'s position. </description> </method> <method name="remove_point"> - <return type="void"> - </return> - <argument index="0" name="i" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="i" type="int" /> <description> Removes the point at index [code]i[/code] from the line. </description> </method> <method name="set_point_position"> - <return type="void"> - </return> - <argument index="0" name="i" type="int"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="i" type="int" /> + <argument index="1" name="position" type="Vector2" /> <description> Overwrites the position in point [code]i[/code] with the supplied [code]position[/code]. </description> diff --git a/doc/classes/LineEdit.xml b/doc/classes/LineEdit.xml index af6fc738c7..45bb553c9c 100644 --- a/doc/classes/LineEdit.xml +++ b/doc/classes/LineEdit.xml @@ -32,99 +32,80 @@ </tutorials> <methods> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Erases the [LineEdit]'s [member text]. </description> </method> <method name="clear_opentype_features"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all OpenType features. </description> </method> <method name="delete_char_at_caret"> - <return type="void"> - </return> + <return type="void" /> <description> Deletes one character at the caret's current position (equivalent to pressing [kbd]Delete[/kbd]). </description> </method> <method name="delete_text"> - <return type="void"> - </return> - <argument index="0" name="from_column" type="int"> - </argument> - <argument index="1" name="to_column" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from_column" type="int" /> + <argument index="1" name="to_column" type="int" /> <description> Deletes a section of the [member text] going from position [code]from_column[/code] to [code]to_column[/code]. Both parameters should be within the text's length. </description> </method> <method name="deselect"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the current selection. </description> </method> <method name="get_menu" qualifiers="const"> - <return type="PopupMenu"> - </return> + <return type="PopupMenu" /> <description> Returns the [PopupMenu] of this [LineEdit]. By default, this menu is displayed when right-clicking on the [LineEdit]. </description> </method> <method name="get_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code]. </description> </method> <method name="get_scroll_offset" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the scroll offset due to [member caret_column], as a number of characters. </description> </method> <method name="insert_text_at_caret"> - <return type="void"> - </return> - <argument index="0" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="text" type="String" /> <description> Inserts [code]text[/code] at the caret. If the resulting value is longer than [member max_length], nothing happens. </description> </method> <method name="is_menu_visible" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the menu is visible. Use this instead of [code]get_menu().visible[/code] to improve performance (so the creation of the menu is avoided). </description> </method> <method name="menu_option"> - <return type="void"> - </return> - <argument index="0" name="option" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="option" type="int" /> <description> Executes a given action as defined in the [enum MenuItems] enum. </description> </method> <method name="select"> - <return type="void"> - </return> - <argument index="0" name="from" type="int" default="0"> - </argument> - <argument index="1" name="to" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="from" type="int" default="0" /> + <argument index="1" name="to" type="int" default="-1" /> <description> Selects characters inside [LineEdit] between [code]from[/code] and [code]to[/code]. By default, [code]from[/code] is at the beginning and [code]to[/code] at the end. [codeblocks] @@ -144,19 +125,15 @@ </description> </method> <method name="select_all"> - <return type="void"> - </return> + <return type="void" /> <description> Selects the whole [String]. </description> </method> <method name="set_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="tag" type="String"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="tag" type="String" /> + <argument index="1" name="value" type="int" /> <description> Returns OpenType feature [code]tag[/code]. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url]. </description> @@ -267,22 +244,19 @@ </members> <signals> <signal name="text_change_rejected"> - <argument index="0" name="rejected_substring" type="String"> - </argument> + <argument index="0" name="rejected_substring" type="String" /> <description> Emitted when appending text that overflows the [member max_length]. The appended text is truncated to fit [member max_length], and the part that couldn't fit is passed as the [code]rejected_substring[/code] argument. </description> </signal> <signal name="text_changed"> - <argument index="0" name="new_text" type="String"> - </argument> + <argument index="0" name="new_text" type="String" /> <description> Emitted when the text changes. </description> </signal> <signal name="text_submitted"> - <argument index="0" name="new_text" type="String"> - </argument> + <argument index="0" name="new_text" type="String" /> <description> Emitted when the user presses [constant KEY_ENTER] on the [LineEdit]. </description> diff --git a/doc/classes/LinkButton.xml b/doc/classes/LinkButton.xml index 51b20cd04d..dbf13fd842 100644 --- a/doc/classes/LinkButton.xml +++ b/doc/classes/LinkButton.xml @@ -11,28 +11,22 @@ </tutorials> <methods> <method name="clear_opentype_features"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all OpenType features. </description> </method> <method name="get_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code]. </description> </method> <method name="set_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="tag" type="String"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="tag" type="String" /> + <argument index="1" name="value" type="int" /> <description> Returns OpenType feature [code]tag[/code]. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url]. </description> diff --git a/doc/classes/Listener3D.xml b/doc/classes/Listener3D.xml index b2fcbe534d..9cc803f241 100644 --- a/doc/classes/Listener3D.xml +++ b/doc/classes/Listener3D.xml @@ -11,30 +11,26 @@ </tutorials> <methods> <method name="clear_current"> - <return type="void"> - </return> + <return type="void" /> <description> Disables the listener to use the current camera's listener instead. </description> </method> <method name="get_listener_transform" qualifiers="const"> - <return type="Transform3D"> - </return> + <return type="Transform3D" /> <description> Returns the listener's global orthonormalized [Transform3D]. </description> </method> <method name="is_current" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the listener was made current using [method make_current], [code]false[/code] otherwise. [b]Note:[/b] There may be more than one Listener3D marked as "current" in the scene tree, but only the one that was made current last will be used. </description> </method> <method name="make_current"> - <return type="void"> - </return> + <return type="void" /> <description> Enables the listener. This will override the current camera's listener. </description> diff --git a/doc/classes/MainLoop.xml b/doc/classes/MainLoop.xml index 537ecf2b2b..11124a1436 100644 --- a/doc/classes/MainLoop.xml +++ b/doc/classes/MainLoop.xml @@ -45,34 +45,28 @@ </tutorials> <methods> <method name="_finalize" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called before the program exits. </description> </method> <method name="_initialize" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called once during initialization. </description> </method> <method name="_physics_process" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="delta" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="delta" type="float" /> <description> Called each physics frame with the time since the last physics frame as argument ([code]delta[/code], in seconds). Equivalent to [method Node._physics_process]. If implemented, the method must return a boolean value. [code]true[/code] ends the main loop, while [code]false[/code] lets it proceed to the next frame. </description> </method> <method name="_process" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="delta" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="delta" type="float" /> <description> Called each process (idle) frame with the time since the last process frame as argument (in seconds). Equivalent to [method Node._process]. If implemented, the method must return a boolean value. [code]true[/code] ends the main loop, while [code]false[/code] lets it proceed to the next frame. @@ -81,10 +75,8 @@ </methods> <signals> <signal name="on_request_permissions_result"> - <argument index="0" name="permission" type="String"> - </argument> - <argument index="1" name="granted" type="bool"> - </argument> + <argument index="0" name="permission" type="String" /> + <argument index="1" name="granted" type="bool" /> <description> Emitted when a user responds to a permission request. </description> diff --git a/doc/classes/Marshalls.xml b/doc/classes/Marshalls.xml index 4250ffd700..0f36dd11ca 100644 --- a/doc/classes/Marshalls.xml +++ b/doc/classes/Marshalls.xml @@ -10,60 +10,46 @@ </tutorials> <methods> <method name="base64_to_raw"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="base64_str" type="String"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="base64_str" type="String" /> <description> Returns a decoded [PackedByteArray] corresponding to the Base64-encoded string [code]base64_str[/code]. </description> </method> <method name="base64_to_utf8"> - <return type="String"> - </return> - <argument index="0" name="base64_str" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="base64_str" type="String" /> <description> Returns a decoded string corresponding to the Base64-encoded string [code]base64_str[/code]. </description> </method> <method name="base64_to_variant"> - <return type="Variant"> - </return> - <argument index="0" name="base64_str" type="String"> - </argument> - <argument index="1" name="allow_objects" type="bool" default="false"> - </argument> + <return type="Variant" /> + <argument index="0" name="base64_str" type="String" /> + <argument index="1" name="allow_objects" type="bool" default="false" /> <description> Returns a decoded [Variant] corresponding to the Base64-encoded string [code]base64_str[/code]. If [code]allow_objects[/code] is [code]true[/code], decoding objects is allowed. [b]Warning:[/b] Deserialized objects can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats such as remote code execution. </description> </method> <method name="raw_to_base64"> - <return type="String"> - </return> - <argument index="0" name="array" type="PackedByteArray"> - </argument> + <return type="String" /> + <argument index="0" name="array" type="PackedByteArray" /> <description> Returns a Base64-encoded string of a given [PackedByteArray]. </description> </method> <method name="utf8_to_base64"> - <return type="String"> - </return> - <argument index="0" name="utf8_str" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="utf8_str" type="String" /> <description> Returns a Base64-encoded string of the UTF-8 string [code]utf8_str[/code]. </description> </method> <method name="variant_to_base64"> - <return type="String"> - </return> - <argument index="0" name="variant" type="Variant"> - </argument> - <argument index="1" name="full_objects" type="bool" default="false"> - </argument> + <return type="String" /> + <argument index="0" name="variant" type="Variant" /> + <argument index="1" name="full_objects" type="bool" default="false" /> <description> Returns a Base64-encoded string of the [Variant] [code]variant[/code]. If [code]full_objects[/code] is [code]true[/code], encoding objects is allowed (and can potentially include code). </description> diff --git a/doc/classes/Material.xml b/doc/classes/Material.xml index 0d287a5d1d..a3e98228c6 100644 --- a/doc/classes/Material.xml +++ b/doc/classes/Material.xml @@ -12,8 +12,7 @@ </tutorials> <methods> <method name="inspect_native_shader_code"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> diff --git a/doc/classes/MenuButton.xml b/doc/classes/MenuButton.xml index 3b37853d70..2d4df97895 100644 --- a/doc/classes/MenuButton.xml +++ b/doc/classes/MenuButton.xml @@ -12,17 +12,14 @@ </tutorials> <methods> <method name="get_popup" qualifiers="const"> - <return type="PopupMenu"> - </return> + <return type="PopupMenu" /> <description> Returns the [PopupMenu] contained in this button. </description> </method> <method name="set_disable_shortcuts"> - <return type="void"> - </return> - <argument index="0" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="disabled" type="bool" /> <description> If [code]true[/code], shortcuts are disabled and cannot be used to trigger the button. </description> diff --git a/doc/classes/Mesh.xml b/doc/classes/Mesh.xml index 2cc0bd2ef9..bfa55c2d35 100644 --- a/doc/classes/Mesh.xml +++ b/doc/classes/Mesh.xml @@ -14,12 +14,9 @@ </tutorials> <methods> <method name="create_convex_shape" qualifiers="const"> - <return type="Shape3D"> - </return> - <argument index="0" name="clean" type="bool" default="true"> - </argument> - <argument index="1" name="simplify" type="bool" default="false"> - </argument> + <return type="Shape3D" /> + <argument index="0" name="clean" type="bool" default="true" /> + <argument index="1" name="simplify" type="bool" default="false" /> <description> Calculate a [ConvexPolygonShape3D] from the mesh. If [code]clean[/code] is [code]true[/code] (default), duplicate and interior vertices are removed automatically. You can set it to [code]false[/code] to make the process faster if not needed. @@ -27,85 +24,69 @@ </description> </method> <method name="create_outline" qualifiers="const"> - <return type="Mesh"> - </return> - <argument index="0" name="margin" type="float"> - </argument> + <return type="Mesh" /> + <argument index="0" name="margin" type="float" /> <description> Calculate an outline mesh at a defined offset (margin) from the original mesh. [b]Note:[/b] This method typically returns the vertices in reverse order (e.g. clockwise to counterclockwise). </description> </method> <method name="create_trimesh_shape" qualifiers="const"> - <return type="Shape3D"> - </return> + <return type="Shape3D" /> <description> Calculate a [ConcavePolygonShape3D] from the mesh. </description> </method> <method name="generate_triangle_mesh" qualifiers="const"> - <return type="TriangleMesh"> - </return> + <return type="TriangleMesh" /> <description> Generate a [TriangleMesh] from the mesh. </description> </method> <method name="get_aabb" qualifiers="const"> - <return type="AABB"> - </return> + <return type="AABB" /> <description> Returns the smallest [AABB] enclosing this mesh in local space. Not affected by [code]custom_aabb[/code]. See also [method VisualInstance3D.get_transformed_aabb]. [b]Note:[/b] This is only implemented for [ArrayMesh] and [PrimitiveMesh]. </description> </method> <method name="get_faces" qualifiers="const"> - <return type="PackedVector3Array"> - </return> + <return type="PackedVector3Array" /> <description> Returns all the vertices that make up the faces of the mesh. Each three vertices represent one triangle. </description> </method> <method name="get_surface_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of surfaces that the [Mesh] holds. </description> </method> <method name="surface_get_arrays" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="surf_idx" type="int" /> <description> Returns the arrays for the vertices, normals, uvs, etc. that make up the requested surface (see [method ArrayMesh.add_surface_from_arrays]). </description> </method> <method name="surface_get_blend_shape_arrays" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="surf_idx" type="int" /> <description> Returns the blend shape arrays for the requested surface. </description> </method> <method name="surface_get_material" qualifiers="const"> - <return type="Material"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> + <return type="Material" /> + <argument index="0" name="surf_idx" type="int" /> <description> Returns a [Material] in a given surface. Surface is rendered using this material. </description> </method> <method name="surface_set_material"> - <return type="void"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <argument index="1" name="material" type="Material"> - </argument> + <return type="void" /> + <argument index="0" name="surf_idx" type="int" /> + <argument index="1" name="material" type="Material" /> <description> Sets a [Material] for a given surface. Surface will be rendered using this material. </description> diff --git a/doc/classes/MeshDataTool.xml b/doc/classes/MeshDataTool.xml index c0ee1e1956..338deed0be 100644 --- a/doc/classes/MeshDataTool.xml +++ b/doc/classes/MeshDataTool.xml @@ -52,366 +52,281 @@ </tutorials> <methods> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears all data currently in MeshDataTool. </description> </method> <method name="commit_to_surface"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="mesh" type="ArrayMesh"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="mesh" type="ArrayMesh" /> <description> Adds a new surface to specified [Mesh] with edited data. </description> </method> <method name="create_from_surface"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="mesh" type="ArrayMesh"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="mesh" type="ArrayMesh" /> + <argument index="1" name="surface" type="int" /> <description> Uses specified surface of given [Mesh] to populate data for MeshDataTool. Requires [Mesh] with primitive type [constant Mesh.PRIMITIVE_TRIANGLES]. </description> </method> <method name="get_edge_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of edges in this [Mesh]. </description> </method> <method name="get_edge_faces" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="idx" type="int" /> <description> Returns array of faces that touch given edge. </description> </method> <method name="get_edge_meta" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="idx" type="int" /> <description> Returns meta information assigned to given edge. </description> </method> <method name="get_edge_vertex" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="vertex" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="vertex" type="int" /> <description> Returns index of specified vertex connected to given edge. Vertex argument can only be 0 or 1 because edges are comprised of two vertices. </description> </method> <method name="get_face_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of faces in this [Mesh]. </description> </method> <method name="get_face_edge" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="edge" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="edge" type="int" /> <description> Returns specified edge associated with given face. Edge argument must 2 or less because a face only has three edges. </description> </method> <method name="get_face_meta" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="idx" type="int" /> <description> Returns the metadata associated with the given face. </description> </method> <method name="get_face_normal" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="idx" type="int" /> <description> Calculates and returns the face normal of the given face. </description> </method> <method name="get_face_vertex" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="vertex" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="vertex" type="int" /> <description> Returns the specified vertex of the given face. Vertex argument must be 2 or less because faces contain three vertices. </description> </method> <method name="get_format" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the [Mesh]'s format. Format is an integer made up of [Mesh] format flags combined together. For example, a mesh containing both vertices and normals would return a format of [code]3[/code] because [constant Mesh.ARRAY_FORMAT_VERTEX] is [code]1[/code] and [constant Mesh.ARRAY_FORMAT_NORMAL] is [code]2[/code]. See [enum Mesh.ArrayFormat] for a list of format flags. </description> </method> <method name="get_material" qualifiers="const"> - <return type="Material"> - </return> + <return type="Material" /> <description> Returns the material assigned to the [Mesh]. </description> </method> <method name="get_vertex" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="idx" type="int" /> <description> Returns the vertex at given index. </description> </method> <method name="get_vertex_bones" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="idx" type="int" /> <description> Returns the bones of the given vertex. </description> </method> <method name="get_vertex_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="idx" type="int" /> <description> Returns the color of the given vertex. </description> </method> <method name="get_vertex_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the total number of vertices in [Mesh]. </description> </method> <method name="get_vertex_edges" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="idx" type="int" /> <description> Returns an array of edges that share the given vertex. </description> </method> <method name="get_vertex_faces" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="idx" type="int" /> <description> Returns an array of faces that share the given vertex. </description> </method> <method name="get_vertex_meta" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="idx" type="int" /> <description> Returns the metadata associated with the given vertex. </description> </method> <method name="get_vertex_normal" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="idx" type="int" /> <description> Returns the normal of the given vertex. </description> </method> <method name="get_vertex_tangent" qualifiers="const"> - <return type="Plane"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Plane" /> + <argument index="0" name="idx" type="int" /> <description> Returns the tangent of the given vertex. </description> </method> <method name="get_vertex_uv" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="idx" type="int" /> <description> Returns the UV of the given vertex. </description> </method> <method name="get_vertex_uv2" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="idx" type="int" /> <description> Returns the UV2 of the given vertex. </description> </method> <method name="get_vertex_weights" qualifiers="const"> - <return type="PackedFloat32Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="PackedFloat32Array" /> + <argument index="0" name="idx" type="int" /> <description> Returns bone weights of the given vertex. </description> </method> <method name="set_edge_meta"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="meta" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="meta" type="Variant" /> <description> Sets the metadata of the given edge. </description> </method> <method name="set_face_meta"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="meta" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="meta" type="Variant" /> <description> Sets the metadata of the given face. </description> </method> <method name="set_material"> - <return type="void"> - </return> - <argument index="0" name="material" type="Material"> - </argument> + <return type="void" /> + <argument index="0" name="material" type="Material" /> <description> Sets the material to be used by newly-constructed [Mesh]. </description> </method> <method name="set_vertex"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="vertex" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="vertex" type="Vector3" /> <description> Sets the position of the given vertex. </description> </method> <method name="set_vertex_bones"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="bones" type="PackedInt32Array"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="bones" type="PackedInt32Array" /> <description> Sets the bones of the given vertex. </description> </method> <method name="set_vertex_color"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="color" type="Color" /> <description> Sets the color of the given vertex. </description> </method> <method name="set_vertex_meta"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="meta" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="meta" type="Variant" /> <description> Sets the metadata associated with the given vertex. </description> </method> <method name="set_vertex_normal"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="normal" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="normal" type="Vector3" /> <description> Sets the normal of the given vertex. </description> </method> <method name="set_vertex_tangent"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="tangent" type="Plane"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="tangent" type="Plane" /> <description> Sets the tangent of the given vertex. </description> </method> <method name="set_vertex_uv"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="uv" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="uv" type="Vector2" /> <description> Sets the UV of the given vertex. </description> </method> <method name="set_vertex_uv2"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="uv2" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="uv2" type="Vector2" /> <description> Sets the UV2 of the given vertex. </description> </method> <method name="set_vertex_weights"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="weights" type="PackedFloat32Array"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="weights" type="PackedFloat32Array" /> <description> Sets the bone weights of the given vertex. </description> diff --git a/doc/classes/MeshInstance3D.xml b/doc/classes/MeshInstance3D.xml index 930301a742..665d5d3c77 100644 --- a/doc/classes/MeshInstance3D.xml +++ b/doc/classes/MeshInstance3D.xml @@ -14,12 +14,9 @@ </tutorials> <methods> <method name="create_convex_collision"> - <return type="void"> - </return> - <argument index="0" name="clean" type="bool" default="true"> - </argument> - <argument index="1" name="simplify" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="clean" type="bool" default="true" /> + <argument index="1" name="simplify" type="bool" default="false" /> <description> This helper creates a [StaticBody3D] child node with a [ConvexPolygonShape3D] collision shape calculated from the mesh geometry. It's mainly used for testing. If [code]clean[/code] is [code]true[/code] (default), duplicate and interior vertices are removed automatically. You can set it to [code]false[/code] to make the process faster if not needed. @@ -27,58 +24,47 @@ </description> </method> <method name="create_debug_tangents"> - <return type="void"> - </return> + <return type="void" /> <description> This helper creates a [MeshInstance3D] child node with gizmos at every vertex calculated from the mesh geometry. It's mainly used for testing. </description> </method> <method name="create_multiple_convex_collisions"> - <return type="void"> - </return> + <return type="void" /> <description> This helper creates a [StaticBody3D] child node with multiple [ConvexPolygonShape3D] collision shapes calculated from the mesh geometry via convex decomposition. It's mainly used for testing. </description> </method> <method name="create_trimesh_collision"> - <return type="void"> - </return> + <return type="void" /> <description> This helper creates a [StaticBody3D] child node with a [ConcavePolygonShape3D] collision shape calculated from the mesh geometry. It's mainly used for testing. </description> </method> <method name="get_active_material" qualifiers="const"> - <return type="Material"> - </return> - <argument index="0" name="surface" type="int"> - </argument> + <return type="Material" /> + <argument index="0" name="surface" type="int" /> <description> Returns the [Material] that will be used by the [Mesh] when drawing. This can return the [member GeometryInstance3D.material_override], the surface override [Material] defined in this [MeshInstance3D], or the surface [Material] defined in the [Mesh]. For example, if [member GeometryInstance3D.material_override] is used, all surfaces will return the override material. </description> </method> <method name="get_surface_override_material" qualifiers="const"> - <return type="Material"> - </return> - <argument index="0" name="surface" type="int"> - </argument> + <return type="Material" /> + <argument index="0" name="surface" type="int" /> <description> Returns the override [Material] for the specified surface of the [Mesh] resource. </description> </method> <method name="get_surface_override_material_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of surface override materials. This is equivalent to [method Mesh.get_surface_count]. </description> </method> <method name="set_surface_override_material"> - <return type="void"> - </return> - <argument index="0" name="surface" type="int"> - </argument> - <argument index="1" name="material" type="Material"> - </argument> + <return type="void" /> + <argument index="0" name="surface" type="int" /> + <argument index="1" name="material" type="Material" /> <description> Sets the override [Material] for the specified surface of the [Mesh] resource. This material is associated with this [MeshInstance3D] rather than with the [Mesh] resource. </description> diff --git a/doc/classes/MeshLibrary.xml b/doc/classes/MeshLibrary.xml index b33bcc89e3..9e0292f946 100644 --- a/doc/classes/MeshLibrary.xml +++ b/doc/classes/MeshLibrary.xml @@ -12,172 +12,133 @@ </tutorials> <methods> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the library. </description> </method> <method name="create_item"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> Creates a new item in the library with the given ID. You can get an unused ID from [method get_last_unused_item_id]. </description> </method> <method name="find_item_by_name" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="String" /> <description> Returns the first item with the given name. </description> </method> <method name="get_item_list" qualifiers="const"> - <return type="PackedInt32Array"> - </return> + <return type="PackedInt32Array" /> <description> Returns the list of item IDs in use. </description> </method> <method name="get_item_mesh" qualifiers="const"> - <return type="Mesh"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="Mesh" /> + <argument index="0" name="id" type="int" /> <description> Returns the item's mesh. </description> </method> <method name="get_item_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="id" type="int" /> <description> Returns the item's name. </description> </method> <method name="get_item_navmesh" qualifiers="const"> - <return type="NavigationMesh"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="NavigationMesh" /> + <argument index="0" name="id" type="int" /> <description> Returns the item's navigation mesh. </description> </method> <method name="get_item_navmesh_transform" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="id" type="int" /> <description> Returns the transform applied to the item's navigation mesh. </description> </method> <method name="get_item_preview" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="id" type="int" /> <description> When running in the editor, returns a generated item preview (a 3D rendering in isometric perspective). When used in a running project, returns the manually-defined item preview which can be set using [method set_item_preview]. Returns an empty [Texture2D] if no preview was manually set in a running project. </description> </method> <method name="get_item_shapes" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="id" type="int" /> <description> Returns an item's collision shapes. The array consists of each [Shape3D] followed by its [Transform3D]. </description> </method> <method name="get_last_unused_item_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Gets an unused ID for a new item. </description> </method> <method name="remove_item"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> Removes the item. </description> </method> <method name="set_item_mesh"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="mesh" type="Mesh"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="mesh" type="Mesh" /> <description> Sets the item's mesh. </description> </method> <method name="set_item_name"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="name" type="String" /> <description> Sets the item's name. This name is shown in the editor. It can also be used to look up the item later using [method find_item_by_name]. </description> </method> <method name="set_item_navmesh"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="navmesh" type="NavigationMesh"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="navmesh" type="NavigationMesh" /> <description> Sets the item's navigation mesh. </description> </method> <method name="set_item_navmesh_transform"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="navmesh" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="navmesh" type="Transform3D" /> <description> Sets the transform to apply to the item's navigation mesh. </description> </method> <method name="set_item_preview"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="texture" type="Texture2D" /> <description> Sets a texture to use as the item's preview icon in the editor. </description> </method> <method name="set_item_shapes"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="shapes" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="shapes" type="Array" /> <description> Sets an item's collision shapes. The array should consist of [Shape3D] objects, each followed by a [Transform3D] that will be applied to it. For shapes that should not have a transform, use [constant Transform3D.IDENTITY]. diff --git a/doc/classes/MethodTweener.xml b/doc/classes/MethodTweener.xml index 3badeb164b..1b93b20d9f 100644 --- a/doc/classes/MethodTweener.xml +++ b/doc/classes/MethodTweener.xml @@ -11,28 +11,22 @@ </tutorials> <methods> <method name="set_delay"> - <return type="MethodTweener"> - </return> - <argument index="0" name="delay" type="float"> - </argument> + <return type="MethodTweener" /> + <argument index="0" name="delay" type="float" /> <description> Sets the time in seconds after which the [MethodTweener] will start interpolating. By default there's no delay. </description> </method> <method name="set_ease"> - <return type="MethodTweener"> - </return> - <argument index="0" name="ease" type="int" enum="Tween.EaseType"> - </argument> + <return type="MethodTweener" /> + <argument index="0" name="ease" type="int" enum="Tween.EaseType" /> <description> Sets the type of used easing from [enum Tween.EaseType]. If not set, the default easing is used from the [Tween] that contains this Tweener. </description> </method> <method name="set_trans"> - <return type="MethodTweener"> - </return> - <argument index="0" name="trans" type="int" enum="Tween.TransitionType"> - </argument> + <return type="MethodTweener" /> + <argument index="0" name="trans" type="int" enum="Tween.TransitionType" /> <description> Sets the type of used transition from [enum Tween.TransitionType]. If not set, the default transition is used from the [Tween] that contains this Tweener. </description> diff --git a/doc/classes/MultiMesh.xml b/doc/classes/MultiMesh.xml index 45326f12e9..7b4a53a810 100644 --- a/doc/classes/MultiMesh.xml +++ b/doc/classes/MultiMesh.xml @@ -15,90 +15,69 @@ </tutorials> <methods> <method name="get_aabb" qualifiers="const"> - <return type="AABB"> - </return> + <return type="AABB" /> <description> Returns the visibility axis-aligned bounding box in local space. See also [method VisualInstance3D.get_transformed_aabb]. </description> </method> <method name="get_instance_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="instance" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="instance" type="int" /> <description> Gets a specific instance's color. </description> </method> <method name="get_instance_custom_data" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="instance" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="instance" type="int" /> <description> Returns the custom data that has been set for a specific instance. </description> </method> <method name="get_instance_transform" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="instance" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="instance" type="int" /> <description> Returns the [Transform3D] of a specific instance. </description> </method> <method name="get_instance_transform_2d" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="instance" type="int"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="instance" type="int" /> <description> Returns the [Transform2D] of a specific instance. </description> </method> <method name="set_instance_color"> - <return type="void"> - </return> - <argument index="0" name="instance" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="int" /> + <argument index="1" name="color" type="Color" /> <description> Sets the color of a specific instance by [i]multiplying[/i] the mesh's existing vertex colors. For the color to take effect, ensure that [member use_colors] is [code]true[/code] on the [MultiMesh] and [member BaseMaterial3D.vertex_color_use_as_albedo] is [code]true[/code] on the material. </description> </method> <method name="set_instance_custom_data"> - <return type="void"> - </return> - <argument index="0" name="instance" type="int"> - </argument> - <argument index="1" name="custom_data" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="int" /> + <argument index="1" name="custom_data" type="Color" /> <description> Sets custom data for a specific instance. Although [Color] is used, it is just a container for 4 floating point numbers. For the custom data to be used, ensure that [member use_custom_data] is [code]true[/code]. </description> </method> <method name="set_instance_transform"> - <return type="void"> - </return> - <argument index="0" name="instance" type="int"> - </argument> - <argument index="1" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="int" /> + <argument index="1" name="transform" type="Transform3D" /> <description> Sets the [Transform3D] for a specific instance. </description> </method> <method name="set_instance_transform_2d"> - <return type="void"> - </return> - <argument index="0" name="instance" type="int"> - </argument> - <argument index="1" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="int" /> + <argument index="1" name="transform" type="Transform2D" /> <description> Sets the [Transform2D] for a specific instance. </description> diff --git a/doc/classes/MultiplayerAPI.xml b/doc/classes/MultiplayerAPI.xml index 82b929c1f7..104f649921 100644 --- a/doc/classes/MultiplayerAPI.xml +++ b/doc/classes/MultiplayerAPI.xml @@ -13,65 +13,54 @@ </tutorials> <methods> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the current MultiplayerAPI network state (you shouldn't call this unless you know what you are doing). </description> </method> <method name="get_network_connected_peers" qualifiers="const"> - <return type="PackedInt32Array"> - </return> + <return type="PackedInt32Array" /> <description> Returns the peer IDs of all connected peers of this MultiplayerAPI's [member network_peer]. </description> </method> <method name="get_network_unique_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the unique peer ID of this MultiplayerAPI's [member network_peer]. </description> </method> <method name="get_rpc_sender_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the sender's peer ID for the RPC currently being executed. [b]Note:[/b] If not inside an RPC this method will return 0. </description> </method> <method name="has_network_peer" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if there is a [member network_peer] set. </description> </method> <method name="is_network_server" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this MultiplayerAPI's [member network_peer] is in server mode (listening for connections). </description> </method> <method name="poll"> - <return type="void"> - </return> + <return type="void" /> <description> Method used for polling the MultiplayerAPI. You only need to worry about this if you are using [member Node.custom_multiplayer] override or you set [member SceneTree.multiplayer_poll] to [code]false[/code]. By default, [SceneTree] will poll its MultiplayerAPI for you. [b]Note:[/b] This method results in RPCs and RSETs being called, so they will be executed in the same context of this function (e.g. [code]_process[/code], [code]physics[/code], [Thread]). </description> </method> <method name="send_bytes"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="bytes" type="PackedByteArray"> - </argument> - <argument index="1" name="id" type="int" default="0"> - </argument> - <argument index="2" name="mode" type="int" enum="MultiplayerPeer.TransferMode" default="2"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="bytes" type="PackedByteArray" /> + <argument index="1" name="id" type="int" default="0" /> + <argument index="2" name="mode" type="int" enum="MultiplayerPeer.TransferMode" default="2" /> <description> Sends the given raw [code]bytes[/code] to a specific peer identified by [code]id[/code] (see [method MultiplayerPeer.set_target_peer]). Default ID is [code]0[/code], i.e. broadcast to all peers. </description> @@ -105,24 +94,20 @@ </description> </signal> <signal name="network_peer_connected"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted when this MultiplayerAPI's [member network_peer] connects with a new peer. ID is the peer ID of the new peer. Clients get notified when other clients connect to the same server. Upon connecting to a server, a client also receives this signal for the server (with ID being 1). </description> </signal> <signal name="network_peer_disconnected"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted when this MultiplayerAPI's [member network_peer] disconnects from a peer. Clients get notified when other clients disconnect from the same server. </description> </signal> <signal name="network_peer_packet"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="packet" type="PackedByteArray"> - </argument> + <argument index="0" name="id" type="int" /> + <argument index="1" name="packet" type="PackedByteArray" /> <description> Emitted when this MultiplayerAPI's [member network_peer] receive a [code]packet[/code] with custom data (see [method send_bytes]). ID is the peer ID of the peer that sent the packet. </description> diff --git a/doc/classes/MultiplayerPeer.xml b/doc/classes/MultiplayerPeer.xml index fa8f0e2de9..88cd058c51 100644 --- a/doc/classes/MultiplayerPeer.xml +++ b/doc/classes/MultiplayerPeer.xml @@ -13,45 +13,38 @@ </tutorials> <methods> <method name="generate_unique_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns a randomly generated integer that can be used as a network unique ID. </description> </method> <method name="get_connection_status" qualifiers="const"> - <return type="int" enum="MultiplayerPeer.ConnectionStatus"> - </return> + <return type="int" enum="MultiplayerPeer.ConnectionStatus" /> <description> Returns the current state of the connection. See [enum ConnectionStatus]. </description> </method> <method name="get_packet_peer" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the ID of the [MultiplayerPeer] who sent the most recent packet. </description> </method> <method name="get_unique_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the ID of this [MultiplayerPeer]. </description> </method> <method name="poll"> - <return type="void"> - </return> + <return type="void" /> <description> Waits up to 1 second to receive a new network event. </description> </method> <method name="set_target_peer"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> Sets the peer to which packets will be sent. The [code]id[/code] can be one of: [constant TARGET_PEER_BROADCAST] to send to all connected peers, [constant TARGET_PEER_SERVER] to send to the peer acting as server, a valid peer ID to send to that specific peer, a negative peer ID to send to all peers except that one. By default, the target peer is [constant TARGET_PEER_BROADCAST]. @@ -78,15 +71,13 @@ </description> </signal> <signal name="peer_connected"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted by the server when a client connects. </description> </signal> <signal name="peer_disconnected"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted by the server when a client disconnects. </description> diff --git a/doc/classes/Mutex.xml b/doc/classes/Mutex.xml index dfda614f8e..f97b2344a5 100644 --- a/doc/classes/Mutex.xml +++ b/doc/classes/Mutex.xml @@ -11,22 +11,19 @@ </tutorials> <methods> <method name="lock"> - <return type="void"> - </return> + <return type="void" /> <description> Locks this [Mutex], blocks until it is unlocked by the current owner. </description> </method> <method name="try_lock"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Tries locking this [Mutex], but does not block. Returns [constant OK] on success, [constant ERR_BUSY] otherwise. </description> </method> <method name="unlock"> - <return type="void"> - </return> + <return type="void" /> <description> Unlocks this [Mutex], leaving it to other threads. </description> diff --git a/doc/classes/NativeExtension.xml b/doc/classes/NativeExtension.xml index c48af7df7b..fa8575383c 100644 --- a/doc/classes/NativeExtension.xml +++ b/doc/classes/NativeExtension.xml @@ -8,38 +8,30 @@ </tutorials> <methods> <method name="close_library"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="get_minimum_library_initialization_level" qualifiers="const"> - <return type="int" enum="NativeExtension.InitializationLevel"> - </return> + <return type="int" enum="NativeExtension.InitializationLevel" /> <description> </description> </method> <method name="initialize_library"> - <return type="void"> - </return> - <argument index="0" name="level" type="int" enum="NativeExtension.InitializationLevel"> - </argument> + <return type="void" /> + <argument index="0" name="level" type="int" enum="NativeExtension.InitializationLevel" /> <description> </description> </method> <method name="is_library_open" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="open_library"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="entry_symbol" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="entry_symbol" type="String" /> <description> </description> </method> diff --git a/doc/classes/NativeExtensionManager.xml b/doc/classes/NativeExtensionManager.xml index ba9018ff4c..c14ce94aff 100644 --- a/doc/classes/NativeExtensionManager.xml +++ b/doc/classes/NativeExtensionManager.xml @@ -8,40 +8,31 @@ </tutorials> <methods> <method name="get_extension"> - <return type="NativeExtension"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="NativeExtension" /> + <argument index="0" name="path" type="String" /> <description> </description> </method> <method name="get_loaded_extensions" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> </description> </method> <method name="load_extension"> - <return type="int" enum="NativeExtensionManager.LoadStatus"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="NativeExtensionManager.LoadStatus" /> + <argument index="0" name="path" type="String" /> <description> </description> </method> <method name="reload_extension"> - <return type="int" enum="NativeExtensionManager.LoadStatus"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="NativeExtensionManager.LoadStatus" /> + <argument index="0" name="path" type="String" /> <description> </description> </method> <method name="unload_extension"> - <return type="int" enum="NativeExtensionManager.LoadStatus"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="NativeExtensionManager.LoadStatus" /> + <argument index="0" name="path" type="String" /> <description> </description> </method> diff --git a/doc/classes/NavigationAgent2D.xml b/doc/classes/NavigationAgent2D.xml index de81ae4d91..c05f7c2094 100644 --- a/doc/classes/NavigationAgent2D.xml +++ b/doc/classes/NavigationAgent2D.xml @@ -10,88 +10,74 @@ </tutorials> <methods> <method name="distance_to_target" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the distance to the target location, using the agent's global position. The user must set the target location with [method set_target_location] in order for this to be accurate. </description> </method> <method name="get_final_location"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the reachable final location in global coordinates. This can change if the navigation path is altered in any way. </description> </method> <method name="get_nav_path" qualifiers="const"> - <return type="PackedVector2Array"> - </return> + <return type="PackedVector2Array" /> <description> Returns the path from start to finish in global coordinates. </description> </method> <method name="get_nav_path_index" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns which index the agent is currently on in the navigation path's [PackedVector2Array]. </description> </method> <method name="get_next_location"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns a [Vector2] in global coordinates, that can be moved to, making sure that there are no static objects in the way. If the agent does not have a navigation path, it will return the position of the agent's parent. </description> </method> <method name="get_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="get_target_location" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the user defined [Vector2] after setting the target location. </description> </method> <method name="is_navigation_finished"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns true if the navigation path's final location has been reached. </description> </method> <method name="is_target_reachable"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns true if the target location is reachable. The target location is set using [method set_target_location]. </description> </method> <method name="is_target_reached" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns true if the target location is reached. The target location is set using [method set_target_location]. It may not always be possible to reach the target location. It should always be possible to reach the final location though. See [method get_final_location]. </description> </method> <method name="set_target_location"> - <return type="void"> - </return> - <argument index="0" name="location" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="location" type="Vector2" /> <description> Sets the user desired final location. This will clear the current navigation path. </description> </method> <method name="set_velocity"> - <return type="void"> - </return> - <argument index="0" name="velocity" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="velocity" type="Vector2" /> <description> Sends the passed in velocity to the collision avoidance algorithm. It will adjust the velocity to avoid collisions. Once the adjustment to the velocity is complete, it will emit the [signal velocity_computed] signal. </description> @@ -137,8 +123,7 @@ </description> </signal> <signal name="velocity_computed"> - <argument index="0" name="safe_velocity" type="Vector3"> - </argument> + <argument index="0" name="safe_velocity" type="Vector3" /> <description> Notifies when the collision avoidance velocity is calculated. Emitted by [method set_velocity]. </description> diff --git a/doc/classes/NavigationAgent3D.xml b/doc/classes/NavigationAgent3D.xml index 8942a37774..af4a058489 100644 --- a/doc/classes/NavigationAgent3D.xml +++ b/doc/classes/NavigationAgent3D.xml @@ -10,88 +10,74 @@ </tutorials> <methods> <method name="distance_to_target" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the distance to the target location, using the agent's global position. The user must set the target location with [method set_target_location] in order for this to be accurate. </description> </method> <method name="get_final_location"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the reachable final location in global coordinates. This can change if the navigation path is altered in any way. Because of this, it would be best to check this each frame. </description> </method> <method name="get_nav_path" qualifiers="const"> - <return type="PackedVector3Array"> - </return> + <return type="PackedVector3Array" /> <description> Returns the path from start to finish in global coordinates. </description> </method> <method name="get_nav_path_index" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns which index the agent is currently on in the navigation path's [PackedVector3Array]. </description> </method> <method name="get_next_location"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns a [Vector3] in global coordinates, that can be moved to, making sure that there are no static objects in the way. If the agent does not have a navigation path, it will return the origin of the agent's parent. </description> </method> <method name="get_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="get_target_location" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the user defined [Vector3] after setting the target location. </description> </method> <method name="is_navigation_finished"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns true if the navigation path's final location has been reached. </description> </method> <method name="is_target_reachable"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns true if the target location is reachable. The target location is set using [method set_target_location]. </description> </method> <method name="is_target_reached" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns true if the target location is reached. The target location is set using [method set_target_location]. It may not always be possible to reach the target location. It should always be possible to reach the final location though. See [method get_final_location]. </description> </method> <method name="set_target_location"> - <return type="void"> - </return> - <argument index="0" name="location" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="location" type="Vector3" /> <description> Sets the user desired final location. This will clear the current navigation path. </description> </method> <method name="set_velocity"> - <return type="void"> - </return> - <argument index="0" name="velocity" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="velocity" type="Vector3" /> <description> Sends the passed in velocity to the collision avoidance algorithm. It will adjust the velocity to avoid collisions. Once the adjustment to the velocity is complete, it will emit the [signal velocity_computed] signal. </description> @@ -143,8 +129,7 @@ </description> </signal> <signal name="velocity_computed"> - <argument index="0" name="safe_velocity" type="Vector3"> - </argument> + <argument index="0" name="safe_velocity" type="Vector3" /> <description> Notifies when the collision avoidance velocity is calculated. Emitted by [method set_velocity]. </description> diff --git a/doc/classes/NavigationMesh.xml b/doc/classes/NavigationMesh.xml index 871c92798a..1d9b2b0a36 100644 --- a/doc/classes/NavigationMesh.xml +++ b/doc/classes/NavigationMesh.xml @@ -9,70 +9,54 @@ </tutorials> <methods> <method name="add_polygon"> - <return type="void"> - </return> - <argument index="0" name="polygon" type="PackedInt32Array"> - </argument> + <return type="void" /> + <argument index="0" name="polygon" type="PackedInt32Array" /> <description> </description> </method> <method name="clear_polygons"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="create_from_mesh"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="Mesh"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="Mesh" /> <description> </description> </method> <method name="get_collision_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> </description> </method> <method name="get_polygon"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="idx" type="int" /> <description> </description> </method> <method name="get_polygon_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_vertices" qualifiers="const"> - <return type="PackedVector3Array"> - </return> + <return type="PackedVector3Array" /> <description> </description> </method> <method name="set_collision_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> </description> </method> <method name="set_vertices"> - <return type="void"> - </return> - <argument index="0" name="vertices" type="PackedVector3Array"> - </argument> + <return type="void" /> + <argument index="0" name="vertices" type="PackedVector3Array" /> <description> </description> </method> diff --git a/doc/classes/NavigationMeshGenerator.xml b/doc/classes/NavigationMeshGenerator.xml index ce1182ffbe..9931033260 100644 --- a/doc/classes/NavigationMeshGenerator.xml +++ b/doc/classes/NavigationMeshGenerator.xml @@ -8,20 +8,15 @@ </tutorials> <methods> <method name="bake"> - <return type="void"> - </return> - <argument index="0" name="nav_mesh" type="NavigationMesh"> - </argument> - <argument index="1" name="root_node" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="nav_mesh" type="NavigationMesh" /> + <argument index="1" name="root_node" type="Node" /> <description> </description> </method> <method name="clear"> - <return type="void"> - </return> - <argument index="0" name="nav_mesh" type="NavigationMesh"> - </argument> + <return type="void" /> + <argument index="0" name="nav_mesh" type="NavigationMesh" /> <description> </description> </method> diff --git a/doc/classes/NavigationPolygon.xml b/doc/classes/NavigationPolygon.xml index 38921078d7..e1e2c34a63 100644 --- a/doc/classes/NavigationPolygon.xml +++ b/doc/classes/NavigationPolygon.xml @@ -47,119 +47,95 @@ </tutorials> <methods> <method name="add_outline"> - <return type="void"> - </return> - <argument index="0" name="outline" type="PackedVector2Array"> - </argument> + <return type="void" /> + <argument index="0" name="outline" type="PackedVector2Array" /> <description> Appends a [PackedVector2Array] that contains the vertices of an outline to the internal array that contains all the outlines. You have to call [method make_polygons_from_outlines] in order for this array to be converted to polygons that the engine will use. </description> </method> <method name="add_outline_at_index"> - <return type="void"> - </return> - <argument index="0" name="outline" type="PackedVector2Array"> - </argument> - <argument index="1" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="outline" type="PackedVector2Array" /> + <argument index="1" name="index" type="int" /> <description> Adds a [PackedVector2Array] that contains the vertices of an outline to the internal array that contains all the outlines at a fixed position. You have to call [method make_polygons_from_outlines] in order for this array to be converted to polygons that the engine will use. </description> </method> <method name="add_polygon"> - <return type="void"> - </return> - <argument index="0" name="polygon" type="PackedInt32Array"> - </argument> + <return type="void" /> + <argument index="0" name="polygon" type="PackedInt32Array" /> <description> Adds a polygon using the indices of the vertices you get when calling [method get_vertices]. </description> </method> <method name="clear_outlines"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the array of the outlines, but it doesn't clear the vertices and the polygons that were created by them. </description> </method> <method name="clear_polygons"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the array of polygons, but it doesn't clear the array of outlines and vertices. </description> </method> <method name="get_outline" qualifiers="const"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="idx" type="int" /> <description> Returns a [PackedVector2Array] containing the vertices of an outline that was created in the editor or by script. </description> </method> <method name="get_outline_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of outlines that were created in the editor or by script. </description> </method> <method name="get_polygon"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="idx" type="int" /> <description> Returns a [PackedInt32Array] containing the indices of the vertices of a created polygon. </description> </method> <method name="get_polygon_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the count of all polygons. </description> </method> <method name="get_vertices" qualifiers="const"> - <return type="PackedVector2Array"> - </return> + <return type="PackedVector2Array" /> <description> Returns a [PackedVector2Array] containing all the vertices being used to create the polygons. </description> </method> <method name="make_polygons_from_outlines"> - <return type="void"> - </return> + <return type="void" /> <description> Creates polygons from the outlines added in the editor or by script. </description> </method> <method name="remove_outline"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Removes an outline created in the editor or by script. You have to call [method make_polygons_from_outlines] for the polygons to update. </description> </method> <method name="set_outline"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="outline" type="PackedVector2Array"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="outline" type="PackedVector2Array" /> <description> Changes an outline created in the editor or by script. You have to call [method make_polygons_from_outlines] for the polygons to update. </description> </method> <method name="set_vertices"> - <return type="void"> - </return> - <argument index="0" name="vertices" type="PackedVector2Array"> - </argument> + <return type="void" /> + <argument index="0" name="vertices" type="PackedVector2Array" /> <description> Sets the vertices that can be then indexed to create polygons with the [method add_polygon] method. </description> diff --git a/doc/classes/NavigationRegion3D.xml b/doc/classes/NavigationRegion3D.xml index 2904ba4200..da06641b48 100644 --- a/doc/classes/NavigationRegion3D.xml +++ b/doc/classes/NavigationRegion3D.xml @@ -11,8 +11,7 @@ </tutorials> <methods> <method name="bake_navigation_mesh"> - <return type="void"> - </return> + <return type="void" /> <description> Bakes the [NavigationMesh]. The baking is done in a separate thread because navigation baking is not a cheap operation. This can be done at runtime. When it is completed, it automatically sets the new [NavigationMesh]. </description> diff --git a/doc/classes/NavigationServer2D.xml b/doc/classes/NavigationServer2D.xml index b0a57ed227..042ab06e6f 100644 --- a/doc/classes/NavigationServer2D.xml +++ b/doc/classes/NavigationServer2D.xml @@ -16,337 +16,249 @@ </tutorials> <methods> <method name="agent_create" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates the agent. </description> </method> <method name="agent_is_map_changed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="agent" type="RID" /> <description> Returns true if the map got changed the previous frame. </description> </method> <method name="agent_set_callback" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="receiver" type="Object"> - </argument> - <argument index="2" name="method" type="StringName"> - </argument> - <argument index="3" name="userdata" type="Variant" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="receiver" type="Object" /> + <argument index="2" name="method" type="StringName" /> + <argument index="3" name="userdata" type="Variant" default="null" /> <description> Callback called at the end of the RVO process. </description> </method> <method name="agent_set_map" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="map" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="map" type="RID" /> <description> Puts the agent in the map. </description> </method> <method name="agent_set_max_neighbors" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="count" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="count" type="int" /> <description> Sets the maximum number of other agents the agent takes into account in the navigation. The larger this number, the longer the running time of the simulation. If the number is too low, the simulation will not be safe. </description> </method> <method name="agent_set_max_speed" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="max_speed" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="max_speed" type="float" /> <description> Sets the maximum speed of the agent. Must be positive. </description> </method> <method name="agent_set_neighbor_dist" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="dist" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="dist" type="float" /> <description> Sets the maximum distance to other agents this agent takes into account in the navigation. The larger this number, the longer the running time of the simulation. If the number is too low, the simulation will not be safe. </description> </method> <method name="agent_set_position" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="position" type="Vector2" /> <description> Sets the position of the agent in world space. </description> </method> <method name="agent_set_radius" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="radius" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="radius" type="float" /> <description> Sets the radius of the agent. </description> </method> <method name="agent_set_target_velocity" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="target_velocity" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="target_velocity" type="Vector2" /> <description> Sets the new target velocity. </description> </method> <method name="agent_set_time_horizon" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="time" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="time" type="float" /> <description> The minimal amount of time for which the agent's velocities that are computed by the simulation are safe with respect to other agents. The larger this number, the sooner this agent will respond to the presence of other agents, but the less freedom this agent has in choosing its velocities. Must be positive. </description> </method> <method name="agent_set_velocity" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="velocity" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="velocity" type="Vector2" /> <description> Sets the current velocity of the agent. </description> </method> <method name="free" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="object" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="object" type="RID" /> <description> Destroy the RID </description> </method> <method name="map_create" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Create a new map. </description> </method> <method name="map_get_cell_size" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="map" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="map" type="RID" /> <description> Returns the map cell size. </description> </method> <method name="map_get_closest_point" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="to_point" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="to_point" type="Vector2" /> <description> Returns the point closest to the provided [code]to_point[/code] on the navigation mesh surface. </description> </method> <method name="map_get_closest_point_owner" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="to_point" type="Vector2"> - </argument> + <return type="RID" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="to_point" type="Vector2" /> <description> Returns the owner region RID for the point returned by [method map_get_closest_point]. </description> </method> <method name="map_get_edge_connection_margin" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="map" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="map" type="RID" /> <description> Returns the edge connection margin of the map. The edge connection margin is a distance used to connect two regions. </description> </method> <method name="map_get_path" qualifiers="const"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="origin" type="Vector2"> - </argument> - <argument index="2" name="destination" type="Vector2"> - </argument> - <argument index="3" name="optimize" type="bool"> - </argument> - <argument index="4" name="layers" type="int" default="1"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="origin" type="Vector2" /> + <argument index="2" name="destination" type="Vector2" /> + <argument index="3" name="optimize" type="bool" /> + <argument index="4" name="layers" type="int" default="1" /> <description> Returns the navigation path to reach the destination from the origin. [code]layers[/code] is a bitmask of all region layers that are allowed to be in the path. </description> </method> <method name="map_is_active" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="nap" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="nap" type="RID" /> <description> Returns true if the map is active. </description> </method> <method name="map_set_active" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="active" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="active" type="bool" /> <description> Sets the map active. </description> </method> <method name="map_set_cell_size" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="cell_size" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="cell_size" type="float" /> <description> Set the map cell size used to weld the navigation mesh polygons. </description> </method> <method name="map_set_edge_connection_margin" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="margin" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="margin" type="float" /> <description> Set the map edge connection margin used to weld the compatible region edges. </description> </method> <method name="region_create" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a new region. </description> </method> <method name="region_get_connection_pathway_end" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="connection" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="connection" type="int" /> <description> Returns the ending point of a connection door. [code]connection[/code] is an index between 0 and the return value of [method region_get_connections_count]. </description> </method> <method name="region_get_connection_pathway_start" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="connection" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="connection" type="int" /> <description> Returns the starting point of a connection door. [code]connection[/code] is an index between 0 and the return value of [method region_get_connections_count]. </description> </method> <method name="region_get_connections_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="region" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="region" type="RID" /> <description> Returns how many connections this [code]region[/code] has with other regions in the map. </description> </method> <method name="region_get_layers" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="region" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="region" type="RID" /> <description> Returns the region's layers. </description> </method> <method name="region_set_layers" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="layers" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="layers" type="int" /> <description> Set the region's layers. This allows selecting regions from a path request (when using [method NavigationServer2D.map_get_path]). </description> </method> <method name="region_set_map" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="map" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="map" type="RID" /> <description> Sets the map for the region. </description> </method> <method name="region_set_navpoly" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="nav_poly" type="NavigationPolygon"> - </argument> + <return type="void" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="nav_poly" type="NavigationPolygon" /> <description> Sets the navigation mesh for the region. </description> </method> <method name="region_set_transform" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="transform" type="Transform2D" /> <description> Sets the global transformation for the region. </description> @@ -354,8 +266,7 @@ </methods> <signals> <signal name="map_changed"> - <argument index="0" name="map" type="RID"> - </argument> + <argument index="0" name="map" type="RID" /> <description> Emitted when a navigation map is updated, when a region moves or is modified. </description> diff --git a/doc/classes/NavigationServer3D.xml b/doc/classes/NavigationServer3D.xml index ef9efcb99c..73ca18655a 100644 --- a/doc/classes/NavigationServer3D.xml +++ b/doc/classes/NavigationServer3D.xml @@ -16,301 +16,221 @@ </tutorials> <methods> <method name="agent_create" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates the agent. </description> </method> <method name="agent_is_map_changed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="agent" type="RID" /> <description> Returns true if the map got changed the previous frame. </description> </method> <method name="agent_set_callback" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="receiver" type="Object"> - </argument> - <argument index="2" name="method" type="StringName"> - </argument> - <argument index="3" name="userdata" type="Variant" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="receiver" type="Object" /> + <argument index="2" name="method" type="StringName" /> + <argument index="3" name="userdata" type="Variant" default="null" /> <description> Callback called at the end of the RVO process. </description> </method> <method name="agent_set_map" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="map" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="map" type="RID" /> <description> Puts the agent in the map. </description> </method> <method name="agent_set_max_neighbors" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="count" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="count" type="int" /> <description> Sets the maximum number of other agents the agent takes into account in the navigation. The larger this number, the longer the running time of the simulation. If the number is too low, the simulation will not be safe. </description> </method> <method name="agent_set_max_speed" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="max_speed" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="max_speed" type="float" /> <description> Sets the maximum speed of the agent. Must be positive. </description> </method> <method name="agent_set_neighbor_dist" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="dist" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="dist" type="float" /> <description> Sets the maximum distance to other agents this agent takes into account in the navigation. The larger this number, the longer the running time of the simulation. If the number is too low, the simulation will not be safe. </description> </method> <method name="agent_set_position" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="position" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="position" type="Vector3" /> <description> Sets the position of the agent in world space. </description> </method> <method name="agent_set_radius" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="radius" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="radius" type="float" /> <description> Sets the radius of the agent. </description> </method> <method name="agent_set_target_velocity" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="target_velocity" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="target_velocity" type="Vector3" /> <description> Sets the new target velocity. </description> </method> <method name="agent_set_time_horizon" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="time" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="time" type="float" /> <description> The minimal amount of time for which the agent's velocities that are computed by the simulation are safe with respect to other agents. The larger this number, the sooner this agent will respond to the presence of other agents, but the less freedom this agent has in choosing its velocities. Must be positive. </description> </method> <method name="agent_set_velocity" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="agent" type="RID"> - </argument> - <argument index="1" name="velocity" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="agent" type="RID" /> + <argument index="1" name="velocity" type="Vector3" /> <description> Sets the current velocity of the agent. </description> </method> <method name="free" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="object" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="object" type="RID" /> <description> Destroy the RID </description> </method> <method name="map_create" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Create a new map. </description> </method> <method name="map_get_cell_size" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="map" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="map" type="RID" /> <description> Returns the map cell size. </description> </method> <method name="map_get_closest_point" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="to_point" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="to_point" type="Vector3" /> <description> Returns the point closest to the provided [code]point[/code] on the navigation mesh surface. </description> </method> <method name="map_get_closest_point_normal" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="to_point" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="to_point" type="Vector3" /> <description> Returns the normal for the point returned by [method map_get_closest_point]. </description> </method> <method name="map_get_closest_point_owner" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="to_point" type="Vector3"> - </argument> + <return type="RID" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="to_point" type="Vector3" /> <description> Returns the owner region RID for the point returned by [method map_get_closest_point]. </description> </method> <method name="map_get_closest_point_to_segment" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="start" type="Vector3"> - </argument> - <argument index="2" name="end" type="Vector3"> - </argument> - <argument index="3" name="use_collision" type="bool" default="false"> - </argument> + <return type="Vector3" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="start" type="Vector3" /> + <argument index="2" name="end" type="Vector3" /> + <argument index="3" name="use_collision" type="bool" default="false" /> <description> Returns the closest point between the navigation surface and the segment. </description> </method> <method name="map_get_edge_connection_margin" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="map" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="map" type="RID" /> <description> Returns the edge connection margin of the map. This distance is the minimum vertex distance needed to connect two edges from different regions. </description> </method> <method name="map_get_path" qualifiers="const"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="origin" type="Vector3"> - </argument> - <argument index="2" name="destination" type="Vector3"> - </argument> - <argument index="3" name="optimize" type="bool"> - </argument> - <argument index="4" name="layers" type="int" default="1"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="origin" type="Vector3" /> + <argument index="2" name="destination" type="Vector3" /> + <argument index="3" name="optimize" type="bool" /> + <argument index="4" name="layers" type="int" default="1" /> <description> Returns the navigation path to reach the destination from the origin. [code]layers[/code] is a bitmask of all region layers that are allowed to be in the path. </description> </method> <method name="map_get_up" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="map" type="RID"> - </argument> + <return type="Vector3" /> + <argument index="0" name="map" type="RID" /> <description> Returns the map's up direction. </description> </method> <method name="map_is_active" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="nap" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="nap" type="RID" /> <description> Returns true if the map is active. </description> </method> <method name="map_set_active" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="active" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="active" type="bool" /> <description> Sets the map active. </description> </method> <method name="map_set_cell_size" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="cell_size" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="cell_size" type="float" /> <description> Set the map cell size used to weld the navigation mesh polygons. </description> </method> <method name="map_set_edge_connection_margin" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="margin" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="margin" type="float" /> <description> Set the map edge connection margin used to weld the compatible region edges. </description> </method> <method name="map_set_up" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="map" type="RID"> - </argument> - <argument index="1" name="up" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="map" type="RID" /> + <argument index="1" name="up" type="Vector3" /> <description> Sets the map up direction. </description> </method> <method name="process"> - <return type="void"> - </return> - <argument index="0" name="delta_time" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="delta_time" type="float" /> <description> Process the collision avoidance agents. The result of this process is needed by the physics server, so this must be called in the main thread. @@ -318,112 +238,84 @@ </description> </method> <method name="region_bake_navmesh" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="NavigationMesh"> - </argument> - <argument index="1" name="node" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="NavigationMesh" /> + <argument index="1" name="node" type="Node" /> <description> Bakes the navigation mesh. </description> </method> <method name="region_create" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a new region. </description> </method> <method name="region_get_connection_pathway_end" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="connection" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="connection" type="int" /> <description> Returns the ending point of a connection door. [code]connection[/code] is an index between 0 and the return value of [method region_get_connections_count]. </description> </method> <method name="region_get_connection_pathway_start" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="connection" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="connection" type="int" /> <description> Returns the starting point of a connection door. [code]connection[/code] is an index between 0 and the return value of [method region_get_connections_count]. </description> </method> <method name="region_get_connections_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="region" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="region" type="RID" /> <description> Returns how many connections this [code]region[/code] has with other regions in the map. </description> </method> <method name="region_get_layers" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="region" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="region" type="RID" /> <description> Returns the region's layers. </description> </method> <method name="region_set_layers" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="layers" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="layers" type="int" /> <description> Set the region's layers. This allows selecting regions from a path request (when using [method NavigationServer3D.map_get_path]). </description> </method> <method name="region_set_map" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="map" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="map" type="RID" /> <description> Sets the map for the region. </description> </method> <method name="region_set_navmesh" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="nav_mesh" type="NavigationMesh"> - </argument> + <return type="void" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="nav_mesh" type="NavigationMesh" /> <description> Sets the navigation mesh for the region. </description> </method> <method name="region_set_transform" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="region" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="region" type="RID" /> + <argument index="1" name="transform" type="Transform3D" /> <description> Sets the global transformation for the region. </description> </method> <method name="set_active" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="active" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="active" type="bool" /> <description> Control activation of this server. </description> @@ -431,8 +323,7 @@ </methods> <signals> <signal name="map_changed"> - <argument index="0" name="map" type="RID"> - </argument> + <argument index="0" name="map" type="RID" /> <description> Emitted when a navigation map is updated, when a region moves or is modified. </description> diff --git a/doc/classes/NinePatchRect.xml b/doc/classes/NinePatchRect.xml index 5d59f994d3..77fd9165bb 100644 --- a/doc/classes/NinePatchRect.xml +++ b/doc/classes/NinePatchRect.xml @@ -10,21 +10,16 @@ </tutorials> <methods> <method name="get_patch_margin" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> + <return type="int" /> + <argument index="0" name="margin" type="int" enum="Side" /> <description> Returns the size of the margin on the specified [enum Side]. </description> </method> <method name="set_patch_margin"> - <return type="void"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="margin" type="int" enum="Side" /> + <argument index="1" name="value" type="int" /> <description> Sets the size of the margin on the specified [enum Side] to [code]value[/code] pixels. </description> diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index fc971effd7..3874046628 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -22,24 +22,21 @@ </tutorials> <methods> <method name="_enter_tree" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called when the node enters the [SceneTree] (e.g. upon instancing, scene changing, or after calling [method add_child] in a script). If the node has children, its [method _enter_tree] callback will be called first, and then that of the children. Corresponds to the [constant NOTIFICATION_ENTER_TREE] notification in [method Object._notification]. </description> </method> <method name="_exit_tree" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called when the node is about to leave the [SceneTree] (e.g. upon freeing, scene changing, or after calling [method remove_child] in a script). If the node has children, its [method _exit_tree] callback will be called last, after all its children have left the tree. Corresponds to the [constant NOTIFICATION_EXIT_TREE] notification in [method Object._notification] and signal [signal tree_exiting]. To get notified when the node has already left the active tree, connect to the [signal tree_exited]. </description> </method> <method name="_get_configuration_warnings" qualifiers="virtual"> - <return type="String[]"> - </return> + <return type="String[]" /> <description> The elements in the array returned from this method are displayed as warnings in the Scene Dock if the script that overrides it is a [code]tool[/code] script. Returning an empty array produces no warnings. @@ -47,10 +44,8 @@ </description> </method> <method name="_input" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> + <return type="void" /> + <argument index="0" name="event" type="InputEvent" /> <description> Called when there is an input event. The input event propagates up through the node tree until a node consumes it. It is only called if input processing is enabled, which is done automatically if this method is overridden, and can be toggled with [method set_process_input]. @@ -60,10 +55,8 @@ </description> </method> <method name="_physics_process" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="delta" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="delta" type="float" /> <description> Called during the physics processing step of the main loop. Physics processing means that the frame rate is synced to the physics, i.e. the [code]delta[/code] variable should be constant. [code]delta[/code] is in seconds. It is only called if physics processing is enabled, which is done automatically if this method is overridden, and can be toggled with [method set_physics_process]. @@ -72,10 +65,8 @@ </description> </method> <method name="_process" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="delta" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="delta" type="float" /> <description> Called during the processing step of the main loop. Processing happens at every frame and as fast as possible, so the [code]delta[/code] time since the previous frame is not constant. [code]delta[/code] is in seconds. It is only called if processing is enabled, which is done automatically if this method is overridden, and can be toggled with [method set_process]. @@ -84,8 +75,7 @@ </description> </method> <method name="_ready" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called when the node is "ready", i.e. when both the node and its children have entered the scene tree. If the node has children, their [method _ready] callbacks get triggered first, and the parent node will receive the ready notification afterwards. Corresponds to the [constant NOTIFICATION_READY] notification in [method Object._notification]. See also the [code]onready[/code] keyword for variables. @@ -94,10 +84,8 @@ </description> </method> <method name="_unhandled_input" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> + <return type="void" /> + <argument index="0" name="event" type="InputEvent" /> <description> Called when an [InputEvent] hasn't been consumed by [method _input] or any GUI. The input event propagates up through the node tree until a node consumes it. It is only called if unhandled input processing is enabled, which is done automatically if this method is overridden, and can be toggled with [method set_process_unhandled_input]. @@ -107,10 +95,8 @@ </description> </method> <method name="_unhandled_key_input" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="event" type="InputEventKey"> - </argument> + <return type="void" /> + <argument index="0" name="event" type="InputEventKey" /> <description> Called when an [InputEventKey] hasn't been consumed by [method _input] or any GUI. The input event propagates up through the node tree until a node consumes it. It is only called if unhandled key input processing is enabled, which is done automatically if this method is overridden, and can be toggled with [method set_process_unhandled_key_input]. @@ -120,12 +106,9 @@ </description> </method> <method name="add_child"> - <return type="void"> - </return> - <argument index="0" name="node" type="Node"> - </argument> - <argument index="1" name="legible_unique_name" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Node" /> + <argument index="1" name="legible_unique_name" type="bool" default="false" /> <description> Adds a child node. Nodes can have any number of children, but every child must have a unique name. Child nodes are automatically deleted when the parent node is deleted, so an entire scene can be removed by deleting its topmost node. If [code]legible_unique_name[/code] is [code]true[/code], the child node will have a human-readable name based on the name of the node being instantiated instead of its type. @@ -151,12 +134,9 @@ </description> </method> <method name="add_sibling"> - <return type="void"> - </return> - <argument index="0" name="sibling" type="Node"> - </argument> - <argument index="1" name="legible_unique_name" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="sibling" type="Node" /> + <argument index="1" name="legible_unique_name" type="bool" default="false" /> <description> Adds a [code]sibling[/code] node to current's node parent, at the same level as that node, right below it. If [code]legible_unique_name[/code] is [code]true[/code], the child node will have a human-readable name based on the name of the node being instantiated instead of its type. @@ -164,27 +144,22 @@ </description> </method> <method name="add_to_group"> - <return type="void"> - </return> - <argument index="0" name="group" type="StringName"> - </argument> - <argument index="1" name="persistent" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="group" type="StringName" /> + <argument index="1" name="persistent" type="bool" default="false" /> <description> Adds the node to a group. Groups are helpers to name and organize a subset of nodes, for example "enemies" or "collectables". A node can be in any number of groups. Nodes can be assigned a group at any time, but will not be added until they are inside the scene tree (see [method is_inside_tree]). See notes in the description, and the group methods in [SceneTree]. The [code]persistent[/code] option is used when packing node to [PackedScene] and saving to file. Non-persistent groups aren't stored. </description> </method> <method name="can_process" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the node can process while the scene tree is paused (see [member process_mode]). Always returns [code]true[/code] if the scene tree is not paused, and [code]false[/code] if the node is not in the tree. </description> </method> <method name="create_tween"> - <return type="Tween"> - </return> + <return type="Tween" /> <description> Creates a new [Tween] and binds it to this node. This is equivalent of doing: [codeblock] @@ -193,10 +168,8 @@ </description> </method> <method name="duplicate" qualifiers="const"> - <return type="Node"> - </return> - <argument index="0" name="flags" type="int" default="15"> - </argument> + <return type="Node" /> + <argument index="0" name="flags" type="int" default="15" /> <description> Duplicates the node, returning a new node. You can fine-tune the behavior using the [code]flags[/code] (see [enum DuplicateFlags]). @@ -204,14 +177,10 @@ </description> </method> <method name="find_node" qualifiers="const"> - <return type="Node"> - </return> - <argument index="0" name="mask" type="String"> - </argument> - <argument index="1" name="recursive" type="bool" default="true"> - </argument> - <argument index="2" name="owned" type="bool" default="true"> - </argument> + <return type="Node" /> + <argument index="0" name="mask" type="String" /> + <argument index="1" name="recursive" type="bool" default="true" /> + <argument index="2" name="owned" type="bool" default="true" /> <description> Finds a descendant of this node whose name matches [code]mask[/code] as in [method String.match] (i.e. case-sensitive, but [code]"*"[/code] matches zero or more characters and [code]"?"[/code] matches any single character except [code]"."[/code]). [b]Note:[/b] It does not match against the full path, just against individual node names. @@ -220,10 +189,8 @@ </description> </method> <method name="find_parent" qualifiers="const"> - <return type="Node"> - </return> - <argument index="0" name="mask" type="String"> - </argument> + <return type="Node" /> + <argument index="0" name="mask" type="String" /> <description> Finds the first parent of the current node whose name matches [code]mask[/code] as in [method String.match] (i.e. case-sensitive, but [code]"*"[/code] matches zero or more characters and [code]"?"[/code] matches any single character except [code]"."[/code]). [b]Note:[/b] It does not match against the full path, just against individual node names. @@ -231,10 +198,8 @@ </description> </method> <method name="get_child" qualifiers="const"> - <return type="Node"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Node" /> + <argument index="0" name="idx" type="int" /> <description> Returns a child node by its index (see [method get_child_count]). This method is often used for iterating all children of a node. Negative indices access the children from the last one. @@ -242,51 +207,43 @@ </description> </method> <method name="get_child_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of child nodes. </description> </method> <method name="get_children" qualifiers="const"> - <return type="Node[]"> - </return> + <return type="Node[]" /> <description> Returns an array of references to node's children. </description> </method> <method name="get_editor_description" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="get_groups" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array listing the groups that the node is a member of. </description> </method> <method name="get_index" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the node's order in the scene tree branch. For example, if called on the first child node the position is [code]0[/code]. </description> </method> <method name="get_network_master" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the peer ID of the network master for this node. See [method set_network_master]. </description> </method> <method name="get_node" qualifiers="const"> - <return type="Node"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> + <return type="Node" /> + <argument index="0" name="path" type="NodePath" /> <description> Fetches a node. The [NodePath] can be either a relative path (from the current node) or an absolute path (in the scene tree) to a node. If the path does not exist, a [code]null instance[/code] is returned and an error is logged. Attempts to access methods on the return value will result in an "Attempt to call <method> on a null instance." error. [b]Note:[/b] Fetching absolute paths only works when the node is inside the scene tree (see [method is_inside_tree]). @@ -319,10 +276,8 @@ </description> </method> <method name="get_node_and_resource"> - <return type="Array"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> + <return type="Array" /> + <argument index="0" name="path" type="NodePath" /> <description> Fetches a node and one of its resources as specified by the [NodePath]'s subname (e.g. [code]Area2D/CollisionShape2D:shape[/code]). If several nested resources are specified in the [NodePath], the last one will be fetched. The return value is an array of size 3: the first index points to the [Node] (or [code]null[/code] if not found), the second index points to the [Resource] (or [code]null[/code] if not found), and the third index is the remaining [NodePath], if any. @@ -342,208 +297,172 @@ </description> </method> <method name="get_node_or_null" qualifiers="const"> - <return type="Node"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> + <return type="Node" /> + <argument index="0" name="path" type="NodePath" /> <description> Similar to [method get_node], but does not log an error if [code]path[/code] does not point to a valid [Node]. </description> </method> <method name="get_parent" qualifiers="const"> - <return type="Node"> - </return> + <return type="Node" /> <description> Returns the parent node of the current node, or a [code]null instance[/code] if the node lacks a parent. </description> </method> <method name="get_path" qualifiers="const"> - <return type="NodePath"> - </return> + <return type="NodePath" /> <description> Returns the absolute path of the current node. This only works if the current node is inside the scene tree (see [method is_inside_tree]). </description> </method> <method name="get_path_to" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="NodePath" /> + <argument index="0" name="node" type="Node" /> <description> Returns the relative [NodePath] from this node to the specified [code]node[/code]. Both nodes must be in the same scene or the function will fail. </description> </method> <method name="get_physics_process_delta_time" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the time elapsed (in seconds) since the last physics-bound frame (see [method _physics_process]). This is always a constant value in physics processing unless the frames per second is changed via [member Engine.iterations_per_second]. </description> </method> <method name="get_process_delta_time" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the time elapsed (in seconds) since the last process callback. This value may vary from frame to frame. </description> </method> <method name="get_scene_instance_load_placeholder" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this is an instance load placeholder. See [InstancePlaceholder]. </description> </method> <method name="get_tree" qualifiers="const"> - <return type="SceneTree"> - </return> + <return type="SceneTree" /> <description> Returns the [SceneTree] that contains this node. </description> </method> <method name="get_viewport" qualifiers="const"> - <return type="Viewport"> - </return> + <return type="Viewport" /> <description> Returns the node's [Viewport]. </description> </method> <method name="has_node" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> + <return type="bool" /> + <argument index="0" name="path" type="NodePath" /> <description> Returns [code]true[/code] if the node that the [NodePath] points to exists. </description> </method> <method name="has_node_and_resource" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> + <return type="bool" /> + <argument index="0" name="path" type="NodePath" /> <description> Returns [code]true[/code] if the [NodePath] points to a valid node and its subname points to a valid resource, e.g. [code]Area2D/CollisionShape2D:shape[/code]. Properties with a non-[Resource] type (e.g. nodes or primitive math types) are not considered resources. </description> </method> <method name="is_ancestor_of" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="bool" /> + <argument index="0" name="node" type="Node" /> <description> Returns [code]true[/code] if the given node is a direct or indirect child of the current node. </description> </method> <method name="is_displayed_folded" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the node is folded (collapsed) in the Scene dock. </description> </method> <method name="is_greater_than" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="bool" /> + <argument index="0" name="node" type="Node" /> <description> Returns [code]true[/code] if the given node occurs later in the scene hierarchy than the current node. </description> </method> <method name="is_in_group" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="group" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="group" type="StringName" /> <description> Returns [code]true[/code] if this node is in the specified group. See notes in the description, and the group methods in [SceneTree]. </description> </method> <method name="is_inside_tree" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this node is currently inside a [SceneTree]. </description> </method> <method name="is_network_master" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the local system is the master of this node. </description> </method> <method name="is_physics_processing" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if physics processing is enabled (see [method set_physics_process]). </description> </method> <method name="is_physics_processing_internal" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if internal physics processing is enabled (see [method set_physics_process_internal]). </description> </method> <method name="is_processing" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if processing is enabled (see [method set_process]). </description> </method> <method name="is_processing_input" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the node is processing input (see [method set_process_input]). </description> </method> <method name="is_processing_internal" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if internal processing is enabled (see [method set_process_internal]). </description> </method> <method name="is_processing_unhandled_input" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the node is processing unhandled input (see [method set_process_unhandled_input]). </description> </method> <method name="is_processing_unhandled_key_input" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the node is processing unhandled key input (see [method set_process_unhandled_key_input]). </description> </method> <method name="move_child"> - <return type="void"> - </return> - <argument index="0" name="child_node" type="Node"> - </argument> - <argument index="1" name="to_position" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="child_node" type="Node" /> + <argument index="1" name="to_position" type="int" /> <description> Moves a child node to a different position (order) among the other children. Since calls, signals, etc are performed by tree order, changing the order of children nodes may be useful. </description> </method> <method name="print_stray_nodes"> - <return type="void"> - </return> + <return type="void" /> <description> Prints all stray nodes (nodes outside the [SceneTree]). Used for debugging. Works only in debug builds. </description> </method> <method name="print_tree"> - <return type="void"> - </return> + <return type="void" /> <description> Prints the tree to stdout. Used mainly for debugging purposes. This version displays the path relative to the current node, and is good for copy/pasting into the [method get_node] function. [b]Example output:[/b] @@ -558,8 +477,7 @@ </description> </method> <method name="print_tree_pretty"> - <return type="void"> - </return> + <return type="void" /> <description> Similar to [method print_tree], this prints the tree to stdout. This version displays a more graphical representation similar to what is displayed in the scene inspector. It is useful for inspecting larger trees. [b]Example output:[/b] @@ -574,226 +492,175 @@ </description> </method> <method name="propagate_call"> - <return type="void"> - </return> - <argument index="0" name="method" type="StringName"> - </argument> - <argument index="1" name="args" type="Array" default="[]"> - </argument> - <argument index="2" name="parent_first" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="method" type="StringName" /> + <argument index="1" name="args" type="Array" default="[]" /> + <argument index="2" name="parent_first" type="bool" default="false" /> <description> Calls the given method (if present) with the arguments given in [code]args[/code] on this node and recursively on all its children. If the [code]parent_first[/code] argument is [code]true[/code], the method will be called on the current node first, then on all its children. If [code]parent_first[/code] is [code]false[/code], the children will be called first. </description> </method> <method name="propagate_notification"> - <return type="void"> - </return> - <argument index="0" name="what" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="what" type="int" /> <description> Notifies the current node and all its children recursively by calling [method Object.notification] on all of them. </description> </method> <method name="queue_free"> - <return type="void"> - </return> + <return type="void" /> <description> Queues a node for deletion at the end of the current frame. When deleted, all of its child nodes will be deleted as well. This method ensures it's safe to delete the node, contrary to [method Object.free]. Use [method Object.is_queued_for_deletion] to check whether a node will be deleted at the end of the frame. </description> </method> <method name="raise"> - <return type="void"> - </return> + <return type="void" /> <description> Moves this node to the bottom of parent node's children hierarchy. This is often useful in GUIs ([Control] nodes), because their order of drawing depends on their order in the tree. The top Node is drawn first, then any siblings below the top Node in the hierarchy are successively drawn on top of it. After using [code]raise[/code], a Control will be drawn on top of its siblings. </description> </method> <method name="remove_and_skip"> - <return type="void"> - </return> + <return type="void" /> <description> Removes a node and sets all its children as children of the parent node (if it exists). All event subscriptions that pass by the removed node will be unsubscribed. </description> </method> <method name="remove_child"> - <return type="void"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Node" /> <description> Removes a child node. The node is NOT deleted and must be deleted manually. </description> </method> <method name="remove_from_group"> - <return type="void"> - </return> - <argument index="0" name="group" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="group" type="StringName" /> <description> Removes a node from a group. See notes in the description, and the group methods in [SceneTree]. </description> </method> <method name="replace_by"> - <return type="void"> - </return> - <argument index="0" name="node" type="Node"> - </argument> - <argument index="1" name="keep_groups" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Node" /> + <argument index="1" name="keep_groups" type="bool" default="false" /> <description> Replaces a node in a scene by the given one. Subscriptions that pass through this node will be lost. If [code]keep_groups[/code] is [code]true[/code], the [code]node[/code] is added to the same groups that the replaced node is in. </description> </method> <method name="request_ready"> - <return type="void"> - </return> + <return type="void" /> <description> Requests that [code]_ready[/code] be called again. Note that the method won't be called immediately, but is scheduled for when the node is added to the scene tree again (see [method _ready]). [code]_ready[/code] is called only for the node which requested it, which means that you need to request ready for each child if you want them to call [code]_ready[/code] too (in which case, [code]_ready[/code] will be called in the same order as it would normally). </description> </method> <method name="rpc" qualifiers="vararg"> - <return type="Variant"> - </return> - <argument index="0" name="method" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="method" type="StringName" /> <description> Sends a remote procedure call request for the given [code]method[/code] to peers on the network (and locally), optionally sending all additional arguments as arguments to the method called by the RPC. The call request will only be received by nodes with the same [NodePath], including the exact same node name. Behaviour depends on the RPC configuration for the given method, see [method rpc_config]. Methods are not exposed to RPCs by default. Returns an empty [Variant]. [b]Note:[/b] You can only safely use RPCs on clients after you received the [code]connected_to_server[/code] signal from the [MultiplayerAPI]. You also need to keep track of the connection state, either by the [MultiplayerAPI] signals like [code]server_disconnected[/code] or by checking [code]get_multiplayer().network_peer.get_connection_status() == CONNECTION_CONNECTED[/code]. </description> </method> <method name="rpc_config"> - <return type="int"> - </return> - <argument index="0" name="method" type="StringName"> - </argument> - <argument index="1" name="rpc_mode" type="int" enum="MultiplayerAPI.RPCMode"> - </argument> - <argument index="2" name="transfer_mode" type="int" enum="MultiplayerPeer.TransferMode" default="2"> - </argument> - <argument index="3" name="channel" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="method" type="StringName" /> + <argument index="1" name="rpc_mode" type="int" enum="MultiplayerAPI.RPCMode" /> + <argument index="2" name="transfer_mode" type="int" enum="MultiplayerPeer.TransferMode" default="2" /> + <argument index="3" name="channel" type="int" default="0" /> <description> Changes the RPC mode for the given [code]method[/code] to the given [code]rpc_mode[/code], optionally specifying the [code]transfer_mode[/code] and [code]channel[/code] (on supported peers). See [enum MultiplayerAPI.RPCMode] and [enum MultiplayerPeer.TransferMode]. An alternative is annotating methods and properties with the corresponding keywords ([code]remote[/code], [code]master[/code], [code]puppet[/code], [code]remotesync[/code], [code]mastersync[/code], [code]puppetsync[/code]). By default, methods are not exposed to networking (and RPCs). </description> </method> <method name="rpc_id" qualifiers="vararg"> - <return type="Variant"> - </return> - <argument index="0" name="peer_id" type="int"> - </argument> - <argument index="1" name="method" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="peer_id" type="int" /> + <argument index="1" name="method" type="StringName" /> <description> Sends a [method rpc] to a specific peer identified by [code]peer_id[/code] (see [method MultiplayerPeer.set_target_peer]). Returns an empty [Variant]. </description> </method> <method name="set_display_folded"> - <return type="void"> - </return> - <argument index="0" name="fold" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="fold" type="bool" /> <description> Sets the folded state of the node in the Scene dock. </description> </method> <method name="set_editor_description"> - <return type="void"> - </return> - <argument index="0" name="editor_description" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="editor_description" type="String" /> <description> </description> </method> <method name="set_network_master"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="recursive" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="recursive" type="bool" default="true" /> <description> Sets the node's network master to the peer with the given peer ID. The network master is the peer that has authority over the node on the network. Useful in conjunction with the [code]master[/code] and [code]puppet[/code] keywords. Inherited from the parent node by default, which ultimately defaults to peer ID 1 (the server). If [code]recursive[/code], the given peer is recursively set as the master for all children of this node. </description> </method> <method name="set_physics_process"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Enables or disables physics (i.e. fixed framerate) processing. When a node is being processed, it will receive a [constant NOTIFICATION_PHYSICS_PROCESS] at a fixed (usually 60 FPS, see [member Engine.iterations_per_second] to change) interval (and the [method _physics_process] callback will be called if exists). Enabled automatically if [method _physics_process] is overridden. Any calls to this before [method _ready] will be ignored. </description> </method> <method name="set_physics_process_internal"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Enables or disables internal physics for this node. Internal physics processing happens in isolation from the normal [method _physics_process] calls and is used by some nodes internally to guarantee proper functioning even if the node is paused or physics processing is disabled for scripting ([method set_physics_process]). Only useful for advanced uses to manipulate built-in nodes' behavior. [b]Warning:[/b] Built-in Nodes rely on the internal processing for their own logic, so changing this value from your code may lead to unexpected behavior. Script access to this internal logic is provided for specific advanced uses, but is unsafe and not supported. </description> </method> <method name="set_process"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Enables or disables processing. When a node is being processed, it will receive a [constant NOTIFICATION_PROCESS] on every drawn frame (and the [method _process] callback will be called if exists). Enabled automatically if [method _process] is overridden. Any calls to this before [method _ready] will be ignored. </description> </method> <method name="set_process_input"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Enables or disables input processing. This is not required for GUI controls! Enabled automatically if [method _input] is overridden. Any calls to this before [method _ready] will be ignored. </description> </method> <method name="set_process_internal"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Enables or disabled internal processing for this node. Internal processing happens in isolation from the normal [method _process] calls and is used by some nodes internally to guarantee proper functioning even if the node is paused or processing is disabled for scripting ([method set_process]). Only useful for advanced uses to manipulate built-in nodes' behavior. [b]Warning:[/b] Built-in Nodes rely on the internal processing for their own logic, so changing this value from your code may lead to unexpected behavior. Script access to this internal logic is provided for specific advanced uses, but is unsafe and not supported. </description> </method> <method name="set_process_unhandled_input"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Enables unhandled input processing. This is not required for GUI controls! It enables the node to receive all input that was not previously handled (usually by a [Control]). Enabled automatically if [method _unhandled_input] is overridden. Any calls to this before [method _ready] will be ignored. </description> </method> <method name="set_process_unhandled_key_input"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Enables unhandled key input processing. Enabled automatically if [method _unhandled_key_input] is overridden. Any calls to this before [method _ready] will be ignored. </description> </method> <method name="set_scene_instance_load_placeholder"> - <return type="void"> - </return> - <argument index="0" name="load_placeholder" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="load_placeholder" type="bool" /> <description> Sets whether this is an instance load placeholder. See [InstancePlaceholder]. </description> </method> <method name="update_configuration_warnings"> - <return type="void"> - </return> + <return type="void" /> <description> Updates the warning displayed for this node in the Scene Dock. Use [method _get_configuration_warnings] to setup the warning message to display. diff --git a/doc/classes/Node2D.xml b/doc/classes/Node2D.xml index 9ffa333f17..cc790b7c28 100644 --- a/doc/classes/Node2D.xml +++ b/doc/classes/Node2D.xml @@ -12,104 +12,80 @@ </tutorials> <methods> <method name="apply_scale"> - <return type="void"> - </return> - <argument index="0" name="ratio" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="ratio" type="Vector2" /> <description> Multiplies the current scale by the [code]ratio[/code] vector. </description> </method> <method name="get_angle_to" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> + <return type="float" /> + <argument index="0" name="point" type="Vector2" /> <description> Returns the angle between the node and the [code]point[/code] in radians. </description> </method> <method name="get_relative_transform_to_parent" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="parent" type="Node"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="parent" type="Node" /> <description> Returns the [Transform2D] relative to this node's parent. </description> </method> <method name="global_translate"> - <return type="void"> - </return> - <argument index="0" name="offset" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="offset" type="Vector2" /> <description> Adds the [code]offset[/code] vector to the node's global position. </description> </method> <method name="look_at"> - <return type="void"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="point" type="Vector2" /> <description> Rotates the node so it points towards the [code]point[/code], which is expected to use global coordinates. </description> </method> <method name="move_local_x"> - <return type="void"> - </return> - <argument index="0" name="delta" type="float"> - </argument> - <argument index="1" name="scaled" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="delta" type="float" /> + <argument index="1" name="scaled" type="bool" default="false" /> <description> Applies a local translation on the node's X axis based on the [method Node._process]'s [code]delta[/code]. If [code]scaled[/code] is [code]false[/code], normalizes the movement. </description> </method> <method name="move_local_y"> - <return type="void"> - </return> - <argument index="0" name="delta" type="float"> - </argument> - <argument index="1" name="scaled" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="delta" type="float" /> + <argument index="1" name="scaled" type="bool" default="false" /> <description> Applies a local translation on the node's Y axis based on the [method Node._process]'s [code]delta[/code]. If [code]scaled[/code] is [code]false[/code], normalizes the movement. </description> </method> <method name="rotate"> - <return type="void"> - </return> - <argument index="0" name="radians" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="radians" type="float" /> <description> Applies a rotation to the node, in radians, starting from its current rotation. </description> </method> <method name="to_global" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="local_point" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="local_point" type="Vector2" /> <description> Transforms the provided local position into a position in global coordinate space. The input is expected to be local relative to the [Node2D] it is called on. e.g. Applying this method to the positions of child nodes will correctly transform their positions into the global coordinate space, but applying it to a node's own position will give an incorrect result, as it will incorporate the node's own transformation into its global position. </description> </method> <method name="to_local" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="global_point" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="global_point" type="Vector2" /> <description> Transforms the provided global position into a position in local coordinate space. The output will be local relative to the [Node2D] it is called on. e.g. It is appropriate for determining the positions of child nodes, but it is not appropriate for determining its own position relative to its parent. </description> </method> <method name="translate"> - <return type="void"> - </return> - <argument index="0" name="offset" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="offset" type="Vector2" /> <description> Translates the node by the given [code]offset[/code] in local coordinates. </description> diff --git a/doc/classes/Node3D.xml b/doc/classes/Node3D.xml index 8cb331a578..983d8961fb 100644 --- a/doc/classes/Node3D.xml +++ b/doc/classes/Node3D.xml @@ -14,127 +14,104 @@ </tutorials> <methods> <method name="add_gizmo"> - <return type="void"> - </return> - <argument index="0" name="gizmo" type="Node3DGizmo"> - </argument> + <return type="void" /> + <argument index="0" name="gizmo" type="Node3DGizmo" /> <description> Attach a gizmo to this [code]Node3D[/code]. </description> </method> <method name="clear_gizmos"> - <return type="void"> - </return> + <return type="void" /> <description> Clear all gizmos attached to this [code]Node3D[/code]. </description> </method> <method name="clear_subgizmo_selection"> - <return type="void"> - </return> + <return type="void" /> <description> Clears subgizmo selection for this node in the editor. Useful when subgizmo IDs become invalid after a property change. </description> </method> <method name="force_update_transform"> - <return type="void"> - </return> + <return type="void" /> <description> Forces the transform to update. Transform changes in physics are not instant for performance reasons. Transforms are accumulated and then set. Use this if you need an up-to-date transform when doing physics operations. </description> </method> <method name="get_gizmos" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns all the gizmos attached to this [code]Node3D[/code]. </description> </method> <method name="get_parent_node_3d" qualifiers="const"> - <return type="Node3D"> - </return> + <return type="Node3D" /> <description> Returns the parent [Node3D], or an empty [Object] if no parent exists or parent is not of type [Node3D]. </description> </method> <method name="get_world_3d" qualifiers="const"> - <return type="World3D"> - </return> + <return type="World3D" /> <description> Returns the current [World3D] resource this [Node3D] node is registered to. </description> </method> <method name="global_rotate"> - <return type="void"> - </return> - <argument index="0" name="axis" type="Vector3"> - </argument> - <argument index="1" name="angle" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="axis" type="Vector3" /> + <argument index="1" name="angle" type="float" /> <description> Rotates the global (world) transformation around axis, a unit [Vector3], by specified angle in radians. The rotation axis is in global coordinate system. </description> </method> <method name="global_scale"> - <return type="void"> - </return> - <argument index="0" name="scale" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="scale" type="Vector3" /> <description> Scales the global (world) transformation by the given [Vector3] scale factors. </description> </method> <method name="global_translate"> - <return type="void"> - </return> - <argument index="0" name="offset" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="offset" type="Vector3" /> <description> Moves the global (world) transformation by [Vector3] offset. The offset is in global coordinate system. </description> </method> <method name="hide"> - <return type="void"> - </return> + <return type="void" /> <description> Disables rendering of this node. Changes [member visible] to [code]false[/code]. </description> </method> <method name="is_local_transform_notification_enabled" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether node notifies about its local transformation changes. [Node3D] will not propagate this by default. </description> </method> <method name="is_scale_disabled" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether this node uses a scale of [code](1, 1, 1)[/code] or its local transformation scale. </description> </method> <method name="is_transform_notification_enabled" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the node notifies about its global and local transformation changes. [Node3D] will not propagate this by default. </description> </method> <method name="is_visible_in_tree" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the node is present in the [SceneTree], its [member visible] property is [code]true[/code] and all its antecedents are also visible. If any antecedent is hidden, this node will not be visible in the scene tree. </description> </method> <method name="look_at"> - <return type="void"> - </return> - <argument index="0" name="target" type="Vector3"> - </argument> - <argument index="1" name="up" type="Vector3" default="Vector3(0, 1, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="target" type="Vector3" /> + <argument index="1" name="up" type="Vector3" default="Vector3(0, 1, 0)" /> <description> Rotates itself so that the local -Z axis points towards the [code]target[/code] position. The transform will first be rotated around the given [code]up[/code] vector, and then fully aligned to the target by a further rotation around an axis perpendicular to both the [code]target[/code] and [code]up[/code] vectors. @@ -142,173 +119,135 @@ </description> </method> <method name="look_at_from_position"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector3"> - </argument> - <argument index="1" name="target" type="Vector3"> - </argument> - <argument index="2" name="up" type="Vector3" default="Vector3(0, 1, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector3" /> + <argument index="1" name="target" type="Vector3" /> + <argument index="2" name="up" type="Vector3" default="Vector3(0, 1, 0)" /> <description> Moves the node to the specified [code]position[/code], and then rotates itself to point toward the [code]target[/code] as per [method look_at]. Operations take place in global space. </description> </method> <method name="orthonormalize"> - <return type="void"> - </return> + <return type="void" /> <description> Resets this node's transformations (like scale, skew and taper) preserving its rotation and translation by performing Gram-Schmidt orthonormalization on this node's [Transform3D]. </description> </method> <method name="rotate"> - <return type="void"> - </return> - <argument index="0" name="axis" type="Vector3"> - </argument> - <argument index="1" name="angle" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="axis" type="Vector3" /> + <argument index="1" name="angle" type="float" /> <description> Rotates the local transformation around axis, a unit [Vector3], by specified angle in radians. </description> </method> <method name="rotate_object_local"> - <return type="void"> - </return> - <argument index="0" name="axis" type="Vector3"> - </argument> - <argument index="1" name="angle" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="axis" type="Vector3" /> + <argument index="1" name="angle" type="float" /> <description> Rotates the local transformation around axis, a unit [Vector3], by specified angle in radians. The rotation axis is in object-local coordinate system. </description> </method> <method name="rotate_x"> - <return type="void"> - </return> - <argument index="0" name="angle" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="angle" type="float" /> <description> Rotates the local transformation around the X axis by angle in radians. </description> </method> <method name="rotate_y"> - <return type="void"> - </return> - <argument index="0" name="angle" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="angle" type="float" /> <description> Rotates the local transformation around the Y axis by angle in radians. </description> </method> <method name="rotate_z"> - <return type="void"> - </return> - <argument index="0" name="angle" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="angle" type="float" /> <description> Rotates the local transformation around the Z axis by angle in radians. </description> </method> <method name="scale_object_local"> - <return type="void"> - </return> - <argument index="0" name="scale" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="scale" type="Vector3" /> <description> Scales the local transformation by given 3D scale factors in object-local coordinate system. </description> </method> <method name="set_disable_scale"> - <return type="void"> - </return> - <argument index="0" name="disable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="disable" type="bool" /> <description> Sets whether the node uses a scale of [code](1, 1, 1)[/code] or its local transformation scale. Changes to the local transformation scale are preserved. </description> </method> <method name="set_identity"> - <return type="void"> - </return> + <return type="void" /> <description> Reset all transformations for this node (sets its [Transform3D] to the identity matrix). </description> </method> <method name="set_ignore_transform_notification"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enabled" type="bool" /> <description> Sets whether the node ignores notification that its transformation (global or local) changed. </description> </method> <method name="set_notify_local_transform"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Sets whether the node notifies about its local transformation changes. [Node3D] will not propagate this by default. </description> </method> <method name="set_notify_transform"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Sets whether the node notifies about its global and local transformation changes. [Node3D] will not propagate this by default, unless it is in the editor context and it has a valid gizmo. </description> </method> <method name="show"> - <return type="void"> - </return> + <return type="void" /> <description> Enables rendering of this node. Changes [member visible] to [code]true[/code]. </description> </method> <method name="to_global" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="local_point" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="local_point" type="Vector3" /> <description> Transforms [code]local_point[/code] from this node's local space to world space. </description> </method> <method name="to_local" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="global_point" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="global_point" type="Vector3" /> <description> Transforms [code]global_point[/code] from world space to this node's local space. </description> </method> <method name="translate"> - <return type="void"> - </return> - <argument index="0" name="offset" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="offset" type="Vector3" /> <description> Changes the node's position by the given offset [Vector3]. Note that the translation [code]offset[/code] is affected by the node's scale, so if scaled by e.g. [code](10, 1, 1)[/code], a translation by an offset of [code](2, 0, 0)[/code] would actually add 20 ([code]2 * 10[/code]) to the X coordinate. </description> </method> <method name="translate_object_local"> - <return type="void"> - </return> - <argument index="0" name="offset" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="offset" type="Vector3" /> <description> Changes the node's position by the given offset [Vector3] in local space. </description> </method> <method name="update_gizmos"> - <return type="void"> - </return> + <return type="void" /> <description> Updates all the [Node3DGizmo]s attached to this node. </description> diff --git a/doc/classes/NodePath.xml b/doc/classes/NodePath.xml index 0ba2e73ad4..d05630d277 100644 --- a/doc/classes/NodePath.xml +++ b/doc/classes/NodePath.xml @@ -27,26 +27,21 @@ </tutorials> <methods> <method name="NodePath" qualifiers="constructor"> - <return type="NodePath"> - </return> + <return type="NodePath" /> <description> Constructs an empty [NodePath]. </description> </method> <method name="NodePath" qualifiers="constructor"> - <return type="NodePath"> - </return> - <argument index="0" name="from" type="NodePath"> - </argument> + <return type="NodePath" /> + <argument index="0" name="from" type="NodePath" /> <description> Constructs a [NodePath] as a copy of the given [NodePath]. </description> </method> <method name="NodePath" qualifiers="constructor"> - <return type="NodePath"> - </return> - <argument index="0" name="from" type="String"> - </argument> + <return type="NodePath" /> + <argument index="0" name="from" type="String" /> <description> Creates a NodePath from a string, e.g. [code]"Path2D/PathFollow2D/Sprite2D:texture:size"[/code]. A path is absolute if it starts with a slash. Absolute paths are only valid in the global scene tree, not within individual scenes. In a relative path, [code]"."[/code] and [code]".."[/code] indicate the current node and its parent. The "subnames" optionally included after the path to the target node can point to resources or properties, and can also be nested. @@ -68,8 +63,7 @@ </description> </method> <method name="get_as_property_path" qualifiers="const"> - <return type="NodePath"> - </return> + <return type="NodePath" /> <description> Returns a node path with a colon character ([code]:[/code]) prepended, transforming it to a pure property path with no node name (defaults to resolving from the current node). [codeblocks] @@ -91,8 +85,7 @@ </description> </method> <method name="get_concatenated_subnames" qualifiers="const"> - <return type="StringName"> - </return> + <return type="StringName" /> <description> Returns all subnames concatenated with a colon character ([code]:[/code]) as separator, i.e. the right side of the first colon in a node path. [codeblocks] @@ -108,10 +101,8 @@ </description> </method> <method name="get_name" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="idx" type="int" /> <description> Gets the node name indicated by [code]idx[/code] (0 to [method get_name_count]). [codeblocks] @@ -131,18 +122,15 @@ </description> </method> <method name="get_name_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Gets the number of node names which make up the path. Subnames (see [method get_subname_count]) are not included. For example, [code]"Path2D/PathFollow2D/Sprite2D"[/code] has 3 names. </description> </method> <method name="get_subname" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="idx" type="int" /> <description> Gets the resource or property name indicated by [code]idx[/code] (0 to [method get_subname_count]). [codeblocks] @@ -160,40 +148,33 @@ </description> </method> <method name="get_subname_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Gets the number of resource or property names ("subnames") in the path. Each subname is listed after a colon character ([code]:[/code]) in the node path. For example, [code]"Path2D/PathFollow2D/Sprite2D:texture:load_path"[/code] has 2 subnames. </description> </method> <method name="is_absolute" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the node path is absolute (as opposed to relative), which means that it starts with a slash character ([code]/[/code]). Absolute node paths can be used to access the root node ([code]"/root"[/code]) or autoloads (e.g. [code]"/global"[/code] if a "global" autoload was registered). </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the node path is empty. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="NodePath"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="NodePath" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="NodePath"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="NodePath" /> <description> </description> </method> diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index 679a51935d..e5d45189c7 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -11,38 +11,30 @@ </tutorials> <methods> <method name="alert"> - <return type="void"> - </return> - <argument index="0" name="text" type="String"> - </argument> - <argument index="1" name="title" type="String" default=""Alert!""> - </argument> + <return type="void" /> + <argument index="0" name="text" type="String" /> + <argument index="1" name="title" type="String" default=""Alert!"" /> <description> Displays a modal dialog box using the host OS' facilities. Execution is blocked until the dialog is closed. </description> </method> <method name="can_use_threads" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the current host platform is using multiple threads. </description> </method> <method name="close_midi_inputs"> - <return type="void"> - </return> + <return type="void" /> <description> Shuts down system MIDI driver. [b]Note:[/b] This method is implemented on Linux, macOS and Windows. </description> </method> <method name="create_process"> - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="arguments" type="PackedStringArray"> - </argument> + <return type="int" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="arguments" type="PackedStringArray" /> <description> Creates a new process that runs independently of Godot. It will not terminate if Godot terminates. The file specified in [code]path[/code] must exist and be executable. Platform path resolution will be used. The [code]arguments[/code] are used in the given order and separated by a space. If the process creation succeeds, the method will return the new process ID, which you can use to monitor the process (and potentially terminate it with [method kill]). If the process creation fails, the method will return [code]-1[/code]. @@ -60,38 +52,30 @@ </description> </method> <method name="delay_msec" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="msec" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="msec" type="int" /> <description> Delay execution of the current thread by [code]msec[/code] milliseconds. [code]msec[/code] must be greater than or equal to [code]0[/code]. Otherwise, [method delay_msec] will do nothing and will print an error message. </description> </method> <method name="delay_usec" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="usec" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="usec" type="int" /> <description> Delay execution of the current thread by [code]usec[/code] microseconds. [code]usec[/code] must be greater than or equal to [code]0[/code]. Otherwise, [method delay_usec] will do nothing and will print an error message. </description> </method> <method name="dump_memory_to_file"> - <return type="void"> - </return> - <argument index="0" name="file" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="file" type="String" /> <description> Dumps the memory allocation ringlist to a file (only works in debug). Entry format per line: "Address - Size - Description". </description> </method> <method name="dump_resources_to_file"> - <return type="void"> - </return> - <argument index="0" name="file" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="file" type="String" /> <description> Dumps all used resources to file (only works in debug). Entry format per line: "Resource Type : Resource Location". @@ -99,16 +83,11 @@ </description> </method> <method name="execute"> - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="arguments" type="PackedStringArray"> - </argument> - <argument index="2" name="output" type="Array" default="[]"> - </argument> - <argument index="3" name="read_stderr" type="bool" default="false"> - </argument> + <return type="int" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="arguments" type="PackedStringArray" /> + <argument index="2" name="output" type="Array" default="[]" /> + <argument index="3" name="read_stderr" type="bool" default="false" /> <description> Executes a command. The file specified in [code]path[/code] must exist and be executable. Platform path resolution will be used. The [code]arguments[/code] are used in the given order and separated by a space. If an [code]output[/code] [Array] is provided, the complete shell output of the process will be appended as a single [String] element in [code]output[/code]. If [code]read_stderr[/code] is [code]true[/code], the output to the standard error stream will be included too. If the command is successfully executed, the method will return the exit code of the command, or [code]-1[/code] if it fails. @@ -139,25 +118,21 @@ </description> </method> <method name="find_keycode_from_string" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="string" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="string" type="String" /> <description> Returns the keycode of the given string (e.g. "Escape"). </description> </method> <method name="get_cache_dir" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the [i]global[/i] cache data directory according to the operating system's standards. On desktop platforms, this path can be overridden by setting the [code]XDG_CACHE_HOME[/code] environment variable before starting the project. See [url=https://docs.godotengine.org/en/latest/tutorials/io/data_paths.html]File paths in Godot projects[/url] in the documentation for more information. See also [method get_config_dir] and [method get_data_dir]. Not to be confused with [method get_user_data_dir], which returns the [i]project-specific[/i] user data path. </description> </method> <method name="get_cmdline_args"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns the command-line arguments passed to the engine. Command-line arguments can be written in any form, including both [code]--key value[/code] and [code]--key=value[/code] forms so they can be properly parsed, as long as custom command-line arguments do not conflict with engine arguments. @@ -187,16 +162,14 @@ </description> </method> <method name="get_config_dir" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the [i]global[/i] user configuration directory according to the operating system's standards. On desktop platforms, this path can be overridden by setting the [code]XDG_CONFIG_HOME[/code] environment variable before starting the project. See [url=https://docs.godotengine.org/en/latest/tutorials/io/data_paths.html]File paths in Godot projects[/url] in the documentation for more information. See also [method get_cache_dir] and [method get_data_dir]. Not to be confused with [method get_user_data_dir], which returns the [i]project-specific[/i] user data path. </description> </method> <method name="get_connected_midi_inputs"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns an array of MIDI device names. The returned array will be empty if the system MIDI driver has not previously been initialised with [method open_midi_inputs]. @@ -204,58 +177,49 @@ </description> </method> <method name="get_data_dir" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the [i]global[/i] user data directory according to the operating system's standards. On desktop platforms, this path can be overridden by setting the [code]XDG_DATA_HOME[/code] environment variable before starting the project. See [url=https://docs.godotengine.org/en/latest/tutorials/io/data_paths.html]File paths in Godot projects[/url] in the documentation for more information. See also [method get_cache_dir] and [method get_config_dir]. Not to be confused with [method get_user_data_dir], which returns the [i]project-specific[/i] user data path. </description> </method> <method name="get_environment" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="variable" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="variable" type="String" /> <description> Returns the value of an environment variable. Returns an empty string if the environment variable doesn't exist. [b]Note:[/b] Double-check the casing of [code]variable[/code]. Environment variable names are case-sensitive on all platforms except Windows. </description> </method> <method name="get_executable_path" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the path to the current engine executable. </description> </method> <method name="get_external_data_dir" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> On Android, returns the absolute directory path where user data can be written to external storage if available. On all other platforms, this will return the same location as [method get_user_data_dir]. </description> </method> <method name="get_granted_permissions" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> With this function, you can get the list of dangerous permissions that have been granted to the Android application. [b]Note:[/b] This method is implemented on Android. </description> </method> <method name="get_keycode_string" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="code" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="code" type="int" /> <description> Returns the given keycode as a string (e.g. Return values: [code]"Escape"[/code], [code]"Shift+Escape"[/code]). See also [member InputEventKey.keycode] and [method InputEventKey.get_keycode_with_modifiers]. </description> </method> <method name="get_locale" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the host OS locale as a string of the form [code]language_Script_COUNTRY_VARIANT@extra[/code]. [code]language[/code] - 2 or 3-letter [url=https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes]language code[/url], in lower case. @@ -266,70 +230,60 @@ </description> </method> <method name="get_model_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the model name of the current device. [b]Note:[/b] This method is implemented on Android and iOS. Returns [code]"GenericDevice"[/code] on unsupported platforms. </description> </method> <method name="get_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the name of the host OS. Possible values are: [code]"Android"[/code], [code]"iOS"[/code], [code]"HTML5"[/code], [code]"OSX"[/code], [code]"Server"[/code], [code]"Windows"[/code], [code]"UWP"[/code], [code]"X11"[/code]. </description> </method> <method name="get_process_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the project's process ID. [b]Note:[/b] This method is implemented on Android, iOS, Linux, macOS and Windows. </description> </method> <method name="get_processor_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of threads available on the host machine. </description> </method> <method name="get_static_memory_peak_usage" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the maximum amount of static memory used (only works in debug). </description> </method> <method name="get_static_memory_usage" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of static memory being used by the program in bytes. </description> </method> <method name="get_system_dir" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="dir" type="int" enum="OS.SystemDir"> - </argument> + <return type="String" /> + <argument index="0" name="dir" type="int" enum="OS.SystemDir" /> <description> Returns the actual path to commonly used folders across different platforms. Available locations are specified in [enum SystemDir]. [b]Note:[/b] This method is implemented on Android, Linux, macOS and Windows. </description> </method> <method name="get_thread_caller_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the ID of the current thread. This can be used in logs to ease debugging of multi-threaded applications. [b]Note:[/b] Thread IDs are not deterministic and may be reused across application restarts. </description> </method> <method name="get_unique_id" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a string that is unique to the device. [b]Note:[/b] This string may change without notice if the user reinstalls/upgrades their operating system or changes their hardware. This means it should generally not be used to encrypt persistent data as the data saved before an unexpected ID change would become inaccessible. The returned string may also be falsified using external programs, so do not rely on the string returned by [method get_unique_id] for security purposes. @@ -337,8 +291,7 @@ </description> </method> <method name="get_user_data_dir" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the absolute directory path where user data is written ([code]user://[/code]). On Linux, this is [code]~/.local/share/godot/app_userdata/[project_name][/code], or [code]~/.local/share/[custom_name][/code] if [code]use_custom_user_dir[/code] is set. @@ -349,28 +302,23 @@ </description> </method> <method name="has_environment" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="variable" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="variable" type="String" /> <description> Returns [code]true[/code] if the environment variable with the name [code]variable[/code] exists. [b]Note:[/b] Double-check the casing of [code]variable[/code]. Environment variable names are case-sensitive on all platforms except Windows. </description> </method> <method name="has_feature" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="tag_name" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="tag_name" type="String" /> <description> Returns [code]true[/code] if the feature for the given feature tag is supported in the currently running instance, depending on the platform, build, etc. Can be used to check whether you're currently running a debug build, on a certain platform or arch, etc. Refer to the [url=https://docs.godotengine.org/en/latest/getting_started/workflow/export/feature_tags.html]Feature Tags[/url] documentation for more details. [b]Note:[/b] Tag names are case-sensitive. </description> </method> <method name="is_debug_build" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the Godot binary used to run the project is a [i]debug[/i] export template, or when running in the editor. Returns [code]false[/code] if the Godot binary used to run the project is a [i]release[/i] export template. @@ -378,33 +326,27 @@ </description> </method> <method name="is_keycode_unicode" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="code" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="code" type="int" /> <description> Returns [code]true[/code] if the input keycode corresponds to a Unicode character. </description> </method> <method name="is_stdout_verbose" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the engine was executed with [code]-v[/code] (verbose stdout). </description> </method> <method name="is_userfs_persistent" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> If [code]true[/code], the [code]user://[/code] file system is persistent, so that its state is the same after a player quits and starts the game again. Relevant to the HTML5 platform, where this persistence may be unavailable. </description> </method> <method name="kill"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="pid" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="pid" type="int" /> <description> Kill (terminate) the process identified by the given process ID ([code]pid[/code]), e.g. the one returned by [method execute] in non-blocking mode. [b]Note:[/b] This method can also be used to kill processes that were not spawned by the game. @@ -412,99 +354,79 @@ </description> </method> <method name="open_midi_inputs"> - <return type="void"> - </return> + <return type="void" /> <description> Initialises the singleton for the system MIDI driver. [b]Note:[/b] This method is implemented on Linux, macOS and Windows. </description> </method> <method name="print_all_resources"> - <return type="void"> - </return> - <argument index="0" name="tofile" type="String" default=""""> - </argument> + <return type="void" /> + <argument index="0" name="tofile" type="String" default="""" /> <description> Shows all resources in the game. Optionally, the list can be written to a file by specifying a file path in [code]tofile[/code]. </description> </method> <method name="print_all_textures_by_size"> - <return type="void"> - </return> + <return type="void" /> <description> Shows the list of loaded textures sorted by size in memory. </description> </method> <method name="print_resources_by_type"> - <return type="void"> - </return> - <argument index="0" name="types" type="PackedStringArray"> - </argument> + <return type="void" /> + <argument index="0" name="types" type="PackedStringArray" /> <description> Shows the number of resources loaded by the game of the given types. </description> </method> <method name="print_resources_in_use"> - <return type="void"> - </return> - <argument index="0" name="short" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="short" type="bool" default="false" /> <description> Shows all resources currently used by the game. </description> </method> <method name="request_permission"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="String" /> <description> At the moment this function is only used by [code]AudioDriverOpenSL[/code] to request permission for [code]RECORD_AUDIO[/code] on Android. </description> </method> <method name="request_permissions"> - <return type="bool"> - </return> + <return type="bool" /> <description> With this function, you can request dangerous permissions since normal permissions are automatically granted at install time in Android applications. [b]Note:[/b] This method is implemented on Android. </description> </method> <method name="set_environment" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="variable" type="String"> - </argument> - <argument index="1" name="value" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="variable" type="String" /> + <argument index="1" name="value" type="String" /> <description> Sets the value of the environment variable [code]variable[/code] to [code]value[/code]. The environment variable will be set for the Godot process and any process executed with [method execute] after running [method set_environment]. The environment variable will [i]not[/i] persist to processes run after the Godot process was terminated. [b]Note:[/b] Double-check the casing of [code]variable[/code]. Environment variable names are case-sensitive on all platforms except Windows. </description> </method> <method name="set_thread_name"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="name" type="String" /> <description> Sets the name of the current thread. </description> </method> <method name="set_use_file_access_save_and_swap"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enabled" type="bool" /> <description> Enables backup saves if [code]enabled[/code] is [code]true[/code]. </description> </method> <method name="shell_open"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="uri" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="uri" type="String" /> <description> Requests the OS to open a resource with the most appropriate program. For example: - [code]OS.shell_open("C:\\Users\name\Downloads")[/code] on Windows opens the file explorer at the user's Downloads folder. diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index fe7529bceb..9ad79dc17a 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -33,18 +33,15 @@ </tutorials> <methods> <method name="_get" qualifiers="virtual"> - <return type="Variant"> - </return> - <argument index="0" name="property" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="property" type="StringName" /> <description> Virtual method which can be overridden to customize the return value of [method get]. Returns the given property. Returns [code]null[/code] if the [code]property[/code] does not exist. </description> </method> <method name="_get_property_list" qualifiers="virtual"> - <return type="Array"> - </return> + <return type="Array" /> <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. @@ -52,57 +49,45 @@ </description> </method> <method name="_init" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Called when the object is initialized. </description> </method> <method name="_notification" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="what" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="what" type="int" /> <description> Called whenever the object receives a notification, which is identified in [code]what[/code] by a constant. The base [Object] has two constants [constant NOTIFICATION_POSTINITIALIZE] and [constant NOTIFICATION_PREDELETE], but subclasses such as [Node] define a lot more notifications which are also received by this method. </description> </method> <method name="_set" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="property" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="bool" /> + <argument index="0" name="property" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> Virtual method which can be overridden to customize the return value of [method set]. Sets a property. Returns [code]true[/code] if the [code]property[/code] exists. </description> </method> <method name="_to_string" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Virtual method which can be overridden to customize the return value of [method to_string], and thus the object's representation where it is converted to a string, e.g. with [code]print(obj)[/code]. Returns a [String] representing the object. If not overridden, defaults to [code]"[ClassName:RID]"[/code]. </description> </method> <method name="add_user_signal"> - <return type="void"> - </return> - <argument index="0" name="signal" type="String"> - </argument> - <argument index="1" name="arguments" type="Array" default="[]"> - </argument> + <return type="void" /> + <argument index="0" name="signal" type="String" /> + <argument index="1" name="arguments" type="Array" default="[]" /> <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 Variant.Type]) entries. </description> </method> <method name="call" qualifiers="vararg"> - <return type="Variant"> - </return> - <argument index="0" name="method" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="method" type="StringName" /> <description> Calls the [code]method[/code] on the object and returns the result. This method supports a variable number of arguments, so parameters are passed as a comma separated list. Example: [codeblocks] @@ -119,10 +104,8 @@ </description> </method> <method name="call_deferred" qualifiers="vararg"> - <return type="void"> - </return> - <argument index="0" name="method" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="method" type="StringName" /> <description> Calls the [code]method[/code] on the object during idle time. This method supports a variable number of arguments, so parameters are passed as a comma separated list. Example: [codeblocks] @@ -139,12 +122,9 @@ </description> </method> <method name="callv"> - <return type="Variant"> - </return> - <argument index="0" name="method" type="StringName"> - </argument> - <argument index="1" name="arg_array" type="Array"> - </argument> + <return type="Variant" /> + <argument index="0" name="method" type="StringName" /> + <argument index="1" name="arg_array" type="Array" /> <description> Calls the [code]method[/code] on the object and returns the result. Contrarily to [method call], this method does not support a variable number of arguments but expects all parameters to be via a single [Array]. [codeblocks] @@ -160,23 +140,17 @@ </description> </method> <method name="can_translate_messages" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the object can translate strings. See [method set_message_translation] and [method tr]. </description> </method> <method name="connect"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="signal" type="StringName"> - </argument> - <argument index="1" name="callable" type="Callable"> - </argument> - <argument index="2" name="binds" type="Array" default="[]"> - </argument> - <argument index="3" name="flags" type="int" default="0"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="signal" type="StringName" /> + <argument index="1" name="callable" type="Callable" /> + <argument index="2" name="binds" type="Array" default="[]" /> + <argument index="3" name="flags" type="int" default="0" /> <description> Connects a [code]signal[/code] to a [code]callable[/code]. Pass optional [code]binds[/code] to the call as an [Array] of parameters. These parameters will be passed to the [Callable]'s method after any parameter used in the call to [method emit_signal]. Use [code]flags[/code] to set deferred or one-shot connections. See [enum ConnectFlags] constants. [b]Note:[/b] This method is the legacy implementation for connecting signals. The recommended modern approach is to use [method Signal.connect] and to use [method Callable.bind] to add and validate parameter binds. Both syntaxes are shown below. @@ -315,22 +289,17 @@ </description> </method> <method name="disconnect"> - <return type="void"> - </return> - <argument index="0" name="signal" type="StringName"> - </argument> - <argument index="1" name="callable" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="signal" type="StringName" /> + <argument index="1" name="callable" type="Callable" /> <description> Disconnects a [code]signal[/code] from a given [code]callable[/code]. If you try to disconnect a connection that does not exist, the method will throw an error. Use [method is_connected] to ensure that the connection exists. </description> </method> <method name="emit_signal" qualifiers="vararg"> - <return type="void"> - </return> - <argument index="0" name="signal" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="signal" type="StringName" /> <description> Emits the given [code]signal[/code]. The signal must exist, so it should be a built-in signal of this class or one of its parent classes, or a user-defined signal. This method supports a variable number of arguments, so parameters are passed as a comma separated list. Example: [codeblocks] @@ -346,32 +315,27 @@ </description> </method> <method name="free"> - <return type="void"> - </return> + <return type="void" /> <description> Deletes the object from memory. Any pre-existing reference to the freed object will become invalid, e.g. [code]is_instance_valid(object)[/code] will return [code]false[/code]. </description> </method> <method name="get" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="property" type="String"> - </argument> + <return type="Variant" /> + <argument index="0" name="property" type="String" /> <description> Returns the [Variant] value of the given [code]property[/code]. If the [code]property[/code] doesn't exist, this will return [code]null[/code]. [b]Note:[/b] In C#, the property name must be specified as snake_case if it is defined by a built-in Godot node. This doesn't apply to user-defined properties where you should use the same convention as in the C# source (typically PascalCase). </description> </method> <method name="get_class" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the object's class as a [String]. </description> </method> <method name="get_incoming_connections" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an [Array] of dictionaries with information about signals that are connected to the object. Each [Dictionary] contains three String entries: @@ -381,214 +345,170 @@ </description> </method> <method name="get_indexed" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="property" type="NodePath"> - </argument> + <return type="Variant" /> + <argument index="0" name="property" type="NodePath" /> <description> Gets the object's property indexed by the given [NodePath]. The node path should be relative to the current object and can use the colon character ([code]:[/code]) to access nested properties. Examples: [code]"position:x"[/code] or [code]"material:next_pass:blend_mode"[/code]. </description> </method> <method name="get_instance_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the object's unique instance ID. This ID can be saved in [EncodedObjectAsID], and can be used to retrieve the object instance with [method @GlobalScope.instance_from_id]. </description> </method> <method name="get_meta" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="name" type="StringName" /> <description> Returns the object's metadata entry for the given [code]name[/code]. </description> </method> <method name="get_meta_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns the object's metadata as a [PackedStringArray]. </description> </method> <method name="get_method_list" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the object's methods and their signatures as an [Array]. </description> </method> <method name="get_property_list" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <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 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"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns the object's [Script] instance, or [code]null[/code] if none is assigned. </description> </method> <method name="get_signal_connection_list" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="signal" type="String"> - </argument> + <return type="Array" /> + <argument index="0" name="signal" type="String" /> <description> Returns an [Array] of connections for the given [code]signal[/code]. </description> </method> <method name="get_signal_list" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the list of signals as an [Array] of dictionaries. </description> </method> <method name="has_meta" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if a metadata entry is found with the given [code]name[/code]. </description> </method> <method name="has_method" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="method" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="method" type="StringName" /> <description> Returns [code]true[/code] if the object contains the given [code]method[/code]. </description> </method> <method name="has_signal" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="signal" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="signal" type="StringName" /> <description> Returns [code]true[/code] if the given [code]signal[/code] exists. </description> </method> <method name="has_user_signal" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="signal" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="signal" type="StringName" /> <description> Returns [code]true[/code] if the given user-defined [code]signal[/code] exists. Only signals added using [method add_user_signal] are taken into account. </description> </method> <method name="is_blocking_signals" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if signal emission blocking is enabled. </description> </method> <method name="is_class" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="class" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="class" type="String" /> <description> Returns [code]true[/code] if the object inherits from the given [code]class[/code]. </description> </method> <method name="is_connected" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="signal" type="StringName"> - </argument> - <argument index="1" name="callable" type="Callable"> - </argument> + <return type="bool" /> + <argument index="0" name="signal" type="StringName" /> + <argument index="1" name="callable" type="Callable" /> <description> Returns [code]true[/code] if a connection exists for a given [code]signal[/code] and [code]callable[/code]. </description> </method> <method name="is_queued_for_deletion" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the [method Node.queue_free] method was called for the object. </description> </method> <method name="notification"> - <return type="void"> - </return> - <argument index="0" name="what" type="int"> - </argument> - <argument index="1" name="reversed" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="what" type="int" /> + <argument index="1" name="reversed" type="bool" default="false" /> <description> Send a given notification to the object, which will also trigger a call to the [method _notification] method of all classes that the object inherits from. If [code]reversed[/code] is [code]true[/code], [method _notification] is called first on the object's own class, and then up to its successive parent classes. If [code]reversed[/code] is [code]false[/code], [method _notification] is called first on the highest ancestor ([Object] itself), and then down to its successive inheriting classes. </description> </method> <method name="notify_property_list_changed"> - <return type="void"> - </return> + <return type="void" /> <description> Notify the editor that the property list has changed by emitting the [signal property_list_changed] signal, so that editor plugins can take the new values into account. </description> </method> <method name="remove_meta"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Removes a given entry from the object's metadata. See also [method set_meta]. </description> </method> <method name="set"> - <return type="void"> - </return> - <argument index="0" name="property" type="String"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="property" type="String" /> + <argument index="1" name="value" type="Variant" /> <description> Assigns a new value to the given property. If the [code]property[/code] does not exist, nothing will happen. [b]Note:[/b] In C#, the property name must be specified as snake_case if it is defined by a built-in Godot node. This doesn't apply to user-defined properties where you should use the same convention as in the C# source (typically PascalCase). </description> </method> <method name="set_block_signals"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> If set to [code]true[/code], signal emission is blocked. </description> </method> <method name="set_deferred"> - <return type="void"> - </return> - <argument index="0" name="property" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="property" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> Assigns a new value to the given property, after the current frame's physics step. This is equivalent to calling [method set] via [method call_deferred], i.e. [code]call_deferred("set", property, value)[/code]. [b]Note:[/b] In C#, the property name must be specified as snake_case if it is defined by a built-in Godot node. This doesn't apply to user-defined properties where you should use the same convention as in the C# source (typically PascalCase). </description> </method> <method name="set_indexed"> - <return type="void"> - </return> - <argument index="0" name="property" type="NodePath"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="property" type="NodePath" /> + <argument index="1" name="value" type="Variant" /> <description> Assigns a new value to the property identified by the [NodePath]. The node path should be relative to the current object and can use the colon character ([code]:[/code]) to access nested properties. Example: [codeblocks] @@ -608,51 +528,40 @@ </description> </method> <method name="set_message_translation"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> Defines whether the object can translate strings (with calls to [method tr]). Enabled by default. </description> </method> <method name="set_meta"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> Adds, changes or removes a given entry in the object's metadata. Metadata are serialized and can take any [Variant] value. To remove a given entry from the object's metadata, use [method remove_meta]. Metadata is also removed if its value is set to [code]null[/code]. This means you can also use [code]set_meta("name", null)[/code] to remove metadata for [code]"name"[/code]. </description> </method> <method name="set_script"> - <return type="void"> - </return> - <argument index="0" name="script" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="script" type="Variant" /> <description> Assigns a script to the object. Each object can have a single script assigned to it, which are used to extend its functionality. If the object already had a script, the previous script instance will be freed and its variables and state will be lost. The new script's [method _init] method will be called. </description> </method> <method name="to_string"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a [String] representing the object. If not overridden, defaults to [code]"[ClassName:RID]"[/code]. Override the method [method _to_string] to customize the [String] representation. </description> </method> <method name="tr" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="message" type="StringName"> - </argument> - <argument index="1" name="context" type="StringName" default=""""> - </argument> + <return type="String" /> + <argument index="0" name="message" type="StringName" /> + <argument index="1" name="context" type="StringName" default="""" /> <description> Translates a message using translation catalogs configured in the Project Settings. An additional context could be used to specify the translation context. Only works if message translation is enabled (which it is by default), otherwise it returns the [code]message[/code] unchanged. See [method set_message_translation]. @@ -660,16 +569,11 @@ </description> </method> <method name="tr_n" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="message" type="StringName"> - </argument> - <argument index="1" name="plural_message" type="StringName"> - </argument> - <argument index="2" name="n" type="int"> - </argument> - <argument index="3" name="context" type="StringName" default=""""> - </argument> + <return type="String" /> + <argument index="0" name="message" type="StringName" /> + <argument index="1" name="plural_message" type="StringName" /> + <argument index="2" name="n" type="int" /> + <argument index="3" name="context" type="StringName" default="""" /> <description> Translates a message involving plurals using translation catalogs configured in the Project Settings. An additional context could be used to specify the translation context. Only works if message translation is enabled (which it is by default), otherwise it returns the [code]message[/code] or [code]plural_message[/code] unchanged. See [method set_message_translation]. diff --git a/doc/classes/OccluderInstance3D.xml b/doc/classes/OccluderInstance3D.xml index 76b784d21d..150bfd9257 100644 --- a/doc/classes/OccluderInstance3D.xml +++ b/doc/classes/OccluderInstance3D.xml @@ -8,20 +8,15 @@ </tutorials> <methods> <method name="get_bake_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="layer" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="layer" type="int" /> <description> </description> </method> <method name="set_bake_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="layer" type="int"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="layer" type="int" /> + <argument index="1" name="enabled" type="bool" /> <description> </description> </method> diff --git a/doc/classes/OptimizedTranslation.xml b/doc/classes/OptimizedTranslation.xml index a5ca93c7ff..195fa28188 100644 --- a/doc/classes/OptimizedTranslation.xml +++ b/doc/classes/OptimizedTranslation.xml @@ -10,10 +10,8 @@ </tutorials> <methods> <method name="generate"> - <return type="void"> - </return> - <argument index="0" name="from" type="Translation"> - </argument> + <return type="void" /> + <argument index="0" name="from" type="Translation" /> <description> Generates and sets an optimized translation from the given [Translation] resource. </description> diff --git a/doc/classes/OptionButton.xml b/doc/classes/OptionButton.xml index 4c03c59f8b..ae268203ad 100644 --- a/doc/classes/OptionButton.xml +++ b/doc/classes/OptionButton.xml @@ -11,195 +11,151 @@ </tutorials> <methods> <method name="add_icon_item"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture2D"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture2D" /> + <argument index="1" name="label" type="String" /> + <argument index="2" name="id" type="int" default="-1" /> <description> Adds an item, with a [code]texture[/code] icon, text [code]label[/code] and (optionally) [code]id[/code]. If no [code]id[/code] is passed, the item index will be used as the item's ID. New items are appended at the end. </description> </method> <method name="add_item"> - <return type="void"> - </return> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="label" type="String" /> + <argument index="1" name="id" type="int" default="-1" /> <description> Adds an item, with text [code]label[/code] and (optionally) [code]id[/code]. If no [code]id[/code] is passed, the item index will be used as the item's ID. New items are appended at the end. </description> </method> <method name="add_separator"> - <return type="void"> - </return> + <return type="void" /> <description> Adds a separator to the list of items. Separators help to group items. Separator also takes up an index and is appended at the end. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears all the items in the [OptionButton]. </description> </method> <method name="get_item_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of items in the OptionButton, including separators. </description> </method> <method name="get_item_icon" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="idx" type="int" /> <description> Returns the icon of the item at index [code]idx[/code]. </description> </method> <method name="get_item_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Returns the ID of the item at index [code]idx[/code]. </description> </method> <method name="get_item_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="id" type="int" /> <description> Returns the index of the item with the given [code]id[/code]. </description> </method> <method name="get_item_metadata" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="idx" type="int" /> <description> Retrieves the metadata of an item. Metadata may be any type and can be used to store extra information about an item, such as an external string ID. </description> </method> <method name="get_item_text" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the text of the item at index [code]idx[/code]. </description> </method> <method name="get_popup" qualifiers="const"> - <return type="PopupMenu"> - </return> + <return type="PopupMenu" /> <description> Returns the [PopupMenu] contained in this button. </description> </method> <method name="get_selected_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the ID of the selected item, or [code]0[/code] if no item is selected. </description> </method> <method name="get_selected_metadata" qualifiers="const"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Gets the metadata of the selected item. Metadata for items can be set using [method set_item_metadata]. </description> </method> <method name="is_item_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the item at index [code]idx[/code] is disabled. </description> </method> <method name="remove_item"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Removes the item at index [code]idx[/code]. </description> </method> <method name="select"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Selects an item by index and makes it the current item. This will work even if the item is disabled. </description> </method> <method name="set_item_disabled"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="disabled" type="bool" /> <description> Sets whether the item at index [code]idx[/code] is disabled. Disabled items are drawn differently in the dropdown and are not selectable by the user. If the current selected item is set as disabled, it will remain selected. </description> </method> <method name="set_item_icon"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="texture" type="Texture2D" /> <description> Sets the icon of the item at index [code]idx[/code]. </description> </method> <method name="set_item_id"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="id" type="int" /> <description> Sets the ID of the item at index [code]idx[/code]. </description> </method> <method name="set_item_metadata"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="metadata" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="metadata" type="Variant" /> <description> Sets the metadata of an item. Metadata may be of any type and can be used to store extra information about an item, such as an external string ID. </description> </method> <method name="set_item_text"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="text" type="String" /> <description> Sets the text of the item at index [code]idx[/code]. </description> @@ -215,15 +171,13 @@ </members> <signals> <signal name="item_focused"> - <argument index="0" name="index" type="int"> - </argument> + <argument index="0" name="index" type="int" /> <description> Emitted when the user navigates to an item using the [code]ui_up[/code] or [code]ui_down[/code] actions. The index of the item selected is passed as argument. </description> </signal> <signal name="item_selected"> - <argument index="0" name="index" type="int"> - </argument> + <argument index="0" name="index" type="int" /> <description> Emitted when the current item has been changed by the user. The index of the item selected is passed as argument. </description> diff --git a/doc/classes/PCKPacker.xml b/doc/classes/PCKPacker.xml index 40e8683c93..0af329983d 100644 --- a/doc/classes/PCKPacker.xml +++ b/doc/classes/PCKPacker.xml @@ -25,38 +25,27 @@ </tutorials> <methods> <method name="add_file"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="pck_path" type="String"> - </argument> - <argument index="1" name="source_path" type="String"> - </argument> - <argument index="2" name="encrypt" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="pck_path" type="String" /> + <argument index="1" name="source_path" type="String" /> + <argument index="2" name="encrypt" type="bool" default="false" /> <description> Adds the [code]source_path[/code] file to the current PCK package at the [code]pck_path[/code] internal path (should start with [code]res://[/code]). </description> </method> <method name="flush"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="verbose" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="verbose" type="bool" default="false" /> <description> Writes the files specified using all [method add_file] calls since the last flush. If [code]verbose[/code] is [code]true[/code], a list of files added will be printed to the console for easier debugging. </description> </method> <method name="pck_start"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="pck_name" type="String"> - </argument> - <argument index="1" name="alignment" type="int" default="0"> - </argument> - <argument index="2" name="key" type="String" default=""""> - </argument> - <argument index="3" name="encrypt_directory" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="pck_name" type="String" /> + <argument index="1" name="alignment" type="int" default="0" /> + <argument index="2" name="key" type="String" default="""" /> + <argument index="3" name="encrypt_directory" type="bool" default="false" /> <description> Creates a new PCK file with the name [code]pck_name[/code]. The [code].pck[/code] file extension isn't added automatically, so it should be part of [code]pck_name[/code] (even though it's not required). </description> diff --git a/doc/classes/PackedByteArray.xml b/doc/classes/PackedByteArray.xml index 82bfa14ded..af92590da3 100644 --- a/doc/classes/PackedByteArray.xml +++ b/doc/classes/PackedByteArray.xml @@ -10,183 +10,138 @@ </tutorials> <methods> <method name="PackedByteArray" qualifiers="constructor"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Constructs an empty [PackedByteArray]. </description> </method> <method name="PackedByteArray" qualifiers="constructor"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="from" type="PackedByteArray"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="from" type="PackedByteArray" /> <description> Constructs a [PackedByteArray] as a copy of the given [PackedByteArray]. </description> </method> <method name="PackedByteArray" qualifiers="constructor"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="from" type="Array"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="from" type="Array" /> <description> Constructs a new [PackedByteArray]. Optionally, you can pass in a generic [Array] that will be converted. </description> </method> <method name="append"> - <return type="bool"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="int" /> <description> Appends an element at the end of the array (alias of [method push_back]). </description> </method> <method name="append_array"> - <return type="void"> - </return> - <argument index="0" name="array" type="PackedByteArray"> - </argument> + <return type="void" /> + <argument index="0" name="array" type="PackedByteArray" /> <description> Appends a [PackedByteArray] at the end of this array. </description> </method> <method name="compress" qualifiers="const"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="compression_mode" type="int" default="0"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="compression_mode" type="int" default="0" /> <description> Returns a new [PackedByteArray] with the data compressed. Set the compression mode using one of [enum File.CompressionMode]'s constants. </description> </method> <method name="decode_double" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_float" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_half" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_s16" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_s32" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_s64" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_s8" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_u16" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_u32" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_u64" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_u8" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="byte_offset" type="int" /> <description> </description> </method> <method name="decode_var" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="allow_objects" type="bool" default="false"> - </argument> + <return type="Variant" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="allow_objects" type="bool" default="false" /> <description> </description> </method> <method name="decode_var_size" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="allow_objects" type="bool" default="false"> - </argument> + <return type="int" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="allow_objects" type="bool" default="false" /> <description> </description> </method> <method name="decompress" qualifiers="const"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="buffer_size" type="int"> - </argument> - <argument index="1" name="compression_mode" type="int" default="0"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="buffer_size" type="int" /> + <argument index="1" name="compression_mode" type="int" default="0" /> <description> Returns a new [PackedByteArray] with the data decompressed. Set [code]buffer_size[/code] to the size of the uncompressed data. Set the compression mode using one of [enum File.CompressionMode]'s constants. </description> </method> <method name="decompress_dynamic" qualifiers="const"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="max_output_size" type="int"> - </argument> - <argument index="1" name="compression_mode" type="int" default="0"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="max_output_size" type="int" /> + <argument index="1" name="compression_mode" type="int" default="0" /> <description> Returns a new [PackedByteArray] with the data decompressed. Set the compression mode using one of [enum File.CompressionMode]'s constants. [b]This method only accepts gzip and deflate compression modes.[/b] This method is potentially slower than [code]decompress[/code], as it may have to re-allocate its output buffer multiple times while decompressing, whereas [code]decompress[/code] knows it's output buffer size from the beginning. @@ -194,193 +149,143 @@ </description> </method> <method name="duplicate"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Creates a copy of the array, and returns it. </description> </method> <method name="encode_double"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="float" /> <description> </description> </method> <method name="encode_float"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="float" /> <description> </description> </method> <method name="encode_half"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="float" /> <description> </description> </method> <method name="encode_s16"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="int" /> <description> </description> </method> <method name="encode_s32"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="int" /> <description> </description> </method> <method name="encode_s64"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="int" /> <description> </description> </method> <method name="encode_s8"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="int" /> <description> </description> </method> <method name="encode_u16"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="int" /> <description> </description> </method> <method name="encode_u32"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="int" /> <description> </description> </method> <method name="encode_u64"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="int" /> <description> </description> </method> <method name="encode_u8"> - <return type="void"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="int" /> <description> </description> </method> <method name="encode_var"> - <return type="int"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> - <argument index="2" name="allow_objects" type="bool" default="false"> - </argument> + <return type="int" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="value" type="Variant" /> + <argument index="2" name="allow_objects" type="bool" default="false" /> <description> </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements. </description> </method> <method name="get_string_from_ascii" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Converts ASCII/Latin-1 encoded array to [String]. Fast alternative to [method get_string_from_utf8] if the content is ASCII/Latin-1 only. Unlike the UTF-8 function this function maps every byte to a character in the array. Multibyte sequences will not be interpreted correctly. For parsing user input always use [method get_string_from_utf8]. </description> </method> <method name="get_string_from_utf16" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Converts UTF-16 encoded array to [String]. If the BOM is missing, system endianness is assumed. Returns empty string if source array is not valid UTF-16 string. </description> </method> <method name="get_string_from_utf32" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Converts UTF-32 encoded array to [String]. System endianness is assumed. Returns empty string if source array is not valid UTF-32 string. </description> </method> <method name="get_string_from_utf8" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Converts UTF-8 encoded array to [String]. Slower than [method get_string_from_ascii] but supports UTF-8 encoded data. Use this function if you are unsure about the source of the data. For user input this function should always be preferred. Returns empty string if source array is not valid UTF-8 string. </description> </method> <method name="has"> - <return type="bool"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="int" /> <description> Returns [code]true[/code] if the array contains [code]value[/code]. </description> </method> <method name="has_encoded_var" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="byte_offset" type="int"> - </argument> - <argument index="1" name="allow_objects" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="byte_offset" type="int" /> + <argument index="1" name="allow_objects" type="bool" default="false" /> <description> </description> </method> <method name="hex_encode" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a hexadecimal representation of this array as a [String]. [codeblocks] @@ -396,128 +301,100 @@ </description> </method> <method name="insert"> - <return type="int"> - </return> - <argument index="0" name="at_index" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="at_index" type="int" /> + <argument index="1" name="value" type="int" /> <description> Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]). </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the array is empty. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedByteArray"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedByteArray" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="right" type="PackedByteArray"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="right" type="PackedByteArray" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedByteArray"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedByteArray" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="push_back"> - <return type="bool"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="int" /> <description> Appends an element at the end of the array. </description> </method> <method name="remove"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an element from the array by index. </description> </method> <method name="resize"> - <return type="int"> - </return> - <argument index="0" name="new_size" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="new_size" type="int" /> <description> Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. </description> </method> <method name="reverse"> - <return type="void"> - </return> + <return type="void" /> <description> Reverses the order of the elements in the array. </description> </method> <method name="set"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="value" type="int" /> <description> Changes the byte at the given index. </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the size of the array. </description> </method> <method name="sort"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts the elements of the array in ascending order. </description> </method> <method name="subarray" qualifiers="const"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> Returns the slice of the [PackedByteArray] between indices (inclusive) as a new [PackedByteArray]. Any negative index is considered to be from the end of the array. </description> </method> <method name="to_float32_array" qualifiers="const"> - <return type="PackedFloat32Array"> - </return> + <return type="PackedFloat32Array" /> <description> Returns a copy of the data converted to a [PackedFloat32Array], where each block of 4 bytes has been converted to a 32-bit float (C++ [code]float[/code]). The size of the new array will be [code]byte_array.size() / 4[/code]. @@ -525,8 +402,7 @@ </description> </method> <method name="to_float64_array" qualifiers="const"> - <return type="PackedFloat64Array"> - </return> + <return type="PackedFloat64Array" /> <description> Returns a copy of the data converted to a [PackedFloat64Array], where each block of 8 bytes has been converted to a 64-bit float (C++ [code]double[/code], Godot [float]). The size of the new array will be [code]byte_array.size() / 8[/code]. @@ -534,8 +410,7 @@ </description> </method> <method name="to_int32_array" qualifiers="const"> - <return type="PackedInt32Array"> - </return> + <return type="PackedInt32Array" /> <description> Returns a copy of the data converted to a [PackedInt32Array], where each block of 4 bytes has been converted to a signed 32-bit integer (C++ [code]int32_t[/code]). The size of the new array will be [code]byte_array.size() / 4[/code]. @@ -543,8 +418,7 @@ </description> </method> <method name="to_int64_array" qualifiers="const"> - <return type="PackedInt64Array"> - </return> + <return type="PackedInt64Array" /> <description> Returns a copy of the data converted to a [PackedInt64Array], where each block of 4 bytes has been converted to a signed 64-bit integer (C++ [code]int64_t[/code], Godot [int]). The size of the new array will be [code]byte_array.size() / 8[/code]. diff --git a/doc/classes/PackedColorArray.xml b/doc/classes/PackedColorArray.xml index 19cfcd7c87..a5a5703bfa 100644 --- a/doc/classes/PackedColorArray.xml +++ b/doc/classes/PackedColorArray.xml @@ -10,195 +10,153 @@ </tutorials> <methods> <method name="PackedColorArray" qualifiers="constructor"> - <return type="PackedColorArray"> - </return> + <return type="PackedColorArray" /> <description> Constructs an empty [PackedColorArray]. </description> </method> <method name="PackedColorArray" qualifiers="constructor"> - <return type="PackedColorArray"> - </return> - <argument index="0" name="from" type="PackedColorArray"> - </argument> + <return type="PackedColorArray" /> + <argument index="0" name="from" type="PackedColorArray" /> <description> Constructs a [PackedColorArray] as a copy of the given [PackedColorArray]. </description> </method> <method name="PackedColorArray" qualifiers="constructor"> - <return type="PackedColorArray"> - </return> - <argument index="0" name="from" type="Array"> - </argument> + <return type="PackedColorArray" /> + <argument index="0" name="from" type="Array" /> <description> Constructs a new [PackedColorArray]. Optionally, you can pass in a generic [Array] that will be converted. </description> </method> <method name="append"> - <return type="bool"> - </return> - <argument index="0" name="value" type="Color"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="Color" /> <description> Appends an element at the end of the array (alias of [method push_back]). </description> </method> <method name="append_array"> - <return type="void"> - </return> - <argument index="0" name="array" type="PackedColorArray"> - </argument> + <return type="void" /> + <argument index="0" name="array" type="PackedColorArray" /> <description> Appends a [PackedColorArray] at the end of this array. </description> </method> <method name="duplicate"> - <return type="PackedColorArray"> - </return> + <return type="PackedColorArray" /> <description> Creates a copy of the array, and returns it. </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="value" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="Color" /> <description> Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements. </description> </method> <method name="has"> - <return type="bool"> - </return> - <argument index="0" name="value" type="Color"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="Color" /> <description> Returns [code]true[/code] if the array contains [code]value[/code]. </description> </method> <method name="insert"> - <return type="int"> - </return> - <argument index="0" name="at_index" type="int"> - </argument> - <argument index="1" name="value" type="Color"> - </argument> + <return type="int" /> + <argument index="0" name="at_index" type="int" /> + <argument index="1" name="value" type="Color" /> <description> Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]). </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the array is empty. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedColorArray"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedColorArray" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="PackedColorArray"> - </return> - <argument index="0" name="right" type="PackedColorArray"> - </argument> + <return type="PackedColorArray" /> + <argument index="0" name="right" type="PackedColorArray" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedColorArray"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedColorArray" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="push_back"> - <return type="bool"> - </return> - <argument index="0" name="value" type="Color"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="Color" /> <description> Appends a value to the array. </description> </method> <method name="remove"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an element from the array by index. </description> </method> <method name="resize"> - <return type="int"> - </return> - <argument index="0" name="new_size" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="new_size" type="int" /> <description> Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. </description> </method> <method name="reverse"> - <return type="void"> - </return> + <return type="void" /> <description> Reverses the order of the elements in the array. </description> </method> <method name="set"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="value" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="value" type="Color" /> <description> Changes the [Color] at the given index. </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the size of the array. </description> </method> <method name="sort"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts the elements of the array in ascending order. </description> </method> <method name="subarray" qualifiers="const"> - <return type="PackedColorArray"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="PackedColorArray" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> </description> </method> <method name="to_byte_array" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> </description> </method> diff --git a/doc/classes/PackedDataContainer.xml b/doc/classes/PackedDataContainer.xml index f72db514f0..0a765fcc75 100644 --- a/doc/classes/PackedDataContainer.xml +++ b/doc/classes/PackedDataContainer.xml @@ -8,16 +8,13 @@ </tutorials> <methods> <method name="pack"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="value" type="Variant" /> <description> </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> diff --git a/doc/classes/PackedDataContainerRef.xml b/doc/classes/PackedDataContainerRef.xml index bfd5a6f1c1..5e42079b97 100644 --- a/doc/classes/PackedDataContainerRef.xml +++ b/doc/classes/PackedDataContainerRef.xml @@ -9,8 +9,7 @@ </tutorials> <methods> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> diff --git a/doc/classes/PackedFloat32Array.xml b/doc/classes/PackedFloat32Array.xml index 663aeeb21d..9e7dd8f99e 100644 --- a/doc/classes/PackedFloat32Array.xml +++ b/doc/classes/PackedFloat32Array.xml @@ -11,195 +11,153 @@ </tutorials> <methods> <method name="PackedFloat32Array" qualifiers="constructor"> - <return type="PackedFloat32Array"> - </return> + <return type="PackedFloat32Array" /> <description> Constructs an empty [PackedFloat32Array]. </description> </method> <method name="PackedFloat32Array" qualifiers="constructor"> - <return type="PackedFloat32Array"> - </return> - <argument index="0" name="from" type="PackedFloat32Array"> - </argument> + <return type="PackedFloat32Array" /> + <argument index="0" name="from" type="PackedFloat32Array" /> <description> Constructs a [PackedFloat32Array] as a copy of the given [PackedFloat32Array]. </description> </method> <method name="PackedFloat32Array" qualifiers="constructor"> - <return type="PackedFloat32Array"> - </return> - <argument index="0" name="from" type="Array"> - </argument> + <return type="PackedFloat32Array" /> + <argument index="0" name="from" type="Array" /> <description> Constructs a new [PackedFloat32Array]. Optionally, you can pass in a generic [Array] that will be converted. </description> </method> <method name="append"> - <return type="bool"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="float" /> <description> Appends an element at the end of the array (alias of [method push_back]). </description> </method> <method name="append_array"> - <return type="void"> - </return> - <argument index="0" name="array" type="PackedFloat32Array"> - </argument> + <return type="void" /> + <argument index="0" name="array" type="PackedFloat32Array" /> <description> Appends a [PackedFloat32Array] at the end of this array. </description> </method> <method name="duplicate"> - <return type="PackedFloat32Array"> - </return> + <return type="PackedFloat32Array" /> <description> Creates a copy of the array, and returns it. </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="float" /> <description> Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements. </description> </method> <method name="has"> - <return type="bool"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="float" /> <description> Returns [code]true[/code] if the array contains [code]value[/code]. </description> </method> <method name="insert"> - <return type="int"> - </return> - <argument index="0" name="at_index" type="int"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="int" /> + <argument index="0" name="at_index" type="int" /> + <argument index="1" name="value" type="float" /> <description> Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]). </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the array is empty. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedFloat32Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedFloat32Array" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="PackedFloat32Array"> - </return> - <argument index="0" name="right" type="PackedFloat32Array"> - </argument> + <return type="PackedFloat32Array" /> + <argument index="0" name="right" type="PackedFloat32Array" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedFloat32Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedFloat32Array" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="push_back"> - <return type="bool"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="float" /> <description> Appends an element at the end of the array. </description> </method> <method name="remove"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an element from the array by index. </description> </method> <method name="resize"> - <return type="int"> - </return> - <argument index="0" name="new_size" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="new_size" type="int" /> <description> Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. </description> </method> <method name="reverse"> - <return type="void"> - </return> + <return type="void" /> <description> Reverses the order of the elements in the array. </description> </method> <method name="set"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="value" type="float" /> <description> Changes the float at the given index. </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the size of the array. </description> </method> <method name="sort"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts the elements of the array in ascending order. </description> </method> <method name="subarray" qualifiers="const"> - <return type="PackedFloat32Array"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="PackedFloat32Array" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> </description> </method> <method name="to_byte_array" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Returns a copy of the data converted to a [PackedByteArray], where each element have been encoded as 4 bytes. The size of the new array will be [code]float32_array.size() * 4[/code]. diff --git a/doc/classes/PackedFloat64Array.xml b/doc/classes/PackedFloat64Array.xml index bf2200f5bb..ff4cf0edf8 100644 --- a/doc/classes/PackedFloat64Array.xml +++ b/doc/classes/PackedFloat64Array.xml @@ -11,195 +11,153 @@ </tutorials> <methods> <method name="PackedFloat64Array" qualifiers="constructor"> - <return type="PackedFloat64Array"> - </return> + <return type="PackedFloat64Array" /> <description> Constructs an empty [PackedFloat64Array]. </description> </method> <method name="PackedFloat64Array" qualifiers="constructor"> - <return type="PackedFloat64Array"> - </return> - <argument index="0" name="from" type="PackedFloat64Array"> - </argument> + <return type="PackedFloat64Array" /> + <argument index="0" name="from" type="PackedFloat64Array" /> <description> Constructs a [PackedFloat64Array] as a copy of the given [PackedFloat64Array]. </description> </method> <method name="PackedFloat64Array" qualifiers="constructor"> - <return type="PackedFloat64Array"> - </return> - <argument index="0" name="from" type="Array"> - </argument> + <return type="PackedFloat64Array" /> + <argument index="0" name="from" type="Array" /> <description> Constructs a new [PackedFloat64Array]. Optionally, you can pass in a generic [Array] that will be converted. </description> </method> <method name="append"> - <return type="bool"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="float" /> <description> Appends an element at the end of the array (alias of [method push_back]). </description> </method> <method name="append_array"> - <return type="void"> - </return> - <argument index="0" name="array" type="PackedFloat64Array"> - </argument> + <return type="void" /> + <argument index="0" name="array" type="PackedFloat64Array" /> <description> Appends a [PackedFloat64Array] at the end of this array. </description> </method> <method name="duplicate"> - <return type="PackedFloat64Array"> - </return> + <return type="PackedFloat64Array" /> <description> Creates a copy of the array, and returns it. </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="float" /> <description> Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements. </description> </method> <method name="has"> - <return type="bool"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="float" /> <description> Returns [code]true[/code] if the array contains [code]value[/code]. </description> </method> <method name="insert"> - <return type="int"> - </return> - <argument index="0" name="at_index" type="int"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="int" /> + <argument index="0" name="at_index" type="int" /> + <argument index="1" name="value" type="float" /> <description> Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]). </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the array is empty. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedFloat64Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedFloat64Array" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="PackedFloat64Array"> - </return> - <argument index="0" name="right" type="PackedFloat64Array"> - </argument> + <return type="PackedFloat64Array" /> + <argument index="0" name="right" type="PackedFloat64Array" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedFloat64Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedFloat64Array" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="push_back"> - <return type="bool"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="float" /> <description> Appends an element at the end of the array. </description> </method> <method name="remove"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an element from the array by index. </description> </method> <method name="resize"> - <return type="int"> - </return> - <argument index="0" name="new_size" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="new_size" type="int" /> <description> Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. </description> </method> <method name="reverse"> - <return type="void"> - </return> + <return type="void" /> <description> Reverses the order of the elements in the array. </description> </method> <method name="set"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="value" type="float" /> <description> Changes the float at the given index. </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the size of the array. </description> </method> <method name="sort"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts the elements of the array in ascending order. </description> </method> <method name="subarray" qualifiers="const"> - <return type="PackedFloat64Array"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="PackedFloat64Array" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> </description> </method> <method name="to_byte_array" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Returns a copy of the data converted to a [PackedByteArray], where each element have been encoded as 8 bytes. The size of the new array will be [code]float64_array.size() * 8[/code]. diff --git a/doc/classes/PackedInt32Array.xml b/doc/classes/PackedInt32Array.xml index c587126d50..2e9716b665 100644 --- a/doc/classes/PackedInt32Array.xml +++ b/doc/classes/PackedInt32Array.xml @@ -11,195 +11,153 @@ </tutorials> <methods> <method name="PackedInt32Array" qualifiers="constructor"> - <return type="PackedInt32Array"> - </return> + <return type="PackedInt32Array" /> <description> Constructs an empty [PackedInt32Array]. </description> </method> <method name="PackedInt32Array" qualifiers="constructor"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="from" type="PackedInt32Array"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="from" type="PackedInt32Array" /> <description> Constructs a [PackedInt32Array] as a copy of the given [PackedInt32Array]. </description> </method> <method name="PackedInt32Array" qualifiers="constructor"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="from" type="Array"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="from" type="Array" /> <description> Constructs a new [PackedInt32Array]. Optionally, you can pass in a generic [Array] that will be converted. </description> </method> <method name="append"> - <return type="bool"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="int" /> <description> Appends an element at the end of the array (alias of [method push_back]). </description> </method> <method name="append_array"> - <return type="void"> - </return> - <argument index="0" name="array" type="PackedInt32Array"> - </argument> + <return type="void" /> + <argument index="0" name="array" type="PackedInt32Array" /> <description> Appends a [PackedInt32Array] at the end of this array. </description> </method> <method name="duplicate"> - <return type="PackedInt32Array"> - </return> + <return type="PackedInt32Array" /> <description> Creates a copy of the array, and returns it. </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements. </description> </method> <method name="has"> - <return type="bool"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="int" /> <description> Returns [code]true[/code] if the array contains [code]value[/code]. </description> </method> <method name="insert"> - <return type="int"> - </return> - <argument index="0" name="at_index" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="at_index" type="int" /> + <argument index="1" name="value" type="int" /> <description> Inserts a new integer at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]). </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the array is empty. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedInt32Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedInt32Array" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="right" type="PackedInt32Array"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="right" type="PackedInt32Array" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedInt32Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedInt32Array" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="push_back"> - <return type="bool"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="int" /> <description> Appends a value to the array. </description> </method> <method name="remove"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an element from the array by index. </description> </method> <method name="resize"> - <return type="int"> - </return> - <argument index="0" name="new_size" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="new_size" type="int" /> <description> Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. </description> </method> <method name="reverse"> - <return type="void"> - </return> + <return type="void" /> <description> Reverses the order of the elements in the array. </description> </method> <method name="set"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="value" type="int" /> <description> Changes the integer at the given index. </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the array size. </description> </method> <method name="sort"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts the elements of the array in ascending order. </description> </method> <method name="subarray" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> </description> </method> <method name="to_byte_array" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Returns a copy of the data converted to a [PackedByteArray], where each element have been encoded as 4 bytes. The size of the new array will be [code]int32_array.size() * 4[/code]. diff --git a/doc/classes/PackedInt64Array.xml b/doc/classes/PackedInt64Array.xml index a9ebc80601..1e7fff3bc6 100644 --- a/doc/classes/PackedInt64Array.xml +++ b/doc/classes/PackedInt64Array.xml @@ -11,195 +11,153 @@ </tutorials> <methods> <method name="PackedInt64Array" qualifiers="constructor"> - <return type="PackedInt64Array"> - </return> + <return type="PackedInt64Array" /> <description> Constructs an empty [PackedInt64Array]. </description> </method> <method name="PackedInt64Array" qualifiers="constructor"> - <return type="PackedInt64Array"> - </return> - <argument index="0" name="from" type="PackedInt64Array"> - </argument> + <return type="PackedInt64Array" /> + <argument index="0" name="from" type="PackedInt64Array" /> <description> Constructs a [PackedInt64Array] as a copy of the given [PackedInt64Array]. </description> </method> <method name="PackedInt64Array" qualifiers="constructor"> - <return type="PackedInt64Array"> - </return> - <argument index="0" name="from" type="Array"> - </argument> + <return type="PackedInt64Array" /> + <argument index="0" name="from" type="Array" /> <description> Constructs a new [PackedInt64Array]. Optionally, you can pass in a generic [Array] that will be converted. </description> </method> <method name="append"> - <return type="bool"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="int" /> <description> Appends an element at the end of the array (alias of [method push_back]). </description> </method> <method name="append_array"> - <return type="void"> - </return> - <argument index="0" name="array" type="PackedInt64Array"> - </argument> + <return type="void" /> + <argument index="0" name="array" type="PackedInt64Array" /> <description> Appends a [PackedInt64Array] at the end of this array. </description> </method> <method name="duplicate"> - <return type="PackedInt64Array"> - </return> + <return type="PackedInt64Array" /> <description> Creates a copy of the array, and returns it. </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements. </description> </method> <method name="has"> - <return type="bool"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="int" /> <description> Returns [code]true[/code] if the array contains [code]value[/code]. </description> </method> <method name="insert"> - <return type="int"> - </return> - <argument index="0" name="at_index" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="at_index" type="int" /> + <argument index="1" name="value" type="int" /> <description> Inserts a new integer at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]). </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the array is empty. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedInt64Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedInt64Array" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="PackedInt64Array"> - </return> - <argument index="0" name="right" type="PackedInt64Array"> - </argument> + <return type="PackedInt64Array" /> + <argument index="0" name="right" type="PackedInt64Array" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedInt64Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedInt64Array" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="push_back"> - <return type="bool"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="int" /> <description> Appends a value to the array. </description> </method> <method name="remove"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an element from the array by index. </description> </method> <method name="resize"> - <return type="int"> - </return> - <argument index="0" name="new_size" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="new_size" type="int" /> <description> Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. </description> </method> <method name="reverse"> - <return type="void"> - </return> + <return type="void" /> <description> Reverses the order of the elements in the array. </description> </method> <method name="set"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="value" type="int" /> <description> Changes the integer at the given index. </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the array size. </description> </method> <method name="sort"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts the elements of the array in ascending order. </description> </method> <method name="subarray" qualifiers="const"> - <return type="PackedInt64Array"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="PackedInt64Array" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> </description> </method> <method name="to_byte_array" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Returns a copy of the data converted to a [PackedByteArray], where each element have been encoded as 8 bytes. The size of the new array will be [code]int64_array.size() * 8[/code]. diff --git a/doc/classes/PackedScene.xml b/doc/classes/PackedScene.xml index f39cae8be5..1374496b52 100644 --- a/doc/classes/PackedScene.xml +++ b/doc/classes/PackedScene.xml @@ -77,33 +77,27 @@ </tutorials> <methods> <method name="can_instantiate" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the scene file has nodes. </description> </method> <method name="get_state"> - <return type="SceneState"> - </return> + <return type="SceneState" /> <description> Returns the [code]SceneState[/code] representing the scene file contents. </description> </method> <method name="instantiate" qualifiers="const"> - <return type="Node"> - </return> - <argument index="0" name="edit_state" type="int" enum="PackedScene.GenEditState" default="0"> - </argument> + <return type="Node" /> + <argument index="0" name="edit_state" type="int" enum="PackedScene.GenEditState" default="0" /> <description> Instantiates the scene's node hierarchy. Triggers child scene instantiation(s). Triggers a [constant Node.NOTIFICATION_INSTANCED] notification on the root node. </description> </method> <method name="pack"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="Node"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="Node" /> <description> Pack will ignore any sub-nodes not owned by given node. See [member Node.owner]. </description> diff --git a/doc/classes/PackedStringArray.xml b/doc/classes/PackedStringArray.xml index 22458832da..04113d4a2e 100644 --- a/doc/classes/PackedStringArray.xml +++ b/doc/classes/PackedStringArray.xml @@ -11,195 +11,153 @@ </tutorials> <methods> <method name="PackedStringArray" qualifiers="constructor"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Constructs an empty [PackedStringArray]. </description> </method> <method name="PackedStringArray" qualifiers="constructor"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="from" type="PackedStringArray"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="from" type="PackedStringArray" /> <description> Constructs a [PackedStringArray] as a copy of the given [PackedStringArray]. </description> </method> <method name="PackedStringArray" qualifiers="constructor"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="from" type="Array"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="from" type="Array" /> <description> Constructs a new [PackedStringArray]. Optionally, you can pass in a generic [Array] that will be converted. </description> </method> <method name="append"> - <return type="bool"> - </return> - <argument index="0" name="value" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="String" /> <description> Appends an element at the end of the array (alias of [method push_back]). </description> </method> <method name="append_array"> - <return type="void"> - </return> - <argument index="0" name="array" type="PackedStringArray"> - </argument> + <return type="void" /> + <argument index="0" name="array" type="PackedStringArray" /> <description> Appends a [PackedStringArray] at the end of this array. </description> </method> <method name="duplicate"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Creates a copy of the array, and returns it. </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="value" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="String" /> <description> Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements. </description> </method> <method name="has"> - <return type="bool"> - </return> - <argument index="0" name="value" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="String" /> <description> Returns [code]true[/code] if the array contains [code]value[/code]. </description> </method> <method name="insert"> - <return type="int"> - </return> - <argument index="0" name="at_index" type="int"> - </argument> - <argument index="1" name="value" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="at_index" type="int" /> + <argument index="1" name="value" type="String" /> <description> Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]). </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the array is empty. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedStringArray"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedStringArray" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="right" type="PackedStringArray"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="right" type="PackedStringArray" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedStringArray"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedStringArray" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="String"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="push_back"> - <return type="bool"> - </return> - <argument index="0" name="value" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="String" /> <description> Appends a string element at end of the array. </description> </method> <method name="remove"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an element from the array by index. </description> </method> <method name="resize"> - <return type="int"> - </return> - <argument index="0" name="new_size" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="new_size" type="int" /> <description> Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. </description> </method> <method name="reverse"> - <return type="void"> - </return> + <return type="void" /> <description> Reverses the order of the elements in the array. </description> </method> <method name="set"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="value" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="value" type="String" /> <description> Changes the [String] at the given index. </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the size of the array. </description> </method> <method name="sort"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts the elements of the array in ascending order. </description> </method> <method name="subarray" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> </description> </method> <method name="to_byte_array" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> </description> </method> diff --git a/doc/classes/PackedVector2Array.xml b/doc/classes/PackedVector2Array.xml index 6c8791f988..76d3aff20e 100644 --- a/doc/classes/PackedVector2Array.xml +++ b/doc/classes/PackedVector2Array.xml @@ -11,203 +11,159 @@ </tutorials> <methods> <method name="PackedVector2Array" qualifiers="constructor"> - <return type="PackedVector2Array"> - </return> + <return type="PackedVector2Array" /> <description> Constructs an empty [PackedVector2Array]. </description> </method> <method name="PackedVector2Array" qualifiers="constructor"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="from" type="PackedVector2Array"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="from" type="PackedVector2Array" /> <description> Constructs a [PackedVector2Array] as a copy of the given [PackedVector2Array]. </description> </method> <method name="PackedVector2Array" qualifiers="constructor"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="from" type="Array"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="from" type="Array" /> <description> Constructs a new [PackedVector2Array]. Optionally, you can pass in a generic [Array] that will be converted. </description> </method> <method name="append"> - <return type="bool"> - </return> - <argument index="0" name="value" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="Vector2" /> <description> Appends an element at the end of the array (alias of [method push_back]). </description> </method> <method name="append_array"> - <return type="void"> - </return> - <argument index="0" name="array" type="PackedVector2Array"> - </argument> + <return type="void" /> + <argument index="0" name="array" type="PackedVector2Array" /> <description> Appends a [PackedVector2Array] at the end of this array. </description> </method> <method name="duplicate"> - <return type="PackedVector2Array"> - </return> + <return type="PackedVector2Array" /> <description> Creates a copy of the array, and returns it. </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="value" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="Vector2" /> <description> Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements. </description> </method> <method name="has"> - <return type="bool"> - </return> - <argument index="0" name="value" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="Vector2" /> <description> Returns [code]true[/code] if the array contains [code]value[/code]. </description> </method> <method name="insert"> - <return type="int"> - </return> - <argument index="0" name="at_index" type="int"> - </argument> - <argument index="1" name="value" type="Vector2"> - </argument> + <return type="int" /> + <argument index="0" name="at_index" type="int" /> + <argument index="1" name="value" type="Vector2" /> <description> Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]). </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the array is empty. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedVector2Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedVector2Array" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="right" type="Transform2D"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="right" type="Transform2D" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="right" type="PackedVector2Array"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="right" type="PackedVector2Array" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedVector2Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedVector2Array" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="push_back"> - <return type="bool"> - </return> - <argument index="0" name="value" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="Vector2" /> <description> Inserts a [Vector2] at the end. </description> </method> <method name="remove"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an element from the array by index. </description> </method> <method name="resize"> - <return type="int"> - </return> - <argument index="0" name="new_size" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="new_size" type="int" /> <description> Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. </description> </method> <method name="reverse"> - <return type="void"> - </return> + <return type="void" /> <description> Reverses the order of the elements in the array. </description> </method> <method name="set"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="value" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="value" type="Vector2" /> <description> Changes the [Vector2] at the given index. </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the size of the array. </description> </method> <method name="sort"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts the elements of the array in ascending order. </description> </method> <method name="subarray" qualifiers="const"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> </description> </method> <method name="to_byte_array" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> </description> </method> diff --git a/doc/classes/PackedVector3Array.xml b/doc/classes/PackedVector3Array.xml index 00ded39082..1a35f71619 100644 --- a/doc/classes/PackedVector3Array.xml +++ b/doc/classes/PackedVector3Array.xml @@ -10,203 +10,159 @@ </tutorials> <methods> <method name="PackedVector3Array" qualifiers="constructor"> - <return type="PackedVector3Array"> - </return> + <return type="PackedVector3Array" /> <description> Constructs an empty [PackedVector3Array]. </description> </method> <method name="PackedVector3Array" qualifiers="constructor"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="from" type="PackedVector3Array"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="from" type="PackedVector3Array" /> <description> Constructs a [PackedVector3Array] as a copy of the given [PackedVector3Array]. </description> </method> <method name="PackedVector3Array" qualifiers="constructor"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="from" type="Array"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="from" type="Array" /> <description> Constructs a new [PackedVector3Array]. Optionally, you can pass in a generic [Array] that will be converted. </description> </method> <method name="append"> - <return type="bool"> - </return> - <argument index="0" name="value" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="Vector3" /> <description> Appends an element at the end of the array (alias of [method push_back]). </description> </method> <method name="append_array"> - <return type="void"> - </return> - <argument index="0" name="array" type="PackedVector3Array"> - </argument> + <return type="void" /> + <argument index="0" name="array" type="PackedVector3Array" /> <description> Appends a [PackedVector3Array] at the end of this array. </description> </method> <method name="duplicate"> - <return type="PackedVector3Array"> - </return> + <return type="PackedVector3Array" /> <description> Creates a copy of the array, and returns it. </description> </method> <method name="fill"> - <return type="void"> - </return> - <argument index="0" name="value" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="Vector3" /> <description> Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements. </description> </method> <method name="has"> - <return type="bool"> - </return> - <argument index="0" name="value" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="Vector3" /> <description> Returns [code]true[/code] if the array contains [code]value[/code]. </description> </method> <method name="insert"> - <return type="int"> - </return> - <argument index="0" name="at_index" type="int"> - </argument> - <argument index="1" name="value" type="Vector3"> - </argument> + <return type="int" /> + <argument index="0" name="at_index" type="int" /> + <argument index="1" name="value" type="Vector3" /> <description> Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]). </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the array is empty. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedVector3Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedVector3Array" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="right" type="Transform3D"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="right" type="Transform3D" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="right" type="PackedVector3Array"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="right" type="PackedVector3Array" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="PackedVector3Array"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="PackedVector3Array" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="push_back"> - <return type="bool"> - </return> - <argument index="0" name="value" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="value" type="Vector3" /> <description> Inserts a [Vector3] at the end. </description> </method> <method name="remove"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an element from the array by index. </description> </method> <method name="resize"> - <return type="int"> - </return> - <argument index="0" name="new_size" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="new_size" type="int" /> <description> Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. </description> </method> <method name="reverse"> - <return type="void"> - </return> + <return type="void" /> <description> Reverses the order of the elements in the array. </description> </method> <method name="set"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="value" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="value" type="Vector3" /> <description> Changes the [Vector3] at the given index. </description> </method> <method name="size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the size of the array. </description> </method> <method name="sort"> - <return type="void"> - </return> + <return type="void" /> <description> Sorts the elements of the array in ascending order. </description> </method> <method name="subarray" qualifiers="const"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> </description> </method> <method name="to_byte_array" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> </description> </method> diff --git a/doc/classes/PacketPeer.xml b/doc/classes/PacketPeer.xml index 0a758c2cd6..8d0aa89287 100644 --- a/doc/classes/PacketPeer.xml +++ b/doc/classes/PacketPeer.xml @@ -10,52 +10,42 @@ </tutorials> <methods> <method name="get_available_packet_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of packets currently available in the ring-buffer. </description> </method> <method name="get_packet"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Gets a raw packet. </description> </method> <method name="get_packet_error" qualifiers="const"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Returns the error state of the last packet received (via [method get_packet] and [method get_var]). </description> </method> <method name="get_var"> - <return type="Variant"> - </return> - <argument index="0" name="allow_objects" type="bool" default="false"> - </argument> + <return type="Variant" /> + <argument index="0" name="allow_objects" type="bool" default="false" /> <description> Gets a Variant. If [code]allow_objects[/code] is [code]true[/code], decoding objects is allowed. [b]Warning:[/b] Deserialized objects can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats such as remote code execution. </description> </method> <method name="put_packet"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="buffer" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="buffer" type="PackedByteArray" /> <description> Sends a raw packet. </description> </method> <method name="put_var"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="var" type="Variant"> - </argument> - <argument index="1" name="full_objects" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="var" type="Variant" /> + <argument index="1" name="full_objects" type="bool" default="false" /> <description> Sends a [Variant] as a packet. If [code]full_objects[/code] is [code]true[/code], encoding objects is allowed (and can potentially include code). </description> diff --git a/doc/classes/PacketPeerDTLS.xml b/doc/classes/PacketPeerDTLS.xml index 19ebb9d81e..99a1aea5a6 100644 --- a/doc/classes/PacketPeerDTLS.xml +++ b/doc/classes/PacketPeerDTLS.xml @@ -10,37 +10,29 @@ </tutorials> <methods> <method name="connect_to_peer"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="packet_peer" type="PacketPeerUDP"> - </argument> - <argument index="1" name="validate_certs" type="bool" default="true"> - </argument> - <argument index="2" name="for_hostname" type="String" default=""""> - </argument> - <argument index="3" name="valid_certificate" type="X509Certificate" default="null"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="packet_peer" type="PacketPeerUDP" /> + <argument index="1" name="validate_certs" type="bool" default="true" /> + <argument index="2" name="for_hostname" type="String" default="""" /> + <argument index="3" name="valid_certificate" type="X509Certificate" default="null" /> <description> Connects a [code]peer[/code] beginning the DTLS handshake using the underlying [PacketPeerUDP] which must be connected (see [method PacketPeerUDP.connect_to_host]). If [code]validate_certs[/code] is [code]true[/code], [PacketPeerDTLS] will validate that the certificate presented by the remote peer and match it with the [code]for_hostname[/code] argument. You can specify a custom [X509Certificate] to use for validation via the [code]valid_certificate[/code] argument. </description> </method> <method name="disconnect_from_peer"> - <return type="void"> - </return> + <return type="void" /> <description> Disconnects this peer, terminating the DTLS session. </description> </method> <method name="get_status" qualifiers="const"> - <return type="int" enum="PacketPeerDTLS.Status"> - </return> + <return type="int" enum="PacketPeerDTLS.Status" /> <description> Returns the status of the connection. See [enum Status] for values. </description> </method> <method name="poll"> - <return type="void"> - </return> + <return type="void" /> <description> Poll the connection to check for incoming packets. Call this frequently to update the status and keep the connection working. </description> diff --git a/doc/classes/PacketPeerUDP.xml b/doc/classes/PacketPeerUDP.xml index 2707df612c..e2acb91058 100644 --- a/doc/classes/PacketPeerUDP.xml +++ b/doc/classes/PacketPeerUDP.xml @@ -10,14 +10,10 @@ </tutorials> <methods> <method name="bind"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="bind_address" type="String" default=""*""> - </argument> - <argument index="2" name="recv_buf_size" type="int" default="65536"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="bind_address" type="String" default=""*"" /> + <argument index="2" name="recv_buf_size" type="int" default="65536" /> <description> Binds this [PacketPeerUDP] to the specified [code]port[/code] and [code]address[/code] with a buffer size [code]recv_buf_size[/code], allowing it to receive incoming packets. If [code]address[/code] is set to [code]"*"[/code] (default), the peer will be bound on all available addresses (both IPv4 and IPv6). @@ -26,66 +22,54 @@ </description> </method> <method name="close"> - <return type="void"> - </return> + <return type="void" /> <description> Closes the [PacketPeerUDP]'s underlying UDP socket. </description> </method> <method name="connect_to_host"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <argument index="1" name="port" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="host" type="String" /> + <argument index="1" name="port" type="int" /> <description> Calling this method connects this UDP peer to the given [code]host[/code]/[code]port[/code] pair. UDP is in reality connectionless, so this option only means that incoming packets from different addresses are automatically discarded, and that outgoing packets are always sent to the connected address (future calls to [method set_dest_address] are not allowed). This method does not send any data to the remote peer, to do that, use [method PacketPeer.put_var] or [method PacketPeer.put_packet] as usual. See also [UDPServer]. [b]Note:[/b] Connecting to the remote peer does not help to protect from malicious attacks like IP spoofing, etc. Think about using an encryption technique like SSL or DTLS if you feel like your application is transferring sensitive information. </description> </method> <method name="get_local_port" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the local port to which this peer is bound. </description> </method> <method name="get_packet_ip" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the IP of the remote peer that sent the last packet(that was received with [method PacketPeer.get_packet] or [method PacketPeer.get_var]). </description> </method> <method name="get_packet_port" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the port of the remote peer that sent the last packet(that was received with [method PacketPeer.get_packet] or [method PacketPeer.get_var]). </description> </method> <method name="is_bound" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether this [PacketPeerUDP] is bound to an address and can receive packets. </description> </method> <method name="is_connected_to_host" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the UDP socket is open and has been connected to a remote address. See [method connect_to_host]. </description> </method> <method name="join_multicast_group"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="multicast_address" type="String"> - </argument> - <argument index="1" name="interface_name" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="multicast_address" type="String" /> + <argument index="1" name="interface_name" type="String" /> <description> Joins the multicast group specified by [code]multicast_address[/code] using the interface identified by [code]interface_name[/code]. You can join the same multicast group with multiple interfaces. Use [method IP.get_local_interfaces] to know which are available. @@ -93,41 +77,32 @@ </description> </method> <method name="leave_multicast_group"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="multicast_address" type="String"> - </argument> - <argument index="1" name="interface_name" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="multicast_address" type="String" /> + <argument index="1" name="interface_name" type="String" /> <description> Removes the interface identified by [code]interface_name[/code] from the multicast group specified by [code]multicast_address[/code]. </description> </method> <method name="set_broadcast_enabled"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enabled" type="bool" /> <description> Enable or disable sending of broadcast packets (e.g. [code]set_dest_address("255.255.255.255", 4343)[/code]. This option is disabled by default. Note: Some Android devices might require the [code]CHANGE_WIFI_MULTICAST_STATE[/code] permission and this option to be enabled to receive broadcast packets too. </description> </method> <method name="set_dest_address"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <argument index="1" name="port" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="host" type="String" /> + <argument index="1" name="port" type="int" /> <description> Sets the destination address and port for sending packets and variables. A hostname will be resolved using DNS if needed. Note: [method set_broadcast_enabled] must be enabled before sending packets to a broadcast address (e.g. [code]255.255.255.255[/code]). </description> </method> <method name="wait"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Waits for a packet to arrive on the bound address. See [method bind]. [b]Note:[/b] [method wait] can't be interrupted once it has been called. This can be worked around by allowing the other party to send a specific "death pill" packet like this: diff --git a/doc/classes/ParticlesMaterial.xml b/doc/classes/ParticlesMaterial.xml index 640a26b8cb..3520d3b966 100644 --- a/doc/classes/ParticlesMaterial.xml +++ b/doc/classes/ParticlesMaterial.xml @@ -12,81 +12,61 @@ </tutorials> <methods> <method name="get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter" /> <description> Returns the value of the specified parameter. </description> </method> <method name="get_param_randomness" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter" /> <description> Returns the randomness ratio associated with the specified parameter. </description> </method> <method name="get_param_texture" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter" /> <description> Returns the [Texture2D] used by the specified parameter. </description> </method> <method name="get_particle_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="particle_flag" type="int" enum="ParticlesMaterial.ParticleFlags"> - </argument> + <return type="bool" /> + <argument index="0" name="particle_flag" type="int" enum="ParticlesMaterial.ParticleFlags" /> <description> Returns [code]true[/code] if the specified particle flag is enabled. See [enum ParticleFlags] for options. </description> </method> <method name="set_param"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter" /> + <argument index="1" name="value" type="float" /> <description> Sets the specified [enum Parameter]. </description> </method> <method name="set_param_randomness"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> - </argument> - <argument index="1" name="randomness" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter" /> + <argument index="1" name="randomness" type="float" /> <description> Sets the randomness ratio for the specified [enum Parameter]. </description> </method> <method name="set_param_texture"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter" /> + <argument index="1" name="texture" type="Texture2D" /> <description> Sets the [Texture2D] for the specified [enum Parameter]. </description> </method> <method name="set_particle_flag"> - <return type="void"> - </return> - <argument index="0" name="particle_flag" type="int" enum="ParticlesMaterial.ParticleFlags"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="particle_flag" type="int" enum="ParticlesMaterial.ParticleFlags" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], enables the specified particle flag. See [enum ParticleFlags] for options. </description> diff --git a/doc/classes/Performance.xml b/doc/classes/Performance.xml index a141961df5..335c3d254b 100644 --- a/doc/classes/Performance.xml +++ b/doc/classes/Performance.xml @@ -14,14 +14,10 @@ </tutorials> <methods> <method name="add_custom_monitor"> - <return type="void"> - </return> - <argument index="0" name="id" type="StringName"> - </argument> - <argument index="1" name="callable" type="Callable"> - </argument> - <argument index="2" name="arguments" type="Array" default="[]"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="StringName" /> + <argument index="1" name="callable" type="Callable" /> + <argument index="2" name="arguments" type="Array" default="[]" /> <description> Adds a custom monitor with name same as id. You can specify the category of monitor using '/' in id. If there are more than one '/' then default category is used. Default category is "Custom". [codeblocks] @@ -77,27 +73,22 @@ </description> </method> <method name="get_custom_monitor"> - <return type="Variant"> - </return> - <argument index="0" name="id" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="id" type="StringName" /> <description> Returns the value of custom monitor with given id. The callable is called to get the value of custom monitor. [b]Note:[/b] It throws an error if the given id is absent. </description> </method> <method name="get_custom_monitor_names"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the names of active custom monitors in an array. </description> </method> <method name="get_monitor" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="monitor" type="int" enum="Performance.Monitor"> - </argument> + <return type="float" /> + <argument index="0" name="monitor" type="int" enum="Performance.Monitor" /> <description> Returns the value of one of the available monitors. You should provide one of the [enum Monitor] constants as the argument, like this: [codeblocks] @@ -111,26 +102,21 @@ </description> </method> <method name="get_monitor_modification_time"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the last tick in which custom monitor was added/removed. </description> </method> <method name="has_custom_monitor"> - <return type="bool"> - </return> - <argument index="0" name="id" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="StringName" /> <description> Returns true if custom monitor with the given id is present otherwise returns false. </description> </method> <method name="remove_custom_monitor"> - <return type="void"> - </return> - <argument index="0" name="id" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="StringName" /> <description> Removes the custom monitor with given id. [b]Note:[/b] It throws an error if the given id is already absent. diff --git a/doc/classes/PhysicalBone2D.xml b/doc/classes/PhysicalBone2D.xml index cea75bad52..b4d92475a1 100644 --- a/doc/classes/PhysicalBone2D.xml +++ b/doc/classes/PhysicalBone2D.xml @@ -12,15 +12,13 @@ </tutorials> <methods> <method name="get_joint" qualifiers="const"> - <return type="Joint2D"> - </return> + <return type="Joint2D" /> <description> Returns the first [Joint2D] child node, if one exists. This is mainly a helper function to make it easier to get the [Joint2D] that the [code]PhysicalBone2D[/code] is autoconfiguring. </description> </method> <method name="is_simulating_physics" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns a boolean that indicates whether the [code]PhysicalBone2D[/code] node is running and simulating using the Godot 2D physics engine. When [code]true[/code], the PhysicalBone2D node is using physics. </description> diff --git a/doc/classes/PhysicalBone3D.xml b/doc/classes/PhysicalBone3D.xml index 2ed862e9ce..710e96239b 100644 --- a/doc/classes/PhysicalBone3D.xml +++ b/doc/classes/PhysicalBone3D.xml @@ -8,38 +8,30 @@ </tutorials> <methods> <method name="apply_central_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector3" /> <description> </description> </method> <method name="apply_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector3"> - </argument> - <argument index="1" name="position" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector3" /> + <argument index="1" name="position" type="Vector3" default="Vector3(0, 0, 0)" /> <description> </description> </method> <method name="get_bone_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_simulate_physics"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="is_simulating_physics"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> diff --git a/doc/classes/PhysicsBody2D.xml b/doc/classes/PhysicsBody2D.xml index 654b0fb668..4d1cd072d0 100644 --- a/doc/classes/PhysicsBody2D.xml +++ b/doc/classes/PhysicsBody2D.xml @@ -11,34 +11,25 @@ </tutorials> <methods> <method name="add_collision_exception_with"> - <return type="void"> - </return> - <argument index="0" name="body" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="Node" /> <description> Adds a body to the list of bodies that this body can't collide with. </description> </method> <method name="get_collision_exceptions"> - <return type="PhysicsBody2D[]"> - </return> + <return type="PhysicsBody2D[]" /> <description> Returns an array of nodes that were added as collision exceptions for this body. </description> </method> <method name="move_and_collide"> - <return type="KinematicCollision2D"> - </return> - <argument index="0" name="rel_vec" type="Vector2"> - </argument> - <argument index="1" name="infinite_inertia" type="bool" default="true"> - </argument> - <argument index="2" name="exclude_raycast_shapes" type="bool" default="true"> - </argument> - <argument index="3" name="test_only" type="bool" default="false"> - </argument> - <argument index="4" name="safe_margin" type="float" default="0.08"> - </argument> + <return type="KinematicCollision2D" /> + <argument index="0" name="rel_vec" type="Vector2" /> + <argument index="1" name="infinite_inertia" type="bool" default="true" /> + <argument index="2" name="exclude_raycast_shapes" type="bool" default="true" /> + <argument index="3" name="test_only" type="bool" default="false" /> + <argument index="4" name="safe_margin" type="float" default="0.08" /> <description> Moves the body along the vector [code]rel_vec[/code]. The body will stop if it collides. Returns a [KinematicCollision2D], which contains information about the collision. If [code]test_only[/code] is [code]true[/code], the body does not move but the would-be collision information is given. @@ -46,29 +37,20 @@ </description> </method> <method name="remove_collision_exception_with"> - <return type="void"> - </return> - <argument index="0" name="body" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="Node" /> <description> Removes a body from the list of bodies that this body can't collide with. </description> </method> <method name="test_move"> - <return type="bool"> - </return> - <argument index="0" name="from" type="Transform2D"> - </argument> - <argument index="1" name="rel_vec" type="Vector2"> - </argument> - <argument index="2" name="infinite_inertia" type="bool" default="true"> - </argument> - <argument index="3" name="exclude_raycast_shapes" type="bool" default="true"> - </argument> - <argument index="4" name="collision" type="KinematicCollision2D" default="null"> - </argument> - <argument index="5" name="safe_margin" type="float" default="0.08"> - </argument> + <return type="bool" /> + <argument index="0" name="from" type="Transform2D" /> + <argument index="1" name="rel_vec" type="Vector2" /> + <argument index="2" name="infinite_inertia" type="bool" default="true" /> + <argument index="3" name="exclude_raycast_shapes" type="bool" default="true" /> + <argument index="4" name="collision" type="KinematicCollision2D" default="null" /> + <argument index="5" name="safe_margin" type="float" default="0.08" /> <description> Checks for collisions without moving the body. Virtually sets the node's position, scale and rotation to that of the given [Transform2D], then tries to move the body along the vector [code]rel_vec[/code]. Returns [code]true[/code] if a collision would occur. [code]collision[/code] is an optional object of type [KinematicCollision2D], which contains additional information about the collision (should there be one). diff --git a/doc/classes/PhysicsBody3D.xml b/doc/classes/PhysicsBody3D.xml index 1ec38000be..a2a68115d0 100644 --- a/doc/classes/PhysicsBody3D.xml +++ b/doc/classes/PhysicsBody3D.xml @@ -11,43 +11,32 @@ </tutorials> <methods> <method name="add_collision_exception_with"> - <return type="void"> - </return> - <argument index="0" name="body" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="Node" /> <description> Adds a body to the list of bodies that this body can't collide with. </description> </method> <method name="get_axis_lock" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="axis" type="int" enum="PhysicsServer3D.BodyAxis"> - </argument> + <return type="bool" /> + <argument index="0" name="axis" type="int" enum="PhysicsServer3D.BodyAxis" /> <description> Returns [code]true[/code] if the specified linear or rotational [code]axis[/code] is locked. </description> </method> <method name="get_collision_exceptions"> - <return type="PhysicsBody3D[]"> - </return> + <return type="PhysicsBody3D[]" /> <description> Returns an array of nodes that were added as collision exceptions for this body. </description> </method> <method name="move_and_collide"> - <return type="KinematicCollision3D"> - </return> - <argument index="0" name="rel_vec" type="Vector3"> - </argument> - <argument index="1" name="infinite_inertia" type="bool" default="true"> - </argument> - <argument index="2" name="exclude_raycast_shapes" type="bool" default="true"> - </argument> - <argument index="3" name="test_only" type="bool" default="false"> - </argument> - <argument index="4" name="safe_margin" type="float" default="0.001"> - </argument> + <return type="KinematicCollision3D" /> + <argument index="0" name="rel_vec" type="Vector3" /> + <argument index="1" name="infinite_inertia" type="bool" default="true" /> + <argument index="2" name="exclude_raycast_shapes" type="bool" default="true" /> + <argument index="3" name="test_only" type="bool" default="false" /> + <argument index="4" name="safe_margin" type="float" default="0.001" /> <description> Moves the body along the vector [code]rel_vec[/code]. The body will stop if it collides. Returns a [KinematicCollision3D], which contains information about the collision. If [code]test_only[/code] is [code]true[/code], the body does not move but the would-be collision information is given. @@ -55,40 +44,28 @@ </description> </method> <method name="remove_collision_exception_with"> - <return type="void"> - </return> - <argument index="0" name="body" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="Node" /> <description> Removes a body from the list of bodies that this body can't collide with. </description> </method> <method name="set_axis_lock"> - <return type="void"> - </return> - <argument index="0" name="axis" type="int" enum="PhysicsServer3D.BodyAxis"> - </argument> - <argument index="1" name="lock" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="axis" type="int" enum="PhysicsServer3D.BodyAxis" /> + <argument index="1" name="lock" type="bool" /> <description> Locks or unlocks the specified linear or rotational [code]axis[/code] depending on the value of [code]lock[/code]. </description> </method> <method name="test_move"> - <return type="bool"> - </return> - <argument index="0" name="from" type="Transform3D"> - </argument> - <argument index="1" name="rel_vec" type="Vector3"> - </argument> - <argument index="2" name="infinite_inertia" type="bool" default="true"> - </argument> - <argument index="3" name="exclude_raycast_shapes" type="bool" default="true"> - </argument> - <argument index="4" name="collision" type="KinematicCollision3D" default="null"> - </argument> - <argument index="5" name="safe_margin" type="float" default="0.001"> - </argument> + <return type="bool" /> + <argument index="0" name="from" type="Transform3D" /> + <argument index="1" name="rel_vec" type="Vector3" /> + <argument index="2" name="infinite_inertia" type="bool" default="true" /> + <argument index="3" name="exclude_raycast_shapes" type="bool" default="true" /> + <argument index="4" name="collision" type="KinematicCollision3D" default="null" /> + <argument index="5" name="safe_margin" type="float" default="0.001" /> <description> Checks for collisions without moving the body. Virtually sets the node's position, scale and rotation to that of the given [Transform3D], then tries to move the body along the vector [code]rel_vec[/code]. Returns [code]true[/code] if a collision would occur. [code]collision[/code] is an optional object of type [KinematicCollision3D], which contains additional information about the collision (should there be one). diff --git a/doc/classes/PhysicsDirectBodyState2D.xml b/doc/classes/PhysicsDirectBodyState2D.xml index 65cb3e7f38..ab3a04698f 100644 --- a/doc/classes/PhysicsDirectBodyState2D.xml +++ b/doc/classes/PhysicsDirectBodyState2D.xml @@ -11,171 +11,134 @@ </tutorials> <methods> <method name="add_central_force"> - <return type="void"> - </return> - <argument index="0" name="force" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="Vector2" /> <description> Adds a constant directional force without affecting rotation. </description> </method> <method name="add_force"> - <return type="void"> - </return> - <argument index="0" name="force" type="Vector2"> - </argument> - <argument index="1" name="position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="Vector2" /> + <argument index="1" name="position" type="Vector2" default="Vector2(0, 0)" /> <description> Adds a positioned force to the body. Both the force and the offset from the body origin are in global coordinates. </description> </method> <method name="add_torque"> - <return type="void"> - </return> - <argument index="0" name="torque" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="torque" type="float" /> <description> Adds a constant rotational force. </description> </method> <method name="apply_central_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector2" /> <description> Applies a directional impulse without affecting rotation. </description> </method> <method name="apply_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector2"> - </argument> - <argument index="1" name="position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector2" /> + <argument index="1" name="position" type="Vector2" default="Vector2(0, 0)" /> <description> Applies a positioned impulse to the body. An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_force" functions otherwise). The offset uses the rotation of the global coordinate system, but is centered at the object's origin. </description> </method> <method name="apply_torque_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="float" /> <description> Applies a rotational impulse to the body. </description> </method> <method name="get_contact_collider" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the collider's [RID]. </description> </method> <method name="get_contact_collider_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the collider's object id. </description> </method> <method name="get_contact_collider_object" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Object" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the collider object. This depends on how it was created (will return a scene node if such was used to create it). </description> </method> <method name="get_contact_collider_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the contact position in the collider. </description> </method> <method name="get_contact_collider_shape" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the collider's shape index. </description> </method> <method name="get_contact_collider_shape_metadata" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the collided shape's metadata. This metadata is different from [method Object.get_meta], and is set with [method PhysicsServer2D.shape_set_data]. </description> </method> <method name="get_contact_collider_velocity_at_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the linear velocity vector at the collider's contact point. </description> </method> <method name="get_contact_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of contacts this body has with other bodies. [b]Note:[/b] By default, this returns 0 unless bodies are configured to monitor contacts. See [member RigidBody2D.contact_monitor]. </description> </method> <method name="get_contact_local_normal" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the local normal at the contact point. </description> </method> <method name="get_contact_local_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the local position of the contact point. </description> </method> <method name="get_contact_local_shape" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the local shape index of the collision. </description> </method> <method name="get_space_state"> - <return type="PhysicsDirectSpaceState2D"> - </return> + <return type="PhysicsDirectSpaceState2D" /> <description> Returns the current state of the space, useful for queries. </description> </method> <method name="integrate_forces"> - <return type="void"> - </return> + <return type="void" /> <description> Calls the built-in force integration code. </description> diff --git a/doc/classes/PhysicsDirectBodyState3D.xml b/doc/classes/PhysicsDirectBodyState3D.xml index 85feeef86e..6af62c2bcc 100644 --- a/doc/classes/PhysicsDirectBodyState3D.xml +++ b/doc/classes/PhysicsDirectBodyState3D.xml @@ -10,173 +10,136 @@ </tutorials> <methods> <method name="add_central_force"> - <return type="void"> - </return> - <argument index="0" name="force" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="Vector3" default="Vector3(0, 0, 0)" /> <description> Adds a constant directional force without affecting rotation. This is equivalent to [code]add_force(force, Vector3(0,0,0))[/code]. </description> </method> <method name="add_force"> - <return type="void"> - </return> - <argument index="0" name="force" type="Vector3"> - </argument> - <argument index="1" name="position" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="Vector3" /> + <argument index="1" name="position" type="Vector3" default="Vector3(0, 0, 0)" /> <description> Adds a positioned force to the body. Both the force and the offset from the body origin are in global coordinates. </description> </method> <method name="add_torque"> - <return type="void"> - </return> - <argument index="0" name="torque" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="torque" type="Vector3" /> <description> Adds a constant rotational force without affecting position. </description> </method> <method name="apply_central_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector3" default="Vector3(0, 0, 0)" /> <description> Applies a single directional impulse without affecting rotation. This is equivalent to [code]apply_impulse(Vector3(0, 0, 0), impulse)[/code]. </description> </method> <method name="apply_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector3"> - </argument> - <argument index="1" name="position" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector3" /> + <argument index="1" name="position" type="Vector3" default="Vector3(0, 0, 0)" /> <description> Applies a positioned impulse to the body. An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason it should only be used when simulating one-time impacts. The position uses the rotation of the global coordinate system, but is centered at the object's origin. </description> </method> <method name="apply_torque_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector3" /> <description> Apply a torque impulse (which will be affected by the body mass and shape). This will rotate the body around the vector [code]j[/code] passed as parameter. </description> </method> <method name="get_contact_collider" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the collider's [RID]. </description> </method> <method name="get_contact_collider_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the collider's object id. </description> </method> <method name="get_contact_collider_object" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Object" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the collider object. </description> </method> <method name="get_contact_collider_position" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the contact position in the collider. </description> </method> <method name="get_contact_collider_shape" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the collider's shape index. </description> </method> <method name="get_contact_collider_velocity_at_position" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the linear velocity vector at the collider's contact point. </description> </method> <method name="get_contact_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of contacts this body has with other bodies. [b]Note:[/b] By default, this returns 0 unless bodies are configured to monitor contacts. See [member RigidBody3D.contact_monitor]. </description> </method> <method name="get_contact_impulse" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="contact_idx" type="int" /> <description> Impulse created by the contact. Only implemented for Bullet physics. </description> </method> <method name="get_contact_local_normal" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the local normal at the contact point. </description> </method> <method name="get_contact_local_position" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the local position of the contact point. </description> </method> <method name="get_contact_local_shape" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="contact_idx" type="int" /> <description> Returns the local shape index of the collision. </description> </method> <method name="get_space_state"> - <return type="PhysicsDirectSpaceState3D"> - </return> + <return type="PhysicsDirectSpaceState3D" /> <description> Returns the current state of the space, useful for queries. </description> </method> <method name="integrate_forces"> - <return type="void"> - </return> + <return type="void" /> <description> Calls the built-in force integration code. </description> diff --git a/doc/classes/PhysicsDirectSpaceState2D.xml b/doc/classes/PhysicsDirectSpaceState2D.xml index 6c8c957e5d..2a32bc1cb9 100644 --- a/doc/classes/PhysicsDirectSpaceState2D.xml +++ b/doc/classes/PhysicsDirectSpaceState2D.xml @@ -11,10 +11,8 @@ </tutorials> <methods> <method name="cast_motion"> - <return type="Array"> - </return> - <argument index="0" name="shape" type="PhysicsShapeQueryParameters2D"> - </argument> + <return type="Array" /> + <argument index="0" name="shape" type="PhysicsShapeQueryParameters2D" /> <description> Checks how far a [Shape2D] can move without colliding. All the parameters for the query, including the shape and the motion, are supplied through a [PhysicsShapeQueryParameters2D] object. Returns an array with the safe and unsafe proportions (between 0 and 1) of the motion. The safe proportion is the maximum fraction of the motion that can be made without a collision. The unsafe proportion is the minimum fraction of the distance that must be moved for a collision. If no collision is detected a result of [code][1.0, 1.0][/code] will be returned. @@ -22,21 +20,16 @@ </description> </method> <method name="collide_shape"> - <return type="Array"> - </return> - <argument index="0" name="shape" type="PhysicsShapeQueryParameters2D"> - </argument> - <argument index="1" name="max_results" type="int" default="32"> - </argument> + <return type="Array" /> + <argument index="0" name="shape" type="PhysicsShapeQueryParameters2D" /> + <argument index="1" name="max_results" type="int" default="32" /> <description> Checks the intersections of a shape, given through a [PhysicsShapeQueryParameters2D] object, against the space. The resulting array contains a list of points where the shape intersects another. Like with [method intersect_shape], the number of returned results can be limited to save processing time. </description> </method> <method name="get_rest_info"> - <return type="Dictionary"> - </return> - <argument index="0" name="shape" type="PhysicsShapeQueryParameters2D"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="shape" type="PhysicsShapeQueryParameters2D" /> <description> Checks the intersections of a shape, given through a [PhysicsShapeQueryParameters2D] object, against the space. If it collides with more than one shape, the nearest one is selected. If the shape did not intersect anything, then an empty dictionary is returned instead. [b]Note:[/b] This method does not take into account the [code]motion[/code] property of the object. The returned object is a dictionary containing the following fields: @@ -50,20 +43,13 @@ </description> </method> <method name="intersect_point"> - <return type="Array"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> - <argument index="1" name="max_results" type="int" default="32"> - </argument> - <argument index="2" name="exclude" type="Array" default="[]"> - </argument> - <argument index="3" name="collision_layer" type="int" default="2147483647"> - </argument> - <argument index="4" name="collide_with_bodies" type="bool" default="true"> - </argument> - <argument index="5" name="collide_with_areas" type="bool" default="false"> - </argument> + <return type="Array" /> + <argument index="0" name="point" type="Vector2" /> + <argument index="1" name="max_results" type="int" default="32" /> + <argument index="2" name="exclude" type="Array" default="[]" /> + <argument index="3" name="collision_layer" type="int" default="2147483647" /> + <argument index="4" name="collide_with_bodies" type="bool" default="true" /> + <argument index="5" name="collide_with_areas" type="bool" default="false" /> <description> Checks whether a point is inside any solid shape. The shapes the point is inside of are returned in an array containing dictionaries with the following fields: [code]collider[/code]: The colliding object. @@ -76,40 +62,25 @@ </description> </method> <method name="intersect_point_on_canvas"> - <return type="Array"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> - <argument index="1" name="canvas_instance_id" type="int"> - </argument> - <argument index="2" name="max_results" type="int" default="32"> - </argument> - <argument index="3" name="exclude" type="Array" default="[]"> - </argument> - <argument index="4" name="collision_layer" type="int" default="2147483647"> - </argument> - <argument index="5" name="collide_with_bodies" type="bool" default="true"> - </argument> - <argument index="6" name="collide_with_areas" type="bool" default="false"> - </argument> + <return type="Array" /> + <argument index="0" name="point" type="Vector2" /> + <argument index="1" name="canvas_instance_id" type="int" /> + <argument index="2" name="max_results" type="int" default="32" /> + <argument index="3" name="exclude" type="Array" default="[]" /> + <argument index="4" name="collision_layer" type="int" default="2147483647" /> + <argument index="5" name="collide_with_bodies" type="bool" default="true" /> + <argument index="6" name="collide_with_areas" type="bool" default="false" /> <description> </description> </method> <method name="intersect_ray"> - <return type="Dictionary"> - </return> - <argument index="0" name="from" type="Vector2"> - </argument> - <argument index="1" name="to" type="Vector2"> - </argument> - <argument index="2" name="exclude" type="Array" default="[]"> - </argument> - <argument index="3" name="collision_layer" type="int" default="2147483647"> - </argument> - <argument index="4" name="collide_with_bodies" type="bool" default="true"> - </argument> - <argument index="5" name="collide_with_areas" type="bool" default="false"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="from" type="Vector2" /> + <argument index="1" name="to" type="Vector2" /> + <argument index="2" name="exclude" type="Array" default="[]" /> + <argument index="3" name="collision_layer" type="int" default="2147483647" /> + <argument index="4" name="collide_with_bodies" type="bool" default="true" /> + <argument index="5" name="collide_with_areas" type="bool" default="false" /> <description> Intersects a ray in a given space. The returned object is a dictionary with the following fields: [code]collider[/code]: The colliding object. @@ -124,12 +95,9 @@ </description> </method> <method name="intersect_shape"> - <return type="Array"> - </return> - <argument index="0" name="shape" type="PhysicsShapeQueryParameters2D"> - </argument> - <argument index="1" name="max_results" type="int" default="32"> - </argument> + <return type="Array" /> + <argument index="0" name="shape" type="PhysicsShapeQueryParameters2D" /> + <argument index="1" name="max_results" type="int" default="32" /> <description> Checks the intersections of a shape, given through a [PhysicsShapeQueryParameters2D] object, against the space. [b]Note:[/b] This method does not take into account the [code]motion[/code] property of the object. The intersected shapes are returned in an array containing dictionaries with the following fields: diff --git a/doc/classes/PhysicsDirectSpaceState3D.xml b/doc/classes/PhysicsDirectSpaceState3D.xml index a69b6f07fd..a6bfc8754d 100644 --- a/doc/classes/PhysicsDirectSpaceState3D.xml +++ b/doc/classes/PhysicsDirectSpaceState3D.xml @@ -11,12 +11,9 @@ </tutorials> <methods> <method name="cast_motion"> - <return type="Array"> - </return> - <argument index="0" name="shape" type="PhysicsShapeQueryParameters3D"> - </argument> - <argument index="1" name="motion" type="Vector3"> - </argument> + <return type="Array" /> + <argument index="0" name="shape" type="PhysicsShapeQueryParameters3D" /> + <argument index="1" name="motion" type="Vector3" /> <description> Checks how far a [Shape3D] can move without colliding. All the parameters for the query, including the shape, are supplied through a [PhysicsShapeQueryParameters3D] object. Returns an array with the safe and unsafe proportions (between 0 and 1) of the motion. The safe proportion is the maximum fraction of the motion that can be made without a collision. The unsafe proportion is the minimum fraction of the distance that must be moved for a collision. If no collision is detected a result of [code][1.0, 1.0][/code] will be returned. @@ -24,21 +21,16 @@ </description> </method> <method name="collide_shape"> - <return type="Array"> - </return> - <argument index="0" name="shape" type="PhysicsShapeQueryParameters3D"> - </argument> - <argument index="1" name="max_results" type="int" default="32"> - </argument> + <return type="Array" /> + <argument index="0" name="shape" type="PhysicsShapeQueryParameters3D" /> + <argument index="1" name="max_results" type="int" default="32" /> <description> Checks the intersections of a shape, given through a [PhysicsShapeQueryParameters3D] object, against the space. The resulting array contains a list of points where the shape intersects another. Like with [method intersect_shape], the number of returned results can be limited to save processing time. </description> </method> <method name="get_rest_info"> - <return type="Dictionary"> - </return> - <argument index="0" name="shape" type="PhysicsShapeQueryParameters3D"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="shape" type="PhysicsShapeQueryParameters3D" /> <description> Checks the intersections of a shape, given through a [PhysicsShapeQueryParameters3D] object, against the space. If it collides with more than one shape, the nearest one is selected. The returned object is a dictionary containing the following fields: [code]collider_id[/code]: The colliding object's ID. @@ -51,20 +43,13 @@ </description> </method> <method name="intersect_ray"> - <return type="Dictionary"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="to" type="Vector3"> - </argument> - <argument index="2" name="exclude" type="Array" default="[]"> - </argument> - <argument index="3" name="collision_mask" type="int" default="2147483647"> - </argument> - <argument index="4" name="collide_with_bodies" type="bool" default="true"> - </argument> - <argument index="5" name="collide_with_areas" type="bool" default="false"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="to" type="Vector3" /> + <argument index="2" name="exclude" type="Array" default="[]" /> + <argument index="3" name="collision_mask" type="int" default="2147483647" /> + <argument index="4" name="collide_with_bodies" type="bool" default="true" /> + <argument index="5" name="collide_with_areas" type="bool" default="false" /> <description> Intersects a ray in a given space. The returned object is a dictionary with the following fields: [code]collider[/code]: The colliding object. @@ -78,12 +63,9 @@ </description> </method> <method name="intersect_shape"> - <return type="Array"> - </return> - <argument index="0" name="shape" type="PhysicsShapeQueryParameters3D"> - </argument> - <argument index="1" name="max_results" type="int" default="32"> - </argument> + <return type="Array" /> + <argument index="0" name="shape" type="PhysicsShapeQueryParameters3D" /> + <argument index="1" name="max_results" type="int" default="32" /> <description> Checks the intersections of a shape, given through a [PhysicsShapeQueryParameters3D] object, against the space. The intersected shapes are returned in an array containing dictionaries with the following fields: [code]collider[/code]: The colliding object. diff --git a/doc/classes/PhysicsServer2D.xml b/doc/classes/PhysicsServer2D.xml index b492ddaa25..cf23fecd08 100644 --- a/doc/classes/PhysicsServer2D.xml +++ b/doc/classes/PhysicsServer2D.xml @@ -10,197 +10,145 @@ </tutorials> <methods> <method name="area_add_shape"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <argument index="2" name="transform" type="Transform2D" default="Transform2D(1, 0, 0, 1, 0, 0)"> - </argument> - <argument index="3" name="disabled" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape" type="RID" /> + <argument index="2" name="transform" type="Transform2D" default="Transform2D(1, 0, 0, 1, 0, 0)" /> + <argument index="3" name="disabled" type="bool" default="false" /> <description> Adds a shape to the area, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index. </description> </method> <method name="area_attach_canvas_instance_id"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="id" type="int" /> <description> </description> </method> <method name="area_attach_object_instance_id"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="id" type="int" /> <description> Assigns the area to a descendant of [Object], so it can exist in the node tree. </description> </method> <method name="area_clear_shapes"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> <description> Removes all shapes from an area. It does not delete the shapes, so they can be reassigned later. </description> </method> <method name="area_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates an [Area2D]. After creating an [Area2D] with this method, assign it to a space using [method area_set_space] to use the created [Area2D] in the physics world. </description> </method> <method name="area_get_canvas_instance_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="area" type="RID" /> <description> </description> </method> <method name="area_get_object_instance_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="area" type="RID" /> <description> Gets the instance ID of the object the area is assigned to. </description> </method> <method name="area_get_param" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer2D.AreaParameter"> - </argument> + <return type="Variant" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer2D.AreaParameter" /> <description> Returns an area parameter value. See [enum AreaParameter] for a list of available parameters. </description> </method> <method name="area_get_shape" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Returns the [RID] of the nth shape of an area. </description> </method> <method name="area_get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="area" type="RID" /> <description> Returns the number of shapes assigned to an area. </description> </method> <method name="area_get_shape_transform" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Returns the transform matrix of a shape within an area. </description> </method> <method name="area_get_space" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="area" type="RID" /> <description> Returns the space assigned to the area. </description> </method> <method name="area_get_space_override_mode" qualifiers="const"> - <return type="int" enum="PhysicsServer2D.AreaSpaceOverrideMode"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="int" enum="PhysicsServer2D.AreaSpaceOverrideMode" /> + <argument index="0" name="area" type="RID" /> <description> Returns the space override mode for the area. </description> </method> <method name="area_get_transform" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="area" type="RID" /> <description> Returns the transform matrix for an area. </description> </method> <method name="area_remove_shape"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Removes a shape from an area. It does not delete the shape, so it can be reassigned later. </description> </method> <method name="area_set_area_monitor_callback"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="receiver" type="Object"> - </argument> - <argument index="2" name="method" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="receiver" type="Object" /> + <argument index="2" name="method" type="StringName" /> <description> </description> </method> <method name="area_set_collision_layer"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="layer" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="layer" type="int" /> <description> Assigns the area to one or many physics layers. </description> </method> <method name="area_set_collision_mask"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> Sets which physics layers the area will monitor. </description> </method> <method name="area_set_monitor_callback"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="receiver" type="Object"> - </argument> - <argument index="2" name="method" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="receiver" type="Object" /> + <argument index="2" name="method" type="StringName" /> <description> Sets the function to call when any body/area enters or exits the area. This callback will be called for any object interacting with the area, and takes five parameters: 1: [constant AREA_BODY_ADDED] or [constant AREA_BODY_REMOVED], depending on whether the object entered or exited the area. @@ -211,911 +159,662 @@ </description> </method> <method name="area_set_monitorable"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="monitorable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="monitorable" type="bool" /> <description> </description> </method> <method name="area_set_param"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer2D.AreaParameter"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer2D.AreaParameter" /> + <argument index="2" name="value" type="Variant" /> <description> Sets the value for an area parameter. See [enum AreaParameter] for a list of available parameters. </description> </method> <method name="area_set_shape"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="shape" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="shape" type="RID" /> <description> Substitutes a given area shape by another. The old shape is selected by its index, the new one by its [RID]. </description> </method> <method name="area_set_shape_disabled"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="disabled" type="bool" /> <description> Disables a given shape in an area. </description> </method> <method name="area_set_shape_transform"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="transform" type="Transform2D" /> <description> Sets the transform matrix for an area shape. </description> </method> <method name="area_set_space"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="space" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="space" type="RID" /> <description> Assigns a space to the area. </description> </method> <method name="area_set_space_override_mode"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="PhysicsServer2D.AreaSpaceOverrideMode"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="mode" type="int" enum="PhysicsServer2D.AreaSpaceOverrideMode" /> <description> Sets the space override mode for the area. See [enum AreaSpaceOverrideMode] for a list of available modes. </description> </method> <method name="area_set_transform"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="transform" type="Transform2D" /> <description> Sets the transform matrix for an area. </description> </method> <method name="body_add_central_force"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="force" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="force" type="Vector2" /> <description> </description> </method> <method name="body_add_collision_exception"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="excepted_body" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="excepted_body" type="RID" /> <description> Adds a body to the list of bodies exempt from collisions. </description> </method> <method name="body_add_force"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="force" type="Vector2"> - </argument> - <argument index="2" name="position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="force" type="Vector2" /> + <argument index="2" name="position" type="Vector2" default="Vector2(0, 0)" /> <description> Adds a positioned force to the applied force and torque. As with [method body_apply_impulse], both the force and the offset from the body origin are in global coordinates. A force differs from an impulse in that, while the two are forces, the impulse clears itself after being applied. </description> </method> <method name="body_add_shape"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <argument index="2" name="transform" type="Transform2D" default="Transform2D(1, 0, 0, 1, 0, 0)"> - </argument> - <argument index="3" name="disabled" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape" type="RID" /> + <argument index="2" name="transform" type="Transform2D" default="Transform2D(1, 0, 0, 1, 0, 0)" /> + <argument index="3" name="disabled" type="bool" default="false" /> <description> Adds a shape to the body, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index. </description> </method> <method name="body_add_torque"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="torque" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="torque" type="float" /> <description> </description> </method> <method name="body_apply_central_impulse"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="impulse" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="impulse" type="Vector2" /> <description> </description> </method> <method name="body_apply_impulse"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="impulse" type="Vector2"> - </argument> - <argument index="2" name="position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="impulse" type="Vector2" /> + <argument index="2" name="position" type="Vector2" default="Vector2(0, 0)" /> <description> Adds a positioned impulse to the applied force and torque. Both the force and the offset from the body origin are in global coordinates. </description> </method> <method name="body_apply_torque_impulse"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="impulse" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="impulse" type="float" /> <description> </description> </method> <method name="body_attach_canvas_instance_id"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="id" type="int" /> <description> </description> </method> <method name="body_attach_object_instance_id"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="id" type="int" /> <description> Assigns the area to a descendant of [Object], so it can exist in the node tree. </description> </method> <method name="body_clear_shapes"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> <description> Removes all shapes from a body. </description> </method> <method name="body_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a physics body. </description> </method> <method name="body_get_canvas_instance_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> </description> </method> <method name="body_get_collision_layer" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> Returns the physics layer or layers a body belongs to. </description> </method> <method name="body_get_collision_mask" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> Returns the physics layer or layers a body can collide with. </description> </method> <method name="body_get_continuous_collision_detection_mode" qualifiers="const"> - <return type="int" enum="PhysicsServer2D.CCDMode"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" enum="PhysicsServer2D.CCDMode" /> + <argument index="0" name="body" type="RID" /> <description> Returns the continuous collision detection mode. </description> </method> <method name="body_get_direct_state"> - <return type="PhysicsDirectBodyState2D"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="PhysicsDirectBodyState2D" /> + <argument index="0" name="body" type="RID" /> <description> Returns the [PhysicsDirectBodyState2D] of the body. </description> </method> <method name="body_get_max_contacts_reported" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> Returns the maximum contacts that can be reported. See [method body_set_max_contacts_reported]. </description> </method> <method name="body_get_mode" qualifiers="const"> - <return type="int" enum="PhysicsServer2D.BodyMode"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" enum="PhysicsServer2D.BodyMode" /> + <argument index="0" name="body" type="RID" /> <description> Returns the body mode. </description> </method> <method name="body_get_object_instance_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> Gets the instance ID of the object the area is assigned to. </description> </method> <method name="body_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer2D.BodyParameter"> - </argument> + <return type="float" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer2D.BodyParameter" /> <description> Returns the value of a body parameter. See [enum BodyParameter] for a list of available parameters. </description> </method> <method name="body_get_shape" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Returns the [RID] of the nth shape of a body. </description> </method> <method name="body_get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> Returns the number of shapes assigned to a body. </description> </method> <method name="body_get_shape_metadata" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Returns the metadata of a shape of a body. </description> </method> <method name="body_get_shape_transform" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Returns the transform matrix of a body shape. </description> </method> <method name="body_get_space" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="body" type="RID" /> <description> Returns the [RID] of the space assigned to a body. </description> </method> <method name="body_get_state" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="state" type="int" enum="PhysicsServer2D.BodyState"> - </argument> + <return type="Variant" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="state" type="int" enum="PhysicsServer2D.BodyState" /> <description> Returns a body state. </description> </method> <method name="body_is_omitting_force_integration" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="body" type="RID" /> <description> Returns whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). </description> </method> <method name="body_remove_collision_exception"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="excepted_body" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="excepted_body" type="RID" /> <description> Removes a body from the list of bodies exempt from collisions. </description> </method> <method name="body_remove_shape"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Removes a shape from a body. The shape is not deleted, so it can be reused afterwards. </description> </method> <method name="body_set_axis_velocity"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="axis_velocity" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="axis_velocity" type="Vector2" /> <description> Sets an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior. </description> </method> <method name="body_set_collision_layer"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="layer" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="layer" type="int" /> <description> Sets the physics layer or layers a body belongs to. </description> </method> <method name="body_set_collision_mask"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> Sets the physics layer or layers a body can collide with. </description> </method> <method name="body_set_continuous_collision_detection_mode"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="PhysicsServer2D.CCDMode"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="mode" type="int" enum="PhysicsServer2D.CCDMode" /> <description> Sets the continuous collision detection mode using one of the [enum CCDMode] constants. Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. </description> </method> <method name="body_set_force_integration_callback"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="callable" type="Callable"> - </argument> - <argument index="2" name="userdata" type="Variant" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="callable" type="Callable" /> + <argument index="2" name="userdata" type="Variant" default="null" /> <description> Sets the function used to calculate physics for an object, if that object allows it (see [method body_set_omit_force_integration]). </description> </method> <method name="body_set_max_contacts_reported"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="amount" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="amount" type="int" /> <description> Sets the maximum contacts to report. Bodies can keep a log of the contacts with other bodies, this is enabled by setting the maximum amount of contacts reported to a number greater than 0. </description> </method> <method name="body_set_mode"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="PhysicsServer2D.BodyMode"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="mode" type="int" enum="PhysicsServer2D.BodyMode" /> <description> Sets the body mode using one of the [enum BodyMode] constants. </description> </method> <method name="body_set_omit_force_integration"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> Sets whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). </description> </method> <method name="body_set_param"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer2D.BodyParameter"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer2D.BodyParameter" /> + <argument index="2" name="value" type="float" /> <description> Sets a body parameter. See [enum BodyParameter] for a list of available parameters. </description> </method> <method name="body_set_shape"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="shape" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="shape" type="RID" /> <description> Substitutes a given body shape by another. The old shape is selected by its index, the new one by its [RID]. </description> </method> <method name="body_set_shape_as_one_way_collision"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="enable" type="bool"> - </argument> - <argument index="3" name="margin" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="enable" type="bool" /> + <argument index="3" name="margin" type="float" /> <description> Enables one way collision on body if [code]enable[/code] is [code]true[/code]. </description> </method> <method name="body_set_shape_disabled"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="disabled" type="bool" /> <description> Disables shape in body if [code]disable[/code] is [code]true[/code]. </description> </method> <method name="body_set_shape_metadata"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="metadata" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="metadata" type="Variant" /> <description> Sets metadata of a shape within a body. This metadata is different from [method Object.set_meta], and can be retrieved on shape queries. </description> </method> <method name="body_set_shape_transform"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="transform" type="Transform2D" /> <description> Sets the transform matrix for a body shape. </description> </method> <method name="body_set_space"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="space" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="space" type="RID" /> <description> Assigns a space to the body (see [method space_create]). </description> </method> <method name="body_set_state"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="state" type="int" enum="PhysicsServer2D.BodyState"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="state" type="int" enum="PhysicsServer2D.BodyState" /> + <argument index="2" name="value" type="Variant" /> <description> Sets a body state using one of the [enum BodyState] constants. Note that the method doesn't take effect immediately. The state will change on the next physics frame. </description> </method> <method name="body_test_motion"> - <return type="bool"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="from" type="Transform2D"> - </argument> - <argument index="2" name="motion" type="Vector2"> - </argument> - <argument index="3" name="infinite_inertia" type="bool"> - </argument> - <argument index="4" name="margin" type="float" default="0.08"> - </argument> - <argument index="5" name="result" type="PhysicsTestMotionResult2D" default="null"> - </argument> - <argument index="6" name="exclude_raycast_shapes" type="bool" default="true"> - </argument> - <argument index="7" name="exclude" type="Array" default="[]"> - </argument> + <return type="bool" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="from" type="Transform2D" /> + <argument index="2" name="motion" type="Vector2" /> + <argument index="3" name="infinite_inertia" type="bool" /> + <argument index="4" name="margin" type="float" default="0.08" /> + <argument index="5" name="result" type="PhysicsTestMotionResult2D" default="null" /> + <argument index="6" name="exclude_raycast_shapes" type="bool" default="true" /> + <argument index="7" name="exclude" type="Array" default="[]" /> <description> Returns [code]true[/code] if a collision would result from moving in the given direction from a given point in space. Margin increases the size of the shapes involved in the collision detection. [PhysicsTestMotionResult2D] can be passed to return additional information in. </description> </method> <method name="capsule_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="circle_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="concave_polygon_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="convex_polygon_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="damped_spring_joint_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer2D.DampedSpringParam"> - </argument> + <return type="float" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer2D.DampedSpringParam" /> <description> Returns the value of a damped spring joint parameter. See [enum DampedSpringParam] for a list of available parameters. </description> </method> <method name="damped_spring_joint_set_param"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer2D.DampedSpringParam"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer2D.DampedSpringParam" /> + <argument index="2" name="value" type="float" /> <description> Sets a damped spring joint parameter. See [enum DampedSpringParam] for a list of available parameters. </description> </method> <method name="free_rid"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Destroys any of the objects created by PhysicsServer2D. If the [RID] passed is not one of the objects that can be created by PhysicsServer2D, an error will be sent to the console. </description> </method> <method name="get_process_info"> - <return type="int"> - </return> - <argument index="0" name="process_info" type="int" enum="PhysicsServer2D.ProcessInfo"> - </argument> + <return type="int" /> + <argument index="0" name="process_info" type="int" enum="PhysicsServer2D.ProcessInfo" /> <description> Returns information about the current state of the 2D physics engine. See [enum ProcessInfo] for a list of available states. </description> </method> <method name="joint_clear"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> <description> </description> </method> <method name="joint_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="joint_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer2D.JointParam"> - </argument> + <return type="float" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer2D.JointParam" /> <description> Returns the value of a joint parameter. </description> </method> <method name="joint_get_type" qualifiers="const"> - <return type="int" enum="PhysicsServer2D.JointType"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> + <return type="int" enum="PhysicsServer2D.JointType" /> + <argument index="0" name="joint" type="RID" /> <description> Returns a joint's type (see [enum JointType]). </description> </method> <method name="joint_make_damped_spring"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="anchor_a" type="Vector2"> - </argument> - <argument index="2" name="anchor_b" type="Vector2"> - </argument> - <argument index="3" name="body_a" type="RID"> - </argument> - <argument index="4" name="body_b" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="anchor_a" type="Vector2" /> + <argument index="2" name="anchor_b" type="Vector2" /> + <argument index="3" name="body_a" type="RID" /> + <argument index="4" name="body_b" type="RID" /> <description> </description> </method> <method name="joint_make_groove"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="groove1_a" type="Vector2"> - </argument> - <argument index="2" name="groove2_a" type="Vector2"> - </argument> - <argument index="3" name="anchor_b" type="Vector2"> - </argument> - <argument index="4" name="body_a" type="RID"> - </argument> - <argument index="5" name="body_b" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="groove1_a" type="Vector2" /> + <argument index="2" name="groove2_a" type="Vector2" /> + <argument index="3" name="anchor_b" type="Vector2" /> + <argument index="4" name="body_a" type="RID" /> + <argument index="5" name="body_b" type="RID" /> <description> </description> </method> <method name="joint_make_pin"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="anchor" type="Vector2"> - </argument> - <argument index="2" name="body_a" type="RID"> - </argument> - <argument index="3" name="body_b" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="anchor" type="Vector2" /> + <argument index="2" name="body_a" type="RID" /> + <argument index="3" name="body_b" type="RID" /> <description> </description> </method> <method name="joint_set_param"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer2D.JointParam"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer2D.JointParam" /> + <argument index="2" name="value" type="float" /> <description> Sets a joint parameter. See [enum JointParam] for a list of available parameters. </description> </method> <method name="line_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="ray_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="rectangle_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="segment_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="set_active"> - <return type="void"> - </return> - <argument index="0" name="active" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="active" type="bool" /> <description> Activates or deactivates the 2D physics engine. </description> </method> <method name="set_collision_iterations"> - <return type="void"> - </return> - <argument index="0" name="iterations" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="iterations" type="int" /> <description> Sets the amount of iterations for calculating velocities of colliding bodies. The greater the amount of iterations, the more accurate the collisions will be. However, a greater amount of iterations requires more CPU power, which can decrease performance. The default value is [code]8[/code]. </description> </method> <method name="shape_get_data" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="shape" type="RID"> - </argument> + <return type="Variant" /> + <argument index="0" name="shape" type="RID" /> <description> Returns the shape data. </description> </method> <method name="shape_get_type" qualifiers="const"> - <return type="int" enum="PhysicsServer2D.ShapeType"> - </return> - <argument index="0" name="shape" type="RID"> - </argument> + <return type="int" enum="PhysicsServer2D.ShapeType" /> + <argument index="0" name="shape" type="RID" /> <description> Returns a shape's type (see [enum ShapeType]). </description> </method> <method name="shape_set_data"> - <return type="void"> - </return> - <argument index="0" name="shape" type="RID"> - </argument> - <argument index="1" name="data" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="shape" type="RID" /> + <argument index="1" name="data" type="Variant" /> <description> Sets the shape data that defines its shape and size. The data to be passed depends on the kind of shape created [method shape_get_type]. </description> </method> <method name="space_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a space. A space is a collection of parameters for the physics engine that can be assigned to an area or a body. It can be assigned to an area with [method area_set_space], or to a body with [method body_set_space]. </description> </method> <method name="space_get_direct_state"> - <return type="PhysicsDirectSpaceState2D"> - </return> - <argument index="0" name="space" type="RID"> - </argument> + <return type="PhysicsDirectSpaceState2D" /> + <argument index="0" name="space" type="RID" /> <description> Returns the state of a space, a [PhysicsDirectSpaceState2D]. This object can be used to make collision/intersection queries. </description> </method> <method name="space_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="space" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer2D.SpaceParameter"> - </argument> + <return type="float" /> + <argument index="0" name="space" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer2D.SpaceParameter" /> <description> Returns the value of a space parameter. </description> </method> <method name="space_is_active" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="space" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="space" type="RID" /> <description> Returns whether the space is active. </description> </method> <method name="space_set_active"> - <return type="void"> - </return> - <argument index="0" name="space" type="RID"> - </argument> - <argument index="1" name="active" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="space" type="RID" /> + <argument index="1" name="active" type="bool" /> <description> Marks a space as active. It will not have an effect, unless it is assigned to an area or body. </description> </method> <method name="space_set_param"> - <return type="void"> - </return> - <argument index="0" name="space" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer2D.SpaceParameter"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="space" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer2D.SpaceParameter" /> + <argument index="2" name="value" type="float" /> <description> Sets the value for a space parameter. See [enum SpaceParameter] for a list of available parameters. </description> diff --git a/doc/classes/PhysicsServer3D.xml b/doc/classes/PhysicsServer3D.xml index 9db7ff5c12..7bca8afdda 100644 --- a/doc/classes/PhysicsServer3D.xml +++ b/doc/classes/PhysicsServer3D.xml @@ -10,179 +10,132 @@ </tutorials> <methods> <method name="area_add_shape"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <argument index="2" name="transform" type="Transform3D" default="Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)"> - </argument> - <argument index="3" name="disabled" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape" type="RID" /> + <argument index="2" name="transform" type="Transform3D" default="Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)" /> + <argument index="3" name="disabled" type="bool" default="false" /> <description> Adds a shape to the area, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index. </description> </method> <method name="area_attach_object_instance_id"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="id" type="int" /> <description> Assigns the area to a descendant of [Object], so it can exist in the node tree. </description> </method> <method name="area_clear_shapes"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> <description> Removes all shapes from an area. It does not delete the shapes, so they can be reassigned later. </description> </method> <method name="area_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates an [Area3D]. </description> </method> <method name="area_get_object_instance_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="area" type="RID" /> <description> Gets the instance ID of the object the area is assigned to. </description> </method> <method name="area_get_param" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.AreaParameter"> - </argument> + <return type="Variant" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.AreaParameter" /> <description> Returns an area parameter value. A list of available parameters is on the [enum AreaParameter] constants. </description> </method> <method name="area_get_shape" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Returns the [RID] of the nth shape of an area. </description> </method> <method name="area_get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="area" type="RID" /> <description> Returns the number of shapes assigned to an area. </description> </method> <method name="area_get_shape_transform" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Returns the transform matrix of a shape within an area. </description> </method> <method name="area_get_space" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="area" type="RID" /> <description> Returns the space assigned to the area. </description> </method> <method name="area_get_space_override_mode" qualifiers="const"> - <return type="int" enum="PhysicsServer3D.AreaSpaceOverrideMode"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="int" enum="PhysicsServer3D.AreaSpaceOverrideMode" /> + <argument index="0" name="area" type="RID" /> <description> Returns the space override mode for the area. </description> </method> <method name="area_get_transform" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="area" type="RID"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="area" type="RID" /> <description> Returns the transform matrix for an area. </description> </method> <method name="area_remove_shape"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Removes a shape from an area. It does not delete the shape, so it can be reassigned later. </description> </method> <method name="area_set_area_monitor_callback"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="receiver" type="Object"> - </argument> - <argument index="2" name="method" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="receiver" type="Object" /> + <argument index="2" name="method" type="StringName" /> <description> </description> </method> <method name="area_set_collision_layer"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="layer" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="layer" type="int" /> <description> Assigns the area to one or many physics layers. </description> </method> <method name="area_set_collision_mask"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> Sets which physics layers the area will monitor. </description> </method> <method name="area_set_monitor_callback"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="receiver" type="Object"> - </argument> - <argument index="2" name="method" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="receiver" type="Object" /> + <argument index="2" name="method" type="StringName" /> <description> Sets the function to call when any body/area enters or exits the area. This callback will be called for any object interacting with the area, and takes five parameters: 1: [constant AREA_BODY_ADDED] or [constant AREA_BODY_REMOVED], depending on whether the object entered or exited the area. @@ -193,1134 +146,821 @@ </description> </method> <method name="area_set_monitorable"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="monitorable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="monitorable" type="bool" /> <description> </description> </method> <method name="area_set_param"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.AreaParameter"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.AreaParameter" /> + <argument index="2" name="value" type="Variant" /> <description> Sets the value for an area parameter. A list of available parameters is on the [enum AreaParameter] constants. </description> </method> <method name="area_set_ray_pickable"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> Sets object pickable with rays. </description> </method> <method name="area_set_shape"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="shape" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="shape" type="RID" /> <description> Substitutes a given area shape by another. The old shape is selected by its index, the new one by its [RID]. </description> </method> <method name="area_set_shape_disabled"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="disabled" type="bool" /> <description> </description> </method> <method name="area_set_shape_transform"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="transform" type="Transform3D" /> <description> Sets the transform matrix for an area shape. </description> </method> <method name="area_set_space"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="space" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="space" type="RID" /> <description> Assigns a space to the area. </description> </method> <method name="area_set_space_override_mode"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="PhysicsServer3D.AreaSpaceOverrideMode"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="mode" type="int" enum="PhysicsServer3D.AreaSpaceOverrideMode" /> <description> Sets the space override mode for the area. The modes are described in the [enum AreaSpaceOverrideMode] constants. </description> </method> <method name="area_set_transform"> - <return type="void"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="area" type="RID" /> + <argument index="1" name="transform" type="Transform3D" /> <description> Sets the transform matrix for an area. </description> </method> <method name="body_add_central_force"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="force" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="force" type="Vector3" /> <description> </description> </method> <method name="body_add_collision_exception"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="excepted_body" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="excepted_body" type="RID" /> <description> Adds a body to the list of bodies exempt from collisions. </description> </method> <method name="body_add_force"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="force" type="Vector3"> - </argument> - <argument index="2" name="position" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="force" type="Vector3" /> + <argument index="2" name="position" type="Vector3" default="Vector3(0, 0, 0)" /> <description> </description> </method> <method name="body_add_shape"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <argument index="2" name="transform" type="Transform3D" default="Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)"> - </argument> - <argument index="3" name="disabled" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape" type="RID" /> + <argument index="2" name="transform" type="Transform3D" default="Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)" /> + <argument index="3" name="disabled" type="bool" default="false" /> <description> Adds a shape to the body, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index. </description> </method> <method name="body_add_torque"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="torque" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="torque" type="Vector3" /> <description> </description> </method> <method name="body_apply_central_impulse"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="impulse" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="impulse" type="Vector3" /> <description> </description> </method> <method name="body_apply_impulse"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="impulse" type="Vector3"> - </argument> - <argument index="2" name="position" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="impulse" type="Vector3" /> + <argument index="2" name="position" type="Vector3" default="Vector3(0, 0, 0)" /> <description> Gives the body a push at a [code]position[/code] in the direction of the [code]impulse[/code]. </description> </method> <method name="body_apply_torque_impulse"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="impulse" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="impulse" type="Vector3" /> <description> Gives the body a push to rotate it. </description> </method> <method name="body_attach_object_instance_id"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="id" type="int" /> <description> Assigns the area to a descendant of [Object], so it can exist in the node tree. </description> </method> <method name="body_clear_shapes"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> <description> Removes all shapes from a body. </description> </method> <method name="body_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="body_get_collision_layer" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> Returns the physics layer or layers a body belongs to. </description> </method> <method name="body_get_collision_mask" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> Returns the physics layer or layers a body can collide with. - </description> </method> <method name="body_get_direct_state"> - <return type="PhysicsDirectBodyState3D"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="PhysicsDirectBodyState3D" /> + <argument index="0" name="body" type="RID" /> <description> Returns the [PhysicsDirectBodyState3D] of the body. </description> </method> <method name="body_get_max_contacts_reported" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> Returns the maximum contacts that can be reported. See [method body_set_max_contacts_reported]. </description> </method> <method name="body_get_mode" qualifiers="const"> - <return type="int" enum="PhysicsServer3D.BodyMode"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" enum="PhysicsServer3D.BodyMode" /> + <argument index="0" name="body" type="RID" /> <description> Returns the body mode. </description> </method> <method name="body_get_object_instance_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> Gets the instance ID of the object the area is assigned to. </description> </method> <method name="body_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.BodyParameter"> - </argument> + <return type="float" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.BodyParameter" /> <description> Returns the value of a body parameter. A list of available parameters is on the [enum BodyParameter] constants. </description> </method> <method name="body_get_shape" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Returns the [RID] of the nth shape of a body. </description> </method> <method name="body_get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="body" type="RID" /> <description> Returns the number of shapes assigned to a body. </description> </method> <method name="body_get_shape_transform" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Returns the transform matrix of a body shape. </description> </method> <method name="body_get_space" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="body" type="RID" /> <description> Returns the [RID] of the space assigned to a body. </description> </method> <method name="body_get_state" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="state" type="int" enum="PhysicsServer3D.BodyState"> - </argument> + <return type="Variant" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="state" type="int" enum="PhysicsServer3D.BodyState" /> <description> Returns a body state. </description> </method> <method name="body_is_axis_locked" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="axis" type="int" enum="PhysicsServer3D.BodyAxis"> - </argument> + <return type="bool" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="axis" type="int" enum="PhysicsServer3D.BodyAxis" /> <description> </description> </method> <method name="body_is_continuous_collision_detection_enabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="body" type="RID" /> <description> If [code]true[/code], the continuous collision detection mode is enabled. </description> </method> <method name="body_is_omitting_force_integration" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="body" type="RID" /> <description> Returns whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). </description> </method> <method name="body_remove_collision_exception"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="excepted_body" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="excepted_body" type="RID" /> <description> Removes a body from the list of bodies exempt from collisions. Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. </description> </method> <method name="body_remove_shape"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> <description> Removes a shape from a body. The shape is not deleted, so it can be reused afterwards. </description> </method> <method name="body_set_axis_lock"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="axis" type="int" enum="PhysicsServer3D.BodyAxis"> - </argument> - <argument index="2" name="lock" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="axis" type="int" enum="PhysicsServer3D.BodyAxis" /> + <argument index="2" name="lock" type="bool" /> <description> </description> </method> <method name="body_set_axis_velocity"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="axis_velocity" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="axis_velocity" type="Vector3" /> <description> Sets an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior. </description> </method> <method name="body_set_collision_layer"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="layer" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="layer" type="int" /> <description> Sets the physics layer or layers a body belongs to. </description> </method> <method name="body_set_collision_mask"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> Sets the physics layer or layers a body can collide with. </description> </method> <method name="body_set_enable_continuous_collision_detection"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], the continuous collision detection mode is enabled. Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. </description> </method> <method name="body_set_force_integration_callback"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="callable" type="Callable"> - </argument> - <argument index="2" name="userdata" type="Variant" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="callable" type="Callable" /> + <argument index="2" name="userdata" type="Variant" default="null" /> <description> Sets the function used to calculate physics for an object, if that object allows it (see [method body_set_omit_force_integration]). </description> </method> <method name="body_set_max_contacts_reported"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="amount" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="amount" type="int" /> <description> Sets the maximum contacts to report. Bodies can keep a log of the contacts with other bodies, this is enabled by setting the maximum amount of contacts reported to a number greater than 0. </description> </method> <method name="body_set_mode"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="PhysicsServer3D.BodyMode"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="mode" type="int" enum="PhysicsServer3D.BodyMode" /> <description> Sets the body mode, from one of the [enum BodyMode] constants. </description> </method> <method name="body_set_omit_force_integration"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> Sets whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). </description> </method> <method name="body_set_param"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.BodyParameter"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.BodyParameter" /> + <argument index="2" name="value" type="float" /> <description> Sets a body parameter. A list of available parameters is on the [enum BodyParameter] constants. </description> </method> <method name="body_set_ray_pickable"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> Sets the body pickable with rays if [code]enabled[/code] is set. </description> </method> <method name="body_set_shape"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="shape" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="shape" type="RID" /> <description> Substitutes a given body shape by another. The old shape is selected by its index, the new one by its [RID]. </description> </method> <method name="body_set_shape_disabled"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="disabled" type="bool" /> <description> </description> </method> <method name="body_set_shape_transform"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="shape_idx" type="int" /> + <argument index="2" name="transform" type="Transform3D" /> <description> Sets the transform matrix for a body shape. </description> </method> <method name="body_set_space"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="space" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="space" type="RID" /> <description> Assigns a space to the body (see [method space_create]). </description> </method> <method name="body_set_state"> - <return type="void"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="state" type="int" enum="PhysicsServer3D.BodyState"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="state" type="int" enum="PhysicsServer3D.BodyState" /> + <argument index="2" name="value" type="Variant" /> <description> Sets a body state (see [enum BodyState] constants). </description> </method> <method name="body_test_motion"> - <return type="bool"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="from" type="Transform3D"> - </argument> - <argument index="2" name="motion" type="Vector3"> - </argument> - <argument index="3" name="infinite_inertia" type="bool"> - </argument> - <argument index="4" name="margin" type="float" default="0.001"> - </argument> - <argument index="5" name="result" type="PhysicsTestMotionResult3D" default="null"> - </argument> + <return type="bool" /> + <argument index="0" name="body" type="RID" /> + <argument index="1" name="from" type="Transform3D" /> + <argument index="2" name="motion" type="Vector3" /> + <argument index="3" name="infinite_inertia" type="bool" /> + <argument index="4" name="margin" type="float" default="0.001" /> + <argument index="5" name="result" type="PhysicsTestMotionResult3D" default="null" /> <description> Returns [code]true[/code] if a collision would result from moving in the given direction from a given point in space. Margin increases the size of the shapes involved in the collision detection. [PhysicsTestMotionResult3D] can be passed to return additional information in. </description> </method> <method name="box_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="capsule_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="concave_polygon_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="cone_twist_joint_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.ConeTwistJointParam"> - </argument> + <return type="float" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.ConeTwistJointParam" /> <description> Gets a cone_twist_joint parameter (see [enum ConeTwistJointParam] constants). </description> </method> <method name="cone_twist_joint_set_param"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.ConeTwistJointParam"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.ConeTwistJointParam" /> + <argument index="2" name="value" type="float" /> <description> Sets a cone_twist_joint parameter (see [enum ConeTwistJointParam] constants). </description> </method> <method name="convex_polygon_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="custom_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="cylinder_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="free_rid"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Destroys any of the objects created by PhysicsServer3D. If the [RID] passed is not one of the objects that can be created by PhysicsServer3D, an error will be sent to the console. </description> </method> <method name="generic_6dof_joint_get_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="axis" type="int" enum="Vector3.Axis"> - </argument> - <argument index="2" name="flag" type="int" enum="PhysicsServer3D.G6DOFJointAxisFlag"> - </argument> + <return type="bool" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="axis" type="int" enum="Vector3.Axis" /> + <argument index="2" name="flag" type="int" enum="PhysicsServer3D.G6DOFJointAxisFlag" /> <description> Gets a generic_6_DOF_joint flag (see [enum G6DOFJointAxisFlag] constants). </description> </method> <method name="generic_6dof_joint_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="axis" type="int" enum="Vector3.Axis"> - </argument> - <argument index="2" name="param" type="int" enum="PhysicsServer3D.G6DOFJointAxisParam"> - </argument> + <return type="float" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="axis" type="int" enum="Vector3.Axis" /> + <argument index="2" name="param" type="int" enum="PhysicsServer3D.G6DOFJointAxisParam" /> <description> Gets a generic_6_DOF_joint parameter (see [enum G6DOFJointAxisParam] constants). </description> </method> <method name="generic_6dof_joint_set_flag"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="axis" type="int" enum="Vector3.Axis"> - </argument> - <argument index="2" name="flag" type="int" enum="PhysicsServer3D.G6DOFJointAxisFlag"> - </argument> - <argument index="3" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="axis" type="int" enum="Vector3.Axis" /> + <argument index="2" name="flag" type="int" enum="PhysicsServer3D.G6DOFJointAxisFlag" /> + <argument index="3" name="enable" type="bool" /> <description> Sets a generic_6_DOF_joint flag (see [enum G6DOFJointAxisFlag] constants). </description> </method> <method name="generic_6dof_joint_set_param"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="axis" type="int" enum="Vector3.Axis"> - </argument> - <argument index="2" name="param" type="int" enum="PhysicsServer3D.G6DOFJointAxisParam"> - </argument> - <argument index="3" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="axis" type="int" enum="Vector3.Axis" /> + <argument index="2" name="param" type="int" enum="PhysicsServer3D.G6DOFJointAxisParam" /> + <argument index="3" name="value" type="float" /> <description> Sets a generic_6_DOF_joint parameter (see [enum G6DOFJointAxisParam] constants). </description> </method> <method name="get_process_info"> - <return type="int"> - </return> - <argument index="0" name="process_info" type="int" enum="PhysicsServer3D.ProcessInfo"> - </argument> + <return type="int" /> + <argument index="0" name="process_info" type="int" enum="PhysicsServer3D.ProcessInfo" /> <description> Returns an Info defined by the [enum ProcessInfo] input given. </description> </method> <method name="heightmap_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="hinge_joint_get_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="flag" type="int" enum="PhysicsServer3D.HingeJointFlag"> - </argument> + <return type="bool" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="flag" type="int" enum="PhysicsServer3D.HingeJointFlag" /> <description> Gets a hinge_joint flag (see [enum HingeJointFlag] constants). </description> </method> <method name="hinge_joint_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.HingeJointParam"> - </argument> + <return type="float" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.HingeJointParam" /> <description> Gets a hinge_joint parameter (see [enum HingeJointParam]). </description> </method> <method name="hinge_joint_set_flag"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="flag" type="int" enum="PhysicsServer3D.HingeJointFlag"> - </argument> - <argument index="2" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="flag" type="int" enum="PhysicsServer3D.HingeJointFlag" /> + <argument index="2" name="enabled" type="bool" /> <description> Sets a hinge_joint flag (see [enum HingeJointFlag] constants). </description> </method> <method name="hinge_joint_set_param"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.HingeJointParam"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.HingeJointParam" /> + <argument index="2" name="value" type="float" /> <description> Sets a hinge_joint parameter (see [enum HingeJointParam] constants). </description> </method> <method name="joint_clear"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> <description> </description> </method> <method name="joint_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="joint_get_solver_priority" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="joint" type="RID" /> <description> Gets the priority value of the Joint3D. </description> </method> <method name="joint_get_type" qualifiers="const"> - <return type="int" enum="PhysicsServer3D.JointType"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> + <return type="int" enum="PhysicsServer3D.JointType" /> + <argument index="0" name="joint" type="RID" /> <description> Returns the type of the Joint3D. </description> </method> <method name="joint_make_cone_twist"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="body_A" type="RID"> - </argument> - <argument index="2" name="local_ref_A" type="Transform3D"> - </argument> - <argument index="3" name="body_B" type="RID"> - </argument> - <argument index="4" name="local_ref_B" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="body_A" type="RID" /> + <argument index="2" name="local_ref_A" type="Transform3D" /> + <argument index="3" name="body_B" type="RID" /> + <argument index="4" name="local_ref_B" type="Transform3D" /> <description> </description> </method> <method name="joint_make_generic_6dof"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="body_A" type="RID"> - </argument> - <argument index="2" name="local_ref_A" type="Transform3D"> - </argument> - <argument index="3" name="body_B" type="RID"> - </argument> - <argument index="4" name="local_ref_B" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="body_A" type="RID" /> + <argument index="2" name="local_ref_A" type="Transform3D" /> + <argument index="3" name="body_B" type="RID" /> + <argument index="4" name="local_ref_B" type="Transform3D" /> <description> </description> </method> <method name="joint_make_hinge"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="body_A" type="RID"> - </argument> - <argument index="2" name="hinge_A" type="Transform3D"> - </argument> - <argument index="3" name="body_B" type="RID"> - </argument> - <argument index="4" name="hinge_B" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="body_A" type="RID" /> + <argument index="2" name="hinge_A" type="Transform3D" /> + <argument index="3" name="body_B" type="RID" /> + <argument index="4" name="hinge_B" type="Transform3D" /> <description> </description> </method> <method name="joint_make_pin"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="body_A" type="RID"> - </argument> - <argument index="2" name="local_A" type="Vector3"> - </argument> - <argument index="3" name="body_B" type="RID"> - </argument> - <argument index="4" name="local_B" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="body_A" type="RID" /> + <argument index="2" name="local_A" type="Vector3" /> + <argument index="3" name="body_B" type="RID" /> + <argument index="4" name="local_B" type="Vector3" /> <description> </description> </method> <method name="joint_make_slider"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="body_A" type="RID"> - </argument> - <argument index="2" name="local_ref_A" type="Transform3D"> - </argument> - <argument index="3" name="body_B" type="RID"> - </argument> - <argument index="4" name="local_ref_B" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="body_A" type="RID" /> + <argument index="2" name="local_ref_A" type="Transform3D" /> + <argument index="3" name="body_B" type="RID" /> + <argument index="4" name="local_ref_B" type="Transform3D" /> <description> </description> </method> <method name="joint_set_solver_priority"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="priority" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="priority" type="int" /> <description> Sets the priority value of the Joint3D. </description> </method> <method name="pin_joint_get_local_a" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> + <return type="Vector3" /> + <argument index="0" name="joint" type="RID" /> <description> Returns position of the joint in the local space of body a of the joint. </description> </method> <method name="pin_joint_get_local_b" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> + <return type="Vector3" /> + <argument index="0" name="joint" type="RID" /> <description> Returns position of the joint in the local space of body b of the joint. </description> </method> <method name="pin_joint_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.PinJointParam"> - </argument> + <return type="float" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.PinJointParam" /> <description> Gets a pin_joint parameter (see [enum PinJointParam] constants). </description> </method> <method name="pin_joint_set_local_a"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="local_A" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="local_A" type="Vector3" /> <description> Sets position of the joint in the local space of body a of the joint. </description> </method> <method name="pin_joint_set_local_b"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="local_B" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="local_B" type="Vector3" /> <description> Sets position of the joint in the local space of body b of the joint. </description> </method> <method name="pin_joint_set_param"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.PinJointParam"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.PinJointParam" /> + <argument index="2" name="value" type="float" /> <description> Sets a pin_joint parameter (see [enum PinJointParam] constants). </description> </method> <method name="plane_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="ray_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="set_active"> - <return type="void"> - </return> - <argument index="0" name="active" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="active" type="bool" /> <description> Activates or deactivates the 3D physics engine. </description> </method> <method name="set_collision_iterations"> - <return type="void"> - </return> - <argument index="0" name="iterations" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="iterations" type="int" /> <description> Sets the amount of iterations for calculating velocities of colliding bodies. The greater the amount of iterations, the more accurate the collisions will be. However, a greater amount of iterations requires more CPU power, which can decrease performance. The default value is [code]8[/code]. [b]Note:[/b] Only has an effect when using the default GodotPhysics engine, not the Bullet physics engine. </description> </method> <method name="shape_get_data" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="shape" type="RID"> - </argument> + <return type="Variant" /> + <argument index="0" name="shape" type="RID" /> <description> Returns the shape data. </description> </method> <method name="shape_get_type" qualifiers="const"> - <return type="int" enum="PhysicsServer3D.ShapeType"> - </return> - <argument index="0" name="shape" type="RID"> - </argument> + <return type="int" enum="PhysicsServer3D.ShapeType" /> + <argument index="0" name="shape" type="RID" /> <description> Returns the type of shape (see [enum ShapeType] constants). </description> </method> <method name="shape_set_data"> - <return type="void"> - </return> - <argument index="0" name="shape" type="RID"> - </argument> - <argument index="1" name="data" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="shape" type="RID" /> + <argument index="1" name="data" type="Variant" /> <description> Sets the shape data that defines its shape and size. The data to be passed depends on the kind of shape created [method shape_get_type]. </description> </method> <method name="slider_joint_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.SliderJointParam"> - </argument> + <return type="float" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.SliderJointParam" /> <description> Gets a slider_joint parameter (see [enum SliderJointParam] constants). </description> </method> <method name="slider_joint_set_param"> - <return type="void"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.SliderJointParam"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.SliderJointParam" /> + <argument index="2" name="value" type="float" /> <description> Gets a slider_joint parameter (see [enum SliderJointParam] constants). </description> </method> <method name="soft_body_get_bounds" qualifiers="const"> - <return type="AABB"> - </return> - <argument index="0" name="body" type="RID"> - </argument> + <return type="AABB" /> + <argument index="0" name="body" type="RID" /> <description> </description> </method> <method name="space_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a space. A space is a collection of parameters for the physics engine that can be assigned to an area or a body. It can be assigned to an area with [method area_set_space], or to a body with [method body_set_space]. </description> </method> <method name="space_get_direct_state"> - <return type="PhysicsDirectSpaceState3D"> - </return> - <argument index="0" name="space" type="RID"> - </argument> + <return type="PhysicsDirectSpaceState3D" /> + <argument index="0" name="space" type="RID" /> <description> Returns the state of a space, a [PhysicsDirectSpaceState3D]. This object can be used to make collision/intersection queries. </description> </method> <method name="space_get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="space" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.SpaceParameter"> - </argument> + <return type="float" /> + <argument index="0" name="space" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.SpaceParameter" /> <description> Returns the value of a space parameter. </description> </method> <method name="space_is_active" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="space" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="space" type="RID" /> <description> Returns whether the space is active. </description> </method> <method name="space_set_active"> - <return type="void"> - </return> - <argument index="0" name="space" type="RID"> - </argument> - <argument index="1" name="active" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="space" type="RID" /> + <argument index="1" name="active" type="bool" /> <description> Marks a space as active. It will not have an effect, unless it is assigned to an area or body. </description> </method> <method name="space_set_param"> - <return type="void"> - </return> - <argument index="0" name="space" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="PhysicsServer3D.SpaceParameter"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="space" type="RID" /> + <argument index="1" name="param" type="int" enum="PhysicsServer3D.SpaceParameter" /> + <argument index="2" name="value" type="float" /> <description> Sets the value for a space parameter. A list of available parameters is on the [enum SpaceParameter] constants. </description> </method> <method name="sphere_shape_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> diff --git a/doc/classes/PinJoint3D.xml b/doc/classes/PinJoint3D.xml index 37a85e497f..84b60c0d8c 100644 --- a/doc/classes/PinJoint3D.xml +++ b/doc/classes/PinJoint3D.xml @@ -10,21 +10,16 @@ </tutorials> <methods> <method name="get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="PinJoint3D.Param"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="PinJoint3D.Param" /> <description> Returns the value of the specified parameter. </description> </method> <method name="set_param"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="PinJoint3D.Param"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="PinJoint3D.Param" /> + <argument index="1" name="value" type="float" /> <description> Sets the value of the specified parameter. </description> diff --git a/doc/classes/Plane.xml b/doc/classes/Plane.xml index 12869061c4..c243c3ad15 100644 --- a/doc/classes/Plane.xml +++ b/doc/classes/Plane.xml @@ -11,189 +11,143 @@ </tutorials> <methods> <method name="Plane" qualifiers="constructor"> - <return type="Plane"> - </return> + <return type="Plane" /> <description> Constructs a default-initialized [Plane] with all components set to [code]0[/code]. </description> </method> <method name="Plane" qualifiers="constructor"> - <return type="Plane"> - </return> - <argument index="0" name="from" type="Plane"> - </argument> + <return type="Plane" /> + <argument index="0" name="from" type="Plane" /> <description> Constructs a [Plane] as a copy of the given [Plane]. </description> </method> <method name="Plane" qualifiers="constructor"> - <return type="Plane"> - </return> - <argument index="0" name="a" type="float"> - </argument> - <argument index="1" name="b" type="float"> - </argument> - <argument index="2" name="c" type="float"> - </argument> - <argument index="3" name="d" type="float"> - </argument> + <return type="Plane" /> + <argument index="0" name="a" type="float" /> + <argument index="1" name="b" type="float" /> + <argument index="2" name="c" type="float" /> + <argument index="3" name="d" type="float" /> <description> Creates a plane from the four parameters. The three components of the resulting plane's [member normal] are [code]a[/code], [code]b[/code] and [code]c[/code], and the plane has a distance of [code]d[/code] from the origin. </description> </method> <method name="Plane" qualifiers="constructor"> - <return type="Plane"> - </return> - <argument index="0" name="normal" type="Vector3"> - </argument> - <argument index="1" name="d" type="float"> - </argument> + <return type="Plane" /> + <argument index="0" name="normal" type="Vector3" /> + <argument index="1" name="d" type="float" /> <description> Creates a plane from the normal and the plane's distance to the origin. </description> </method> <method name="Plane" qualifiers="constructor"> - <return type="Plane"> - </return> - <argument index="0" name="point" type="Vector3"> - </argument> - <argument index="1" name="normal" type="Vector3"> - </argument> + <return type="Plane" /> + <argument index="0" name="point" type="Vector3" /> + <argument index="1" name="normal" type="Vector3" /> <description> Creates a plane from the given position and a plane normal. </description> </method> <method name="Plane" qualifiers="constructor"> - <return type="Plane"> - </return> - <argument index="0" name="point1" type="Vector3"> - </argument> - <argument index="1" name="point2" type="Vector3"> - </argument> - <argument index="2" name="point3" type="Vector3"> - </argument> + <return type="Plane" /> + <argument index="0" name="point1" type="Vector3" /> + <argument index="1" name="point2" type="Vector3" /> + <argument index="2" name="point3" type="Vector3" /> <description> Creates a plane from the three points, given in clockwise order. </description> </method> <method name="center" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the center of the plane. </description> </method> <method name="distance_to" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="point" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="point" type="Vector3" /> <description> Returns the shortest distance from the plane to the position [code]point[/code]. </description> </method> <method name="has_point" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector3"> - </argument> - <argument index="1" name="epsilon" type="float" default="1e-05"> - </argument> + <return type="bool" /> + <argument index="0" name="point" type="Vector3" /> + <argument index="1" name="epsilon" type="float" default="1e-05" /> <description> Returns [code]true[/code] if [code]point[/code] is inside the plane. Comparison uses a custom minimum [code]epsilon[/code] threshold. </description> </method> <method name="intersect_3" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="b" type="Plane"> - </argument> - <argument index="1" name="c" type="Plane"> - </argument> + <return type="Variant" /> + <argument index="0" name="b" type="Plane" /> + <argument index="1" name="c" type="Plane" /> <description> Returns the intersection point of the three planes [code]b[/code], [code]c[/code] and this plane. If no intersection is found, [code]null[/code] is returned. </description> </method> <method name="intersects_ray" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="dir" type="Vector3"> - </argument> + <return type="Variant" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="dir" type="Vector3" /> <description> Returns the intersection point of a ray consisting of the position [code]from[/code] and the direction normal [code]dir[/code] with this plane. If no intersection is found, [code]null[/code] is returned. </description> </method> <method name="intersects_segment" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="to" type="Vector3"> - </argument> + <return type="Variant" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="to" type="Vector3" /> <description> Returns the intersection point of a segment from position [code]begin[/code] to position [code]end[/code] with this plane. If no intersection is found, [code]null[/code] is returned. </description> </method> <method name="is_equal_approx" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="to_plane" type="Plane"> - </argument> + <return type="bool" /> + <argument index="0" name="to_plane" type="Plane" /> <description> Returns [code]true[/code] if this plane and [code]plane[/code] are approximately equal, by running [method @GlobalScope.is_equal_approx] on each component. </description> </method> <method name="is_point_over" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="plane" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="plane" type="Vector3" /> <description> Returns [code]true[/code] if [code]point[/code] is located above the plane. </description> </method> <method name="normalized" qualifiers="const"> - <return type="Plane"> - </return> + <return type="Plane" /> <description> Returns a copy of the plane, normalized. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Plane"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Plane" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Plane"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Plane" /> <description> </description> </method> <method name="operator unary+" qualifiers="operator"> - <return type="Plane"> - </return> + <return type="Plane" /> <description> </description> </method> <method name="operator unary-" qualifiers="operator"> - <return type="Plane"> - </return> + <return type="Plane" /> <description> </description> </method> <method name="project" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="point" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="point" type="Vector3" /> <description> Returns the orthogonal projection of [code]point[/code] into a point in the plane. </description> diff --git a/doc/classes/Polygon2D.xml b/doc/classes/Polygon2D.xml index 5a53063148..23106cddf7 100644 --- a/doc/classes/Polygon2D.xml +++ b/doc/classes/Polygon2D.xml @@ -10,75 +10,58 @@ </tutorials> <methods> <method name="add_bone"> - <return type="void"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> - <argument index="1" name="weights" type="PackedFloat32Array"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="NodePath" /> + <argument index="1" name="weights" type="PackedFloat32Array" /> <description> Adds a bone with the specified [code]path[/code] and [code]weights[/code]. </description> </method> <method name="clear_bones"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all bones from this [Polygon2D]. </description> </method> <method name="erase_bone"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes the specified bone from this [Polygon2D]. </description> </method> <method name="get_bone_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of bones in this [Polygon2D]. </description> </method> <method name="get_bone_path" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="NodePath" /> + <argument index="0" name="index" type="int" /> <description> Returns the path to the node associated with the specified bone. </description> </method> <method name="get_bone_weights" qualifiers="const"> - <return type="PackedFloat32Array"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="PackedFloat32Array" /> + <argument index="0" name="index" type="int" /> <description> Returns the height values of the specified bone. </description> </method> <method name="set_bone_path"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="path" type="NodePath"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="path" type="NodePath" /> <description> Sets the path to the node associated with the specified bone. </description> </method> <method name="set_bone_weights"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="weights" type="PackedFloat32Array"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="weights" type="PackedFloat32Array" /> <description> Sets the weight values for the specified bone. </description> diff --git a/doc/classes/PolygonPathFinder.xml b/doc/classes/PolygonPathFinder.xml index 49453d32ac..f77912bafe 100644 --- a/doc/classes/PolygonPathFinder.xml +++ b/doc/classes/PolygonPathFinder.xml @@ -8,72 +8,53 @@ </tutorials> <methods> <method name="find_path"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="from" type="Vector2"> - </argument> - <argument index="1" name="to" type="Vector2"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="from" type="Vector2" /> + <argument index="1" name="to" type="Vector2" /> <description> </description> </method> <method name="get_bounds" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> </description> </method> <method name="get_closest_point" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="point" type="Vector2" /> <description> </description> </method> <method name="get_intersections" qualifiers="const"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="from" type="Vector2"> - </argument> - <argument index="1" name="to" type="Vector2"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="from" type="Vector2" /> + <argument index="1" name="to" type="Vector2" /> <description> </description> </method> <method name="get_point_penalty" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="idx" type="int" /> <description> </description> </method> <method name="is_point_inside" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="point" type="Vector2" /> <description> </description> </method> <method name="set_point_penalty"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="penalty" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="penalty" type="float" /> <description> </description> </method> <method name="setup"> - <return type="void"> - </return> - <argument index="0" name="points" type="PackedVector2Array"> - </argument> - <argument index="1" name="connections" type="PackedInt32Array"> - </argument> + <return type="void" /> + <argument index="0" name="points" type="PackedVector2Array" /> + <argument index="1" name="connections" type="PackedInt32Array" /> <description> </description> </method> diff --git a/doc/classes/PopupMenu.xml b/doc/classes/PopupMenu.xml index 3489c5435a..a2c8a581cf 100644 --- a/doc/classes/PopupMenu.xml +++ b/doc/classes/PopupMenu.xml @@ -12,14 +12,10 @@ </tutorials> <methods> <method name="add_check_item"> - <return type="void"> - </return> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <argument index="2" name="accel" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="label" type="String" /> + <argument index="1" name="id" type="int" default="-1" /> + <argument index="2" name="accel" type="int" default="0" /> <description> Adds a new checkable item with text [code]label[/code]. An [code]id[/code] can optionally be provided, as well as an accelerator ([code]accel[/code]). If no [code]id[/code] is provided, one will be created from the index. If no [code]accel[/code] is provided then the default [code]0[/code] will be assigned to it. See [method get_item_accelerator] for more info on accelerators. @@ -27,14 +23,10 @@ </description> </method> <method name="add_check_shortcut"> - <return type="void"> - </return> - <argument index="0" name="shortcut" type="Shortcut"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <argument index="2" name="global" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="shortcut" type="Shortcut" /> + <argument index="1" name="id" type="int" default="-1" /> + <argument index="2" name="global" type="bool" default="false" /> <description> Adds a new checkable item and assigns the specified [Shortcut] to it. Sets the label of the checkbox to the [Shortcut]'s name. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index. @@ -42,16 +34,11 @@ </description> </method> <method name="add_icon_check_item"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture2D"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <argument index="3" name="accel" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture2D" /> + <argument index="1" name="label" type="String" /> + <argument index="2" name="id" type="int" default="-1" /> + <argument index="3" name="accel" type="int" default="0" /> <description> Adds a new checkable item with text [code]label[/code] and icon [code]texture[/code]. An [code]id[/code] can optionally be provided, as well as an accelerator ([code]accel[/code]). If no [code]id[/code] is provided, one will be created from the index. If no [code]accel[/code] is provided then the default [code]0[/code] will be assigned to it. See [method get_item_accelerator] for more info on accelerators. @@ -59,16 +46,11 @@ </description> </method> <method name="add_icon_check_shortcut"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture2D"> - </argument> - <argument index="1" name="shortcut" type="Shortcut"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <argument index="3" name="global" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture2D" /> + <argument index="1" name="shortcut" type="Shortcut" /> + <argument index="2" name="id" type="int" default="-1" /> + <argument index="3" name="global" type="bool" default="false" /> <description> Adds a new checkable item and assigns the specified [Shortcut] and icon [code]texture[/code] to it. Sets the label of the checkbox to the [Shortcut]'s name. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index. @@ -76,94 +58,64 @@ </description> </method> <method name="add_icon_item"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture2D"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <argument index="3" name="accel" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture2D" /> + <argument index="1" name="label" type="String" /> + <argument index="2" name="id" type="int" default="-1" /> + <argument index="3" name="accel" type="int" default="0" /> <description> Adds a new item with text [code]label[/code] and icon [code]texture[/code]. An [code]id[/code] can optionally be provided, as well as an accelerator ([code]accel[/code]). If no [code]id[/code] is provided, one will be created from the index. If no [code]accel[/code] is provided then the default [code]0[/code] will be assigned to it. See [method get_item_accelerator] for more info on accelerators. </description> </method> <method name="add_icon_radio_check_item"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture2D"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <argument index="3" name="accel" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture2D" /> + <argument index="1" name="label" type="String" /> + <argument index="2" name="id" type="int" default="-1" /> + <argument index="3" name="accel" type="int" default="0" /> <description> Same as [method add_icon_check_item], but uses a radio check button. </description> </method> <method name="add_icon_radio_check_shortcut"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture2D"> - </argument> - <argument index="1" name="shortcut" type="Shortcut"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <argument index="3" name="global" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture2D" /> + <argument index="1" name="shortcut" type="Shortcut" /> + <argument index="2" name="id" type="int" default="-1" /> + <argument index="3" name="global" type="bool" default="false" /> <description> Same as [method add_icon_check_shortcut], but uses a radio check button. </description> </method> <method name="add_icon_shortcut"> - <return type="void"> - </return> - <argument index="0" name="texture" type="Texture2D"> - </argument> - <argument index="1" name="shortcut" type="Shortcut"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <argument index="3" name="global" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="Texture2D" /> + <argument index="1" name="shortcut" type="Shortcut" /> + <argument index="2" name="id" type="int" default="-1" /> + <argument index="3" name="global" type="bool" default="false" /> <description> Adds a new item and assigns the specified [Shortcut] and icon [code]texture[/code] to it. Sets the label of the checkbox to the [Shortcut]'s name. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index. </description> </method> <method name="add_item"> - <return type="void"> - </return> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <argument index="2" name="accel" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="label" type="String" /> + <argument index="1" name="id" type="int" default="-1" /> + <argument index="2" name="accel" type="int" default="0" /> <description> Adds a new item with text [code]label[/code]. An [code]id[/code] can optionally be provided, as well as an accelerator ([code]accel[/code]). If no [code]id[/code] is provided, one will be created from the index. If no [code]accel[/code] is provided then the default [code]0[/code] will be assigned to it. See [method get_item_accelerator] for more info on accelerators. </description> </method> <method name="add_multistate_item"> - <return type="void"> - </return> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="max_states" type="int"> - </argument> - <argument index="2" name="default_state" type="int" default="0"> - </argument> - <argument index="3" name="id" type="int" default="-1"> - </argument> - <argument index="4" name="accel" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="label" type="String" /> + <argument index="1" name="max_states" type="int" /> + <argument index="2" name="default_state" type="int" default="0" /> + <argument index="3" name="id" type="int" default="-1" /> + <argument index="4" name="accel" type="int" default="0" /> <description> Adds a new multistate item with text [code]label[/code]. Contrarily to normal binary items, multistate items can have more than two states, as defined by [code]max_states[/code]. Each press or activate of the item will increase the state by one. The default value is defined by [code]default_state[/code]. @@ -171,14 +123,10 @@ </description> </method> <method name="add_radio_check_item"> - <return type="void"> - </return> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <argument index="2" name="accel" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="label" type="String" /> + <argument index="1" name="id" type="int" default="-1" /> + <argument index="2" name="accel" type="int" default="0" /> <description> Adds a new radio check button with text [code]label[/code]. An [code]id[/code] can optionally be provided, as well as an accelerator ([code]accel[/code]). If no [code]id[/code] is provided, one will be created from the index. If no [code]accel[/code] is provided then the default [code]0[/code] will be assigned to it. See [method get_item_accelerator] for more info on accelerators. @@ -186,14 +134,10 @@ </description> </method> <method name="add_radio_check_shortcut"> - <return type="void"> - </return> - <argument index="0" name="shortcut" type="Shortcut"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <argument index="2" name="global" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="shortcut" type="Shortcut" /> + <argument index="1" name="id" type="int" default="-1" /> + <argument index="2" name="global" type="bool" default="false" /> <description> Adds a new radio check button and assigns a [Shortcut] to it. Sets the label of the checkbox to the [Shortcut]'s name. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index. @@ -201,469 +145,354 @@ </description> </method> <method name="add_separator"> - <return type="void"> - </return> - <argument index="0" name="label" type="String" default=""""> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="label" type="String" default="""" /> + <argument index="1" name="id" type="int" default="-1" /> <description> Adds a separator between items. Separators also occupy an index, which you can set by using the [code]id[/code] parameter. A [code]label[/code] can optionally be provided, which will appear at the center of the separator. </description> </method> <method name="add_shortcut"> - <return type="void"> - </return> - <argument index="0" name="shortcut" type="Shortcut"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <argument index="2" name="global" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="shortcut" type="Shortcut" /> + <argument index="1" name="id" type="int" default="-1" /> + <argument index="2" name="global" type="bool" default="false" /> <description> Adds a [Shortcut]. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index. </description> </method> <method name="add_submenu_item"> - <return type="void"> - </return> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="submenu" type="String"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="label" type="String" /> + <argument index="1" name="submenu" type="String" /> + <argument index="2" name="id" type="int" default="-1" /> <description> Adds an item that will act as a submenu of the parent [PopupMenu] node when clicked. The [code]submenu[/code] argument is the name of the child [PopupMenu] node that will be shown when the item is clicked. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all items from the [PopupMenu]. </description> </method> <method name="clear_item_opentype_features"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Removes all OpenType features form the item's text. </description> </method> <method name="get_current_index" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the index of the currently focused item. Returns [code]-1[/code] if no item is focused. </description> </method> <method name="get_item_accelerator" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Returns the accelerator of the item at index [code]idx[/code]. Accelerators are special combinations of keys that activate the item, no matter which control is focused. </description> </method> <method name="get_item_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of items in the [PopupMenu]. </description> </method> <method name="get_item_icon" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="idx" type="int" /> <description> Returns the icon of the item at index [code]idx[/code]. </description> </method> <method name="get_item_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Returns the id of the item at index [code]idx[/code]. [code]id[/code] can be manually assigned, while index can not. </description> </method> <method name="get_item_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="id" type="int" /> <description> Returns the index of the item containing the specified [code]id[/code]. Index is automatically assigned to each item by the engine. Index can not be set manually. </description> </method> <method name="get_item_language" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns item's text language code. </description> </method> <method name="get_item_metadata" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="idx" type="int" /> <description> Returns the metadata of the specified item, which might be of any type. You can set it with [method set_item_metadata], which provides a simple way of assigning context data to items. </description> </method> <method name="get_item_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code] of the item's text. </description> </method> <method name="get_item_shortcut" qualifiers="const"> - <return type="Shortcut"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Shortcut" /> + <argument index="0" name="idx" type="int" /> <description> Returns the [Shortcut] associated with the specified [code]idx[/code] item. </description> </method> <method name="get_item_submenu" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the submenu name of the item at index [code]idx[/code]. See [method add_submenu_item] for more info on how to add a submenu. </description> </method> <method name="get_item_text" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the text of the item at index [code]idx[/code]. </description> </method> <method name="get_item_text_direction" qualifiers="const"> - <return type="int" enum="Control.TextDirection"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" enum="Control.TextDirection" /> + <argument index="0" name="idx" type="int" /> <description> Returns item's text base writing direction. </description> </method> <method name="get_item_tooltip" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the tooltip associated with the specified index index [code]idx[/code]. </description> </method> <method name="is_item_checkable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the item at index [code]idx[/code] is checkable in some way, i.e. if it has a checkbox or radio button. [b]Note:[/b] Checkable items just display a checkmark or radio button, but don't have any built-in checking behavior and must be checked/unchecked manually. </description> </method> <method name="is_item_checked" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the item at index [code]idx[/code] is checked. </description> </method> <method name="is_item_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the item at index [code]idx[/code] is disabled. When it is disabled it can't be selected, or its action invoked. See [method set_item_disabled] for more info on how to disable an item. </description> </method> <method name="is_item_radio_checkable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the item at index [code]idx[/code] has radio button-style checkability. [b]Note:[/b] This is purely cosmetic; you must add the logic for checking/unchecking items in radio groups. </description> </method> <method name="is_item_separator" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the item is a separator. If it is, it will be displayed as a line. See [method add_separator] for more info on how to add a separator. </description> </method> <method name="is_item_shortcut_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the specified item's shortcut is disabled. </description> </method> <method name="remove_item"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Removes the item at index [code]idx[/code] from the menu. [b]Note:[/b] The indices of items after the removed item will be shifted by one. </description> </method> <method name="set_item_accelerator"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="accel" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="accel" type="int" /> <description> Sets the accelerator of the item at index [code]idx[/code]. Accelerators are special combinations of keys that activate the item, no matter which control is focused. </description> </method> <method name="set_item_as_checkable"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> Sets whether the item at index [code]idx[/code] has a checkbox. If [code]false[/code], sets the type of the item to plain text. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. </description> </method> <method name="set_item_as_radio_checkable"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> Sets the type of the item at the specified index [code]idx[/code] to radio button. If [code]false[/code], sets the type of the item to plain text. </description> </method> <method name="set_item_as_separator"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> Mark the item at index [code]idx[/code] as a separator, which means that it would be displayed as a line. If [code]false[/code], sets the type of the item to plain text. </description> </method> <method name="set_item_checked"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="checked" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="checked" type="bool" /> <description> Sets the checkstate status of the item at index [code]idx[/code]. </description> </method> <method name="set_item_disabled"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="disabled" type="bool" /> <description> Enables/disables the item at index [code]idx[/code]. When it is disabled, it can't be selected and its action can't be invoked. </description> </method> <method name="set_item_icon"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="icon" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="icon" type="Texture2D" /> <description> Replaces the [Texture2D] icon of the specified [code]idx[/code]. </description> </method> <method name="set_item_id"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="id" type="int" /> <description> Sets the [code]id[/code] of the item at index [code]idx[/code]. </description> </method> <method name="set_item_language"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="language" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="language" type="String" /> <description> Sets language code of item's text used for line-breaking and text shaping algorithms, if left empty current locale is used instead. </description> </method> <method name="set_item_metadata"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="metadata" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="metadata" type="Variant" /> <description> Sets the metadata of an item, which may be of any type. You can later get it with [method get_item_metadata], which provides a simple way of assigning context data to items. </description> </method> <method name="set_item_multistate"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="state" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="state" type="int" /> <description> Sets the state of a multistate item. See [method add_multistate_item] for details. </description> </method> <method name="set_item_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> - <argument index="2" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="tag" type="String" /> + <argument index="2" name="value" type="int" /> <description> Sets OpenType feature [code]tag[/code] for the item's text. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url]. </description> </method> <method name="set_item_shortcut"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="shortcut" type="Shortcut"> - </argument> - <argument index="2" name="global" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="shortcut" type="Shortcut" /> + <argument index="2" name="global" type="bool" default="false" /> <description> Sets a [Shortcut] for the specified item [code]idx[/code]. </description> </method> <method name="set_item_shortcut_disabled"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="disabled" type="bool" /> <description> Disables the [Shortcut] of the specified index [code]idx[/code]. </description> </method> <method name="set_item_submenu"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="submenu" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="submenu" type="String" /> <description> Sets the submenu of the item at index [code]idx[/code]. The submenu is the name of a child [PopupMenu] node that would be shown when the item is clicked. </description> </method> <method name="set_item_text"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="text" type="String" /> <description> Sets the text of the item at index [code]idx[/code]. </description> </method> <method name="set_item_text_direction"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="direction" type="int" enum="Control.TextDirection"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="direction" type="int" enum="Control.TextDirection" /> <description> Sets item's text base writing direction. </description> </method> <method name="set_item_tooltip"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="tooltip" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="tooltip" type="String" /> <description> Sets the [String] tooltip of the item at the specified index [code]idx[/code]. </description> </method> <method name="toggle_item_checked"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Toggles the check state of the item of the specified index [code]idx[/code]. </description> </method> <method name="toggle_item_multistate"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Cycle to the next state of a multistate item. See [method add_multistate_item] for details. </description> @@ -688,22 +517,19 @@ </members> <signals> <signal name="id_focused"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted when user navigated to an item of some [code]id[/code] using [code]ui_up[/code] or [code]ui_down[/code] action. </description> </signal> <signal name="id_pressed"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted when an item of some [code]id[/code] is pressed or its accelerator is activated. </description> </signal> <signal name="index_pressed"> - <argument index="0" name="index" type="int"> - </argument> + <argument index="0" name="index" type="int" /> <description> Emitted when an item of some [code]index[/code] is pressed or its accelerator is activated. </description> diff --git a/doc/classes/PrimitiveMesh.xml b/doc/classes/PrimitiveMesh.xml index ca41c367c8..36bec3ff61 100644 --- a/doc/classes/PrimitiveMesh.xml +++ b/doc/classes/PrimitiveMesh.xml @@ -10,8 +10,7 @@ </tutorials> <methods> <method name="get_mesh_arrays" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns mesh arrays used to constitute surface of [Mesh]. The result can be passed to [method ArrayMesh.add_surface_from_arrays] to create a new surface. For example: [codeblocks] diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index c3ef9f2425..a1a320446b 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -16,10 +16,8 @@ </tutorials> <methods> <method name="add_property_info"> - <return type="void"> - </return> - <argument index="0" name="hint" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="hint" type="Dictionary" /> <description> Adds a custom property info to a property. The dictionary must contain: - [code]name[/code]: [String] (the property's name) @@ -56,28 +54,22 @@ </description> </method> <method name="clear"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> <description> Clears the whole configuration (not recommended, may break things). </description> </method> <method name="get_order" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="String" /> <description> Returns the order of a configuration value (influences when saved to the config file). </description> </method> <method name="get_setting" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="Variant" /> + <argument index="0" name="name" type="String" /> <description> Returns the value of a setting. [b]Example:[/b] @@ -92,10 +84,8 @@ </description> </method> <method name="globalize_path" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="path" type="String" /> <description> Returns the absolute, native OS path corresponding to the localized [code]path[/code] (starting with [code]res://[/code] or [code]user://[/code]). The returned path will vary depending on the operating system and user preferences. See [url=https://docs.godotengine.org/en/latest/tutorials/io/data_paths.html]File paths in Godot projects[/url] to see what those paths convert to. See also [method localize_path]. [b]Note:[/b] [method globalize_path] with [code]res://[/code] will not work in an exported project. Instead, prepend the executable's base directory to the path when running from an exported project: @@ -115,23 +105,17 @@ </description> </method> <method name="has_setting" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="String" /> <description> Returns [code]true[/code] if a configuration value is present. </description> </method> <method name="load_resource_pack"> - <return type="bool"> - </return> - <argument index="0" name="pack" type="String"> - </argument> - <argument index="1" name="replace_files" type="bool" default="true"> - </argument> - <argument index="2" name="offset" type="int" default="0"> - </argument> + <return type="bool" /> + <argument index="0" name="pack" type="String" /> + <argument index="1" name="replace_files" type="bool" default="true" /> + <argument index="2" name="offset" type="int" default="0" /> <description> Loads the contents of the .pck or .zip file specified by [code]pack[/code] into the resource filesystem ([code]res://[/code]). Returns [code]true[/code] on success. [b]Note:[/b] If a file from [code]pack[/code] shares the same path as a file already in the resource filesystem, any attempts to load that file will use the file from [code]pack[/code] unless [code]replace_files[/code] is set to [code]false[/code]. @@ -139,78 +123,60 @@ </description> </method> <method name="localize_path" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="path" type="String" /> <description> Returns the localized path (starting with [code]res://[/code]) corresponding to the absolute, native OS [code]path[/code]. See also [method globalize_path]. </description> </method> <method name="property_can_revert"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="String" /> <description> Returns [code]true[/code] if the specified property exists and its initial value differs from the current value. </description> </method> <method name="property_get_revert"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="Variant" /> + <argument index="0" name="name" type="String" /> <description> Returns the specified property's initial value. Returns [code]null[/code] if the property does not exist. </description> </method> <method name="save"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Saves the configuration to the [code]project.godot[/code] file. [b]Note:[/b] This method is intended to be used by editor plugins, as modified [ProjectSettings] can't be loaded back in the running app. If you want to change project settings in exported projects, use [method save_custom] to save [code]override.cfg[/code] file. </description> </method> <method name="save_custom"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="file" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="file" type="String" /> <description> Saves the configuration to a custom file. The file extension must be [code].godot[/code] (to save in text-based [ConfigFile] format) or [code].binary[/code] (to save in binary format). You can also save [code]override.cfg[/code] file, which is also text, but can be used in exported projects unlike other formats. </description> </method> <method name="set_initial_value"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="value" type="Variant" /> <description> Sets the specified property's initial value. This is the value the property reverts to. </description> </method> <method name="set_order"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="position" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="position" type="int" /> <description> Sets the order of a configuration value (influences when saved to the config file). </description> </method> <method name="set_setting"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="value" type="Variant" /> <description> Sets the value of a setting. [b]Example:[/b] diff --git a/doc/classes/PropertyTweener.xml b/doc/classes/PropertyTweener.xml index 1e77bb33c6..7914b26676 100644 --- a/doc/classes/PropertyTweener.xml +++ b/doc/classes/PropertyTweener.xml @@ -11,8 +11,7 @@ </tutorials> <methods> <method name="as_relative"> - <return type="PropertyTweener"> - </return> + <return type="PropertyTweener" /> <description> When called, the final value will be used as a relative value instead. Example: [codeblock] @@ -22,10 +21,8 @@ </description> </method> <method name="from"> - <return type="PropertyTweener"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> + <return type="PropertyTweener" /> + <argument index="0" name="value" type="Variant" /> <description> Sets a custom initial value to the [PropertyTweener]. Example: [codeblock] @@ -35,8 +32,7 @@ </description> </method> <method name="from_current"> - <return type="PropertyTweener"> - </return> + <return type="PropertyTweener" /> <description> Makes the [PropertyTweener] use the current property value (i.e. at the time of creating this [PropertyTweener]) as a starting point. This is equivalent of using [method from] with the current value. These two calls will do the same: [codeblock] @@ -46,28 +42,22 @@ </description> </method> <method name="set_delay"> - <return type="PropertyTweener"> - </return> - <argument index="0" name="delay" type="float"> - </argument> + <return type="PropertyTweener" /> + <argument index="0" name="delay" type="float" /> <description> Sets the time in seconds after which the [PropertyTweener] will start interpolating. By default there's no delay. </description> </method> <method name="set_ease"> - <return type="PropertyTweener"> - </return> - <argument index="0" name="ease" type="int" enum="Tween.EaseType"> - </argument> + <return type="PropertyTweener" /> + <argument index="0" name="ease" type="int" enum="Tween.EaseType" /> <description> Sets the type of used easing from [enum Tween.EaseType]. If not set, the default easing is used from the [Tween] that contains this Tweener. </description> </method> <method name="set_trans"> - <return type="PropertyTweener"> - </return> - <argument index="0" name="trans" type="int" enum="Tween.TransitionType"> - </argument> + <return type="PropertyTweener" /> + <argument index="0" name="trans" type="int" enum="Tween.TransitionType" /> <description> Sets the type of used transition from [enum Tween.TransitionType]. If not set, the default transition is used from the [Tween] that contains this Tweener. </description> diff --git a/doc/classes/ProximityGroup3D.xml b/doc/classes/ProximityGroup3D.xml index 22e397b832..15735bd6f6 100644 --- a/doc/classes/ProximityGroup3D.xml +++ b/doc/classes/ProximityGroup3D.xml @@ -10,12 +10,9 @@ </tutorials> <methods> <method name="broadcast"> - <return type="void"> - </return> - <argument index="0" name="method" type="String"> - </argument> - <argument index="1" name="parameters" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="method" type="String" /> + <argument index="1" name="parameters" type="Variant" /> <description> </description> </method> @@ -30,10 +27,8 @@ </members> <signals> <signal name="broadcast"> - <argument index="0" name="method" type="String"> - </argument> - <argument index="1" name="parameters" type="Array"> - </argument> + <argument index="0" name="method" type="String" /> + <argument index="1" name="parameters" type="Array" /> <description> </description> </signal> diff --git a/doc/classes/Quaternion.xml b/doc/classes/Quaternion.xml index 06434ab268..720188f67e 100644 --- a/doc/classes/Quaternion.xml +++ b/doc/classes/Quaternion.xml @@ -14,279 +14,214 @@ </tutorials> <methods> <method name="Quaternion" qualifiers="constructor"> - <return type="Quaternion"> - </return> + <return type="Quaternion" /> <description> Constructs a default-initialized quaternion with all components set to [code]0[/code]. </description> </method> <method name="Quaternion" qualifiers="constructor"> - <return type="Quaternion"> - </return> - <argument index="0" name="from" type="Quaternion"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="from" type="Quaternion" /> <description> Constructs a [Quaternion] as a copy of the given [Quaternion]. </description> </method> <method name="Quaternion" qualifiers="constructor"> - <return type="Quaternion"> - </return> - <argument index="0" name="arc_from" type="Vector3"> - </argument> - <argument index="1" name="arc_to" type="Vector3"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="arc_from" type="Vector3" /> + <argument index="1" name="arc_to" type="Vector3" /> <description> </description> </method> <method name="Quaternion" qualifiers="constructor"> - <return type="Quaternion"> - </return> - <argument index="0" name="axis" type="Vector3"> - </argument> - <argument index="1" name="angle" type="float"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="axis" type="Vector3" /> + <argument index="1" name="angle" type="float" /> <description> Constructs a quaternion that will rotate around the given axis by the specified angle. The axis must be a normalized vector. </description> </method> <method name="Quaternion" qualifiers="constructor"> - <return type="Quaternion"> - </return> - <argument index="0" name="euler" type="Vector3"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="euler" type="Vector3" /> <description> Constructs a quaternion that will perform a rotation specified by Euler angles (in the YXZ convention: when decomposing, first Z, then X, and Y last), given in the vector format as (X angle, Y angle, Z angle). </description> </method> <method name="Quaternion" qualifiers="constructor"> - <return type="Quaternion"> - </return> - <argument index="0" name="from" type="Basis"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="from" type="Basis" /> <description> Constructs a quaternion from the given [Basis]. </description> </method> <method name="Quaternion" qualifiers="constructor"> - <return type="Quaternion"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="y" type="float"> - </argument> - <argument index="2" name="z" type="float"> - </argument> - <argument index="3" name="w" type="float"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="y" type="float" /> + <argument index="2" name="z" type="float" /> + <argument index="3" name="w" type="float" /> <description> Constructs a quaternion defined by the given values. </description> </method> <method name="angle_to" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="to" type="Quaternion"> - </argument> + <return type="float" /> + <argument index="0" name="to" type="Quaternion" /> <description> Returns the angle between this quaternion and [code]to[/code]. This is the magnitude of the angle you would need to rotate by to get from one to the other. [b]Note:[/b] This method has an abnormally high amount of floating-point error, so methods such as [code]is_zero_approx[/code] will not work reliably. </description> </method> <method name="cubic_slerp" qualifiers="const"> - <return type="Quaternion"> - </return> - <argument index="0" name="b" type="Quaternion"> - </argument> - <argument index="1" name="pre_a" type="Quaternion"> - </argument> - <argument index="2" name="post_b" type="Quaternion"> - </argument> - <argument index="3" name="weight" type="float"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="b" type="Quaternion" /> + <argument index="1" name="pre_a" type="Quaternion" /> + <argument index="2" name="post_b" type="Quaternion" /> + <argument index="3" name="weight" type="float" /> <description> Performs a cubic spherical interpolation between quaternions [code]pre_a[/code], this vector, [code]b[/code], and [code]post_b[/code], by the given amount [code]weight[/code]. </description> </method> <method name="dot" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="with" type="Quaternion"> - </argument> + <return type="float" /> + <argument index="0" name="with" type="Quaternion" /> <description> Returns the dot product of two quaternions. </description> </method> <method name="get_euler" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns Euler angles (in the YXZ convention: when decomposing, first Z, then X, and Y last) corresponding to the rotation represented by the unit quaternion. Returned vector contains the rotation angles in the format (X angle, Y angle, Z angle). </description> </method> <method name="inverse" qualifiers="const"> - <return type="Quaternion"> - </return> + <return type="Quaternion" /> <description> Returns the inverse of the quaternion. </description> </method> <method name="is_equal_approx" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="to" type="Quaternion"> - </argument> + <return type="bool" /> + <argument index="0" name="to" type="Quaternion" /> <description> Returns [code]true[/code] if this quaternion and [code]quat[/code] are approximately equal, by running [method @GlobalScope.is_equal_approx] on each component. </description> </method> <method name="is_normalized" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the quaternion is normalized or not. </description> </method> <method name="length" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the length of the quaternion. </description> </method> <method name="length_squared" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the length of the quaternion, squared. </description> </method> <method name="normalized" qualifiers="const"> - <return type="Quaternion"> - </return> + <return type="Quaternion" /> <description> Returns a copy of the quaternion, normalized to unit length. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Quaternion"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Quaternion" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Quaternion"> - </return> - <argument index="0" name="right" type="Quaternion"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="right" type="Quaternion" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Quaternion"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Quaternion"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="Quaternion"> - </return> - <argument index="0" name="right" type="Quaternion"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="right" type="Quaternion" /> <description> </description> </method> <method name="operator -" qualifiers="operator"> - <return type="Quaternion"> - </return> - <argument index="0" name="right" type="Quaternion"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="right" type="Quaternion" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Quaternion"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Quaternion"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Quaternion"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Quaternion" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="operator unary+" qualifiers="operator"> - <return type="Quaternion"> - </return> + <return type="Quaternion" /> <description> </description> </method> <method name="operator unary-" qualifiers="operator"> - <return type="Quaternion"> - </return> + <return type="Quaternion" /> <description> </description> </method> <method name="slerp" qualifiers="const"> - <return type="Quaternion"> - </return> - <argument index="0" name="to" type="Quaternion"> - </argument> - <argument index="1" name="weight" type="float"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="to" type="Quaternion" /> + <argument index="1" name="weight" type="float" /> <description> Returns the result of the spherical linear interpolation between this quaternion and [code]to[/code] by amount [code]weight[/code]. [b]Note:[/b] Both quaternions must be normalized. </description> </method> <method name="slerpni" qualifiers="const"> - <return type="Quaternion"> - </return> - <argument index="0" name="to" type="Quaternion"> - </argument> - <argument index="1" name="weight" type="float"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="to" type="Quaternion" /> + <argument index="1" name="weight" type="float" /> <description> Returns the result of the spherical linear interpolation between this quaternion and [code]to[/code] by amount [code]weight[/code], but without checking if the rotation path is not bigger than 90 degrees. </description> diff --git a/doc/classes/RDPipelineColorBlendStateAttachment.xml b/doc/classes/RDPipelineColorBlendStateAttachment.xml index a6a1900cb5..30430d6670 100644 --- a/doc/classes/RDPipelineColorBlendStateAttachment.xml +++ b/doc/classes/RDPipelineColorBlendStateAttachment.xml @@ -8,8 +8,7 @@ </tutorials> <methods> <method name="set_as_mix"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> diff --git a/doc/classes/RDShaderFile.xml b/doc/classes/RDShaderFile.xml index dab2b9822f..22fcf9867c 100644 --- a/doc/classes/RDShaderFile.xml +++ b/doc/classes/RDShaderFile.xml @@ -8,26 +8,20 @@ </tutorials> <methods> <method name="get_spirv" qualifiers="const"> - <return type="RDShaderSPIRV"> - </return> - <argument index="0" name="version" type="StringName" default="&"""> - </argument> + <return type="RDShaderSPIRV" /> + <argument index="0" name="version" type="StringName" default="&""" /> <description> </description> </method> <method name="get_version_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> </description> </method> <method name="set_bytecode"> - <return type="void"> - </return> - <argument index="0" name="bytecode" type="RDShaderSPIRV"> - </argument> - <argument index="1" name="version" type="StringName" default="&"""> - </argument> + <return type="void" /> + <argument index="0" name="bytecode" type="RDShaderSPIRV" /> + <argument index="1" name="version" type="StringName" default="&""" /> <description> </description> </method> diff --git a/doc/classes/RDShaderSPIRV.xml b/doc/classes/RDShaderSPIRV.xml index c9aefe31dc..20de8230aa 100644 --- a/doc/classes/RDShaderSPIRV.xml +++ b/doc/classes/RDShaderSPIRV.xml @@ -8,38 +8,28 @@ </tutorials> <methods> <method name="get_stage_bytecode" qualifiers="const"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage" /> <description> </description> </method> <method name="get_stage_compile_error" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage"> - </argument> + <return type="String" /> + <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage" /> <description> </description> </method> <method name="set_stage_bytecode"> - <return type="void"> - </return> - <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage"> - </argument> - <argument index="1" name="bytecode" type="PackedByteArray"> - </argument> + <return type="void" /> + <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage" /> + <argument index="1" name="bytecode" type="PackedByteArray" /> <description> </description> </method> <method name="set_stage_compile_error"> - <return type="void"> - </return> - <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage"> - </argument> - <argument index="1" name="compile_error" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage" /> + <argument index="1" name="compile_error" type="String" /> <description> </description> </method> diff --git a/doc/classes/RDShaderSource.xml b/doc/classes/RDShaderSource.xml index 68fc43d8ef..2d37ce37f2 100644 --- a/doc/classes/RDShaderSource.xml +++ b/doc/classes/RDShaderSource.xml @@ -8,20 +8,15 @@ </tutorials> <methods> <method name="get_stage_source" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage"> - </argument> + <return type="String" /> + <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage" /> <description> </description> </method> <method name="set_stage_source"> - <return type="void"> - </return> - <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage"> - </argument> - <argument index="1" name="source" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="stage" type="int" enum="RenderingDevice.ShaderStage" /> + <argument index="1" name="source" type="String" /> <description> </description> </method> diff --git a/doc/classes/RDTextureFormat.xml b/doc/classes/RDTextureFormat.xml index ccfa6d1b95..2588dcfc40 100644 --- a/doc/classes/RDTextureFormat.xml +++ b/doc/classes/RDTextureFormat.xml @@ -8,18 +8,14 @@ </tutorials> <methods> <method name="add_shareable_format"> - <return type="void"> - </return> - <argument index="0" name="format" type="int" enum="RenderingDevice.DataFormat"> - </argument> + <return type="void" /> + <argument index="0" name="format" type="int" enum="RenderingDevice.DataFormat" /> <description> </description> </method> <method name="remove_shareable_format"> - <return type="void"> - </return> - <argument index="0" name="format" type="int" enum="RenderingDevice.DataFormat"> - </argument> + <return type="void" /> + <argument index="0" name="format" type="int" enum="RenderingDevice.DataFormat" /> <description> </description> </method> diff --git a/doc/classes/RDUniform.xml b/doc/classes/RDUniform.xml index 666935d663..93adecc7de 100644 --- a/doc/classes/RDUniform.xml +++ b/doc/classes/RDUniform.xml @@ -8,22 +8,18 @@ </tutorials> <methods> <method name="add_id"> - <return type="void"> - </return> - <argument index="0" name="id" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="RID" /> <description> </description> </method> <method name="clear_ids"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="get_ids" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> diff --git a/doc/classes/RID.xml b/doc/classes/RID.xml index e686a4b8fd..ddd30dbc82 100644 --- a/doc/classes/RID.xml +++ b/doc/classes/RID.xml @@ -10,73 +10,57 @@ </tutorials> <methods> <method name="RID" qualifiers="constructor"> - <return type="RID"> - </return> + <return type="RID" /> <description> Constructs an empty [RID] with the invalid ID [code]0[/code]. </description> </method> <method name="RID" qualifiers="constructor"> - <return type="RID"> - </return> - <argument index="0" name="from" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="from" type="RID" /> <description> Constructs a [RID] as a copy of the given [RID]. </description> </method> <method name="get_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the ID of the referenced resource. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="RID" /> <description> </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="RID" /> <description> </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="RID" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="RID" /> <description> </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="RID" /> <description> </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="RID" /> <description> </description> </method> diff --git a/doc/classes/RandomNumberGenerator.xml b/doc/classes/RandomNumberGenerator.xml index 9c84cdd03e..2cf3cbb83d 100644 --- a/doc/classes/RandomNumberGenerator.xml +++ b/doc/classes/RandomNumberGenerator.xml @@ -20,55 +20,43 @@ </tutorials> <methods> <method name="randf"> - <return type="float"> - </return> + <return type="float" /> <description> Returns a pseudo-random float between [code]0.0[/code] and [code]1.0[/code] (inclusive). </description> </method> <method name="randf_range"> - <return type="float"> - </return> - <argument index="0" name="from" type="float"> - </argument> - <argument index="1" name="to" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="from" type="float" /> + <argument index="1" name="to" type="float" /> <description> Returns a pseudo-random float between [code]from[/code] and [code]to[/code] (inclusive). </description> </method> <method name="randfn"> - <return type="float"> - </return> - <argument index="0" name="mean" type="float" default="0.0"> - </argument> - <argument index="1" name="deviation" type="float" default="1.0"> - </argument> + <return type="float" /> + <argument index="0" name="mean" type="float" default="0.0" /> + <argument index="1" name="deviation" type="float" default="1.0" /> <description> Returns a [url=https://en.wikipedia.org/wiki/Normal_distribution]normally-distributed[/url] pseudo-random number, using Box-Muller transform with the specified [code]mean[/code] and a standard [code]deviation[/code]. This is also called Gaussian distribution. </description> </method> <method name="randi"> - <return type="int"> - </return> + <return type="int" /> <description> Returns a pseudo-random 32-bit unsigned integer between [code]0[/code] and [code]4294967295[/code] (inclusive). </description> </method> <method name="randi_range"> - <return type="int"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> Returns a pseudo-random 32-bit signed integer between [code]from[/code] and [code]to[/code] (inclusive). </description> </method> <method name="randomize"> - <return type="void"> - </return> + <return type="void" /> <description> Setups a time-based seed to for this [RandomNumberGenerator] instance. Unlike the [@GlobalScope] random number generation functions, different [RandomNumberGenerator] instances can use different seeds. </description> diff --git a/doc/classes/Range.xml b/doc/classes/Range.xml index 8690f6d7e7..30b915b437 100644 --- a/doc/classes/Range.xml +++ b/doc/classes/Range.xml @@ -10,17 +10,14 @@ </tutorials> <methods> <method name="share"> - <return type="void"> - </return> - <argument index="0" name="with" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="with" type="Node" /> <description> Binds two ranges together along with any ranges previously grouped with either of them. When any of range's member variables change, it will share the new value with all other ranges in its group. </description> </method> <method name="unshare"> - <return type="void"> - </return> + <return type="void" /> <description> Stops range from sharing its member variables with any other. </description> @@ -65,8 +62,7 @@ </description> </signal> <signal name="value_changed"> - <argument index="0" name="value" type="float"> - </argument> + <argument index="0" name="value" type="float" /> <description> Emitted when [member value] changes. </description> diff --git a/doc/classes/RayCast2D.xml b/doc/classes/RayCast2D.xml index 14b67b46df..d8a5fc8508 100644 --- a/doc/classes/RayCast2D.xml +++ b/doc/classes/RayCast2D.xml @@ -15,108 +15,88 @@ </tutorials> <methods> <method name="add_exception"> - <return type="void"> - </return> - <argument index="0" name="node" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Object" /> <description> Adds a collision exception so the ray does not report collisions with the specified node. </description> </method> <method name="add_exception_rid"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Adds a collision exception so the ray does not report collisions with the specified [RID]. </description> </method> <method name="clear_exceptions"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all collision exceptions for this ray. </description> </method> <method name="force_raycast_update"> - <return type="void"> - </return> + <return type="void" /> <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. [b]Note:[/b] [member enabled] does not need to be [code]true[/code] for this to work. </description> </method> <method name="get_collider" qualifiers="const"> - <return type="Object"> - </return> + <return type="Object" /> <description> Returns the first object that the ray intersects, or [code]null[/code] if no object is intersecting the ray (i.e. [method is_colliding] returns [code]false[/code]). </description> </method> <method name="get_collider_shape" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the shape ID of the first object that the ray intersects, or [code]0[/code] if no object is intersecting the ray (i.e. [method is_colliding] returns [code]false[/code]). </description> </method> <method name="get_collision_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns an individual bit on the collision mask. </description> </method> <method name="get_collision_normal" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the normal of the intersecting object's shape at the collision point. </description> </method> <method name="get_collision_point" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the collision point at which the ray intersects the closest object. [b]Note:[/b] this point is in the [b]global[/b] coordinate system. </description> </method> <method name="is_colliding" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether any object is intersecting with the ray's vector (considering the vector length). </description> </method> <method name="remove_exception"> - <return type="void"> - </return> - <argument index="0" name="node" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Object" /> <description> Removes a collision exception so the ray does report collisions with the specified node. </description> </method> <method name="remove_exception_rid"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Removes a collision exception so the ray does report collisions with the specified [RID]. </description> </method> <method name="set_collision_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> Sets or clears individual bits on the collision mask. This makes selecting the areas scanned easier. </description> diff --git a/doc/classes/RayCast3D.xml b/doc/classes/RayCast3D.xml index 98c8c96403..4e8eb960db 100644 --- a/doc/classes/RayCast3D.xml +++ b/doc/classes/RayCast3D.xml @@ -16,33 +16,27 @@ </tutorials> <methods> <method name="add_exception"> - <return type="void"> - </return> - <argument index="0" name="node" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Object" /> <description> Adds a collision exception so the ray does not report collisions with the specified node. </description> </method> <method name="add_exception_rid"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Adds a collision exception so the ray does not report collisions with the specified [RID]. </description> </method> <method name="clear_exceptions"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all collision exceptions for this ray. </description> </method> <method name="force_raycast_update"> - <return type="void"> - </return> + <return type="void" /> <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. @@ -50,76 +44,62 @@ </description> </method> <method name="get_collider" qualifiers="const"> - <return type="Object"> - </return> + <return type="Object" /> <description> Returns the first object that the ray intersects, or [code]null[/code] if no object is intersecting the ray (i.e. [method is_colliding] returns [code]false[/code]). </description> </method> <method name="get_collider_shape" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the shape ID of the first object that the ray intersects, or [code]0[/code] if no object is intersecting the ray (i.e. [method is_colliding] returns [code]false[/code]). </description> </method> <method name="get_collision_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns [code]true[/code] if the bit index passed is turned on. [b]Note:[/b] Bit indices range from 0-19. </description> </method> <method name="get_collision_normal" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the normal of the intersecting object's shape at the collision point. </description> </method> <method name="get_collision_point" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the collision point at which the ray intersects the closest object. [b]Note:[/b] This point is in the [b]global[/b] coordinate system. </description> </method> <method name="is_colliding" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether any object is intersecting with the ray's vector (considering the vector length). </description> </method> <method name="remove_exception"> - <return type="void"> - </return> - <argument index="0" name="node" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="node" type="Object" /> <description> Removes a collision exception so the ray does report collisions with the specified node. </description> </method> <method name="remove_exception_rid"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Removes a collision exception so the ray does report collisions with the specified [RID]. </description> </method> <method name="set_collision_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> Sets the bit index passed to the [code]value[/code] passed. [b]Note:[/b] Bit indexes range from 0-19. diff --git a/doc/classes/Rect2.xml b/doc/classes/Rect2.xml index 627c488b01..e6c8ff86b6 100644 --- a/doc/classes/Rect2.xml +++ b/doc/classes/Rect2.xml @@ -15,200 +15,153 @@ </tutorials> <methods> <method name="Rect2" qualifiers="constructor"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Constructs a default-initialized [Rect2] with default (zero) values of [member position] and [member size]. </description> </method> <method name="Rect2" qualifiers="constructor"> - <return type="Rect2"> - </return> - <argument index="0" name="from" type="Rect2"> - </argument> + <return type="Rect2" /> + <argument index="0" name="from" type="Rect2" /> <description> Constructs a [Rect2] as a copy of the given [Rect2]. </description> </method> <method name="Rect2" qualifiers="constructor"> - <return type="Rect2"> - </return> - <argument index="0" name="from" type="Rect2i"> - </argument> + <return type="Rect2" /> + <argument index="0" name="from" type="Rect2i" /> <description> Constructs a [Rect2] from a [Rect2i]. </description> </method> <method name="Rect2" qualifiers="constructor"> - <return type="Rect2"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> - <argument index="1" name="size" type="Vector2"> - </argument> + <return type="Rect2" /> + <argument index="0" name="position" type="Vector2" /> + <argument index="1" name="size" type="Vector2" /> <description> Constructs a [Rect2] by position and size. </description> </method> <method name="Rect2" qualifiers="constructor"> - <return type="Rect2"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="y" type="float"> - </argument> - <argument index="2" name="width" type="float"> - </argument> - <argument index="3" name="height" type="float"> - </argument> + <return type="Rect2" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="y" type="float" /> + <argument index="2" name="width" type="float" /> + <argument index="3" name="height" type="float" /> <description> Constructs a [Rect2] by x, y, width, and height. </description> </method> <method name="abs" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns a [Rect2] with equivalent position and area, modified so that the top-left corner is the origin and [code]width[/code] and [code]height[/code] are positive. </description> </method> <method name="encloses" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="b" type="Rect2"> - </argument> + <return type="bool" /> + <argument index="0" name="b" type="Rect2" /> <description> Returns [code]true[/code] if this [Rect2] completely encloses another one. </description> </method> <method name="expand" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="to" type="Vector2"> - </argument> + <return type="Rect2" /> + <argument index="0" name="to" type="Vector2" /> <description> Returns this [Rect2] expanded to include a given point. </description> </method> <method name="get_area" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the area of the [Rect2]. </description> </method> <method name="grow" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="amount" type="float"> - </argument> + <return type="Rect2" /> + <argument index="0" name="amount" type="float" /> <description> Returns a copy of the [Rect2] grown by the specified [code]amount[/code] on all sides. </description> </method> <method name="grow_individual" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="left" type="float"> - </argument> - <argument index="1" name="top" type="float"> - </argument> - <argument index="2" name="right" type="float"> - </argument> - <argument index="3" name="bottom" type="float"> - </argument> + <return type="Rect2" /> + <argument index="0" name="left" type="float" /> + <argument index="1" name="top" type="float" /> + <argument index="2" name="right" type="float" /> + <argument index="3" name="bottom" type="float" /> <description> Returns a copy of the [Rect2] grown by the specified amount on each side individually. </description> </method> <method name="grow_side" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="side" type="int"> - </argument> - <argument index="1" name="amount" type="float"> - </argument> + <return type="Rect2" /> + <argument index="0" name="side" type="int" /> + <argument index="1" name="amount" type="float" /> <description> Returns a copy of the [Rect2] grown by the specified [code]amount[/code] on the specified [enum Side]. </description> </method> <method name="has_no_area" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the [Rect2] is flat or empty. </description> </method> <method name="has_point" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="point" type="Vector2" /> <description> Returns [code]true[/code] if the [Rect2] contains a point. </description> </method> <method name="intersection" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="b" type="Rect2"> - </argument> + <return type="Rect2" /> + <argument index="0" name="b" type="Rect2" /> <description> Returns the intersection of this [Rect2] and [code]b[/code]. If the rectangles do not intersect, an empty [Rect2] is returned. </description> </method> <method name="intersects" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="b" type="Rect2"> - </argument> - <argument index="1" name="include_borders" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="b" type="Rect2" /> + <argument index="1" name="include_borders" type="bool" default="false" /> <description> Returns [code]true[/code] if the [Rect2] overlaps with [code]b[/code] (i.e. they have at least one point in common). If [code]include_borders[/code] is [code]true[/code], they will also be considered overlapping if their borders touch, even without intersection. </description> </method> <method name="is_equal_approx" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="rect" type="Rect2"> - </argument> + <return type="bool" /> + <argument index="0" name="rect" type="Rect2" /> <description> Returns [code]true[/code] if this [Rect2] and [code]rect[/code] are approximately equal, by calling [code]is_equal_approx[/code] on each component. </description> </method> <method name="merge" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="b" type="Rect2"> - </argument> + <return type="Rect2" /> + <argument index="0" name="b" type="Rect2" /> <description> Returns a larger [Rect2] that contains this [Rect2] and [code]b[/code]. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Rect2"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Rect2" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Rect2"> - </return> - <argument index="0" name="right" type="Transform2D"> - </argument> + <return type="Rect2" /> + <argument index="0" name="right" type="Transform2D" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Rect2"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Rect2" /> <description> </description> </method> diff --git a/doc/classes/Rect2i.xml b/doc/classes/Rect2i.xml index 67d148084f..a75c31a007 100644 --- a/doc/classes/Rect2i.xml +++ b/doc/classes/Rect2i.xml @@ -13,181 +13,139 @@ </tutorials> <methods> <method name="Rect2i" qualifiers="constructor"> - <return type="Rect2i"> - </return> + <return type="Rect2i" /> <description> Constructs a default-initialized [Rect2i] with default (zero) values of [member position] and [member size]. </description> </method> <method name="Rect2i" qualifiers="constructor"> - <return type="Rect2i"> - </return> - <argument index="0" name="from" type="Rect2i"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="from" type="Rect2i" /> <description> Constructs a [Rect2i] as a copy of the given [Rect2i]. </description> </method> <method name="Rect2i" qualifiers="constructor"> - <return type="Rect2i"> - </return> - <argument index="0" name="from" type="Rect2"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="from" type="Rect2" /> <description> Constructs a new [Rect2i] from [Rect2]. The floating point coordinates will be truncated. </description> </method> <method name="Rect2i" qualifiers="constructor"> - <return type="Rect2i"> - </return> - <argument index="0" name="position" type="Vector2i"> - </argument> - <argument index="1" name="size" type="Vector2i"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="position" type="Vector2i" /> + <argument index="1" name="size" type="Vector2i" /> <description> Constructs a [Rect2i] by position and size. </description> </method> <method name="Rect2i" qualifiers="constructor"> - <return type="Rect2i"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="width" type="int"> - </argument> - <argument index="3" name="height" type="int"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="x" type="int" /> + <argument index="1" name="y" type="int" /> + <argument index="2" name="width" type="int" /> + <argument index="3" name="height" type="int" /> <description> Constructs a [Rect2i] by x, y, width, and height. </description> </method> <method name="abs" qualifiers="const"> - <return type="Rect2i"> - </return> + <return type="Rect2i" /> <description> Returns a [Rect2i] with equivalent position and area, modified so that the top-left corner is the origin and [code]width[/code] and [code]height[/code] are positive. </description> </method> <method name="encloses" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="b" type="Rect2i"> - </argument> + <return type="bool" /> + <argument index="0" name="b" type="Rect2i" /> <description> Returns [code]true[/code] if this [Rect2i] completely encloses another one. </description> </method> <method name="expand" qualifiers="const"> - <return type="Rect2i"> - </return> - <argument index="0" name="to" type="Vector2i"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="to" type="Vector2i" /> <description> Returns this [Rect2i] expanded to include a given point. </description> </method> <method name="get_area" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the area of the [Rect2i]. </description> </method> <method name="grow" qualifiers="const"> - <return type="Rect2i"> - </return> - <argument index="0" name="amount" type="int"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="amount" type="int" /> <description> Returns a copy of the [Rect2i] grown by the specified [code]amount[/code] on all sides. </description> </method> <method name="grow_individual" qualifiers="const"> - <return type="Rect2i"> - </return> - <argument index="0" name="left" type="int"> - </argument> - <argument index="1" name="top" type="int"> - </argument> - <argument index="2" name="right" type="int"> - </argument> - <argument index="3" name="bottom" type="int"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="left" type="int" /> + <argument index="1" name="top" type="int" /> + <argument index="2" name="right" type="int" /> + <argument index="3" name="bottom" type="int" /> <description> Returns a copy of the [Rect2i] grown by the specified amount on each side individually. </description> </method> <method name="grow_side" qualifiers="const"> - <return type="Rect2i"> - </return> - <argument index="0" name="side" type="int"> - </argument> - <argument index="1" name="amount" type="int"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="side" type="int" /> + <argument index="1" name="amount" type="int" /> <description> Returns a copy of the [Rect2i] grown by the specified [code]amount[/code] on the specified [enum Side]. </description> </method> <method name="has_no_area" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the [Rect2i] is flat or empty. </description> </method> <method name="has_point" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector2i"> - </argument> + <return type="bool" /> + <argument index="0" name="point" type="Vector2i" /> <description> Returns [code]true[/code] if the [Rect2i] contains a point. </description> </method> <method name="intersection" qualifiers="const"> - <return type="Rect2i"> - </return> - <argument index="0" name="b" type="Rect2i"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="b" type="Rect2i" /> <description> Returns the intersection of this [Rect2i] and [code]b[/code]. If the rectangles do not intersect, an empty [Rect2i] is returned. </description> </method> <method name="intersects" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="b" type="Rect2i"> - </argument> + <return type="bool" /> + <argument index="0" name="b" type="Rect2i" /> <description> Returns [code]true[/code] if the [Rect2i] overlaps with [code]b[/code] (i.e. they have at least one point in common). If [code]include_borders[/code] is [code]true[/code], they will also be considered overlapping if their borders touch, even without intersection. </description> </method> <method name="merge" qualifiers="const"> - <return type="Rect2i"> - </return> - <argument index="0" name="b" type="Rect2i"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="b" type="Rect2i" /> <description> Returns a larger [Rect2i] that contains this [Rect2i] and [code]b[/code]. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Rect2i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Rect2i" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Rect2i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Rect2i" /> <description> </description> </method> diff --git a/doc/classes/RefCounted.xml b/doc/classes/RefCounted.xml index cf96514203..bf52c34777 100644 --- a/doc/classes/RefCounted.xml +++ b/doc/classes/RefCounted.xml @@ -14,24 +14,21 @@ </tutorials> <methods> <method name="init_ref"> - <return type="bool"> - </return> + <return type="bool" /> <description> Initializes the internal reference counter. Use this only if you really know what you are doing. Returns whether the initialization was successful. </description> </method> <method name="reference"> - <return type="bool"> - </return> + <return type="bool" /> <description> Increments the internal reference counter. Use this only if you really know what you are doing. Returns [code]true[/code] if the increment was successful, [code]false[/code] otherwise. </description> </method> <method name="unreference"> - <return type="bool"> - </return> + <return type="bool" /> <description> Decrements the internal reference counter. Use this only if you really know what you are doing. Returns [code]true[/code] if the decrement was successful, [code]false[/code] otherwise. diff --git a/doc/classes/RemoteTransform2D.xml b/doc/classes/RemoteTransform2D.xml index 84ec673920..613726b555 100644 --- a/doc/classes/RemoteTransform2D.xml +++ b/doc/classes/RemoteTransform2D.xml @@ -11,8 +11,7 @@ </tutorials> <methods> <method name="force_update_cache"> - <return type="void"> - </return> + <return type="void" /> <description> [RemoteTransform2D] caches the remote node. It may not notice if the remote node disappears; [method force_update_cache] forces it to update the cache again. </description> diff --git a/doc/classes/RemoteTransform3D.xml b/doc/classes/RemoteTransform3D.xml index 453177496f..cc19d5c25d 100644 --- a/doc/classes/RemoteTransform3D.xml +++ b/doc/classes/RemoteTransform3D.xml @@ -11,8 +11,7 @@ </tutorials> <methods> <method name="force_update_cache"> - <return type="void"> - </return> + <return type="void" /> <description> [RemoteTransform3D] caches the remote node. It may not notice if the remote node disappears; [method force_update_cache] forces it to update the cache again. </description> diff --git a/doc/classes/RenderingDevice.xml b/doc/classes/RenderingDevice.xml index c73c2ddfd7..c017bcaa1a 100644 --- a/doc/classes/RenderingDevice.xml +++ b/doc/classes/RenderingDevice.xml @@ -8,904 +8,627 @@ </tutorials> <methods> <method name="barrier"> - <return type="void"> - </return> - <argument index="0" name="from" type="int" default="7"> - </argument> - <argument index="1" name="to" type="int" default="7"> - </argument> + <return type="void" /> + <argument index="0" name="from" type="int" default="7" /> + <argument index="1" name="to" type="int" default="7" /> <description> </description> </method> <method name="buffer_clear"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="buffer" type="RID"> - </argument> - <argument index="1" name="offset" type="int"> - </argument> - <argument index="2" name="size_bytes" type="int"> - </argument> - <argument index="3" name="post_barrier" type="int" default="7"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="buffer" type="RID" /> + <argument index="1" name="offset" type="int" /> + <argument index="2" name="size_bytes" type="int" /> + <argument index="3" name="post_barrier" type="int" default="7" /> <description> </description> </method> <method name="buffer_get_data"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="buffer" type="RID"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="buffer" type="RID" /> <description> </description> </method> <method name="buffer_update"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="buffer" type="RID"> - </argument> - <argument index="1" name="offset" type="int"> - </argument> - <argument index="2" name="size_bytes" type="int"> - </argument> - <argument index="3" name="data" type="PackedByteArray"> - </argument> - <argument index="4" name="post_barrier" type="int" default="7"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="buffer" type="RID" /> + <argument index="1" name="offset" type="int" /> + <argument index="2" name="size_bytes" type="int" /> + <argument index="3" name="data" type="PackedByteArray" /> + <argument index="4" name="post_barrier" type="int" default="7" /> <description> </description> </method> <method name="capture_timestamp"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> <description> </description> </method> <method name="compute_list_add_barrier"> - <return type="void"> - </return> - <argument index="0" name="compute_list" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="compute_list" type="int" /> <description> </description> </method> <method name="compute_list_begin"> - <return type="int"> - </return> - <argument index="0" name="allow_draw_overlap" type="bool" default="false"> - </argument> + <return type="int" /> + <argument index="0" name="allow_draw_overlap" type="bool" default="false" /> <description> </description> </method> <method name="compute_list_bind_compute_pipeline"> - <return type="void"> - </return> - <argument index="0" name="compute_list" type="int"> - </argument> - <argument index="1" name="compute_pipeline" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="compute_list" type="int" /> + <argument index="1" name="compute_pipeline" type="RID" /> <description> </description> </method> <method name="compute_list_bind_uniform_set"> - <return type="void"> - </return> - <argument index="0" name="compute_list" type="int"> - </argument> - <argument index="1" name="uniform_set" type="RID"> - </argument> - <argument index="2" name="set_index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="compute_list" type="int" /> + <argument index="1" name="uniform_set" type="RID" /> + <argument index="2" name="set_index" type="int" /> <description> </description> </method> <method name="compute_list_dispatch"> - <return type="void"> - </return> - <argument index="0" name="compute_list" type="int"> - </argument> - <argument index="1" name="x_groups" type="int"> - </argument> - <argument index="2" name="y_groups" type="int"> - </argument> - <argument index="3" name="z_groups" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="compute_list" type="int" /> + <argument index="1" name="x_groups" type="int" /> + <argument index="2" name="y_groups" type="int" /> + <argument index="3" name="z_groups" type="int" /> <description> </description> </method> <method name="compute_list_end"> - <return type="void"> - </return> - <argument index="0" name="post_barrier" type="int" default="7"> - </argument> + <return type="void" /> + <argument index="0" name="post_barrier" type="int" default="7" /> <description> </description> </method> <method name="compute_list_set_push_constant"> - <return type="void"> - </return> - <argument index="0" name="compute_list" type="int"> - </argument> - <argument index="1" name="buffer" type="PackedByteArray"> - </argument> - <argument index="2" name="size_bytes" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="compute_list" type="int" /> + <argument index="1" name="buffer" type="PackedByteArray" /> + <argument index="2" name="size_bytes" type="int" /> <description> </description> </method> <method name="compute_pipeline_create"> - <return type="RID"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="specialization_constants" type="RDPipelineSpecializationConstant[]" default="[]"> - </argument> + <return type="RID" /> + <argument index="0" name="shader" type="RID" /> + <argument index="1" name="specialization_constants" type="RDPipelineSpecializationConstant[]" default="[]" /> <description> </description> </method> <method name="compute_pipeline_is_valid"> - <return type="bool"> - </return> - <argument index="0" name="compute_pieline" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="compute_pieline" type="RID" /> <description> </description> </method> <method name="create_local_device"> - <return type="RenderingDevice"> - </return> + <return type="RenderingDevice" /> <description> </description> </method> <method name="draw_command_begin_label"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="color" type="Color" /> <description> </description> </method> <method name="draw_command_end_label"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="draw_command_insert_label"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="color" type="Color" /> <description> </description> </method> <method name="draw_list_begin"> - <return type="int"> - </return> - <argument index="0" name="framebuffer" type="RID"> - </argument> - <argument index="1" name="initial_color_action" type="int" enum="RenderingDevice.InitialAction"> - </argument> - <argument index="2" name="final_color_action" type="int" enum="RenderingDevice.FinalAction"> - </argument> - <argument index="3" name="initial_depth_action" type="int" enum="RenderingDevice.InitialAction"> - </argument> - <argument index="4" name="final_depth_action" type="int" enum="RenderingDevice.FinalAction"> - </argument> - <argument index="5" name="clear_color_values" type="PackedColorArray" default="PackedColorArray()"> - </argument> - <argument index="6" name="clear_depth" type="float" default="1.0"> - </argument> - <argument index="7" name="clear_stencil" type="int" default="0"> - </argument> - <argument index="8" name="region" type="Rect2" default="Rect2i(0, 0, 0, 0)"> - </argument> - <argument index="9" name="storage_textures" type="Array" default="[]"> - </argument> + <return type="int" /> + <argument index="0" name="framebuffer" type="RID" /> + <argument index="1" name="initial_color_action" type="int" enum="RenderingDevice.InitialAction" /> + <argument index="2" name="final_color_action" type="int" enum="RenderingDevice.FinalAction" /> + <argument index="3" name="initial_depth_action" type="int" enum="RenderingDevice.InitialAction" /> + <argument index="4" name="final_depth_action" type="int" enum="RenderingDevice.FinalAction" /> + <argument index="5" name="clear_color_values" type="PackedColorArray" default="PackedColorArray()" /> + <argument index="6" name="clear_depth" type="float" default="1.0" /> + <argument index="7" name="clear_stencil" type="int" default="0" /> + <argument index="8" name="region" type="Rect2" default="Rect2i(0, 0, 0, 0)" /> + <argument index="9" name="storage_textures" type="Array" default="[]" /> <description> </description> </method> <method name="draw_list_begin_for_screen"> - <return type="int"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> - <argument index="1" name="clear_color" type="Color" default="Color(0, 0, 0, 1)"> - </argument> + <return type="int" /> + <argument index="0" name="screen" type="int" default="0" /> + <argument index="1" name="clear_color" type="Color" default="Color(0, 0, 0, 1)" /> <description> </description> </method> <method name="draw_list_begin_split"> - <return type="PackedInt64Array"> - </return> - <argument index="0" name="framebuffer" type="RID"> - </argument> - <argument index="1" name="splits" type="int"> - </argument> - <argument index="2" name="initial_color_action" type="int" enum="RenderingDevice.InitialAction"> - </argument> - <argument index="3" name="final_color_action" type="int" enum="RenderingDevice.FinalAction"> - </argument> - <argument index="4" name="initial_depth_action" type="int" enum="RenderingDevice.InitialAction"> - </argument> - <argument index="5" name="final_depth_action" type="int" enum="RenderingDevice.FinalAction"> - </argument> - <argument index="6" name="clear_color_values" type="PackedColorArray" default="PackedColorArray()"> - </argument> - <argument index="7" name="clear_depth" type="float" default="1.0"> - </argument> - <argument index="8" name="clear_stencil" type="int" default="0"> - </argument> - <argument index="9" name="region" type="Rect2" default="Rect2i(0, 0, 0, 0)"> - </argument> - <argument index="10" name="storage_textures" type="RID[]" default="[]"> - </argument> + <return type="PackedInt64Array" /> + <argument index="0" name="framebuffer" type="RID" /> + <argument index="1" name="splits" type="int" /> + <argument index="2" name="initial_color_action" type="int" enum="RenderingDevice.InitialAction" /> + <argument index="3" name="final_color_action" type="int" enum="RenderingDevice.FinalAction" /> + <argument index="4" name="initial_depth_action" type="int" enum="RenderingDevice.InitialAction" /> + <argument index="5" name="final_depth_action" type="int" enum="RenderingDevice.FinalAction" /> + <argument index="6" name="clear_color_values" type="PackedColorArray" default="PackedColorArray()" /> + <argument index="7" name="clear_depth" type="float" default="1.0" /> + <argument index="8" name="clear_stencil" type="int" default="0" /> + <argument index="9" name="region" type="Rect2" default="Rect2i(0, 0, 0, 0)" /> + <argument index="10" name="storage_textures" type="RID[]" default="[]" /> <description> </description> </method> <method name="draw_list_bind_index_array"> - <return type="void"> - </return> - <argument index="0" name="draw_list" type="int"> - </argument> - <argument index="1" name="index_array" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="draw_list" type="int" /> + <argument index="1" name="index_array" type="RID" /> <description> </description> </method> <method name="draw_list_bind_render_pipeline"> - <return type="void"> - </return> - <argument index="0" name="draw_list" type="int"> - </argument> - <argument index="1" name="render_pipeline" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="draw_list" type="int" /> + <argument index="1" name="render_pipeline" type="RID" /> <description> </description> </method> <method name="draw_list_bind_uniform_set"> - <return type="void"> - </return> - <argument index="0" name="draw_list" type="int"> - </argument> - <argument index="1" name="uniform_set" type="RID"> - </argument> - <argument index="2" name="set_index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="draw_list" type="int" /> + <argument index="1" name="uniform_set" type="RID" /> + <argument index="2" name="set_index" type="int" /> <description> </description> </method> <method name="draw_list_bind_vertex_array"> - <return type="void"> - </return> - <argument index="0" name="draw_list" type="int"> - </argument> - <argument index="1" name="vertex_array" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="draw_list" type="int" /> + <argument index="1" name="vertex_array" type="RID" /> <description> </description> </method> <method name="draw_list_disable_scissor"> - <return type="void"> - </return> - <argument index="0" name="draw_list" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="draw_list" type="int" /> <description> </description> </method> <method name="draw_list_draw"> - <return type="void"> - </return> - <argument index="0" name="draw_list" type="int"> - </argument> - <argument index="1" name="use_indices" type="bool"> - </argument> - <argument index="2" name="instances" type="int"> - </argument> - <argument index="3" name="procedural_vertex_count" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="draw_list" type="int" /> + <argument index="1" name="use_indices" type="bool" /> + <argument index="2" name="instances" type="int" /> + <argument index="3" name="procedural_vertex_count" type="int" default="0" /> <description> </description> </method> <method name="draw_list_enable_scissor"> - <return type="void"> - </return> - <argument index="0" name="draw_list" type="int"> - </argument> - <argument index="1" name="rect" type="Rect2" default="Rect2i(0, 0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="draw_list" type="int" /> + <argument index="1" name="rect" type="Rect2" default="Rect2i(0, 0, 0, 0)" /> <description> </description> </method> <method name="draw_list_end"> - <return type="void"> - </return> - <argument index="0" name="post_barrier" type="int" default="7"> - </argument> + <return type="void" /> + <argument index="0" name="post_barrier" type="int" default="7" /> <description> </description> </method> <method name="draw_list_set_push_constant"> - <return type="void"> - </return> - <argument index="0" name="draw_list" type="int"> - </argument> - <argument index="1" name="buffer" type="PackedByteArray"> - </argument> - <argument index="2" name="size_bytes" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="draw_list" type="int" /> + <argument index="1" name="buffer" type="PackedByteArray" /> + <argument index="2" name="size_bytes" type="int" /> <description> </description> </method> <method name="draw_list_switch_to_next_pass"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="draw_list_switch_to_next_pass_split"> - <return type="PackedInt64Array"> - </return> - <argument index="0" name="splits" type="int"> - </argument> + <return type="PackedInt64Array" /> + <argument index="0" name="splits" type="int" /> <description> </description> </method> <method name="framebuffer_create"> - <return type="RID"> - </return> - <argument index="0" name="textures" type="RID[]"> - </argument> - <argument index="1" name="validate_with_format" type="int" default="-1"> - </argument> - <argument index="2" name="view_count" type="int" default="1"> - </argument> + <return type="RID" /> + <argument index="0" name="textures" type="RID[]" /> + <argument index="1" name="validate_with_format" type="int" default="-1" /> + <argument index="2" name="view_count" type="int" default="1" /> <description> </description> </method> <method name="framebuffer_create_empty"> - <return type="RID"> - </return> - <argument index="0" name="size" type="Vector2i"> - </argument> - <argument index="1" name="samples" type="int" enum="RenderingDevice.TextureSamples" default="0"> - </argument> - <argument index="2" name="validate_with_format" type="int" default="-1"> - </argument> + <return type="RID" /> + <argument index="0" name="size" type="Vector2i" /> + <argument index="1" name="samples" type="int" enum="RenderingDevice.TextureSamples" default="0" /> + <argument index="2" name="validate_with_format" type="int" default="-1" /> <description> </description> </method> <method name="framebuffer_create_multipass"> - <return type="RID"> - </return> - <argument index="0" name="textures" type="RID[]"> - </argument> - <argument index="1" name="passes" type="RDFramebufferPass[]"> - </argument> - <argument index="2" name="validate_with_format" type="int" default="-1"> - </argument> - <argument index="3" name="view_count" type="int" default="1"> - </argument> + <return type="RID" /> + <argument index="0" name="textures" type="RID[]" /> + <argument index="1" name="passes" type="RDFramebufferPass[]" /> + <argument index="2" name="validate_with_format" type="int" default="-1" /> + <argument index="3" name="view_count" type="int" default="1" /> <description> </description> </method> <method name="framebuffer_format_create"> - <return type="int"> - </return> - <argument index="0" name="attachments" type="RDAttachmentFormat[]"> - </argument> - <argument index="1" name="view_count" type="int" default="1"> - </argument> + <return type="int" /> + <argument index="0" name="attachments" type="RDAttachmentFormat[]" /> + <argument index="1" name="view_count" type="int" default="1" /> <description> </description> </method> <method name="framebuffer_format_create_empty"> - <return type="int"> - </return> - <argument index="0" name="samples" type="int" enum="RenderingDevice.TextureSamples" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="samples" type="int" enum="RenderingDevice.TextureSamples" default="0" /> <description> </description> </method> <method name="framebuffer_format_create_multipass"> - <return type="int"> - </return> - <argument index="0" name="attachments" type="RDAttachmentFormat[]"> - </argument> - <argument index="1" name="passes" type="RDFramebufferPass[]"> - </argument> - <argument index="2" name="view_count" type="int" default="1"> - </argument> + <return type="int" /> + <argument index="0" name="attachments" type="RDAttachmentFormat[]" /> + <argument index="1" name="passes" type="RDFramebufferPass[]" /> + <argument index="2" name="view_count" type="int" default="1" /> <description> </description> </method> <method name="framebuffer_format_get_texture_samples"> - <return type="int" enum="RenderingDevice.TextureSamples"> - </return> - <argument index="0" name="format" type="int"> - </argument> - <argument index="1" name="render_pass" type="int" default="0"> - </argument> + <return type="int" enum="RenderingDevice.TextureSamples" /> + <argument index="0" name="format" type="int" /> + <argument index="1" name="render_pass" type="int" default="0" /> <description> </description> </method> <method name="framebuffer_get_format"> - <return type="int"> - </return> - <argument index="0" name="framebuffer" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="framebuffer" type="RID" /> <description> </description> </method> <method name="free"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> </description> </method> <method name="full_barrier"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="get_captured_timestamp_cpu_time" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="get_captured_timestamp_gpu_time" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="get_captured_timestamp_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="get_captured_timestamps_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_captured_timestamps_frame" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_device_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="get_device_pipeline_cache_uuid" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="get_device_vendor_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> </description> </method> <method name="get_frame_delay" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_memory_usage" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="int" enum="RenderingDevice.MemoryType"> - </argument> + <return type="int" /> + <argument index="0" name="arg0" type="int" enum="RenderingDevice.MemoryType" /> <description> </description> </method> <method name="index_array_create"> - <return type="RID"> - </return> - <argument index="0" name="index_buffer" type="RID"> - </argument> - <argument index="1" name="index_offset" type="int"> - </argument> - <argument index="2" name="index_count" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="index_buffer" type="RID" /> + <argument index="1" name="index_offset" type="int" /> + <argument index="2" name="index_count" type="int" /> <description> </description> </method> <method name="index_buffer_create"> - <return type="RID"> - </return> - <argument index="0" name="size_indices" type="int"> - </argument> - <argument index="1" name="format" type="int" enum="RenderingDevice.IndexBufferFormat"> - </argument> - <argument index="2" name="data" type="PackedByteArray" default="PackedByteArray()"> - </argument> - <argument index="3" name="use_restart_indices" type="bool" default="false"> - </argument> + <return type="RID" /> + <argument index="0" name="size_indices" type="int" /> + <argument index="1" name="format" type="int" enum="RenderingDevice.IndexBufferFormat" /> + <argument index="2" name="data" type="PackedByteArray" default="PackedByteArray()" /> + <argument index="3" name="use_restart_indices" type="bool" default="false" /> <description> </description> </method> <method name="limit_get"> - <return type="int"> - </return> - <argument index="0" name="limit" type="int" enum="RenderingDevice.Limit"> - </argument> + <return type="int" /> + <argument index="0" name="limit" type="int" enum="RenderingDevice.Limit" /> <description> </description> </method> <method name="render_pipeline_create"> - <return type="RID"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="framebuffer_format" type="int"> - </argument> - <argument index="2" name="vertex_format" type="int"> - </argument> - <argument index="3" name="primitive" type="int" enum="RenderingDevice.RenderPrimitive"> - </argument> - <argument index="4" name="rasterization_state" type="RDPipelineRasterizationState"> - </argument> - <argument index="5" name="multisample_state" type="RDPipelineMultisampleState"> - </argument> - <argument index="6" name="stencil_state" type="RDPipelineDepthStencilState"> - </argument> - <argument index="7" name="color_blend_state" type="RDPipelineColorBlendState"> - </argument> - <argument index="8" name="dynamic_state_flags" type="int" default="0"> - </argument> - <argument index="9" name="for_render_pass" type="int" default="0"> - </argument> - <argument index="10" name="specialization_constants" type="RDPipelineSpecializationConstant[]" default="[]"> - </argument> + <return type="RID" /> + <argument index="0" name="shader" type="RID" /> + <argument index="1" name="framebuffer_format" type="int" /> + <argument index="2" name="vertex_format" type="int" /> + <argument index="3" name="primitive" type="int" enum="RenderingDevice.RenderPrimitive" /> + <argument index="4" name="rasterization_state" type="RDPipelineRasterizationState" /> + <argument index="5" name="multisample_state" type="RDPipelineMultisampleState" /> + <argument index="6" name="stencil_state" type="RDPipelineDepthStencilState" /> + <argument index="7" name="color_blend_state" type="RDPipelineColorBlendState" /> + <argument index="8" name="dynamic_state_flags" type="int" default="0" /> + <argument index="9" name="for_render_pass" type="int" default="0" /> + <argument index="10" name="specialization_constants" type="RDPipelineSpecializationConstant[]" default="[]" /> <description> </description> </method> <method name="render_pipeline_is_valid"> - <return type="bool"> - </return> - <argument index="0" name="render_pipeline" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="render_pipeline" type="RID" /> <description> </description> </method> <method name="sampler_create"> - <return type="RID"> - </return> - <argument index="0" name="state" type="RDSamplerState"> - </argument> + <return type="RID" /> + <argument index="0" name="state" type="RDSamplerState" /> <description> </description> </method> <method name="screen_get_framebuffer_format" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="screen_get_height" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="screen" type="int" default="0" /> <description> </description> </method> <method name="screen_get_width" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="screen" type="int" default="0" /> <description> </description> </method> <method name="set_resource_name"> - <return type="void"> - </return> - <argument index="0" name="id" type="RID"> - </argument> - <argument index="1" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="RID" /> + <argument index="1" name="name" type="String" /> <description> </description> </method> <method name="shader_compile_binary_from_spirv"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="spirv_data" type="RDShaderSPIRV"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="spirv_data" type="RDShaderSPIRV" /> <description> </description> </method> <method name="shader_compile_spirv_from_source"> - <return type="RDShaderSPIRV"> - </return> - <argument index="0" name="shader_source" type="RDShaderSource"> - </argument> - <argument index="1" name="allow_cache" type="bool" default="true"> - </argument> + <return type="RDShaderSPIRV" /> + <argument index="0" name="shader_source" type="RDShaderSource" /> + <argument index="1" name="allow_cache" type="bool" default="true" /> <description> </description> </method> <method name="shader_create_from_bytecode"> - <return type="RID"> - </return> - <argument index="0" name="binary_data" type="PackedByteArray"> - </argument> + <return type="RID" /> + <argument index="0" name="binary_data" type="PackedByteArray" /> <description> </description> </method> <method name="shader_create_from_spirv"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="spirv_data" type="RDShaderSPIRV"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="spirv_data" type="RDShaderSPIRV" /> <description> </description> </method> <method name="shader_get_vertex_input_attribute_mask"> - <return type="int"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="shader" type="RID" /> <description> </description> </method> <method name="storage_buffer_create"> - <return type="RID"> - </return> - <argument index="0" name="size_bytes" type="int"> - </argument> - <argument index="1" name="data" type="PackedByteArray" default="PackedByteArray()"> - </argument> - <argument index="2" name="usage" type="int" default="0"> - </argument> + <return type="RID" /> + <argument index="0" name="size_bytes" type="int" /> + <argument index="1" name="data" type="PackedByteArray" default="PackedByteArray()" /> + <argument index="2" name="usage" type="int" default="0" /> <description> </description> </method> <method name="submit"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="sync"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="texture_buffer_create"> - <return type="RID"> - </return> - <argument index="0" name="size_bytes" type="int"> - </argument> - <argument index="1" name="format" type="int" enum="RenderingDevice.DataFormat"> - </argument> - <argument index="2" name="data" type="PackedByteArray" default="PackedByteArray()"> - </argument> + <return type="RID" /> + <argument index="0" name="size_bytes" type="int" /> + <argument index="1" name="format" type="int" enum="RenderingDevice.DataFormat" /> + <argument index="2" name="data" type="PackedByteArray" default="PackedByteArray()" /> <description> </description> </method> <method name="texture_clear"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <argument index="2" name="base_mipmap" type="int"> - </argument> - <argument index="3" name="mipmap_count" type="int"> - </argument> - <argument index="4" name="base_layer" type="int"> - </argument> - <argument index="5" name="layer_count" type="int"> - </argument> - <argument index="6" name="post_barrier" type="int" default="7"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="color" type="Color" /> + <argument index="2" name="base_mipmap" type="int" /> + <argument index="3" name="mipmap_count" type="int" /> + <argument index="4" name="base_layer" type="int" /> + <argument index="5" name="layer_count" type="int" /> + <argument index="6" name="post_barrier" type="int" default="7" /> <description> </description> </method> <method name="texture_copy"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="from_texture" type="RID"> - </argument> - <argument index="1" name="to_texture" type="RID"> - </argument> - <argument index="2" name="from_pos" type="Vector3"> - </argument> - <argument index="3" name="to_pos" type="Vector3"> - </argument> - <argument index="4" name="size" type="Vector3"> - </argument> - <argument index="5" name="src_mipmap" type="int"> - </argument> - <argument index="6" name="dst_mipmap" type="int"> - </argument> - <argument index="7" name="src_layer" type="int"> - </argument> - <argument index="8" name="dst_layer" type="int"> - </argument> - <argument index="9" name="post_barrier" type="int" default="7"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="from_texture" type="RID" /> + <argument index="1" name="to_texture" type="RID" /> + <argument index="2" name="from_pos" type="Vector3" /> + <argument index="3" name="to_pos" type="Vector3" /> + <argument index="4" name="size" type="Vector3" /> + <argument index="5" name="src_mipmap" type="int" /> + <argument index="6" name="dst_mipmap" type="int" /> + <argument index="7" name="src_layer" type="int" /> + <argument index="8" name="dst_layer" type="int" /> + <argument index="9" name="post_barrier" type="int" default="7" /> <description> </description> </method> <method name="texture_create"> - <return type="RID"> - </return> - <argument index="0" name="format" type="RDTextureFormat"> - </argument> - <argument index="1" name="view" type="RDTextureView"> - </argument> - <argument index="2" name="data" type="PackedByteArray[]" default="[]"> - </argument> + <return type="RID" /> + <argument index="0" name="format" type="RDTextureFormat" /> + <argument index="1" name="view" type="RDTextureView" /> + <argument index="2" name="data" type="PackedByteArray[]" default="[]" /> <description> </description> </method> <method name="texture_create_shared"> - <return type="RID"> - </return> - <argument index="0" name="view" type="RDTextureView"> - </argument> - <argument index="1" name="with_texture" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="view" type="RDTextureView" /> + <argument index="1" name="with_texture" type="RID" /> <description> </description> </method> <method name="texture_create_shared_from_slice"> - <return type="RID"> - </return> - <argument index="0" name="view" type="RDTextureView"> - </argument> - <argument index="1" name="with_texture" type="RID"> - </argument> - <argument index="2" name="layer" type="int"> - </argument> - <argument index="3" name="mipmap" type="int"> - </argument> - <argument index="4" name="slice_type" type="int" enum="RenderingDevice.TextureSliceType" default="0"> - </argument> + <return type="RID" /> + <argument index="0" name="view" type="RDTextureView" /> + <argument index="1" name="with_texture" type="RID" /> + <argument index="2" name="layer" type="int" /> + <argument index="3" name="mipmap" type="int" /> + <argument index="4" name="slice_type" type="int" enum="RenderingDevice.TextureSliceType" default="0" /> <description> </description> </method> <method name="texture_get_data"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="layer" type="int"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="layer" type="int" /> <description> </description> </method> <method name="texture_is_format_supported_for_usage" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="format" type="int" enum="RenderingDevice.DataFormat"> - </argument> - <argument index="1" name="usage_flags" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="format" type="int" enum="RenderingDevice.DataFormat" /> + <argument index="1" name="usage_flags" type="int" /> <description> </description> </method> <method name="texture_is_shared"> - <return type="bool"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="texture" type="RID" /> <description> </description> </method> <method name="texture_is_valid"> - <return type="bool"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="texture" type="RID" /> <description> </description> </method> <method name="texture_resolve_multisample"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="from_texture" type="RID"> - </argument> - <argument index="1" name="to_texture" type="RID"> - </argument> - <argument index="2" name="post_barrier" type="int" default="7"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="from_texture" type="RID" /> + <argument index="1" name="to_texture" type="RID" /> + <argument index="2" name="post_barrier" type="int" default="7" /> <description> </description> </method> <method name="texture_update"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="layer" type="int"> - </argument> - <argument index="2" name="data" type="PackedByteArray"> - </argument> - <argument index="3" name="post_barrier" type="int" default="7"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="layer" type="int" /> + <argument index="2" name="data" type="PackedByteArray" /> + <argument index="3" name="post_barrier" type="int" default="7" /> <description> </description> </method> <method name="uniform_buffer_create"> - <return type="RID"> - </return> - <argument index="0" name="size_bytes" type="int"> - </argument> - <argument index="1" name="data" type="PackedByteArray" default="PackedByteArray()"> - </argument> + <return type="RID" /> + <argument index="0" name="size_bytes" type="int" /> + <argument index="1" name="data" type="PackedByteArray" default="PackedByteArray()" /> <description> </description> </method> <method name="uniform_set_create"> - <return type="RID"> - </return> - <argument index="0" name="uniforms" type="Array"> - </argument> - <argument index="1" name="shader" type="RID"> - </argument> - <argument index="2" name="shader_set" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="uniforms" type="Array" /> + <argument index="1" name="shader" type="RID" /> + <argument index="2" name="shader_set" type="int" /> <description> </description> </method> <method name="uniform_set_is_valid"> - <return type="bool"> - </return> - <argument index="0" name="uniform_set" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="uniform_set" type="RID" /> <description> </description> </method> <method name="vertex_buffer_create"> - <return type="RID"> - </return> - <argument index="0" name="size_bytes" type="int"> - </argument> - <argument index="1" name="data" type="PackedByteArray" default="PackedByteArray()"> - </argument> - <argument index="2" name="use_as_storage" type="bool" default="false"> - </argument> + <return type="RID" /> + <argument index="0" name="size_bytes" type="int" /> + <argument index="1" name="data" type="PackedByteArray" default="PackedByteArray()" /> + <argument index="2" name="use_as_storage" type="bool" default="false" /> <description> </description> </method> <method name="vertex_format_create"> - <return type="int"> - </return> - <argument index="0" name="vertex_descriptions" type="RDVertexAttribute[]"> - </argument> + <return type="int" /> + <argument index="0" name="vertex_descriptions" type="RDVertexAttribute[]" /> <description> </description> </method> diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml index 31ced67ac4..df8bfb7e34 100644 --- a/doc/classes/RenderingServer.xml +++ b/doc/classes/RenderingServer.xml @@ -19,1207 +19,840 @@ </tutorials> <methods> <method name="bake_render_uv2"> - <return type="Image[]"> - </return> - <argument index="0" name="base" type="RID"> - </argument> - <argument index="1" name="material_overrides" type="Array"> - </argument> - <argument index="2" name="image_size" type="Vector2i"> - </argument> + <return type="Image[]" /> + <argument index="0" name="base" type="RID" /> + <argument index="1" name="material_overrides" type="Array" /> + <argument index="2" name="image_size" type="Vector2i" /> <description> </description> </method> <method name="camera_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a camera and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]camera_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="camera_effects_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="camera_effects_set_custom_exposure"> - <return type="void"> - </return> - <argument index="0" name="camera_effects" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="exposure" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="camera_effects" type="RID" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="exposure" type="float" /> <description> </description> </method> <method name="camera_effects_set_dof_blur"> - <return type="void"> - </return> - <argument index="0" name="camera_effects" type="RID"> - </argument> - <argument index="1" name="far_enable" type="bool"> - </argument> - <argument index="2" name="far_distance" type="float"> - </argument> - <argument index="3" name="far_transition" type="float"> - </argument> - <argument index="4" name="near_enable" type="bool"> - </argument> - <argument index="5" name="near_distance" type="float"> - </argument> - <argument index="6" name="near_transition" type="float"> - </argument> - <argument index="7" name="amount" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="camera_effects" type="RID" /> + <argument index="1" name="far_enable" type="bool" /> + <argument index="2" name="far_distance" type="float" /> + <argument index="3" name="far_transition" type="float" /> + <argument index="4" name="near_enable" type="bool" /> + <argument index="5" name="near_distance" type="float" /> + <argument index="6" name="near_transition" type="float" /> + <argument index="7" name="amount" type="float" /> <description> </description> </method> <method name="camera_effects_set_dof_blur_bokeh_shape"> - <return type="void"> - </return> - <argument index="0" name="shape" type="int" enum="RenderingServer.DOFBokehShape"> - </argument> + <return type="void" /> + <argument index="0" name="shape" type="int" enum="RenderingServer.DOFBokehShape" /> <description> </description> </method> <method name="camera_effects_set_dof_blur_quality"> - <return type="void"> - </return> - <argument index="0" name="quality" type="int" enum="RenderingServer.DOFBlurQuality"> - </argument> - <argument index="1" name="use_jitter" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="quality" type="int" enum="RenderingServer.DOFBlurQuality" /> + <argument index="1" name="use_jitter" type="bool" /> <description> </description> </method> <method name="camera_set_camera_effects"> - <return type="void"> - </return> - <argument index="0" name="camera" type="RID"> - </argument> - <argument index="1" name="effects" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="camera" type="RID" /> + <argument index="1" name="effects" type="RID" /> <description> </description> </method> <method name="camera_set_cull_mask"> - <return type="void"> - </return> - <argument index="0" name="camera" type="RID"> - </argument> - <argument index="1" name="layers" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="camera" type="RID" /> + <argument index="1" name="layers" type="int" /> <description> Sets the cull mask associated with this camera. The cull mask describes which 3D layers are rendered by this camera. Equivalent to [member Camera3D.cull_mask]. </description> </method> <method name="camera_set_environment"> - <return type="void"> - </return> - <argument index="0" name="camera" type="RID"> - </argument> - <argument index="1" name="env" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="camera" type="RID" /> + <argument index="1" name="env" type="RID" /> <description> Sets the environment used by this camera. Equivalent to [member Camera3D.environment]. </description> </method> <method name="camera_set_frustum"> - <return type="void"> - </return> - <argument index="0" name="camera" type="RID"> - </argument> - <argument index="1" name="size" type="float"> - </argument> - <argument index="2" name="offset" type="Vector2"> - </argument> - <argument index="3" name="z_near" type="float"> - </argument> - <argument index="4" name="z_far" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="camera" type="RID" /> + <argument index="1" name="size" type="float" /> + <argument index="2" name="offset" type="Vector2" /> + <argument index="3" name="z_near" type="float" /> + <argument index="4" name="z_far" type="float" /> <description> Sets camera to use frustum projection. This mode allows adjusting the [code]offset[/code] argument to create "tilted frustum" effects. </description> </method> <method name="camera_set_orthogonal"> - <return type="void"> - </return> - <argument index="0" name="camera" type="RID"> - </argument> - <argument index="1" name="size" type="float"> - </argument> - <argument index="2" name="z_near" type="float"> - </argument> - <argument index="3" name="z_far" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="camera" type="RID" /> + <argument index="1" name="size" type="float" /> + <argument index="2" name="z_near" type="float" /> + <argument index="3" name="z_far" type="float" /> <description> Sets camera to use orthogonal projection, also known as orthographic projection. Objects remain the same size on the screen no matter how far away they are. </description> </method> <method name="camera_set_perspective"> - <return type="void"> - </return> - <argument index="0" name="camera" type="RID"> - </argument> - <argument index="1" name="fovy_degrees" type="float"> - </argument> - <argument index="2" name="z_near" type="float"> - </argument> - <argument index="3" name="z_far" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="camera" type="RID" /> + <argument index="1" name="fovy_degrees" type="float" /> + <argument index="2" name="z_near" type="float" /> + <argument index="3" name="z_far" type="float" /> <description> Sets camera to use perspective projection. Objects on the screen becomes smaller when they are far away. </description> </method> <method name="camera_set_transform"> - <return type="void"> - </return> - <argument index="0" name="camera" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="camera" type="RID" /> + <argument index="1" name="transform" type="Transform3D" /> <description> Sets [Transform3D] of camera. </description> </method> <method name="camera_set_use_vertical_aspect"> - <return type="void"> - </return> - <argument index="0" name="camera" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="camera" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], preserves the horizontal aspect ratio which is equivalent to [constant Camera3D.KEEP_WIDTH]. If [code]false[/code], preserves the vertical aspect ratio which is equivalent to [constant Camera3D.KEEP_HEIGHT]. </description> </method> <method name="canvas_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a canvas and returns the assigned [RID]. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="canvas_item_add_circle"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="radius" type="float"> - </argument> - <argument index="3" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="radius" type="float" /> + <argument index="3" name="color" type="Color" /> <description> </description> </method> <method name="canvas_item_add_clip_ignore"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="ignore" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="ignore" type="bool" /> <description> </description> </method> <method name="canvas_item_add_line"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="from" type="Vector2"> - </argument> - <argument index="2" name="to" type="Vector2"> - </argument> - <argument index="3" name="color" type="Color"> - </argument> - <argument index="4" name="width" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="from" type="Vector2" /> + <argument index="2" name="to" type="Vector2" /> + <argument index="3" name="color" type="Color" /> + <argument index="4" name="width" type="float" default="1.0" /> <description> </description> </method> <method name="canvas_item_add_mesh"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="mesh" type="RID"> - </argument> - <argument index="2" name="transform" type="Transform2D" default="Transform2D(1, 0, 0, 1, 0, 0)"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="4" name="texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="mesh" type="RID" /> + <argument index="2" name="transform" type="Transform2D" default="Transform2D(1, 0, 0, 1, 0, 0)" /> + <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="4" name="texture" type="RID" /> <description> </description> </method> <method name="canvas_item_add_multimesh"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="mesh" type="RID"> - </argument> - <argument index="2" name="texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="mesh" type="RID" /> + <argument index="2" name="texture" type="RID" /> <description> </description> </method> <method name="canvas_item_add_nine_patch"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <argument index="2" name="source" type="Rect2"> - </argument> - <argument index="3" name="texture" type="RID"> - </argument> - <argument index="4" name="topleft" type="Vector2"> - </argument> - <argument index="5" name="bottomright" type="Vector2"> - </argument> - <argument index="6" name="x_axis_mode" type="int" enum="RenderingServer.NinePatchAxisMode" default="0"> - </argument> - <argument index="7" name="y_axis_mode" type="int" enum="RenderingServer.NinePatchAxisMode" default="0"> - </argument> - <argument index="8" name="draw_center" type="bool" default="true"> - </argument> - <argument index="9" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="rect" type="Rect2" /> + <argument index="2" name="source" type="Rect2" /> + <argument index="3" name="texture" type="RID" /> + <argument index="4" name="topleft" type="Vector2" /> + <argument index="5" name="bottomright" type="Vector2" /> + <argument index="6" name="x_axis_mode" type="int" enum="RenderingServer.NinePatchAxisMode" default="0" /> + <argument index="7" name="y_axis_mode" type="int" enum="RenderingServer.NinePatchAxisMode" default="0" /> + <argument index="8" name="draw_center" type="bool" default="true" /> + <argument index="9" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> <description> </description> </method> <method name="canvas_item_add_particles"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="particles" type="RID"> - </argument> - <argument index="2" name="texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="particles" type="RID" /> + <argument index="2" name="texture" type="RID" /> <description> </description> </method> <method name="canvas_item_add_polygon"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="points" type="PackedVector2Array"> - </argument> - <argument index="2" name="colors" type="PackedColorArray"> - </argument> - <argument index="3" name="uvs" type="PackedVector2Array" default="PackedVector2Array()"> - </argument> - <argument index="4" name="texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="points" type="PackedVector2Array" /> + <argument index="2" name="colors" type="PackedColorArray" /> + <argument index="3" name="uvs" type="PackedVector2Array" default="PackedVector2Array()" /> + <argument index="4" name="texture" type="RID" /> <description> </description> </method> <method name="canvas_item_add_polyline"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="points" type="PackedVector2Array"> - </argument> - <argument index="2" name="colors" type="PackedColorArray"> - </argument> - <argument index="3" name="width" type="float" default="1.0"> - </argument> - <argument index="4" name="antialiased" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="points" type="PackedVector2Array" /> + <argument index="2" name="colors" type="PackedColorArray" /> + <argument index="3" name="width" type="float" default="1.0" /> + <argument index="4" name="antialiased" type="bool" default="false" /> <description> </description> </method> <method name="canvas_item_add_primitive"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="points" type="PackedVector2Array"> - </argument> - <argument index="2" name="colors" type="PackedColorArray"> - </argument> - <argument index="3" name="uvs" type="PackedVector2Array"> - </argument> - <argument index="4" name="texture" type="RID"> - </argument> - <argument index="5" name="width" type="float" default="1.0"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="points" type="PackedVector2Array" /> + <argument index="2" name="colors" type="PackedColorArray" /> + <argument index="3" name="uvs" type="PackedVector2Array" /> + <argument index="4" name="texture" type="RID" /> + <argument index="5" name="width" type="float" default="1.0" /> <description> </description> </method> <method name="canvas_item_add_rect"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="rect" type="Rect2" /> + <argument index="2" name="color" type="Color" /> <description> </description> </method> <method name="canvas_item_add_set_transform"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="transform" type="Transform2D" /> <description> </description> </method> <method name="canvas_item_add_texture_rect"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <argument index="2" name="texture" type="RID"> - </argument> - <argument index="3" name="tile" type="bool" default="false"> - </argument> - <argument index="4" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="5" name="transpose" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="rect" type="Rect2" /> + <argument index="2" name="texture" type="RID" /> + <argument index="3" name="tile" type="bool" default="false" /> + <argument index="4" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="5" name="transpose" type="bool" default="false" /> <description> </description> </method> <method name="canvas_item_add_texture_rect_region"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <argument index="2" name="texture" type="RID"> - </argument> - <argument index="3" name="src_rect" type="Rect2"> - </argument> - <argument index="4" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="5" name="transpose" type="bool" default="false"> - </argument> - <argument index="6" name="clip_uv" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="rect" type="Rect2" /> + <argument index="2" name="texture" type="RID" /> + <argument index="3" name="src_rect" type="Rect2" /> + <argument index="4" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="5" name="transpose" type="bool" default="false" /> + <argument index="6" name="clip_uv" type="bool" default="true" /> <description> </description> </method> <method name="canvas_item_add_triangle_array"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="indices" type="PackedInt32Array"> - </argument> - <argument index="2" name="points" type="PackedVector2Array"> - </argument> - <argument index="3" name="colors" type="PackedColorArray"> - </argument> - <argument index="4" name="uvs" type="PackedVector2Array" default="PackedVector2Array()"> - </argument> - <argument index="5" name="bones" type="PackedInt32Array" default="PackedInt32Array()"> - </argument> - <argument index="6" name="weights" type="PackedFloat32Array" default="PackedFloat32Array()"> - </argument> - <argument index="7" name="texture" type="RID"> - </argument> - <argument index="8" name="count" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="indices" type="PackedInt32Array" /> + <argument index="2" name="points" type="PackedVector2Array" /> + <argument index="3" name="colors" type="PackedColorArray" /> + <argument index="4" name="uvs" type="PackedVector2Array" default="PackedVector2Array()" /> + <argument index="5" name="bones" type="PackedInt32Array" default="PackedInt32Array()" /> + <argument index="6" name="weights" type="PackedFloat32Array" default="PackedFloat32Array()" /> + <argument index="7" name="texture" type="RID" /> + <argument index="8" name="count" type="int" default="-1" /> <description> </description> </method> <method name="canvas_item_clear"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> <description> Clears the [CanvasItem] and removes all commands in it. </description> </method> <method name="canvas_item_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="canvas_item_set_canvas_group_mode"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.CanvasGroupMode"> - </argument> - <argument index="2" name="clear_margin" type="float" default="5.0"> - </argument> - <argument index="3" name="fit_empty" type="bool" default="false"> - </argument> - <argument index="4" name="fit_margin" type="float" default="0.0"> - </argument> - <argument index="5" name="blur_mipmaps" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.CanvasGroupMode" /> + <argument index="2" name="clear_margin" type="float" default="5.0" /> + <argument index="3" name="fit_empty" type="bool" default="false" /> + <argument index="4" name="fit_margin" type="float" default="0.0" /> + <argument index="5" name="blur_mipmaps" type="bool" default="false" /> <description> </description> </method> <method name="canvas_item_set_clip"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="clip" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="clip" type="bool" /> <description> </description> </method> <method name="canvas_item_set_copy_to_backbuffer"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> - <argument index="2" name="rect" type="Rect2"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="enabled" type="bool" /> + <argument index="2" name="rect" type="Rect2" /> <description> Sets the [CanvasItem] to copy a rect to the backbuffer. </description> </method> <method name="canvas_item_set_custom_rect"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="use_custom_rect" type="bool"> - </argument> - <argument index="2" name="rect" type="Rect2" default="Rect2(0, 0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="use_custom_rect" type="bool" /> + <argument index="2" name="rect" type="Rect2" default="Rect2(0, 0, 0, 0)" /> <description> </description> </method> <method name="canvas_item_set_default_texture_filter"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="filter" type="int" enum="RenderingServer.CanvasItemTextureFilter"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="filter" type="int" enum="RenderingServer.CanvasItemTextureFilter" /> <description> </description> </method> <method name="canvas_item_set_default_texture_repeat"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="repeat" type="int" enum="RenderingServer.CanvasItemTextureRepeat"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="repeat" type="int" enum="RenderingServer.CanvasItemTextureRepeat" /> <description> </description> </method> <method name="canvas_item_set_distance_field_mode"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> </description> </method> <method name="canvas_item_set_draw_behind_parent"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> </description> </method> <method name="canvas_item_set_draw_index"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="index" type="int" /> <description> Sets the index for the [CanvasItem]. </description> </method> <method name="canvas_item_set_light_mask"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> </description> </method> <method name="canvas_item_set_material"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="material" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="material" type="RID" /> <description> Sets a new material to the [CanvasItem]. </description> </method> <method name="canvas_item_set_modulate"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> </description> </method> <method name="canvas_item_set_parent"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="parent" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="parent" type="RID" /> <description> </description> </method> <method name="canvas_item_set_self_modulate"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> </description> </method> <method name="canvas_item_set_sort_children_by_y"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> </description> </method> <method name="canvas_item_set_transform"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="transform" type="Transform2D" /> <description> </description> </method> <method name="canvas_item_set_use_parent_material"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> Sets if the [CanvasItem] uses its parent's material. </description> </method> <method name="canvas_item_set_visibility_notifier"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="area" type="Rect2"> - </argument> - <argument index="3" name="enter_callable" type="Callable"> - </argument> - <argument index="4" name="exit_callable" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="area" type="Rect2" /> + <argument index="3" name="enter_callable" type="Callable" /> + <argument index="4" name="exit_callable" type="Callable" /> <description> </description> </method> <method name="canvas_item_set_visible"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="visible" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="visible" type="bool" /> <description> </description> </method> <method name="canvas_item_set_z_as_relative_to_parent"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> If this is enabled, the Z index of the parent will be added to the children's Z index. </description> </method> <method name="canvas_item_set_z_index"> - <return type="void"> - </return> - <argument index="0" name="item" type="RID"> - </argument> - <argument index="1" name="z_index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="z_index" type="int" /> <description> Sets the [CanvasItem]'s Z index, i.e. its draw order (lower indexes are drawn first). </description> </method> <method name="canvas_light_attach_to_canvas"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="canvas" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="canvas" type="RID" /> <description> Attaches the canvas light to the canvas. Removes it from its previous canvas. </description> </method> <method name="canvas_light_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a canvas light and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_light_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="canvas_light_occluder_attach_to_canvas"> - <return type="void"> - </return> - <argument index="0" name="occluder" type="RID"> - </argument> - <argument index="1" name="canvas" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="occluder" type="RID" /> + <argument index="1" name="canvas" type="RID" /> <description> Attaches a light occluder to the canvas. Removes it from its previous canvas. </description> </method> <method name="canvas_light_occluder_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a light occluder and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_light_ocluder_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="canvas_light_occluder_set_as_sdf_collision"> - <return type="void"> - </return> - <argument index="0" name="occluder" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="occluder" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> <method name="canvas_light_occluder_set_enabled"> - <return type="void"> - </return> - <argument index="0" name="occluder" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="occluder" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> Enables or disables light occluder. </description> </method> <method name="canvas_light_occluder_set_light_mask"> - <return type="void"> - </return> - <argument index="0" name="occluder" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="occluder" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> The light mask. See [LightOccluder2D] for more information on light masks. </description> </method> <method name="canvas_light_occluder_set_polygon"> - <return type="void"> - </return> - <argument index="0" name="occluder" type="RID"> - </argument> - <argument index="1" name="polygon" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="occluder" type="RID" /> + <argument index="1" name="polygon" type="RID" /> <description> Sets a light occluder's polygon. </description> </method> <method name="canvas_light_occluder_set_transform"> - <return type="void"> - </return> - <argument index="0" name="occluder" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="occluder" type="RID" /> + <argument index="1" name="transform" type="Transform2D" /> <description> Sets a light occluder's [Transform2D]. </description> </method> <method name="canvas_light_set_color"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> Sets the color for a light. </description> </method> <method name="canvas_light_set_enabled"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> Enables or disables a canvas light. </description> </method> <method name="canvas_light_set_energy"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="energy" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="energy" type="float" /> <description> Sets a canvas light's energy. </description> </method> <method name="canvas_light_set_height"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="height" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="height" type="float" /> <description> Sets a canvas light's height. </description> </method> <method name="canvas_light_set_item_cull_mask"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> The light mask. See [LightOccluder2D] for more information on light masks. </description> </method> <method name="canvas_light_set_item_shadow_cull_mask"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> The binary mask used to determine which layers this canvas light's shadows affects. See [LightOccluder2D] for more information on light masks. </description> </method> <method name="canvas_light_set_layer_range"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="min_layer" type="int"> - </argument> - <argument index="2" name="max_layer" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="min_layer" type="int" /> + <argument index="2" name="max_layer" type="int" /> <description> The layer range that gets rendered with this light. </description> </method> <method name="canvas_light_set_mode"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.CanvasLightMode"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.CanvasLightMode" /> <description> The mode of the light, see [enum CanvasLightMode] constants. </description> </method> <method name="canvas_light_set_shadow_color"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> Sets the color of the canvas light's shadow. </description> </method> <method name="canvas_light_set_shadow_enabled"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> Enables or disables the canvas light's shadow. </description> </method> <method name="canvas_light_set_shadow_filter"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="filter" type="int" enum="RenderingServer.CanvasLightShadowFilter"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="filter" type="int" enum="RenderingServer.CanvasLightShadowFilter" /> <description> Sets the canvas light's shadow's filter, see [enum CanvasLightShadowFilter] constants. </description> </method> <method name="canvas_light_set_shadow_smooth"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="smooth" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="smooth" type="float" /> <description> Smoothens the shadow. The lower, the smoother. </description> </method> <method name="canvas_light_set_texture"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="texture" type="RID" /> <description> Sets the texture to be used by a [PointLight2D]. Equivalent to [member PointLight2D.texture]. </description> </method> <method name="canvas_light_set_texture_offset"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="offset" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="offset" type="Vector2" /> <description> Sets the offset of a [PointLight2D]'s texture. Equivalent to [member PointLight2D.offset]. </description> </method> <method name="canvas_light_set_texture_scale"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="scale" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="scale" type="float" /> <description> Sets the scale factor of a [PointLight2D]'s texture. Equivalent to [member PointLight2D.texture_scale]. </description> </method> <method name="canvas_light_set_transform"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="transform" type="Transform2D" /> <description> Sets the canvas light's [Transform2D]. </description> </method> <method name="canvas_light_set_z_range"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="min_z" type="int"> - </argument> - <argument index="2" name="max_z" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="min_z" type="int" /> + <argument index="2" name="max_z" type="int" /> <description> Sets the Z range of objects that will be affected by this light. Equivalent to [member Light2D.range_z_min] and [member Light2D.range_z_max]. </description> </method> <method name="canvas_occluder_polygon_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a new light occluder polygon and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_occluder_polygon_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="canvas_occluder_polygon_set_cull_mode"> - <return type="void"> - </return> - <argument index="0" name="occluder_polygon" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.CanvasOccluderPolygonCullMode"> - </argument> + <return type="void" /> + <argument index="0" name="occluder_polygon" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.CanvasOccluderPolygonCullMode" /> <description> Sets an occluder polygons cull mode. See [enum CanvasOccluderPolygonCullMode] constants. </description> </method> <method name="canvas_occluder_polygon_set_shape"> - <return type="void"> - </return> - <argument index="0" name="occluder_polygon" type="RID"> - </argument> - <argument index="1" name="shape" type="PackedVector2Array"> - </argument> - <argument index="2" name="closed" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="occluder_polygon" type="RID" /> + <argument index="1" name="shape" type="PackedVector2Array" /> + <argument index="2" name="closed" type="bool" /> <description> Sets the shape of the occluder polygon. </description> </method> <method name="canvas_set_disable_scale"> - <return type="void"> - </return> - <argument index="0" name="disable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="disable" type="bool" /> <description> </description> </method> <method name="canvas_set_item_mirroring"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="item" type="RID"> - </argument> - <argument index="2" name="mirroring" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="item" type="RID" /> + <argument index="2" name="mirroring" type="Vector2" /> <description> A copy of the canvas item will be drawn with a local offset of the mirroring [Vector2]. </description> </method> <method name="canvas_set_modulate"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> Modulates all colors in the given canvas. </description> </method> <method name="canvas_set_shadow_texture_size"> - <return type="void"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="int" /> <description> </description> </method> <method name="canvas_texture_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="canvas_texture_set_channel"> - <return type="void"> - </return> - <argument index="0" name="canvas_texture" type="RID"> - </argument> - <argument index="1" name="channel" type="int" enum="RenderingServer.CanvasTextureChannel"> - </argument> - <argument index="2" name="texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_texture" type="RID" /> + <argument index="1" name="channel" type="int" enum="RenderingServer.CanvasTextureChannel" /> + <argument index="2" name="texture" type="RID" /> <description> </description> </method> <method name="canvas_texture_set_shading_parameters"> - <return type="void"> - </return> - <argument index="0" name="canvas_texture" type="RID"> - </argument> - <argument index="1" name="base_color" type="Color"> - </argument> - <argument index="2" name="shininess" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_texture" type="RID" /> + <argument index="1" name="base_color" type="Color" /> + <argument index="2" name="shininess" type="float" /> <description> </description> </method> <method name="canvas_texture_set_texture_filter"> - <return type="void"> - </return> - <argument index="0" name="canvas_texture" type="RID"> - </argument> - <argument index="1" name="filter" type="int" enum="RenderingServer.CanvasItemTextureFilter"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_texture" type="RID" /> + <argument index="1" name="filter" type="int" enum="RenderingServer.CanvasItemTextureFilter" /> <description> </description> </method> <method name="canvas_texture_set_texture_repeat"> - <return type="void"> - </return> - <argument index="0" name="canvas_texture" type="RID"> - </argument> - <argument index="1" name="repeat" type="int" enum="RenderingServer.CanvasItemTextureRepeat"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_texture" type="RID" /> + <argument index="1" name="repeat" type="int" enum="RenderingServer.CanvasItemTextureRepeat" /> <description> </description> </method> <method name="create_local_rendering_device" qualifiers="const"> - <return type="RenderingDevice"> - </return> + <return type="RenderingDevice" /> <description> </description> </method> <method name="decal_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="decal_set_albedo_mix"> - <return type="void"> - </return> - <argument index="0" name="decal" type="RID"> - </argument> - <argument index="1" name="albedo_mix" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="decal" type="RID" /> + <argument index="1" name="albedo_mix" type="float" /> <description> </description> </method> <method name="decal_set_cull_mask"> - <return type="void"> - </return> - <argument index="0" name="decal" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="decal" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> </description> </method> <method name="decal_set_distance_fade"> - <return type="void"> - </return> - <argument index="0" name="decal" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> - <argument index="2" name="begin" type="float"> - </argument> - <argument index="3" name="length" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="decal" type="RID" /> + <argument index="1" name="enabled" type="bool" /> + <argument index="2" name="begin" type="float" /> + <argument index="3" name="length" type="float" /> <description> </description> </method> <method name="decal_set_emission_energy"> - <return type="void"> - </return> - <argument index="0" name="decal" type="RID"> - </argument> - <argument index="1" name="energy" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="decal" type="RID" /> + <argument index="1" name="energy" type="float" /> <description> </description> </method> <method name="decal_set_extents"> - <return type="void"> - </return> - <argument index="0" name="decal" type="RID"> - </argument> - <argument index="1" name="extents" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="decal" type="RID" /> + <argument index="1" name="extents" type="Vector3" /> <description> </description> </method> <method name="decal_set_fade"> - <return type="void"> - </return> - <argument index="0" name="decal" type="RID"> - </argument> - <argument index="1" name="above" type="float"> - </argument> - <argument index="2" name="below" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="decal" type="RID" /> + <argument index="1" name="above" type="float" /> + <argument index="2" name="below" type="float" /> <description> </description> </method> <method name="decal_set_modulate"> - <return type="void"> - </return> - <argument index="0" name="decal" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="decal" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> </description> </method> <method name="decal_set_normal_fade"> - <return type="void"> - </return> - <argument index="0" name="decal" type="RID"> - </argument> - <argument index="1" name="fade" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="decal" type="RID" /> + <argument index="1" name="fade" type="float" /> <description> </description> </method> <method name="decal_set_texture"> - <return type="void"> - </return> - <argument index="0" name="decal" type="RID"> - </argument> - <argument index="1" name="type" type="int" enum="RenderingServer.DecalTexture"> - </argument> - <argument index="2" name="texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="decal" type="RID" /> + <argument index="1" name="type" type="int" enum="RenderingServer.DecalTexture" /> + <argument index="2" name="texture" type="RID" /> <description> </description> </method> <method name="decals_set_filter"> - <return type="void"> - </return> - <argument index="0" name="filter" type="int" enum="RenderingServer.DecalFilter"> - </argument> + <return type="void" /> + <argument index="0" name="filter" type="int" enum="RenderingServer.DecalFilter" /> <description> </description> </method> <method name="directional_light_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a directional light and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID can be used in most [code]light_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. @@ -1227,610 +860,423 @@ </description> </method> <method name="directional_shadow_atlas_set_size"> - <return type="void"> - </return> - <argument index="0" name="size" type="int"> - </argument> - <argument index="1" name="is_16bits" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="int" /> + <argument index="1" name="is_16bits" type="bool" /> <description> </description> </method> <method name="directional_shadow_quality_set"> - <return type="void"> - </return> - <argument index="0" name="quality" type="int" enum="RenderingServer.ShadowQuality"> - </argument> + <return type="void" /> + <argument index="0" name="quality" type="int" enum="RenderingServer.ShadowQuality" /> <description> </description> </method> <method name="environment_bake_panorama"> - <return type="Image"> - </return> - <argument index="0" name="environment" type="RID"> - </argument> - <argument index="1" name="bake_irradiance" type="bool"> - </argument> - <argument index="2" name="size" type="Vector2i"> - </argument> + <return type="Image" /> + <argument index="0" name="environment" type="RID" /> + <argument index="1" name="bake_irradiance" type="bool" /> + <argument index="2" name="size" type="Vector2i" /> <description> </description> </method> <method name="environment_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates an environment and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]environment_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="environment_glow_set_use_bicubic_upscale"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> </description> </method> <method name="environment_glow_set_use_high_quality"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> </description> </method> <method name="environment_set_adjustment"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="brightness" type="float"> - </argument> - <argument index="3" name="contrast" type="float"> - </argument> - <argument index="4" name="saturation" type="float"> - </argument> - <argument index="5" name="use_1d_color_correction" type="bool"> - </argument> - <argument index="6" name="color_correction" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="brightness" type="float" /> + <argument index="3" name="contrast" type="float" /> + <argument index="4" name="saturation" type="float" /> + <argument index="5" name="use_1d_color_correction" type="bool" /> + <argument index="6" name="color_correction" type="RID" /> <description> Sets the values to be used with the "Adjustment" post-process effect. See [Environment] for more details. </description> </method> <method name="environment_set_ambient_light"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <argument index="2" name="ambient" type="int" enum="RenderingServer.EnvironmentAmbientSource" default="0"> - </argument> - <argument index="3" name="energy" type="float" default="1.0"> - </argument> - <argument index="4" name="sky_contibution" type="float" default="0.0"> - </argument> - <argument index="5" name="reflection_source" type="int" enum="RenderingServer.EnvironmentReflectionSource" default="0"> - </argument> - <argument index="6" name="ao_color" type="Color" default="Color(0, 0, 0, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="color" type="Color" /> + <argument index="2" name="ambient" type="int" enum="RenderingServer.EnvironmentAmbientSource" default="0" /> + <argument index="3" name="energy" type="float" default="1.0" /> + <argument index="4" name="sky_contibution" type="float" default="0.0" /> + <argument index="5" name="reflection_source" type="int" enum="RenderingServer.EnvironmentReflectionSource" default="0" /> + <argument index="6" name="ao_color" type="Color" default="Color(0, 0, 0, 1)" /> <description> </description> </method> <method name="environment_set_background"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="bg" type="int" enum="RenderingServer.EnvironmentBG"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="bg" type="int" enum="RenderingServer.EnvironmentBG" /> <description> Sets the [i]BGMode[/i] of the environment. Equivalent to [member Environment.background_mode]. </description> </method> <method name="environment_set_bg_color"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> Color displayed for clear areas of the scene (if using Custom color or Color+Sky background modes). </description> </method> <method name="environment_set_bg_energy"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="energy" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="energy" type="float" /> <description> Sets the intensity of the background color. </description> </method> <method name="environment_set_canvas_max_layer"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="max_layer" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="max_layer" type="int" /> <description> Sets the maximum layer to use if using Canvas background mode. </description> </method> <method name="environment_set_fog"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="light_color" type="Color"> - </argument> - <argument index="3" name="light_energy" type="float"> - </argument> - <argument index="4" name="sun_scatter" type="float"> - </argument> - <argument index="5" name="density" type="float"> - </argument> - <argument index="6" name="height" type="float"> - </argument> - <argument index="7" name="height_density" type="float"> - </argument> - <argument index="8" name="aerial_perspective" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="light_color" type="Color" /> + <argument index="3" name="light_energy" type="float" /> + <argument index="4" name="sun_scatter" type="float" /> + <argument index="5" name="density" type="float" /> + <argument index="6" name="height" type="float" /> + <argument index="7" name="height_density" type="float" /> + <argument index="8" name="aerial_perspective" type="float" /> <description> </description> </method> <method name="environment_set_glow"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="levels" type="PackedFloat32Array"> - </argument> - <argument index="3" name="intensity" type="float"> - </argument> - <argument index="4" name="strength" type="float"> - </argument> - <argument index="5" name="mix" type="float"> - </argument> - <argument index="6" name="bloom_threshold" type="float"> - </argument> - <argument index="7" name="blend_mode" type="int" enum="RenderingServer.EnvironmentGlowBlendMode"> - </argument> - <argument index="8" name="hdr_bleed_threshold" type="float"> - </argument> - <argument index="9" name="hdr_bleed_scale" type="float"> - </argument> - <argument index="10" name="hdr_luminance_cap" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="levels" type="PackedFloat32Array" /> + <argument index="3" name="intensity" type="float" /> + <argument index="4" name="strength" type="float" /> + <argument index="5" name="mix" type="float" /> + <argument index="6" name="bloom_threshold" type="float" /> + <argument index="7" name="blend_mode" type="int" enum="RenderingServer.EnvironmentGlowBlendMode" /> + <argument index="8" name="hdr_bleed_threshold" type="float" /> + <argument index="9" name="hdr_bleed_scale" type="float" /> + <argument index="10" name="hdr_luminance_cap" type="float" /> <description> </description> </method> <method name="environment_set_sdfgi"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="cascades" type="int" enum="RenderingServer.EnvironmentSDFGICascades"> - </argument> - <argument index="3" name="min_cell_size" type="float"> - </argument> - <argument index="4" name="y_scale" type="int" enum="RenderingServer.EnvironmentSDFGIYScale"> - </argument> - <argument index="5" name="use_occlusion" type="bool"> - </argument> - <argument index="6" name="bounce_feedback" type="float"> - </argument> - <argument index="7" name="read_sky" type="bool"> - </argument> - <argument index="8" name="energy" type="float"> - </argument> - <argument index="9" name="normal_bias" type="float"> - </argument> - <argument index="10" name="probe_bias" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="cascades" type="int" enum="RenderingServer.EnvironmentSDFGICascades" /> + <argument index="3" name="min_cell_size" type="float" /> + <argument index="4" name="y_scale" type="int" enum="RenderingServer.EnvironmentSDFGIYScale" /> + <argument index="5" name="use_occlusion" type="bool" /> + <argument index="6" name="bounce_feedback" type="float" /> + <argument index="7" name="read_sky" type="bool" /> + <argument index="8" name="energy" type="float" /> + <argument index="9" name="normal_bias" type="float" /> + <argument index="10" name="probe_bias" type="float" /> <description> </description> </method> <method name="environment_set_sdfgi_frames_to_converge"> - <return type="void"> - </return> - <argument index="0" name="frames" type="int" enum="RenderingServer.EnvironmentSDFGIFramesToConverge"> - </argument> + <return type="void" /> + <argument index="0" name="frames" type="int" enum="RenderingServer.EnvironmentSDFGIFramesToConverge" /> <description> </description> </method> <method name="environment_set_sdfgi_frames_to_update_light"> - <return type="void"> - </return> - <argument index="0" name="frames" type="int" enum="RenderingServer.EnvironmentSDFGIFramesToUpdateLight"> - </argument> + <return type="void" /> + <argument index="0" name="frames" type="int" enum="RenderingServer.EnvironmentSDFGIFramesToUpdateLight" /> <description> </description> </method> <method name="environment_set_sdfgi_ray_count"> - <return type="void"> - </return> - <argument index="0" name="ray_count" type="int" enum="RenderingServer.EnvironmentSDFGIRayCount"> - </argument> + <return type="void" /> + <argument index="0" name="ray_count" type="int" enum="RenderingServer.EnvironmentSDFGIRayCount" /> <description> </description> </method> <method name="environment_set_sky"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="sky" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="sky" type="RID" /> <description> Sets the [Sky] to be used as the environment's background when using [i]BGMode[/i] sky. Equivalent to [member Environment.sky]. </description> </method> <method name="environment_set_sky_custom_fov"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="scale" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="scale" type="float" /> <description> Sets a custom field of view for the background [Sky]. Equivalent to [member Environment.sky_custom_fov]. </description> </method> <method name="environment_set_sky_orientation"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="orientation" type="Basis"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="orientation" type="Basis" /> <description> Sets the rotation of the background [Sky] expressed as a [Basis]. Equivalent to [member Environment.sky_rotation], where the rotation vector is used to construct the [Basis]. </description> </method> <method name="environment_set_ssao"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="radius" type="float"> - </argument> - <argument index="3" name="intensity" type="float"> - </argument> - <argument index="4" name="power" type="float"> - </argument> - <argument index="5" name="detail" type="float"> - </argument> - <argument index="6" name="horizon" type="float"> - </argument> - <argument index="7" name="sharpness" type="float"> - </argument> - <argument index="8" name="light_affect" type="float"> - </argument> - <argument index="9" name="ao_channel_affect" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="radius" type="float" /> + <argument index="3" name="intensity" type="float" /> + <argument index="4" name="power" type="float" /> + <argument index="5" name="detail" type="float" /> + <argument index="6" name="horizon" type="float" /> + <argument index="7" name="sharpness" type="float" /> + <argument index="8" name="light_affect" type="float" /> + <argument index="9" name="ao_channel_affect" type="float" /> <description> Sets the variables to be used with the "screen space ambient occlusion" post-process effect. See [Environment] for more details. </description> </method> <method name="environment_set_ssao_quality"> - <return type="void"> - </return> - <argument index="0" name="quality" type="int" enum="RenderingServer.EnvironmentSSAOQuality"> - </argument> - <argument index="1" name="half_size" type="bool"> - </argument> - <argument index="2" name="adaptive_target" type="float"> - </argument> - <argument index="3" name="blur_passes" type="int"> - </argument> - <argument index="4" name="fadeout_from" type="float"> - </argument> - <argument index="5" name="fadeout_to" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="quality" type="int" enum="RenderingServer.EnvironmentSSAOQuality" /> + <argument index="1" name="half_size" type="bool" /> + <argument index="2" name="adaptive_target" type="float" /> + <argument index="3" name="blur_passes" type="int" /> + <argument index="4" name="fadeout_from" type="float" /> + <argument index="5" name="fadeout_to" type="float" /> <description> </description> </method> <method name="environment_set_ssr"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="max_steps" type="int"> - </argument> - <argument index="3" name="fade_in" type="float"> - </argument> - <argument index="4" name="fade_out" type="float"> - </argument> - <argument index="5" name="depth_tolerance" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="max_steps" type="int" /> + <argument index="3" name="fade_in" type="float" /> + <argument index="4" name="fade_out" type="float" /> + <argument index="5" name="depth_tolerance" type="float" /> <description> Sets the variables to be used with the "screen space reflections" post-process effect. See [Environment] for more details. </description> </method> <method name="environment_set_ssr_roughness_quality"> - <return type="void"> - </return> - <argument index="0" name="quality" type="int" enum="RenderingServer.EnvironmentSSRRoughnessQuality"> - </argument> + <return type="void" /> + <argument index="0" name="quality" type="int" enum="RenderingServer.EnvironmentSSRRoughnessQuality" /> <description> </description> </method> <method name="environment_set_tonemap"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="tone_mapper" type="int" enum="RenderingServer.EnvironmentToneMapper"> - </argument> - <argument index="2" name="exposure" type="float"> - </argument> - <argument index="3" name="white" type="float"> - </argument> - <argument index="4" name="auto_exposure" type="bool"> - </argument> - <argument index="5" name="min_luminance" type="float"> - </argument> - <argument index="6" name="max_luminance" type="float"> - </argument> - <argument index="7" name="auto_exp_speed" type="float"> - </argument> - <argument index="8" name="auto_exp_grey" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="tone_mapper" type="int" enum="RenderingServer.EnvironmentToneMapper" /> + <argument index="2" name="exposure" type="float" /> + <argument index="3" name="white" type="float" /> + <argument index="4" name="auto_exposure" type="bool" /> + <argument index="5" name="min_luminance" type="float" /> + <argument index="6" name="max_luminance" type="float" /> + <argument index="7" name="auto_exp_speed" type="float" /> + <argument index="8" name="auto_exp_grey" type="float" /> <description> Sets the variables to be used with the "tonemap" post-process effect. See [Environment] for more details. </description> </method> <method name="environment_set_volumetric_fog"> - <return type="void"> - </return> - <argument index="0" name="env" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="density" type="float"> - </argument> - <argument index="3" name="light" type="Color"> - </argument> - <argument index="4" name="light_energy" type="float"> - </argument> - <argument index="5" name="length" type="float"> - </argument> - <argument index="6" name="p_detail_spread" type="float"> - </argument> - <argument index="7" name="gi_inject" type="float"> - </argument> - <argument index="8" name="temporal_reprojection" type="bool"> - </argument> - <argument index="9" name="temporal_reprojection_amount" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="env" type="RID" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="density" type="float" /> + <argument index="3" name="light" type="Color" /> + <argument index="4" name="light_energy" type="float" /> + <argument index="5" name="length" type="float" /> + <argument index="6" name="p_detail_spread" type="float" /> + <argument index="7" name="gi_inject" type="float" /> + <argument index="8" name="temporal_reprojection" type="bool" /> + <argument index="9" name="temporal_reprojection_amount" type="float" /> <description> </description> </method> <method name="environment_set_volumetric_fog_filter_active"> - <return type="void"> - </return> - <argument index="0" name="active" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="active" type="bool" /> <description> </description> </method> <method name="environment_set_volumetric_fog_volume_size"> - <return type="void"> - </return> - <argument index="0" name="size" type="int"> - </argument> - <argument index="1" name="depth" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="int" /> + <argument index="1" name="depth" type="int" /> <description> </description> </method> <method name="force_draw"> - <return type="void"> - </return> - <argument index="0" name="swap_buffers" type="bool" default="true"> - </argument> - <argument index="1" name="frame_step" type="float" default="0.0"> - </argument> + <return type="void" /> + <argument index="0" name="swap_buffers" type="bool" default="true" /> + <argument index="1" name="frame_step" type="float" default="0.0" /> <description> </description> </method> <method name="force_sync"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="free_rid"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Tries to free an object in the RenderingServer. </description> </method> <method name="get_frame_setup_time_cpu" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> </description> </method> <method name="get_rendering_info"> - <return type="int"> - </return> - <argument index="0" name="info" type="int" enum="RenderingServer.RenderingInfo"> - </argument> + <return type="int" /> + <argument index="0" name="info" type="int" enum="RenderingServer.RenderingInfo" /> <description> </description> </method> <method name="get_test_cube"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the id of the test cube. Creates one if none exists. </description> </method> <method name="get_test_texture"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the id of the test texture. Creates one if none exists. </description> </method> <method name="get_video_adapter_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the name of the video adapter (e.g. "GeForce GTX 1080/PCIe/SSE2"). [b]Note:[/b] When running a headless or server binary, this function returns an empty string. </description> </method> <method name="get_video_adapter_vendor" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the vendor of the video adapter (e.g. "NVIDIA Corporation"). [b]Note:[/b] When running a headless or server binary, this function returns an empty string. </description> </method> <method name="get_white_texture"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the id of a white texture. Creates one if none exists. </description> </method> <method name="global_variable_add"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="type" type="int" enum="RenderingServer.GlobalVariableType"> - </argument> - <argument index="2" name="default_value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="type" type="int" enum="RenderingServer.GlobalVariableType" /> + <argument index="2" name="default_value" type="Variant" /> <description> </description> </method> <method name="global_variable_get" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="name" type="StringName" /> <description> </description> </method> <method name="global_variable_get_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> </description> </method> <method name="global_variable_get_type" qualifiers="const"> - <return type="int" enum="RenderingServer.GlobalVariableType"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="int" enum="RenderingServer.GlobalVariableType" /> + <argument index="0" name="name" type="StringName" /> <description> </description> </method> <method name="global_variable_remove"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> </description> </method> <method name="global_variable_set"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> </description> </method> <method name="global_variable_set_override"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> </description> </method> <method name="has_changed" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if changes have been made to the RenderingServer's data. [method force_draw] is usually called if this happens. </description> </method> <method name="has_feature" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="feature" type="int" enum="RenderingServer.Features"> - </argument> + <return type="bool" /> + <argument index="0" name="feature" type="int" enum="RenderingServer.Features" /> <description> Not yet implemented. Always returns [code]false[/code]. </description> </method> <method name="has_os_feature" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="feature" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="feature" type="String" /> <description> Returns [code]true[/code] if the OS supports a certain feature. Features might be [code]s3tc[/code], [code]etc[/code], [code]etc2[/code] and [code]pvrtc[/code]. </description> </method> <method name="instance_attach_object_instance_id"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="id" type="int" /> <description> Attaches a unique Object ID to instance. Object ID must be attached to instance for proper culling with [method instances_cull_aabb], [method instances_cull_convex], and [method instances_cull_ray]. </description> </method> <method name="instance_attach_skeleton"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="skeleton" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="skeleton" type="RID" /> <description> Attaches a skeleton to an instance. Removes the previous skeleton from the instance. </description> </method> <method name="instance_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a visual instance and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]instance_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. @@ -1838,660 +1284,473 @@ </description> </method> <method name="instance_create2"> - <return type="RID"> - </return> - <argument index="0" name="base" type="RID"> - </argument> - <argument index="1" name="scenario" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="base" type="RID" /> + <argument index="1" name="scenario" type="RID" /> <description> Creates a visual instance, adds it to the RenderingServer, and sets both base and scenario. It can be accessed with the RID that is returned. This RID will be used in all [code]instance_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="instance_geometry_get_shader_parameter" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="parameter" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="parameter" type="StringName" /> <description> </description> </method> <method name="instance_geometry_get_shader_parameter_default_value" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="parameter" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="parameter" type="StringName" /> <description> </description> </method> <method name="instance_geometry_get_shader_parameter_list" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> + <return type="Array" /> + <argument index="0" name="instance" type="RID" /> <description> </description> </method> <method name="instance_geometry_set_cast_shadows_setting"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="shadow_casting_setting" type="int" enum="RenderingServer.ShadowCastingSetting"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="shadow_casting_setting" type="int" enum="RenderingServer.ShadowCastingSetting" /> <description> Sets the shadow casting setting to one of [enum ShadowCastingSetting]. Equivalent to [member GeometryInstance3D.cast_shadow]. </description> </method> <method name="instance_geometry_set_flag"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="flag" type="int" enum="RenderingServer.InstanceFlags"> - </argument> - <argument index="2" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="flag" type="int" enum="RenderingServer.InstanceFlags" /> + <argument index="2" name="enabled" type="bool" /> <description> Sets the flag for a given [enum InstanceFlags]. See [enum InstanceFlags] for more details. </description> </method> <method name="instance_geometry_set_lightmap"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="lightmap" type="RID"> - </argument> - <argument index="2" name="lightmap_uv_scale" type="Rect2"> - </argument> - <argument index="3" name="lightmap_slice" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="lightmap" type="RID" /> + <argument index="2" name="lightmap_uv_scale" type="Rect2" /> + <argument index="3" name="lightmap_slice" type="int" /> <description> </description> </method> <method name="instance_geometry_set_lod_bias"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="lod_bias" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="lod_bias" type="float" /> <description> </description> </method> <method name="instance_geometry_set_material_override"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="material" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="material" type="RID" /> <description> Sets a material that will override the material for all surfaces on the mesh associated with this instance. Equivalent to [member GeometryInstance3D.material_override]. </description> </method> <method name="instance_geometry_set_shader_parameter"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="parameter" type="StringName"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="parameter" type="StringName" /> + <argument index="2" name="value" type="Variant" /> <description> </description> </method> <method name="instance_geometry_set_visibility_range"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="min" type="float"> - </argument> - <argument index="2" name="max" type="float"> - </argument> - <argument index="3" name="min_margin" type="float"> - </argument> - <argument index="4" name="max_margin" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="min" type="float" /> + <argument index="2" name="max" type="float" /> + <argument index="3" name="min_margin" type="float" /> + <argument index="4" name="max_margin" type="float" /> <description> Sets the visibility range values for the given geometry instance. Equivalent to [member GeometryInstance3D.visibility_range_begin] and related properties. </description> </method> <method name="instance_set_base"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="base" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="base" type="RID" /> <description> Sets the base of the instance. A base can be any of the 3D objects that are created in the RenderingServer that can be displayed. For example, any of the light types, mesh, multimesh, immediate geometry, particle system, reflection probe, lightmap, and the GI probe are all types that can be set as the base of an instance in order to be displayed in the scenario. </description> </method> <method name="instance_set_blend_shape_weight"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="shape" type="int"> - </argument> - <argument index="2" name="weight" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="shape" type="int" /> + <argument index="2" name="weight" type="float" /> <description> Sets the weight for a given blend shape associated with this instance. </description> </method> <method name="instance_set_custom_aabb"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="aabb" type="AABB"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="aabb" type="AABB" /> <description> Sets a custom AABB to use when culling objects from the view frustum. Equivalent to [method GeometryInstance3D.set_custom_aabb]. </description> </method> <method name="instance_set_extra_visibility_margin"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="margin" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="margin" type="float" /> <description> Sets a margin to increase the size of the AABB when culling objects from the view frustum. This allows you to avoid culling objects that fall outside the view frustum. Equivalent to [member GeometryInstance3D.extra_cull_margin]. </description> </method> <method name="instance_set_layer_mask"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> Sets the render layers that this instance will be drawn to. Equivalent to [member VisualInstance3D.layers]. </description> </method> <method name="instance_set_scenario"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="scenario" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="scenario" type="RID" /> <description> Sets the scenario that the instance is in. The scenario is the 3D world that the objects will be displayed in. </description> </method> <method name="instance_set_surface_override_material"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> - <argument index="2" name="material" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="surface" type="int" /> + <argument index="2" name="material" type="RID" /> <description> Sets the override material of a specific surface. Equivalent to [method MeshInstance3D.set_surface_override_material]. </description> </method> <method name="instance_set_transform"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="transform" type="Transform3D" /> <description> Sets the world space transform of the instance. Equivalent to [member Node3D.transform]. </description> </method> <method name="instance_set_visibility_parent"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="parent" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="parent" type="RID" /> <description> Sets the visibility parent for the given instance. Equivalent to [member Node3D.visibility_parent]. </description> </method> <method name="instance_set_visible"> - <return type="void"> - </return> - <argument index="0" name="instance" type="RID"> - </argument> - <argument index="1" name="visible" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="instance" type="RID" /> + <argument index="1" name="visible" type="bool" /> <description> Sets whether an instance is drawn or not. Equivalent to [member Node3D.visible]. </description> </method> <method name="instances_cull_aabb" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="aabb" type="AABB"> - </argument> - <argument index="1" name="scenario" type="RID"> - </argument> + <return type="Array" /> + <argument index="0" name="aabb" type="AABB" /> + <argument index="1" name="scenario" type="RID" /> <description> Returns an array of object IDs intersecting with the provided AABB. Only visual 3D nodes are considered, such as [MeshInstance3D] or [DirectionalLight3D]. Use [method @GlobalScope.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World3D] you want to query. This forces an update for all resources queued to update. [b]Warning:[/b] This function is primarily intended for editor usage. For in-game use cases, prefer physics collision. </description> </method> <method name="instances_cull_convex" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="convex" type="Array"> - </argument> - <argument index="1" name="scenario" type="RID"> - </argument> + <return type="Array" /> + <argument index="0" name="convex" type="Array" /> + <argument index="1" name="scenario" type="RID" /> <description> Returns an array of object IDs intersecting with the provided convex shape. Only visual 3D nodes are considered, such as [MeshInstance3D] or [DirectionalLight3D]. Use [method @GlobalScope.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World3D] you want to query. This forces an update for all resources queued to update. [b]Warning:[/b] This function is primarily intended for editor usage. For in-game use cases, prefer physics collision. </description> </method> <method name="instances_cull_ray" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> - <argument index="1" name="to" type="Vector3"> - </argument> - <argument index="2" name="scenario" type="RID"> - </argument> + <return type="Array" /> + <argument index="0" name="from" type="Vector3" /> + <argument index="1" name="to" type="Vector3" /> + <argument index="2" name="scenario" type="RID" /> <description> Returns an array of object IDs intersecting with the provided 3D ray. Only visual 3D nodes are considered, such as [MeshInstance3D] or [DirectionalLight3D]. Use [method @GlobalScope.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World3D] you want to query. This forces an update for all resources queued to update. [b]Warning:[/b] This function is primarily intended for editor usage. For in-game use cases, prefer physics collision. </description> </method> <method name="light_directional_set_blend_splits"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], this directional light will blend between shadow map splits resulting in a smoother transition between them. Equivalent to [member DirectionalLight3D.directional_shadow_blend_splits]. </description> </method> <method name="light_directional_set_shadow_mode"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.LightDirectionalShadowMode"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.LightDirectionalShadowMode" /> <description> Sets the shadow mode for this directional light. Equivalent to [member DirectionalLight3D.directional_shadow_mode]. See [enum LightDirectionalShadowMode] for options. </description> </method> <method name="light_directional_set_sky_only"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], this light will not be used for anything except sky shaders. Use this for lights that impact your sky shader that you may want to hide from affecting the rest of the scene. For example, you may want to enable this when the sun in your sky shader falls below the horizon. </description> </method> <method name="light_omni_set_shadow_mode"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.LightOmniShadowMode"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.LightOmniShadowMode" /> <description> Sets whether to use a dual paraboloid or a cubemap for the shadow map. Dual paraboloid is faster but may suffer from artifacts. Equivalent to [member OmniLight3D.omni_shadow_mode]. </description> </method> <method name="light_projectors_set_filter"> - <return type="void"> - </return> - <argument index="0" name="filter" type="int" enum="RenderingServer.LightProjectorFilter"> - </argument> + <return type="void" /> + <argument index="0" name="filter" type="int" enum="RenderingServer.LightProjectorFilter" /> <description> </description> </method> <method name="light_set_bake_mode"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="bake_mode" type="int" enum="RenderingServer.LightBakeMode"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="bake_mode" type="int" enum="RenderingServer.LightBakeMode" /> <description> </description> </method> <method name="light_set_color"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> Sets the color of the light. Equivalent to [member Light3D.light_color]. </description> </method> <method name="light_set_cull_mask"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> Sets the cull mask for this Light3D. Lights only affect objects in the selected layers. Equivalent to [member Light3D.light_cull_mask]. </description> </method> <method name="light_set_max_sdfgi_cascade"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="cascade" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="cascade" type="int" /> <description> </description> </method> <method name="light_set_negative"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], light will subtract light instead of adding light. Equivalent to [member Light3D.light_negative]. </description> </method> <method name="light_set_param"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="param" type="int" enum="RenderingServer.LightParam"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="param" type="int" enum="RenderingServer.LightParam" /> + <argument index="2" name="value" type="float" /> <description> Sets the specified light parameter. See [enum LightParam] for options. Equivalent to [method Light3D.set_param]. </description> </method> <method name="light_set_projector"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="texture" type="RID" /> <description> Not implemented in Godot 3.x. </description> </method> <method name="light_set_reverse_cull_face_mode"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> If [code]true[/code], reverses the backface culling of the mesh. This can be useful when you have a flat mesh that has a light behind it. If you need to cast a shadow on both sides of the mesh, set the mesh to use double-sided shadows with [method instance_geometry_set_cast_shadows_setting]. Equivalent to [member Light3D.shadow_reverse_cull_face]. </description> </method> <method name="light_set_shadow"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> If [code]true[/code], light will cast shadows. Equivalent to [member Light3D.shadow_enabled]. </description> </method> <method name="light_set_shadow_color"> - <return type="void"> - </return> - <argument index="0" name="light" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="light" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> Sets the color of the shadow cast by the light. Equivalent to [member Light3D.shadow_color]. </description> </method> <method name="lightmap_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="lightmap_get_probe_capture_bsp_tree" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="lightmap" type="RID"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="lightmap" type="RID" /> <description> </description> </method> <method name="lightmap_get_probe_capture_points" qualifiers="const"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="lightmap" type="RID"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="lightmap" type="RID" /> <description> </description> </method> <method name="lightmap_get_probe_capture_sh" qualifiers="const"> - <return type="PackedColorArray"> - </return> - <argument index="0" name="lightmap" type="RID"> - </argument> + <return type="PackedColorArray" /> + <argument index="0" name="lightmap" type="RID" /> <description> </description> </method> <method name="lightmap_get_probe_capture_tetrahedra" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="lightmap" type="RID"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="lightmap" type="RID" /> <description> </description> </method> <method name="lightmap_set_probe_bounds"> - <return type="void"> - </return> - <argument index="0" name="lightmap" type="RID"> - </argument> - <argument index="1" name="bounds" type="AABB"> - </argument> + <return type="void" /> + <argument index="0" name="lightmap" type="RID" /> + <argument index="1" name="bounds" type="AABB" /> <description> </description> </method> <method name="lightmap_set_probe_capture_data"> - <return type="void"> - </return> - <argument index="0" name="lightmap" type="RID"> - </argument> - <argument index="1" name="points" type="PackedVector3Array"> - </argument> - <argument index="2" name="point_sh" type="PackedColorArray"> - </argument> - <argument index="3" name="tetrahedra" type="PackedInt32Array"> - </argument> - <argument index="4" name="bsp_tree" type="PackedInt32Array"> - </argument> + <return type="void" /> + <argument index="0" name="lightmap" type="RID" /> + <argument index="1" name="points" type="PackedVector3Array" /> + <argument index="2" name="point_sh" type="PackedColorArray" /> + <argument index="3" name="tetrahedra" type="PackedInt32Array" /> + <argument index="4" name="bsp_tree" type="PackedInt32Array" /> <description> </description> </method> <method name="lightmap_set_probe_capture_update_speed"> - <return type="void"> - </return> - <argument index="0" name="speed" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="speed" type="float" /> <description> </description> </method> <method name="lightmap_set_probe_interior"> - <return type="void"> - </return> - <argument index="0" name="lightmap" type="RID"> - </argument> - <argument index="1" name="interior" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="lightmap" type="RID" /> + <argument index="1" name="interior" type="bool" /> <description> </description> </method> <method name="lightmap_set_textures"> - <return type="void"> - </return> - <argument index="0" name="lightmap" type="RID"> - </argument> - <argument index="1" name="light" type="RID"> - </argument> - <argument index="2" name="uses_sh" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="lightmap" type="RID" /> + <argument index="1" name="light" type="RID" /> + <argument index="2" name="uses_sh" type="bool" /> <description> </description> </method> <method name="make_sphere_mesh"> - <return type="RID"> - </return> - <argument index="0" name="latitudes" type="int"> - </argument> - <argument index="1" name="longitudes" type="int"> - </argument> - <argument index="2" name="radius" type="float"> - </argument> + <return type="RID" /> + <argument index="0" name="latitudes" type="int" /> + <argument index="1" name="longitudes" type="int" /> + <argument index="2" name="radius" type="float" /> <description> Returns a mesh of a sphere with the given amount of horizontal and vertical subdivisions. </description> </method> <method name="material_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates an empty material and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]material_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="material_get_param" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="material" type="RID"> - </argument> - <argument index="1" name="parameter" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="material" type="RID" /> + <argument index="1" name="parameter" type="StringName" /> <description> Returns the value of a certain material's parameter. </description> </method> <method name="material_set_next_pass"> - <return type="void"> - </return> - <argument index="0" name="material" type="RID"> - </argument> - <argument index="1" name="next_material" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="material" type="RID" /> + <argument index="1" name="next_material" type="RID" /> <description> Sets an object's next material. </description> </method> <method name="material_set_param"> - <return type="void"> - </return> - <argument index="0" name="material" type="RID"> - </argument> - <argument index="1" name="parameter" type="StringName"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="material" type="RID" /> + <argument index="1" name="parameter" type="StringName" /> + <argument index="2" name="value" type="Variant" /> <description> Sets a material's parameter. </description> </method> <method name="material_set_render_priority"> - <return type="void"> - </return> - <argument index="0" name="material" type="RID"> - </argument> - <argument index="1" name="priority" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="material" type="RID" /> + <argument index="1" name="priority" type="int" /> <description> Sets a material's render priority. </description> </method> <method name="material_set_shader"> - <return type="void"> - </return> - <argument index="0" name="shader_material" type="RID"> - </argument> - <argument index="1" name="shader" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="shader_material" type="RID" /> + <argument index="1" name="shader" type="RID" /> <description> Sets a shader material's shader. </description> </method> <method name="mesh_add_surface"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="surface" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="surface" type="Dictionary" /> <description> </description> </method> <method name="mesh_add_surface_from_arrays"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="primitive" type="int" enum="RenderingServer.PrimitiveType"> - </argument> - <argument index="2" name="arrays" type="Array"> - </argument> - <argument index="3" name="blend_shapes" type="Array" default="[]"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="primitive" type="int" enum="RenderingServer.PrimitiveType" /> + <argument index="2" name="arrays" type="Array" /> + <argument index="3" name="blend_shapes" type="Array" default="[]" /> <argument index="4" name="lods" type="Dictionary" default="{ -}"> - </argument> - <argument index="5" name="compress_format" type="int" default="0"> - </argument> +}" /> + <argument index="5" name="compress_format" type="int" default="0" /> <description> </description> </method> <method name="mesh_clear"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="RID" /> <description> Removes all surfaces from a mesh. </description> </method> <method name="mesh_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a new mesh and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]mesh_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. @@ -2499,242 +1758,171 @@ </description> </method> <method name="mesh_create_from_surfaces"> - <return type="RID"> - </return> - <argument index="0" name="surfaces" type="Dictionary[]"> - </argument> - <argument index="1" name="blend_shape_count" type="int" default="0"> - </argument> + <return type="RID" /> + <argument index="0" name="surfaces" type="Dictionary[]" /> + <argument index="1" name="blend_shape_count" type="int" default="0" /> <description> </description> </method> <method name="mesh_get_blend_shape_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="mesh" type="RID" /> <description> Returns a mesh's blend shape count. </description> </method> <method name="mesh_get_blend_shape_mode" qualifiers="const"> - <return type="int" enum="RenderingServer.BlendShapeMode"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> + <return type="int" enum="RenderingServer.BlendShapeMode" /> + <argument index="0" name="mesh" type="RID" /> <description> Returns a mesh's blend shape mode. </description> </method> <method name="mesh_get_custom_aabb" qualifiers="const"> - <return type="AABB"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> + <return type="AABB" /> + <argument index="0" name="mesh" type="RID" /> <description> Returns a mesh's custom aabb. </description> </method> <method name="mesh_get_surface"> - <return type="Dictionary"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="surface" type="int" /> <description> </description> </method> <method name="mesh_get_surface_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="mesh" type="RID" /> <description> Returns a mesh's number of surfaces. </description> </method> <method name="mesh_set_blend_shape_mode"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.BlendShapeMode"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.BlendShapeMode" /> <description> Sets a mesh's blend shape mode. </description> </method> <method name="mesh_set_custom_aabb"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="aabb" type="AABB"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="aabb" type="AABB" /> <description> Sets a mesh's custom aabb. </description> </method> <method name="mesh_set_shadow_mesh"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="shadow_mesh" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="shadow_mesh" type="RID" /> <description> </description> </method> <method name="mesh_surface_get_arrays" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="surface" type="int" /> <description> Returns a mesh's surface's buffer arrays. </description> </method> <method name="mesh_surface_get_blend_shape_arrays" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="surface" type="int" /> <description> Returns a mesh's surface's arrays for blend shapes. </description> </method> <method name="mesh_surface_get_format_attribute_stride" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="format" type="int"> - </argument> - <argument index="1" name="vertex_count" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="format" type="int" /> + <argument index="1" name="vertex_count" type="int" /> <description> </description> </method> <method name="mesh_surface_get_format_offset" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="format" type="int"> - </argument> - <argument index="1" name="vertex_count" type="int"> - </argument> - <argument index="2" name="array_index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="format" type="int" /> + <argument index="1" name="vertex_count" type="int" /> + <argument index="2" name="array_index" type="int" /> <description> </description> </method> <method name="mesh_surface_get_format_skin_stride" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="format" type="int"> - </argument> - <argument index="1" name="vertex_count" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="format" type="int" /> + <argument index="1" name="vertex_count" type="int" /> <description> </description> </method> <method name="mesh_surface_get_format_vertex_stride" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="format" type="int"> - </argument> - <argument index="1" name="vertex_count" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="format" type="int" /> + <argument index="1" name="vertex_count" type="int" /> <description> </description> </method> <method name="mesh_surface_get_material" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="surface" type="int" /> <description> Returns a mesh's surface's material. </description> </method> <method name="mesh_surface_set_material"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> - <argument index="2" name="material" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="surface" type="int" /> + <argument index="2" name="material" type="RID" /> <description> Sets a mesh's surface's material. </description> </method> <method name="mesh_surface_update_attribute_region"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> - <argument index="2" name="offset" type="int"> - </argument> - <argument index="3" name="data" type="PackedByteArray"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="surface" type="int" /> + <argument index="2" name="offset" type="int" /> + <argument index="3" name="data" type="PackedByteArray" /> <description> </description> </method> <method name="mesh_surface_update_skin_region"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> - <argument index="2" name="offset" type="int"> - </argument> - <argument index="3" name="data" type="PackedByteArray"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="surface" type="int" /> + <argument index="2" name="offset" type="int" /> + <argument index="3" name="data" type="PackedByteArray" /> <description> </description> </method> <method name="mesh_surface_update_vertex_region"> - <return type="void"> - </return> - <argument index="0" name="mesh" type="RID"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> - <argument index="2" name="offset" type="int"> - </argument> - <argument index="3" name="data" type="PackedByteArray"> - </argument> + <return type="void" /> + <argument index="0" name="mesh" type="RID" /> + <argument index="1" name="surface" type="int" /> + <argument index="2" name="offset" type="int" /> + <argument index="3" name="data" type="PackedByteArray" /> <description> </description> </method> <method name="multimesh_allocate_data"> - <return type="void"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="instances" type="int"> - </argument> - <argument index="2" name="transform_format" type="int" enum="RenderingServer.MultimeshTransformFormat"> - </argument> - <argument index="3" name="color_format" type="bool" default="false"> - </argument> - <argument index="4" name="custom_data_format" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="instances" type="int" /> + <argument index="2" name="transform_format" type="int" enum="RenderingServer.MultimeshTransformFormat" /> + <argument index="3" name="color_format" type="bool" default="false" /> + <argument index="4" name="custom_data_format" type="bool" default="false" /> <description> </description> </method> <method name="multimesh_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a new multimesh on the RenderingServer and returns an [RID] handle. This RID will be used in all [code]multimesh_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. @@ -2742,198 +1930,145 @@ </description> </method> <method name="multimesh_get_aabb" qualifiers="const"> - <return type="AABB"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> + <return type="AABB" /> + <argument index="0" name="multimesh" type="RID" /> <description> Calculates and returns the axis-aligned bounding box that encloses all instances within the multimesh. </description> </method> <method name="multimesh_get_buffer" qualifiers="const"> - <return type="PackedFloat32Array"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> + <return type="PackedFloat32Array" /> + <argument index="0" name="multimesh" type="RID" /> <description> </description> </method> <method name="multimesh_get_instance_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="multimesh" type="RID" /> <description> Returns the number of instances allocated for this multimesh. </description> </method> <method name="multimesh_get_mesh" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="multimesh" type="RID" /> <description> Returns the RID of the mesh that will be used in drawing this multimesh. </description> </method> <method name="multimesh_get_visible_instances" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="multimesh" type="RID" /> <description> Returns the number of visible instances for this multimesh. </description> </method> <method name="multimesh_instance_get_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="index" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="index" type="int" /> <description> Returns the color by which the specified instance will be modulated. </description> </method> <method name="multimesh_instance_get_custom_data" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="index" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="index" type="int" /> <description> Returns the custom data associated with the specified instance. </description> </method> <method name="multimesh_instance_get_transform" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="index" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="index" type="int" /> <description> Returns the [Transform3D] of the specified instance. </description> </method> <method name="multimesh_instance_get_transform_2d" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="index" type="int"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="index" type="int" /> <description> Returns the [Transform2D] of the specified instance. For use when the multimesh is set to use 2D transforms. </description> </method> <method name="multimesh_instance_set_color"> - <return type="void"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="index" type="int"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="index" type="int" /> + <argument index="2" name="color" type="Color" /> <description> Sets the color by which this instance will be modulated. Equivalent to [method MultiMesh.set_instance_color]. </description> </method> <method name="multimesh_instance_set_custom_data"> - <return type="void"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="index" type="int"> - </argument> - <argument index="2" name="custom_data" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="index" type="int" /> + <argument index="2" name="custom_data" type="Color" /> <description> Sets the custom data for this instance. Custom data is passed as a [Color], but is interpreted as a [code]vec4[/code] in the shader. Equivalent to [method MultiMesh.set_instance_custom_data]. </description> </method> <method name="multimesh_instance_set_transform"> - <return type="void"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="index" type="int"> - </argument> - <argument index="2" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="index" type="int" /> + <argument index="2" name="transform" type="Transform3D" /> <description> Sets the [Transform3D] for this instance. Equivalent to [method MultiMesh.set_instance_transform]. </description> </method> <method name="multimesh_instance_set_transform_2d"> - <return type="void"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="index" type="int"> - </argument> - <argument index="2" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="index" type="int" /> + <argument index="2" name="transform" type="Transform2D" /> <description> Sets the [Transform2D] for this instance. For use when multimesh is used in 2D. Equivalent to [method MultiMesh.set_instance_transform_2d]. </description> </method> <method name="multimesh_set_buffer"> - <return type="void"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="buffer" type="PackedFloat32Array"> - </argument> + <return type="void" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="buffer" type="PackedFloat32Array" /> <description> </description> </method> <method name="multimesh_set_mesh"> - <return type="void"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="mesh" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="mesh" type="RID" /> <description> Sets the mesh to be drawn by the multimesh. Equivalent to [member MultiMesh.mesh]. </description> </method> <method name="multimesh_set_visible_instances"> - <return type="void"> - </return> - <argument index="0" name="multimesh" type="RID"> - </argument> - <argument index="1" name="visible" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="multimesh" type="RID" /> + <argument index="1" name="visible" type="int" /> <description> Sets the number of instances visible at a given time. If -1, all instances that have been allocated are drawn. Equivalent to [member MultiMesh.visible_instance_count]. </description> </method> <method name="occluder_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="occluder_set_mesh"> - <return type="void"> - </return> - <argument index="0" name="occluder" type="RID"> - </argument> - <argument index="1" name="vertices" type="PackedVector3Array"> - </argument> - <argument index="2" name="indices" type="PackedInt32Array"> - </argument> + <return type="void" /> + <argument index="0" name="occluder" type="RID" /> + <argument index="1" name="vertices" type="PackedVector3Array" /> + <argument index="2" name="indices" type="PackedInt32Array" /> <description> </description> </method> <method name="omni_light_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a new omni light and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID can be used in most [code]light_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. @@ -2941,112 +2076,81 @@ </description> </method> <method name="particles_collision_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="particles_collision_height_field_update"> - <return type="void"> - </return> - <argument index="0" name="particles_collision" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="particles_collision" type="RID" /> <description> </description> </method> <method name="particles_collision_set_attractor_attenuation"> - <return type="void"> - </return> - <argument index="0" name="particles_collision" type="RID"> - </argument> - <argument index="1" name="curve" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles_collision" type="RID" /> + <argument index="1" name="curve" type="float" /> <description> </description> </method> <method name="particles_collision_set_attractor_directionality"> - <return type="void"> - </return> - <argument index="0" name="particles_collision" type="RID"> - </argument> - <argument index="1" name="amount" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles_collision" type="RID" /> + <argument index="1" name="amount" type="float" /> <description> </description> </method> <method name="particles_collision_set_attractor_strength"> - <return type="void"> - </return> - <argument index="0" name="particles_collision" type="RID"> - </argument> - <argument index="1" name="setrngth" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles_collision" type="RID" /> + <argument index="1" name="setrngth" type="float" /> <description> </description> </method> <method name="particles_collision_set_box_extents"> - <return type="void"> - </return> - <argument index="0" name="particles_collision" type="RID"> - </argument> - <argument index="1" name="extents" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="particles_collision" type="RID" /> + <argument index="1" name="extents" type="Vector3" /> <description> </description> </method> <method name="particles_collision_set_collision_type"> - <return type="void"> - </return> - <argument index="0" name="particles_collision" type="RID"> - </argument> - <argument index="1" name="type" type="int" enum="RenderingServer.ParticlesCollisionType"> - </argument> + <return type="void" /> + <argument index="0" name="particles_collision" type="RID" /> + <argument index="1" name="type" type="int" enum="RenderingServer.ParticlesCollisionType" /> <description> </description> </method> <method name="particles_collision_set_cull_mask"> - <return type="void"> - </return> - <argument index="0" name="particles_collision" type="RID"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="particles_collision" type="RID" /> + <argument index="1" name="mask" type="int" /> <description> </description> </method> <method name="particles_collision_set_field_texture"> - <return type="void"> - </return> - <argument index="0" name="particles_collision" type="RID"> - </argument> - <argument index="1" name="texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="particles_collision" type="RID" /> + <argument index="1" name="texture" type="RID" /> <description> </description> </method> <method name="particles_collision_set_height_field_resolution"> - <return type="void"> - </return> - <argument index="0" name="particles_collision" type="RID"> - </argument> - <argument index="1" name="resolution" type="int" enum="RenderingServer.ParticlesCollisionHeightfieldResolution"> - </argument> + <return type="void" /> + <argument index="0" name="particles_collision" type="RID" /> + <argument index="1" name="resolution" type="int" enum="RenderingServer.ParticlesCollisionHeightfieldResolution" /> <description> </description> </method> <method name="particles_collision_set_sphere_radius"> - <return type="void"> - </return> - <argument index="0" name="particles_collision" type="RID"> - </argument> - <argument index="1" name="radius" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles_collision" type="RID" /> + <argument index="1" name="radius" type="float" /> <description> </description> </method> <method name="particles_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a particle system and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]particles_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. @@ -3054,332 +2158,240 @@ </description> </method> <method name="particles_emit"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform3D"> - </argument> - <argument index="2" name="velocity" type="Vector3"> - </argument> - <argument index="3" name="color" type="Color"> - </argument> - <argument index="4" name="custom" type="Color"> - </argument> - <argument index="5" name="emit_flags" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="transform" type="Transform3D" /> + <argument index="2" name="velocity" type="Vector3" /> + <argument index="3" name="color" type="Color" /> + <argument index="4" name="custom" type="Color" /> + <argument index="5" name="emit_flags" type="int" /> <description> </description> </method> <method name="particles_get_current_aabb"> - <return type="AABB"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> + <return type="AABB" /> + <argument index="0" name="particles" type="RID" /> <description> Calculates and returns the axis-aligned bounding box that contains all the particles. Equivalent to [method GPUParticles3D.capture_aabb]. </description> </method> <method name="particles_get_emitting"> - <return type="bool"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="particles" type="RID" /> <description> Returns [code]true[/code] if particles are currently set to emitting. </description> </method> <method name="particles_is_inactive"> - <return type="bool"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="particles" type="RID" /> <description> Returns [code]true[/code] if particles are not emitting and particles are set to inactive. </description> </method> <method name="particles_request_process"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> <description> Add particle system to list of particle systems that need to be updated. Update will take place on the next frame, or on the next call to [method instances_cull_aabb], [method instances_cull_convex], or [method instances_cull_ray]. </description> </method> <method name="particles_restart"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> <description> Reset the particles on the next update. Equivalent to [method GPUParticles3D.restart]. </description> </method> <method name="particles_set_amount"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="amount" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="amount" type="int" /> <description> Sets the number of particles to be drawn and allocates the memory for them. Equivalent to [member GPUParticles3D.amount]. </description> </method> <method name="particles_set_collision_base_size"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="size" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="size" type="float" /> <description> </description> </method> <method name="particles_set_custom_aabb"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="aabb" type="AABB"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="aabb" type="AABB" /> <description> Sets a custom axis-aligned bounding box for the particle system. Equivalent to [member GPUParticles3D.visibility_aabb]. </description> </method> <method name="particles_set_draw_order"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="order" type="int" enum="RenderingServer.ParticlesDrawOrder"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="order" type="int" enum="RenderingServer.ParticlesDrawOrder" /> <description> Sets the draw order of the particles to one of the named enums from [enum ParticlesDrawOrder]. See [enum ParticlesDrawOrder] for options. Equivalent to [member GPUParticles3D.draw_order]. </description> </method> <method name="particles_set_draw_pass_mesh"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="pass" type="int"> - </argument> - <argument index="2" name="mesh" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="pass" type="int" /> + <argument index="2" name="mesh" type="RID" /> <description> Sets the mesh to be used for the specified draw pass. Equivalent to [member GPUParticles3D.draw_pass_1], [member GPUParticles3D.draw_pass_2], [member GPUParticles3D.draw_pass_3], and [member GPUParticles3D.draw_pass_4]. </description> </method> <method name="particles_set_draw_passes"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="count" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="count" type="int" /> <description> Sets the number of draw passes to use. Equivalent to [member GPUParticles3D.draw_passes]. </description> </method> <method name="particles_set_emission_transform"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="transform" type="Transform3D" /> <description> Sets the [Transform3D] that will be used by the particles when they first emit. </description> </method> <method name="particles_set_emitting"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="emitting" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="emitting" type="bool" /> <description> If [code]true[/code], particles will emit over time. Setting to false does not reset the particles, but only stops their emission. Equivalent to [member GPUParticles3D.emitting]. </description> </method> <method name="particles_set_explosiveness_ratio"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="ratio" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="ratio" type="float" /> <description> Sets the explosiveness ratio. Equivalent to [member GPUParticles3D.explosiveness]. </description> </method> <method name="particles_set_fixed_fps"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="fps" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="fps" type="int" /> <description> Sets the frame rate that the particle system rendering will be fixed to. Equivalent to [member GPUParticles3D.fixed_fps]. </description> </method> <method name="particles_set_fractional_delta"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], uses fractional delta which smooths the movement of the particles. Equivalent to [member GPUParticles3D.fract_delta]. </description> </method> <method name="particles_set_interpolate"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> <method name="particles_set_lifetime"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="lifetime" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="lifetime" type="float" /> <description> Sets the lifetime of each particle in the system. Equivalent to [member GPUParticles3D.lifetime]. </description> </method> <method name="particles_set_mode"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.ParticlesMode"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.ParticlesMode" /> <description> </description> </method> <method name="particles_set_one_shot"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="one_shot" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="one_shot" type="bool" /> <description> If [code]true[/code], particles will emit once and then stop. Equivalent to [member GPUParticles3D.one_shot]. </description> </method> <method name="particles_set_pre_process_time"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="time" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="time" type="float" /> <description> Sets the preprocess time for the particles' animation. This lets you delay starting an animation until after the particles have begun emitting. Equivalent to [member GPUParticles3D.preprocess]. </description> </method> <method name="particles_set_process_material"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="material" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="material" type="RID" /> <description> Sets the material for processing the particles. Note: this is not the material used to draw the materials. Equivalent to [member GPUParticles3D.process_material]. </description> </method> <method name="particles_set_randomness_ratio"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="ratio" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="ratio" type="float" /> <description> Sets the emission randomness ratio. This randomizes the emission of particles within their phase. Equivalent to [member GPUParticles3D.randomness]. </description> </method> <method name="particles_set_speed_scale"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="scale" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="scale" type="float" /> <description> Sets the speed scale of the particle system. Equivalent to [member GPUParticles3D.speed_scale]. </description> </method> <method name="particles_set_subemitter"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="subemitter_particles" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="subemitter_particles" type="RID" /> <description> </description> </method> <method name="particles_set_trail_bind_poses"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="bind_poses" type="Transform3D[]"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="bind_poses" type="Transform3D[]" /> <description> </description> </method> <method name="particles_set_trails"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <argument index="2" name="length_sec" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="enable" type="bool" /> + <argument index="2" name="length_sec" type="float" /> <description> </description> </method> <method name="particles_set_transform_align"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="align" type="int" enum="RenderingServer.ParticlesTransformAlign"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="align" type="int" enum="RenderingServer.ParticlesTransformAlign" /> <description> </description> </method> <method name="particles_set_use_local_coordinates"> - <return type="void"> - </return> - <argument index="0" name="particles" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="particles" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], particles use local coordinates. If [code]false[/code] they use global coordinates. Equivalent to [member GPUParticles3D.local_coords]. </description> </method> <method name="reflection_probe_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a reflection probe and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]reflection_probe_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. @@ -3387,171 +2399,124 @@ </description> </method> <method name="reflection_probe_set_ambient_color"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> </description> </method> <method name="reflection_probe_set_ambient_energy"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="energy" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="energy" type="float" /> <description> </description> </method> <method name="reflection_probe_set_ambient_mode"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.ReflectionProbeAmbientMode"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.ReflectionProbeAmbientMode" /> <description> </description> </method> <method name="reflection_probe_set_as_interior"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], reflections will ignore sky contribution. Equivalent to [member ReflectionProbe.interior]. </description> </method> <method name="reflection_probe_set_cull_mask"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="layers" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="layers" type="int" /> <description> Sets the render cull mask for this reflection probe. Only instances with a matching cull mask will be rendered by this probe. Equivalent to [member ReflectionProbe.cull_mask]. </description> </method> <method name="reflection_probe_set_enable_box_projection"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], uses box projection. This can make reflections look more correct in certain situations. Equivalent to [member ReflectionProbe.box_projection]. </description> </method> <method name="reflection_probe_set_enable_shadows"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], computes shadows in the reflection probe. This makes the reflection much slower to compute. Equivalent to [member ReflectionProbe.enable_shadows]. </description> </method> <method name="reflection_probe_set_extents"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="extents" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="extents" type="Vector3" /> <description> Sets the size of the area that the reflection probe will capture. Equivalent to [member ReflectionProbe.extents]. </description> </method> <method name="reflection_probe_set_intensity"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="intensity" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="intensity" type="float" /> <description> Sets the intensity of the reflection probe. Intensity modulates the strength of the reflection. Equivalent to [member ReflectionProbe.intensity]. </description> </method> <method name="reflection_probe_set_lod_threshold"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="pixels" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="pixels" type="float" /> <description> </description> </method> <method name="reflection_probe_set_max_distance"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="distance" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="distance" type="float" /> <description> Sets the max distance away from the probe an object can be before it is culled. Equivalent to [member ReflectionProbe.max_distance]. </description> </method> <method name="reflection_probe_set_origin_offset"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="offset" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="offset" type="Vector3" /> <description> Sets the origin offset to be used when this reflection probe is in box project mode. Equivalent to [member ReflectionProbe.origin_offset]. </description> </method> <method name="reflection_probe_set_resolution"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="resolution" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="resolution" type="int" /> <description> </description> </method> <method name="reflection_probe_set_update_mode"> - <return type="void"> - </return> - <argument index="0" name="probe" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.ReflectionProbeUpdateMode"> - </argument> + <return type="void" /> + <argument index="0" name="probe" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.ReflectionProbeUpdateMode" /> <description> Sets how often the reflection probe updates. Can either be once or every frame. See [enum ReflectionProbeUpdateMode] for options. </description> </method> <method name="request_frame_drawn_callback"> - <return type="void"> - </return> - <argument index="0" name="where" type="Object"> - </argument> - <argument index="1" name="method" type="StringName"> - </argument> - <argument index="2" name="userdata" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="where" type="Object" /> + <argument index="1" name="method" type="StringName" /> + <argument index="2" name="userdata" type="Variant" /> <description> Schedules a callback to the corresponding named [code]method[/code] on [code]where[/code] after a frame has been drawn. The callback method must use only 1 argument which will be called with [code]userdata[/code]. </description> </method> <method name="scenario_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a scenario and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]scenario_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. @@ -3559,293 +2524,214 @@ </description> </method> <method name="scenario_set_camera_effects"> - <return type="void"> - </return> - <argument index="0" name="scenario" type="RID"> - </argument> - <argument index="1" name="effects" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="scenario" type="RID" /> + <argument index="1" name="effects" type="RID" /> <description> </description> </method> <method name="scenario_set_environment"> - <return type="void"> - </return> - <argument index="0" name="scenario" type="RID"> - </argument> - <argument index="1" name="environment" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="scenario" type="RID" /> + <argument index="1" name="environment" type="RID" /> <description> Sets the environment that will be used with this scenario. </description> </method> <method name="scenario_set_fallback_environment"> - <return type="void"> - </return> - <argument index="0" name="scenario" type="RID"> - </argument> - <argument index="1" name="environment" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="scenario" type="RID" /> + <argument index="1" name="environment" type="RID" /> <description> Sets the fallback environment to be used by this scenario. The fallback environment is used if no environment is set. Internally, this is used by the editor to provide a default environment. </description> </method> <method name="screen_space_roughness_limiter_set_active"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> - <argument index="1" name="amount" type="float"> - </argument> - <argument index="2" name="limit" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> + <argument index="1" name="amount" type="float" /> + <argument index="2" name="limit" type="float" /> <description> </description> </method> <method name="set_boot_image"> - <return type="void"> - </return> - <argument index="0" name="image" type="Image"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <argument index="2" name="scale" type="bool"> - </argument> - <argument index="3" name="use_filter" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="image" type="Image" /> + <argument index="1" name="color" type="Color" /> + <argument index="2" name="scale" type="bool" /> + <argument index="3" name="use_filter" type="bool" default="true" /> <description> Sets a boot image. The color defines the background color. If [code]scale[/code] is [code]true[/code], the image will be scaled to fit the screen size. If [code]use_filter[/code] is [code]true[/code], the image will be scaled with linear interpolation. If [code]use_filter[/code] is [code]false[/code], the image will be scaled with nearest-neighbor interpolation. </description> </method> <method name="set_debug_generate_wireframes"> - <return type="void"> - </return> - <argument index="0" name="generate" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="generate" type="bool" /> <description> If [code]true[/code], the engine will generate wireframes for use with the wireframe debug mode. </description> </method> <method name="set_default_clear_color"> - <return type="void"> - </return> - <argument index="0" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="color" type="Color" /> <description> Sets the default clear color which is used when a specific clear color has not been selected. </description> </method> <method name="shader_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates an empty shader and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]shader_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="shader_get_code" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> + <return type="String" /> + <argument index="0" name="shader" type="RID" /> <description> Returns a shader's code. </description> </method> <method name="shader_get_default_texture_param" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="param" type="StringName"> - </argument> + <return type="RID" /> + <argument index="0" name="shader" type="RID" /> + <argument index="1" name="param" type="StringName" /> <description> Returns a default texture from a shader searched by name. </description> </method> <method name="shader_get_param_default" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="param" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="shader" type="RID" /> + <argument index="1" name="param" type="StringName" /> <description> </description> </method> <method name="shader_get_param_list" qualifiers="const"> - <return type="Dictionary[]"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> + <return type="Dictionary[]" /> + <argument index="0" name="shader" type="RID" /> <description> Returns the parameters of a shader. </description> </method> <method name="shader_set_default_texture_param"> - <return type="void"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="param" type="StringName"> - </argument> - <argument index="2" name="texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="shader" type="RID" /> + <argument index="1" name="param" type="StringName" /> + <argument index="2" name="texture" type="RID" /> <description> Sets a shader's default texture. Overwrites the texture given by name. </description> </method> <method name="shadows_quality_set"> - <return type="void"> - </return> - <argument index="0" name="quality" type="int" enum="RenderingServer.ShadowQuality"> - </argument> + <return type="void" /> + <argument index="0" name="quality" type="int" enum="RenderingServer.ShadowQuality" /> <description> </description> </method> <method name="skeleton_allocate_data"> - <return type="void"> - </return> - <argument index="0" name="skeleton" type="RID"> - </argument> - <argument index="1" name="bones" type="int"> - </argument> - <argument index="2" name="is_2d_skeleton" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="skeleton" type="RID" /> + <argument index="1" name="bones" type="int" /> + <argument index="2" name="is_2d_skeleton" type="bool" default="false" /> <description> </description> </method> <method name="skeleton_bone_get_transform" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="skeleton" type="RID"> - </argument> - <argument index="1" name="bone" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="skeleton" type="RID" /> + <argument index="1" name="bone" type="int" /> <description> Returns the [Transform3D] set for a specific bone of this skeleton. </description> </method> <method name="skeleton_bone_get_transform_2d" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="skeleton" type="RID"> - </argument> - <argument index="1" name="bone" type="int"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="skeleton" type="RID" /> + <argument index="1" name="bone" type="int" /> <description> Returns the [Transform2D] set for a specific bone of this skeleton. </description> </method> <method name="skeleton_bone_set_transform"> - <return type="void"> - </return> - <argument index="0" name="skeleton" type="RID"> - </argument> - <argument index="1" name="bone" type="int"> - </argument> - <argument index="2" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="skeleton" type="RID" /> + <argument index="1" name="bone" type="int" /> + <argument index="2" name="transform" type="Transform3D" /> <description> Sets the [Transform3D] for a specific bone of this skeleton. </description> </method> <method name="skeleton_bone_set_transform_2d"> - <return type="void"> - </return> - <argument index="0" name="skeleton" type="RID"> - </argument> - <argument index="1" name="bone" type="int"> - </argument> - <argument index="2" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="skeleton" type="RID" /> + <argument index="1" name="bone" type="int" /> + <argument index="2" name="transform" type="Transform2D" /> <description> Sets the [Transform2D] for a specific bone of this skeleton. </description> </method> <method name="skeleton_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a skeleton and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]skeleton_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="skeleton_get_bone_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="skeleton" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="skeleton" type="RID" /> <description> Returns the number of bones allocated for this skeleton. </description> </method> <method name="skeleton_set_base_transform_2d"> - <return type="void"> - </return> - <argument index="0" name="skeleton" type="RID"> - </argument> - <argument index="1" name="base_transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="skeleton" type="RID" /> + <argument index="1" name="base_transform" type="Transform2D" /> <description> </description> </method> <method name="sky_bake_panorama"> - <return type="Image"> - </return> - <argument index="0" name="sky" type="RID"> - </argument> - <argument index="1" name="energy" type="float"> - </argument> - <argument index="2" name="bake_irradiance" type="bool"> - </argument> - <argument index="3" name="size" type="Vector2i"> - </argument> + <return type="Image" /> + <argument index="0" name="sky" type="RID" /> + <argument index="1" name="energy" type="float" /> + <argument index="2" name="bake_irradiance" type="bool" /> + <argument index="3" name="size" type="Vector2i" /> <description> </description> </method> <method name="sky_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates an empty sky and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]sky_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="sky_set_material"> - <return type="void"> - </return> - <argument index="0" name="sky" type="RID"> - </argument> - <argument index="1" name="material" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="sky" type="RID" /> + <argument index="1" name="material" type="RID" /> <description> Sets the material that the sky uses to render the background and reflection maps. </description> </method> <method name="sky_set_mode"> - <return type="void"> - </return> - <argument index="0" name="sky" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.SkyMode"> - </argument> + <return type="void" /> + <argument index="0" name="sky" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.SkyMode" /> <description> </description> </method> <method name="sky_set_radiance_size"> - <return type="void"> - </return> - <argument index="0" name="sky" type="RID"> - </argument> - <argument index="1" name="radiance_size" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="sky" type="RID" /> + <argument index="1" name="radiance_size" type="int" /> <description> </description> </method> <method name="spot_light_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates a spot light and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID can be used in most [code]light_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. @@ -3853,226 +2739,161 @@ </description> </method> <method name="sub_surface_scattering_set_quality"> - <return type="void"> - </return> - <argument index="0" name="quality" type="int" enum="RenderingServer.SubSurfaceScatteringQuality"> - </argument> + <return type="void" /> + <argument index="0" name="quality" type="int" enum="RenderingServer.SubSurfaceScatteringQuality" /> <description> </description> </method> <method name="sub_surface_scattering_set_scale"> - <return type="void"> - </return> - <argument index="0" name="scale" type="float"> - </argument> - <argument index="1" name="depth_scale" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="scale" type="float" /> + <argument index="1" name="depth_scale" type="float" /> <description> </description> </method> <method name="texture_2d_create"> - <return type="RID"> - </return> - <argument index="0" name="image" type="Image"> - </argument> + <return type="RID" /> + <argument index="0" name="image" type="Image" /> <description> </description> </method> <method name="texture_2d_get" qualifiers="const"> - <return type="Image"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> + <return type="Image" /> + <argument index="0" name="texture" type="RID" /> <description> </description> </method> <method name="texture_2d_layer_get" qualifiers="const"> - <return type="Image"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="layer" type="int"> - </argument> + <return type="Image" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="layer" type="int" /> <description> </description> </method> <method name="texture_2d_layered_create"> - <return type="RID"> - </return> - <argument index="0" name="layers" type="Image[]"> - </argument> - <argument index="1" name="layered_type" type="int" enum="RenderingServer.TextureLayeredType"> - </argument> + <return type="RID" /> + <argument index="0" name="layers" type="Image[]" /> + <argument index="1" name="layered_type" type="int" enum="RenderingServer.TextureLayeredType" /> <description> </description> </method> <method name="texture_2d_layered_placeholder_create"> - <return type="RID"> - </return> - <argument index="0" name="layered_type" type="int" enum="RenderingServer.TextureLayeredType"> - </argument> + <return type="RID" /> + <argument index="0" name="layered_type" type="int" enum="RenderingServer.TextureLayeredType" /> <description> </description> </method> <method name="texture_2d_placeholder_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="texture_2d_update"> - <return type="void"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="image" type="Image"> - </argument> - <argument index="2" name="layer" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="image" type="Image" /> + <argument index="2" name="layer" type="int" /> <description> </description> </method> <method name="texture_3d_create"> - <return type="RID"> - </return> - <argument index="0" name="format" type="int" enum="Image.Format"> - </argument> - <argument index="1" name="width" type="int"> - </argument> - <argument index="2" name="height" type="int"> - </argument> - <argument index="3" name="depth" type="int"> - </argument> - <argument index="4" name="mipmaps" type="bool"> - </argument> - <argument index="5" name="data" type="Image[]"> - </argument> + <return type="RID" /> + <argument index="0" name="format" type="int" enum="Image.Format" /> + <argument index="1" name="width" type="int" /> + <argument index="2" name="height" type="int" /> + <argument index="3" name="depth" type="int" /> + <argument index="4" name="mipmaps" type="bool" /> + <argument index="5" name="data" type="Image[]" /> <description> </description> </method> <method name="texture_3d_get" qualifiers="const"> - <return type="Image[]"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> + <return type="Image[]" /> + <argument index="0" name="texture" type="RID" /> <description> </description> </method> <method name="texture_3d_placeholder_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="texture_3d_update"> - <return type="void"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="data" type="Image[]"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="data" type="Image[]" /> <description> </description> </method> <method name="texture_get_path" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> + <return type="String" /> + <argument index="0" name="texture" type="RID" /> <description> </description> </method> <method name="texture_proxy_create"> - <return type="RID"> - </return> - <argument index="0" name="base" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="base" type="RID" /> <description> </description> </method> <method name="texture_proxy_update"> - <return type="void"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="proxy_to" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="proxy_to" type="RID" /> <description> </description> </method> <method name="texture_replace"> - <return type="void"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="by_texture" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="by_texture" type="RID" /> <description> </description> </method> <method name="texture_set_force_redraw_if_visible"> - <return type="void"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> <method name="texture_set_path"> - <return type="void"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="path" type="String" /> <description> </description> </method> <method name="texture_set_size_override"> - <return type="void"> - </return> - <argument index="0" name="texture" type="RID"> - </argument> - <argument index="1" name="width" type="int"> - </argument> - <argument index="2" name="height" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="texture" type="RID" /> + <argument index="1" name="width" type="int" /> + <argument index="2" name="height" type="int" /> <description> </description> </method> <method name="viewport_attach_camera"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="camera" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="camera" type="RID" /> <description> Sets a viewport's camera. </description> </method> <method name="viewport_attach_canvas"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="canvas" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="canvas" type="RID" /> <description> Sets a viewport's canvas. </description> </method> <method name="viewport_attach_to_screen"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="rect" type="Rect2" default="Rect2(0, 0, 0, 0)"> - </argument> - <argument index="2" name="screen" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="rect" type="Rect2" default="Rect2(0, 0, 0, 0)" /> + <argument index="2" name="screen" type="int" default="0" /> <description> Copies the viewport to a region of the screen specified by [code]rect[/code]. If [method viewport_set_render_direct_to_screen] is [code]true[/code], then the viewport does not use a framebuffer and the contents of the viewport are rendered directly to screen. However, note that the root viewport is drawn last, therefore it will draw over the screen. Accordingly, you must set the root viewport to an area that does not cover the area that you have attached this viewport to. For example, you can set the root viewport to not render at all with the following code: @@ -4088,570 +2909,408 @@ </description> </method> <method name="viewport_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> Creates an empty viewport and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]viewport_*[/code] RenderingServer functions. Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> <method name="viewport_get_measured_render_time_cpu" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="viewport" type="RID" /> <description> </description> </method> <method name="viewport_get_measured_render_time_gpu" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="viewport" type="RID" /> <description> </description> </method> <method name="viewport_get_render_info"> - <return type="int"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="type" type="int" enum="RenderingServer.ViewportRenderInfoType"> - </argument> - <argument index="2" name="info" type="int" enum="RenderingServer.ViewportRenderInfo"> - </argument> + <return type="int" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="type" type="int" enum="RenderingServer.ViewportRenderInfoType" /> + <argument index="2" name="info" type="int" enum="RenderingServer.ViewportRenderInfo" /> <description> </description> </method> <method name="viewport_get_texture" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="viewport" type="RID" /> <description> Returns the viewport's last rendered frame. </description> </method> <method name="viewport_remove_canvas"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="canvas" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="canvas" type="RID" /> <description> Detaches a viewport from a canvas and vice versa. </description> </method> <method name="viewport_set_active"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="active" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="active" type="bool" /> <description> If [code]true[/code], sets the viewport active, else sets it inactive. </description> </method> <method name="viewport_set_canvas_stacking"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="canvas" type="RID"> - </argument> - <argument index="2" name="layer" type="int"> - </argument> - <argument index="3" name="sublayer" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="canvas" type="RID" /> + <argument index="2" name="layer" type="int" /> + <argument index="3" name="sublayer" type="int" /> <description> Sets the stacking order for a viewport's canvas. [code]layer[/code] is the actual canvas layer, while [code]sublayer[/code] specifies the stacking order of the canvas among those in the same layer. </description> </method> <method name="viewport_set_canvas_transform"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="canvas" type="RID"> - </argument> - <argument index="2" name="offset" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="canvas" type="RID" /> + <argument index="2" name="offset" type="Transform2D" /> <description> Sets the transformation of a viewport's canvas. </description> </method> <method name="viewport_set_clear_mode"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="clear_mode" type="int" enum="RenderingServer.ViewportClearMode"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="clear_mode" type="int" enum="RenderingServer.ViewportClearMode" /> <description> Sets the clear mode of a viewport. See [enum ViewportClearMode] for options. </description> </method> <method name="viewport_set_debug_draw"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="draw" type="int" enum="RenderingServer.ViewportDebugDraw"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="draw" type="int" enum="RenderingServer.ViewportDebugDraw" /> <description> Sets the debug draw mode of a viewport. See [enum ViewportDebugDraw] for options. </description> </method> <method name="viewport_set_default_canvas_item_texture_filter"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="filter" type="int" enum="RenderingServer.CanvasItemTextureFilter"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="filter" type="int" enum="RenderingServer.CanvasItemTextureFilter" /> <description> </description> </method> <method name="viewport_set_default_canvas_item_texture_repeat"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="repeat" type="int" enum="RenderingServer.CanvasItemTextureRepeat"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="repeat" type="int" enum="RenderingServer.CanvasItemTextureRepeat" /> <description> </description> </method> <method name="viewport_set_disable_2d"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="disable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="disable" type="bool" /> <description> If [code]true[/code], the viewport's canvas is not rendered. </description> </method> <method name="viewport_set_disable_3d"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="disable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="disable" type="bool" /> <description> </description> </method> <method name="viewport_set_disable_environment"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="disabled" type="bool" /> <description> If [code]true[/code], rendering of a viewport's environment is disabled. </description> </method> <method name="viewport_set_global_canvas_transform"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform2D"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="transform" type="Transform2D" /> <description> Sets the viewport's global transformation matrix. </description> </method> <method name="viewport_set_measure_render_time"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> <method name="viewport_set_msaa"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="msaa" type="int" enum="RenderingServer.ViewportMSAA"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="msaa" type="int" enum="RenderingServer.ViewportMSAA" /> <description> Sets the anti-aliasing mode. See [enum ViewportMSAA] for options. </description> </method> <method name="viewport_set_occlusion_culling_build_quality"> - <return type="void"> - </return> - <argument index="0" name="quality" type="int" enum="RenderingServer.ViewportOcclusionCullingBuildQuality"> - </argument> + <return type="void" /> + <argument index="0" name="quality" type="int" enum="RenderingServer.ViewportOcclusionCullingBuildQuality" /> <description> </description> </method> <method name="viewport_set_occlusion_rays_per_thread"> - <return type="void"> - </return> - <argument index="0" name="rays_per_thread" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="rays_per_thread" type="int" /> <description> </description> </method> <method name="viewport_set_parent_viewport"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="parent_viewport" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="parent_viewport" type="RID" /> <description> Sets the viewport's parent to another viewport. </description> </method> <method name="viewport_set_render_direct_to_screen"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> If [code]true[/code], render the contents of the viewport directly to screen. This allows a low-level optimization where you can skip drawing a viewport to the root viewport. While this optimization can result in a significant increase in speed (especially on older devices), it comes at a cost of usability. When this is enabled, you cannot read from the viewport or from the [code]SCREEN_TEXTURE[/code]. You also lose the benefit of certain window settings, such as the various stretch modes. Another consequence to be aware of is that in 2D the rendering happens in window coordinates, so if you have a viewport that is double the size of the window, and you set this, then only the portion that fits within the window will be drawn, no automatic scaling is possible, even if your game scene is significantly larger than the window size. </description> </method> <method name="viewport_set_scenario"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="scenario" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="scenario" type="RID" /> <description> Sets a viewport's scenario. The scenario contains information about environment information, reflection atlas etc. </description> </method> <method name="viewport_set_screen_space_aa"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="mode" type="int" enum="RenderingServer.ViewportScreenSpaceAA"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="mode" type="int" enum="RenderingServer.ViewportScreenSpaceAA" /> <description> </description> </method> <method name="viewport_set_sdf_oversize_and_scale"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="oversize" type="int" enum="RenderingServer.ViewportSDFOversize"> - </argument> - <argument index="2" name="scale" type="int" enum="RenderingServer.ViewportSDFScale"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="oversize" type="int" enum="RenderingServer.ViewportSDFOversize" /> + <argument index="2" name="scale" type="int" enum="RenderingServer.ViewportSDFScale" /> <description> </description> </method> <method name="viewport_set_shadow_atlas_quadrant_subdivision"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="quadrant" type="int"> - </argument> - <argument index="2" name="subdivision" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="quadrant" type="int" /> + <argument index="2" name="subdivision" type="int" /> <description> Sets the shadow atlas quadrant's subdivision. </description> </method> <method name="viewport_set_shadow_atlas_size"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="size" type="int"> - </argument> - <argument index="2" name="use_16_bits" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="size" type="int" /> + <argument index="2" name="use_16_bits" type="bool" default="false" /> <description> Sets the size of the shadow atlas's images (used for omni and spot lights). The value will be rounded up to the nearest power of 2. </description> </method> <method name="viewport_set_size"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="width" type="int"> - </argument> - <argument index="2" name="height" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="width" type="int" /> + <argument index="2" name="height" type="int" /> <description> Sets the viewport's width and height. </description> </method> <method name="viewport_set_snap_2d_transforms_to_pixel"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> </description> </method> <method name="viewport_set_snap_2d_vertices_to_pixel"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> </description> </method> <method name="viewport_set_transparent_background"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> If [code]true[/code], the viewport renders its background as transparent. </description> </method> <method name="viewport_set_update_mode"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="update_mode" type="int" enum="RenderingServer.ViewportUpdateMode"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="update_mode" type="int" enum="RenderingServer.ViewportUpdateMode" /> <description> Sets when the viewport should be updated. See [enum ViewportUpdateMode] constants for options. </description> </method> <method name="viewport_set_use_debanding"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> <method name="viewport_set_use_occlusion_culling"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> <method name="viewport_set_use_xr"> - <return type="void"> - </return> - <argument index="0" name="viewport" type="RID"> - </argument> - <argument index="1" name="use_xr" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="viewport" type="RID" /> + <argument index="1" name="use_xr" type="bool" /> <description> If [code]true[/code], the viewport uses augmented or virtual reality technologies. See [XRInterface]. </description> </method> <method name="visibility_notifier_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="visibility_notifier_set_aabb"> - <return type="void"> - </return> - <argument index="0" name="notifier" type="RID"> - </argument> - <argument index="1" name="aabb" type="AABB"> - </argument> + <return type="void" /> + <argument index="0" name="notifier" type="RID" /> + <argument index="1" name="aabb" type="AABB" /> <description> </description> </method> <method name="visibility_notifier_set_callbacks"> - <return type="void"> - </return> - <argument index="0" name="notifier" type="RID"> - </argument> - <argument index="1" name="enter_callable" type="Callable"> - </argument> - <argument index="2" name="exit_callable" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="notifier" type="RID" /> + <argument index="1" name="enter_callable" type="Callable" /> + <argument index="2" name="exit_callable" type="Callable" /> <description> </description> </method> <method name="voxel_gi_allocate_data"> - <return type="void"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> - <argument index="1" name="to_cell_xform" type="Transform3D"> - </argument> - <argument index="2" name="aabb" type="AABB"> - </argument> - <argument index="3" name="octree_size" type="Vector3i"> - </argument> - <argument index="4" name="octree_cells" type="PackedByteArray"> - </argument> - <argument index="5" name="data_cells" type="PackedByteArray"> - </argument> - <argument index="6" name="distance_field" type="PackedByteArray"> - </argument> - <argument index="7" name="level_counts" type="PackedInt32Array"> - </argument> + <return type="void" /> + <argument index="0" name="voxel_gi" type="RID" /> + <argument index="1" name="to_cell_xform" type="Transform3D" /> + <argument index="2" name="aabb" type="AABB" /> + <argument index="3" name="octree_size" type="Vector3i" /> + <argument index="4" name="octree_cells" type="PackedByteArray" /> + <argument index="5" name="data_cells" type="PackedByteArray" /> + <argument index="6" name="distance_field" type="PackedByteArray" /> + <argument index="7" name="level_counts" type="PackedInt32Array" /> <description> </description> </method> <method name="voxel_gi_create"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="voxel_gi_get_data_cells" qualifiers="const"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="voxel_gi" type="RID" /> <description> </description> </method> <method name="voxel_gi_get_distance_field" qualifiers="const"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="voxel_gi" type="RID" /> <description> </description> </method> <method name="voxel_gi_get_level_counts" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="voxel_gi" type="RID" /> <description> </description> </method> <method name="voxel_gi_get_octree_cells" qualifiers="const"> - <return type="PackedByteArray"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> + <return type="PackedByteArray" /> + <argument index="0" name="voxel_gi" type="RID" /> <description> </description> </method> <method name="voxel_gi_get_octree_size" qualifiers="const"> - <return type="Vector3i"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="voxel_gi" type="RID" /> <description> </description> </method> <method name="voxel_gi_get_to_cell_xform" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="voxel_gi" type="RID" /> <description> </description> </method> <method name="voxel_gi_set_bias"> - <return type="void"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> - <argument index="1" name="bias" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voxel_gi" type="RID" /> + <argument index="1" name="bias" type="float" /> <description> </description> </method> <method name="voxel_gi_set_dynamic_range"> - <return type="void"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> - <argument index="1" name="range" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voxel_gi" type="RID" /> + <argument index="1" name="range" type="float" /> <description> </description> </method> <method name="voxel_gi_set_energy"> - <return type="void"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> - <argument index="1" name="energy" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voxel_gi" type="RID" /> + <argument index="1" name="energy" type="float" /> <description> </description> </method> <method name="voxel_gi_set_interior"> - <return type="void"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="voxel_gi" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> <method name="voxel_gi_set_normal_bias"> - <return type="void"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> - <argument index="1" name="bias" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voxel_gi" type="RID" /> + <argument index="1" name="bias" type="float" /> <description> </description> </method> <method name="voxel_gi_set_propagation"> - <return type="void"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> - <argument index="1" name="amount" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="voxel_gi" type="RID" /> + <argument index="1" name="amount" type="float" /> <description> </description> </method> <method name="voxel_gi_set_quality"> - <return type="void"> - </return> - <argument index="0" name="quality" type="int" enum="RenderingServer.VoxelGIQuality"> - </argument> + <return type="void" /> + <argument index="0" name="quality" type="int" enum="RenderingServer.VoxelGIQuality" /> <description> </description> </method> <method name="voxel_gi_set_use_two_bounces"> - <return type="void"> - </return> - <argument index="0" name="voxel_gi" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="voxel_gi" type="RID" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> diff --git a/doc/classes/Resource.xml b/doc/classes/Resource.xml index c8800a3c25..701ecf815c 100644 --- a/doc/classes/Resource.xml +++ b/doc/classes/Resource.xml @@ -13,17 +13,14 @@ </tutorials> <methods> <method name="_setup_local_to_scene" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Virtual function which can be overridden to customize the behavior value of [method setup_local_to_scene]. </description> </method> <method name="duplicate" qualifiers="const"> - <return type="Resource"> - </return> - <argument index="0" name="subresources" type="bool" default="false"> - </argument> + <return type="Resource" /> + <argument index="0" name="subresources" type="bool" default="false" /> <description> Duplicates the resource, returning a new resource. By default, sub-resources are shared between resource copies for efficiency. This can be changed by passing [code]true[/code] to the [code]subresources[/code] argument which will copy the subresources. [b]Note:[/b] If [code]subresources[/code] is [code]true[/code], this method will only perform a shallow copy. Nested resources within subresources will not be duplicated and will still be shared. @@ -31,8 +28,7 @@ </description> </method> <method name="emit_changed"> - <return type="void"> - </return> + <return type="void" /> <description> Emits the [signal changed] signal. If external objects which depend on this resource should be updated, this method must be called manually whenever the state of this resource has changed (such as modification of properties). @@ -44,32 +40,27 @@ </description> </method> <method name="get_local_scene" qualifiers="const"> - <return type="Node"> - </return> + <return type="Node" /> <description> If [member resource_local_to_scene] is enabled and the resource was loaded from a [PackedScene] instantiation, returns the local scene where this resource's unique copy is in use. Otherwise, returns [code]null[/code]. </description> </method> <method name="get_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the RID of the resource (or an empty RID). Many resources (such as [Texture2D], [Mesh], etc) are high-level abstractions of resources stored in a server, so this function will return the original RID. </description> </method> <method name="setup_local_to_scene"> - <return type="void"> - </return> + <return type="void" /> <description> This method is called when a resource with [member resource_local_to_scene] enabled is loaded from a [PackedScene] instantiation. Its behavior can be customized by overriding [method _setup_local_to_scene] from script. For most resources, this method performs no base logic. [ViewportTexture] performs custom logic to properly set the proxy texture and flags in the local viewport. </description> </method> <method name="take_over_path"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> <description> Sets the path of the resource, potentially overriding an existing cache entry for this path. This differs from setting [member resource_path], as the latter would error out if another resource was already cached for the given path. </description> diff --git a/doc/classes/ResourceFormatLoader.xml b/doc/classes/ResourceFormatLoader.xml index 6abe5c813b..bce5785cc1 100644 --- a/doc/classes/ResourceFormatLoader.xml +++ b/doc/classes/ResourceFormatLoader.xml @@ -12,67 +12,51 @@ </tutorials> <methods> <method name="_get_dependencies" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="add_types" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="add_types" type="String" /> <description> If implemented, gets the dependencies of a given resource. If [code]add_types[/code] is [code]true[/code], paths should be appended [code]::TypeName[/code], where [code]TypeName[/code] is the class name of the dependency. [b]Note:[/b] Custom resource types defined by scripts aren't known by the [ClassDB], so you might just return [code]"Resource"[/code] for them. </description> </method> <method name="_get_recognized_extensions" qualifiers="virtual"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Gets the list of extensions for files this loader is able to read. </description> </method> <method name="_get_resource_type" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="path" type="String" /> <description> Gets the class name of the resource associated with the given path. If the loader cannot handle it, it should return [code]""[/code]. [b]Note:[/b] Custom resource types defined by scripts aren't known by the [ClassDB], so you might just return [code]"Resource"[/code] for them. </description> </method> <method name="_handles_type" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="typename" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="typename" type="StringName" /> <description> Tells which resource class this loader can load. [b]Note:[/b] Custom resource types defined by scripts aren't known by the [ClassDB], so you might just handle [code]"Resource"[/code] for them. </description> </method> <method name="_load" qualifiers="virtual"> - <return type="Variant"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="original_path" type="String"> - </argument> - <argument index="2" name="use_sub_threads" type="bool"> - </argument> - <argument index="3" name="cache_mode" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="original_path" type="String" /> + <argument index="2" name="use_sub_threads" type="bool" /> + <argument index="3" name="cache_mode" type="int" /> <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 Error] constant in case of failure. The [code]cache_mode[/code] property defines whether and how the cache should be used or updated when loading the resource. See [enum CacheMode] for details. </description> </method> <method name="_rename_dependencies" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="renames" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="renames" type="String" /> <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 OK] on success, or an [enum Error] constant in case of failure. diff --git a/doc/classes/ResourceFormatSaver.xml b/doc/classes/ResourceFormatSaver.xml index df71e05d02..ef9eebc953 100644 --- a/doc/classes/ResourceFormatSaver.xml +++ b/doc/classes/ResourceFormatSaver.xml @@ -11,32 +11,24 @@ </tutorials> <methods> <method name="_get_recognized_extensions" qualifiers="virtual"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="resource" type="Resource"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="resource" type="Resource" /> <description> Returns the list of extensions available for saving the resource object, provided it is recognized (see [method _recognize]). </description> </method> <method name="_recognize" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="resource" type="Resource"> - </argument> + <return type="bool" /> + <argument index="0" name="resource" type="Resource" /> <description> Returns whether the given resource object can be saved by this saver. </description> </method> <method name="_save" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="resource" type="Resource"> - </argument> - <argument index="2" name="flags" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="resource" type="Resource" /> + <argument index="2" name="flags" type="int" /> <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 OK] on success, or an [enum Error] constant in case of failure. diff --git a/doc/classes/ResourceLoader.xml b/doc/classes/ResourceLoader.xml index 682d7b97f3..3a3ce189d5 100644 --- a/doc/classes/ResourceLoader.xml +++ b/doc/classes/ResourceLoader.xml @@ -12,54 +12,41 @@ </tutorials> <methods> <method name="exists"> - <return type="bool"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="type_hint" type="String" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="type_hint" type="String" default="""" /> <description> Returns whether a recognized resource exists for the given [code]path[/code]. An optional [code]type_hint[/code] can be used to further specify the [Resource] type that should be handled by the [ResourceFormatLoader]. Anything that inherits from [Resource] can be used as a type hint, for example [Image]. </description> </method> <method name="get_dependencies"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="path" type="String" /> <description> Returns the dependencies for the resource at the given [code]path[/code]. </description> </method> <method name="get_recognized_extensions_for_type"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="type" type="String"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="type" type="String" /> <description> Returns the list of recognized extensions for a resource type. </description> </method> <method name="has_cached"> - <return type="bool"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="path" type="String" /> <description> Returns whether a cached resource is available for the given [code]path[/code]. Once a resource has been loaded by the engine, it is cached in memory for faster access, and future calls to the [method load] method will use the cached version. The cached resource can be overridden by using [method Resource.take_over_path] on a new resource for that same path. </description> </method> <method name="load"> - <return type="Resource"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="type_hint" type="String" default=""""> - </argument> - <argument index="2" name="cache_mode" type="int" enum="ResourceLoader.CacheMode" default="1"> - </argument> + <return type="Resource" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="type_hint" type="String" default="""" /> + <argument index="2" name="cache_mode" type="int" enum="ResourceLoader.CacheMode" default="1" /> <description> Loads a resource at the given [code]path[/code], caching the result for further access. The registered [ResourceFormatLoader]s are queried sequentially to find the first one which can handle the file's extension, and then attempt loading. If loading fails, the remaining ResourceFormatLoaders are also attempted. @@ -70,45 +57,34 @@ </description> </method> <method name="load_threaded_get"> - <return type="Resource"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="Resource" /> + <argument index="0" name="path" type="String" /> <description> Returns the resource loaded by [method load_threaded_request]. If this is called before the loading thread is done (i.e. [method load_threaded_get_status] is not [constant THREAD_LOAD_LOADED]), the calling thread will be blocked until the resource has finished loading. </description> </method> <method name="load_threaded_get_status"> - <return type="int" enum="ResourceLoader.ThreadLoadStatus"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="progress" type="Array" default="[]"> - </argument> + <return type="int" enum="ResourceLoader.ThreadLoadStatus" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="progress" type="Array" default="[]" /> <description> Returns the status of a threaded loading operation started with [method load_threaded_request] for the resource at [code]path[/code]. See [enum ThreadLoadStatus] for possible return values. An array variable can optionally be passed via [code]progress[/code], and will return a one-element array containing the percentage of completion of the threaded loading. </description> </method> <method name="load_threaded_request"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="type_hint" type="String" default=""""> - </argument> - <argument index="2" name="use_sub_threads" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="type_hint" type="String" default="""" /> + <argument index="2" name="use_sub_threads" type="bool" default="false" /> <description> Loads the resource using threads. If [code]use_sub_threads[/code] is [code]true[/code], multiple threads will be used to load the resource, which makes loading faster, but may affect the main thread (and thus cause game slowdowns). </description> </method> <method name="set_abort_on_missing_resources"> - <return type="void"> - </return> - <argument index="0" name="abort" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="abort" type="bool" /> <description> Changes the behavior on missing sub-resources. The default behavior is to abort loading. </description> diff --git a/doc/classes/ResourcePreloader.xml b/doc/classes/ResourcePreloader.xml index 3159a4c424..8ac8717581 100644 --- a/doc/classes/ResourcePreloader.xml +++ b/doc/classes/ResourcePreloader.xml @@ -11,57 +11,44 @@ </tutorials> <methods> <method name="add_resource"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="resource" type="Resource"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="resource" type="Resource" /> <description> Adds a resource to the preloader with the given [code]name[/code]. If a resource with the given [code]name[/code] already exists, the new resource will be renamed to "[code]name[/code] N" where N is an incrementing number starting from 2. </description> </method> <method name="get_resource" qualifiers="const"> - <return type="Resource"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="Resource" /> + <argument index="0" name="name" type="StringName" /> <description> Returns the resource associated to [code]name[/code]. </description> </method> <method name="get_resource_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns the list of resources inside the preloader. </description> </method> <method name="has_resource" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if the preloader contains a resource associated to [code]name[/code]. </description> </method> <method name="remove_resource"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Removes the resource associated to [code]name[/code] from the preloader. </description> </method> <method name="rename_resource"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="newname" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="newname" type="StringName" /> <description> Renames a resource inside the preloader from [code]name[/code] to [code]newname[/code]. </description> diff --git a/doc/classes/ResourceSaver.xml b/doc/classes/ResourceSaver.xml index 437b0ce730..39f166db2e 100644 --- a/doc/classes/ResourceSaver.xml +++ b/doc/classes/ResourceSaver.xml @@ -11,23 +11,17 @@ </tutorials> <methods> <method name="get_recognized_extensions"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="type" type="Resource"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="type" type="Resource" /> <description> Returns the list of extensions available for saving a resource of a given type. </description> </method> <method name="save"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="resource" type="Resource"> - </argument> - <argument index="2" name="flags" type="int" enum="ResourceSaver.SaverFlags" default="0"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="resource" type="Resource" /> + <argument index="2" name="flags" type="int" enum="ResourceSaver.SaverFlags" default="0" /> <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. diff --git a/doc/classes/ResourceUID.xml b/doc/classes/ResourceUID.xml index 9fe61d8008..9e3d647ccf 100644 --- a/doc/classes/ResourceUID.xml +++ b/doc/classes/ResourceUID.xml @@ -8,68 +8,51 @@ </tutorials> <methods> <method name="add_id"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="path" type="String" /> <description> </description> </method> <method name="create_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_id_path" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="id" type="int" /> <description> </description> </method> <method name="has_id" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> </description> </method> <method name="id_to_text" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="id" type="int" /> <description> </description> </method> <method name="remove_id"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> </description> </method> <method name="set_id"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="path" type="String" /> <description> </description> </method> <method name="text_to_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="text_id" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="text_id" type="String" /> <description> </description> </method> diff --git a/doc/classes/RichTextEffect.xml b/doc/classes/RichTextEffect.xml index edab35f162..142afbb860 100644 --- a/doc/classes/RichTextEffect.xml +++ b/doc/classes/RichTextEffect.xml @@ -24,10 +24,8 @@ </tutorials> <methods> <method name="_process_custom_fx" qualifiers="virtual"> - <return type="bool"> - </return> - <argument index="0" name="char_fx" type="CharFXTransform"> - </argument> + <return type="bool" /> + <argument index="0" name="char_fx" type="CharFXTransform" /> <description> Override this method to modify properties in [code]char_fx[/code]. The method must return [code]true[/code] if the character could be transformed successfully. If the method returns [code]false[/code], it will skip transformation to avoid displaying broken text. </description> diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml index 38884a027f..e1362917b0 100644 --- a/doc/classes/RichTextLabel.xml +++ b/doc/classes/RichTextLabel.xml @@ -16,443 +16,346 @@ </tutorials> <methods> <method name="add_image"> - <return type="void"> - </return> - <argument index="0" name="image" type="Texture2D"> - </argument> - <argument index="1" name="width" type="int" default="0"> - </argument> - <argument index="2" name="height" type="int" default="0"> - </argument> - <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="4" name="inline_align" type="int" enum="VAlign" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="image" type="Texture2D" /> + <argument index="1" name="width" type="int" default="0" /> + <argument index="2" name="height" type="int" default="0" /> + <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="4" name="inline_align" type="int" enum="VAlign" default="0" /> <description> Adds an image's opening and closing tags to the tag stack, optionally providing a [code]width[/code] and [code]height[/code] to resize the image and a [code]color[/code] to tint the image. If [code]width[/code] or [code]height[/code] is set to 0, the image size will be adjusted in order to keep the original aspect ratio. </description> </method> <method name="add_text"> - <return type="void"> - </return> - <argument index="0" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="text" type="String" /> <description> Adds raw non-BBCode-parsed text to the tag stack. </description> </method> <method name="append_bbcode"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="bbcode" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="bbcode" type="String" /> <description> Parses [code]bbcode[/code] and adds tags to the tag stack as needed. Returns the result of the parsing, [constant OK] if successful. [b]Note:[/b] Using this method, you can't close a tag that was opened in a previous [method append_bbcode] call. This is done to improve performance, especially when updating large RichTextLabels since rebuilding the whole BBCode every time would be slower. If you absolutely need to close a tag in a future method call, append the [member bbcode_text] instead of using [method append_bbcode]. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the tag stack and sets [member bbcode_text] to an empty string. </description> </method> <method name="get_content_height" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the height of the content. </description> </method> <method name="get_line_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the total number of lines in the text. Wrapped text is counted as multiple lines. </description> </method> <method name="get_paragraph_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the total number of paragraphs (newlines or [code]p[/code] tags in the tag stack's text tags). Considers wrapped text as one paragraph. </description> </method> <method name="get_selected_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the current selection text. Does not include BBCodes. </description> </method> <method name="get_selection_from" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the current selection first character index if a selection is active, [code]-1[/code] otherwise. Does not include BBCodes. </description> </method> <method name="get_selection_to" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the current selection last character index if a selection is active, [code]-1[/code] otherwise. Does not include BBCodes. </description> </method> <method name="get_total_character_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the total number of characters from text tags. Does not include BBCodes. </description> </method> <method name="get_v_scroll"> - <return type="VScrollBar"> - </return> + <return type="VScrollBar" /> <description> Returns the vertical scrollbar. </description> </method> <method name="get_visible_line_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of visible lines. </description> </method> <method name="get_visible_paragraph_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of visible paragraphs. A paragraph is considered visible if at least one of its lines is visible. </description> </method> <method name="install_effect"> - <return type="void"> - </return> - <argument index="0" name="effect" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="effect" type="Variant" /> <description> Installs a custom effect. [code]effect[/code] should be a valid [RichTextEffect]. </description> </method> <method name="newline"> - <return type="void"> - </return> + <return type="void" /> <description> Adds a newline tag to the tag stack. </description> </method> <method name="parse_bbcode"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="bbcode" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="bbcode" type="String" /> <description> The assignment version of [method append_bbcode]. Clears the tag stack and inserts the new content. Returns [constant OK] if parses [code]bbcode[/code] successfully. </description> </method> <method name="parse_expressions_for_values"> - <return type="Dictionary"> - </return> - <argument index="0" name="expressions" type="PackedStringArray"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="expressions" type="PackedStringArray" /> <description> Parses BBCode parameter [code]expressions[/code] into a dictionary. </description> </method> <method name="pop"> - <return type="void"> - </return> + <return type="void" /> <description> Terminates the current tag. Use after [code]push_*[/code] methods to close BBCodes manually. Does not need to follow [code]add_*[/code] methods. </description> </method> <method name="push_bgcolor"> - <return type="void"> - </return> - <argument index="0" name="bgcolor" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="bgcolor" type="Color" /> <description> Adds a [code][bgcolor][/code] tag to the tag stack. </description> </method> <method name="push_bold"> - <return type="void"> - </return> + <return type="void" /> <description> Adds a [code][font][/code] tag with a bold font to the tag stack. This is the same as adding a [code][b][/code] tag if not currently in a [code][i][/code] tag. </description> </method> <method name="push_bold_italics"> - <return type="void"> - </return> + <return type="void" /> <description> Adds a [code][font][/code] tag with a bold italics font to the tag stack. </description> </method> <method name="push_cell"> - <return type="void"> - </return> + <return type="void" /> <description> Adds a [code][cell][/code] tag to the tag stack. Must be inside a [code][table][/code] tag. See [method push_table] for details. </description> </method> <method name="push_color"> - <return type="void"> - </return> - <argument index="0" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="color" type="Color" /> <description> Adds a [code][color][/code] tag to the tag stack. </description> </method> <method name="push_dropcap"> - <return type="void"> - </return> - <argument index="0" name="string" type="String"> - </argument> - <argument index="1" name="font" type="Font"> - </argument> - <argument index="2" name="size" type="int"> - </argument> - <argument index="3" name="dropcap_margins" type="Rect2" default="Rect2(0, 0, 0, 0)"> - </argument> - <argument index="4" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="5" name="outline_size" type="int" default="0"> - </argument> - <argument index="6" name="outline_color" type="Color" default="Color(0, 0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="string" type="String" /> + <argument index="1" name="font" type="Font" /> + <argument index="2" name="size" type="int" /> + <argument index="3" name="dropcap_margins" type="Rect2" default="Rect2(0, 0, 0, 0)" /> + <argument index="4" name="color" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="5" name="outline_size" type="int" default="0" /> + <argument index="6" name="outline_color" type="Color" default="Color(0, 0, 0, 0)" /> <description> Adds a [code][dropcap][/code] tag to the tag stack. Drop cap (dropped capital) is a decorative element at the beginning of a paragraph that is larger than the rest of the text. </description> </method> <method name="push_fgcolor"> - <return type="void"> - </return> - <argument index="0" name="fgcolor" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="fgcolor" type="Color" /> <description> Adds a [code][fgcolor][/code] tag to the tag stack. </description> </method> <method name="push_font"> - <return type="void"> - </return> - <argument index="0" name="font" type="Font"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="Font" /> <description> Adds a [code][font][/code] tag to the tag stack. Overrides default fonts for its duration. </description> </method> <method name="push_font_features"> - <return type="void"> - </return> - <argument index="0" name="opentype_features" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="opentype_features" type="Dictionary" /> <description> Adds a [code][ot_feature][/code] tag to the tag stack. Overrides default OpenType font feature for its duration. </description> </method> <method name="push_font_size"> - <return type="void"> - </return> - <argument index="0" name="font_size" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="font_size" type="int" /> <description> Adds a [code][font_size][/code] tag to the tag stack. Overrides default font size for its duration. </description> </method> <method name="push_indent"> - <return type="void"> - </return> - <argument index="0" name="level" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="level" type="int" /> <description> Adds an [code][indent][/code] tag to the tag stack. Multiplies [code]level[/code] by current [member tab_size] to determine new margin length. </description> </method> <method name="push_italics"> - <return type="void"> - </return> + <return type="void" /> <description> Adds a [code][font][/code] tag with a italics font to the tag stack. This is the same as adding a [code][i][/code] tag if not currently in a [code][b][/code] tag. </description> </method> <method name="push_list"> - <return type="void"> - </return> - <argument index="0" name="level" type="int"> - </argument> - <argument index="1" name="type" type="int" enum="RichTextLabel.ListType"> - </argument> - <argument index="2" name="capitalize" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="level" type="int" /> + <argument index="1" name="type" type="int" enum="RichTextLabel.ListType" /> + <argument index="2" name="capitalize" type="bool" /> <description> Adds [code][ol][/code] or [code][ul][/code] tag to the tag stack. Multiplies [code]level[/code] by current [member tab_size] to determine new margin length. </description> </method> <method name="push_meta"> - <return type="void"> - </return> - <argument index="0" name="data" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="data" type="Variant" /> <description> Adds a [code][meta][/code] tag to the tag stack. Similar to the BBCode [code][url=something]{text}[/url][/code], but supports non-[String] metadata types. </description> </method> <method name="push_mono"> - <return type="void"> - </return> + <return type="void" /> <description> Adds a [code][font][/code] tag with a monospace font to the tag stack. </description> </method> <method name="push_normal"> - <return type="void"> - </return> + <return type="void" /> <description> Adds a [code][font][/code] tag with a normal font to the tag stack. </description> </method> <method name="push_outline_color"> - <return type="void"> - </return> - <argument index="0" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="color" type="Color" /> <description> Adds a [code][outline_color][/code] tag to the tag stack. Adds text outline for its duration. </description> </method> <method name="push_outline_size"> - <return type="void"> - </return> - <argument index="0" name="outline_size" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="outline_size" type="int" /> <description> Adds a [code][outline_size][/code] tag to the tag stack. Overrides default text outline size for its duration. </description> </method> <method name="push_paragraph"> - <return type="void"> - </return> - <argument index="0" name="align" type="int" enum="RichTextLabel.Align"> - </argument> - <argument index="1" name="base_direction" type="int" enum="Control.TextDirection" default="0"> - </argument> - <argument index="2" name="language" type="String" default=""""> - </argument> - <argument index="3" name="st_parser" type="int" enum="Control.StructuredTextParser" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="align" type="int" enum="RichTextLabel.Align" /> + <argument index="1" name="base_direction" type="int" enum="Control.TextDirection" default="0" /> + <argument index="2" name="language" type="String" default="""" /> + <argument index="3" name="st_parser" type="int" enum="Control.StructuredTextParser" default="0" /> <description> Adds a [code][p][/code] tag to the tag stack. </description> </method> <method name="push_strikethrough"> - <return type="void"> - </return> + <return type="void" /> <description> Adds a [code][s][/code] tag to the tag stack. </description> </method> <method name="push_table"> - <return type="void"> - </return> - <argument index="0" name="columns" type="int"> - </argument> - <argument index="1" name="inline_align" type="int" enum="VAlign" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="columns" type="int" /> + <argument index="1" name="inline_align" type="int" enum="VAlign" default="0" /> <description> Adds a [code][table=columns,inline_align][/code] tag to the tag stack. </description> </method> <method name="push_underline"> - <return type="void"> - </return> + <return type="void" /> <description> Adds a [code][u][/code] tag to the tag stack. </description> </method> <method name="remove_line"> - <return type="bool"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="line" type="int" /> <description> Removes a line of content from the label. Returns [code]true[/code] if the line exists. The [code]line[/code] argument is the index of the line to remove, it can take values in the interval [code][0, get_line_count() - 1][/code]. </description> </method> <method name="scroll_to_line"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> <description> Scrolls the window's top line to match [code]line[/code]. </description> </method> <method name="scroll_to_paragraph"> - <return type="void"> - </return> - <argument index="0" name="paragraph" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="paragraph" type="int" /> <description> Scrolls the window's top line to match first line of the [code]paragraph[/code]. </description> </method> <method name="set_cell_border_color"> - <return type="void"> - </return> - <argument index="0" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="color" type="Color" /> <description> Sets color of a table cell border. </description> </method> <method name="set_cell_padding"> - <return type="void"> - </return> - <argument index="0" name="padding" type="Rect2"> - </argument> + <return type="void" /> + <argument index="0" name="padding" type="Rect2" /> <description> Sets inner padding of a table cell. </description> </method> <method name="set_cell_row_background_color"> - <return type="void"> - </return> - <argument index="0" name="odd_row_bg" type="Color"> - </argument> - <argument index="1" name="even_row_bg" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="odd_row_bg" type="Color" /> + <argument index="1" name="even_row_bg" type="Color" /> <description> Sets color of a table cell. Separate colors for alternating rows can be specified. </description> </method> <method name="set_cell_size_override"> - <return type="void"> - </return> - <argument index="0" name="min_size" type="Vector2"> - </argument> - <argument index="1" name="max_size" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="min_size" type="Vector2" /> + <argument index="1" name="max_size" type="Vector2" /> <description> Sets minimum and maximum size overrides for a table cell. </description> </method> <method name="set_table_column_expand"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="expand" type="bool"> - </argument> - <argument index="2" name="ratio" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="expand" type="bool" /> + <argument index="2" name="ratio" type="int" /> <description> Edits the selected column's expansion options. If [code]expand[/code] is [code]true[/code], the column expands in proportion to its expansion ratio versus the other columns' ratios. For example, 2 columns with ratios 3 and 4 plus 70 pixels in available width would expand 30 and 40 pixels, respectively. @@ -522,22 +425,19 @@ </members> <signals> <signal name="meta_clicked"> - <argument index="0" name="meta" type="Variant"> - </argument> + <argument index="0" name="meta" type="Variant" /> <description> Triggered when the user clicks on content between meta tags. If the meta is defined in text, e.g. [code][url={"data"="hi"}]hi[/url][/code], then the parameter for this signal will be a [String] type. If a particular type or an object is desired, the [method push_meta] method must be used to manually insert the data into the tag stack. </description> </signal> <signal name="meta_hover_ended"> - <argument index="0" name="meta" type="Variant"> - </argument> + <argument index="0" name="meta" type="Variant" /> <description> Triggers when the mouse exits a meta tag. </description> </signal> <signal name="meta_hover_started"> - <argument index="0" name="meta" type="Variant"> - </argument> + <argument index="0" name="meta" type="Variant" /> <description> Triggers when the mouse enters a meta tag. </description> diff --git a/doc/classes/RigidBody2D.xml b/doc/classes/RigidBody2D.xml index 64573b7282..db16552db3 100644 --- a/doc/classes/RigidBody2D.xml +++ b/doc/classes/RigidBody2D.xml @@ -17,85 +17,66 @@ </tutorials> <methods> <method name="_integrate_forces" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="state" type="PhysicsDirectBodyState2D"> - </argument> + <return type="void" /> + <argument index="0" name="state" type="PhysicsDirectBodyState2D" /> <description> Allows you to read and safely modify the simulation state for the object. Use this instead of [method Node._physics_process] if you need to directly change the body's [code]position[/code] or other physics properties. By default, it works in addition to the usual physics behavior, but [member custom_integrator] allows you to disable the default behavior and write custom force integration for a body. </description> </method> <method name="add_central_force"> - <return type="void"> - </return> - <argument index="0" name="force" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="Vector2" /> <description> Adds a constant directional force without affecting rotation. </description> </method> <method name="add_force"> - <return type="void"> - </return> - <argument index="0" name="force" type="Vector2"> - </argument> - <argument index="1" name="position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="Vector2" /> + <argument index="1" name="position" type="Vector2" default="Vector2(0, 0)" /> <description> Adds a positioned force to the body. Both the force and the offset from the body origin are in global coordinates. </description> </method> <method name="add_torque"> - <return type="void"> - </return> - <argument index="0" name="torque" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="torque" type="float" /> <description> Adds a constant rotational force. </description> </method> <method name="apply_central_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector2" default="Vector2(0, 0)" /> <description> Applies a directional impulse without affecting rotation. </description> </method> <method name="apply_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector2"> - </argument> - <argument index="1" name="position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector2" /> + <argument index="1" name="position" type="Vector2" default="Vector2(0, 0)" /> <description> Applies a positioned impulse to the body. An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason it should only be used when simulating one-time impacts (use the "_force" functions otherwise). The position uses the rotation of the global coordinate system, but is centered at the object's origin. </description> </method> <method name="apply_torque_impulse"> - <return type="void"> - </return> - <argument index="0" name="torque" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="torque" type="float" /> <description> Applies a rotational impulse to the body. </description> </method> <method name="get_colliding_bodies" qualifiers="const"> - <return type="Node2D[]"> - </return> + <return type="Node2D[]" /> <description> Returns a list of the bodies colliding with this one. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [b]Note:[/b] 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> </method> <method name="set_axis_velocity"> - <return type="void"> - </return> - <argument index="0" name="axis_velocity" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="axis_velocity" type="Vector2" /> <description> Sets the body's velocity on the given axis. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior. </description> @@ -161,30 +142,24 @@ </members> <signals> <signal name="body_entered"> - <argument index="0" name="body" type="Node"> - </argument> + <argument index="0" name="body" type="Node" /> <description> Emitted when a collision with another [PhysicsBody2D] or [TileMap] occurs. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s. [code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap]. </description> </signal> <signal name="body_exited"> - <argument index="0" name="body" type="Node"> - </argument> + <argument index="0" name="body" type="Node" /> <description> Emitted when the collision with another [PhysicsBody2D] or [TileMap] ends. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s. [code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap]. </description> </signal> <signal name="body_shape_entered"> - <argument index="0" name="body_rid" type="RID"> - </argument> - <argument index="1" name="body" type="Node"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="body_rid" type="RID" /> + <argument index="1" name="body" type="Node" /> + <argument index="2" name="body_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when one of this RigidBody2D's [Shape2D]s collides with another [PhysicsBody2D] or [TileMap]'s [Shape2D]s. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s. [code]body_id[/code] the [RID] of the other [PhysicsBody2D] or [TileSet]'s [CollisionObject2D] used by the [PhysicsServer2D]. @@ -194,14 +169,10 @@ </description> </signal> <signal name="body_shape_exited"> - <argument index="0" name="body_rid" type="RID"> - </argument> - <argument index="1" name="body" type="Node"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="body_rid" type="RID" /> + <argument index="1" name="body" type="Node" /> + <argument index="2" name="body_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when the collision between one of this RigidBody2D's [Shape2D]s and another [PhysicsBody2D] or [TileMap]'s [Shape2D]s ends. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s. [code]body_id[/code] the [RID] of the other [PhysicsBody2D] or [TileSet]'s [CollisionObject2D] used by the [PhysicsServer2D]. diff --git a/doc/classes/RigidBody3D.xml b/doc/classes/RigidBody3D.xml index fb2b9690a3..f4299335bf 100644 --- a/doc/classes/RigidBody3D.xml +++ b/doc/classes/RigidBody3D.xml @@ -17,95 +17,75 @@ </tutorials> <methods> <method name="_integrate_forces" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="state" type="PhysicsDirectBodyState3D"> - </argument> + <return type="void" /> + <argument index="0" name="state" type="PhysicsDirectBodyState3D" /> <description> Called during physics processing, allowing you to read and safely modify the simulation state for the object. By default, it works in addition to the usual physics behavior, but the [member custom_integrator] property allows you to disable the default behavior and do fully custom force integration for a body. </description> </method> <method name="add_central_force"> - <return type="void"> - </return> - <argument index="0" name="force" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="Vector3" /> <description> Adds a constant directional force (i.e. acceleration) without affecting rotation. This is equivalent to [code]add_force(force, Vector3(0,0,0))[/code]. </description> </method> <method name="add_force"> - <return type="void"> - </return> - <argument index="0" name="force" type="Vector3"> - </argument> - <argument index="1" name="position" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="force" type="Vector3" /> + <argument index="1" name="position" type="Vector3" default="Vector3(0, 0, 0)" /> <description> Adds a constant directional force (i.e. acceleration). The position uses the rotation of the global coordinate system, but is centered at the object's origin. </description> </method> <method name="add_torque"> - <return type="void"> - </return> - <argument index="0" name="torque" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="torque" type="Vector3" /> <description> Adds a constant rotational force (i.e. a motor) without affecting position. </description> </method> <method name="apply_central_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector3" /> <description> Applies a directional impulse without affecting rotation. This is equivalent to [code]apply_impulse(Vector3(0,0,0), impulse)[/code]. </description> </method> <method name="apply_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector3"> - </argument> - <argument index="1" name="position" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector3" /> + <argument index="1" name="position" type="Vector3" default="Vector3(0, 0, 0)" /> <description> Applies a positioned impulse to the body. An impulse is time independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason it should only be used when simulating one-time impacts. The position uses the rotation of the global coordinate system, but is centered at the object's origin. </description> </method> <method name="apply_torque_impulse"> - <return type="void"> - </return> - <argument index="0" name="impulse" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="impulse" type="Vector3" /> <description> Applies a torque impulse which will be affected by the body mass and shape. This will rotate the body around the [code]impulse[/code] vector passed. </description> </method> <method name="get_colliding_bodies" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns a list of the bodies colliding with this one. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [b]Note:[/b] 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> </method> <method name="get_inverse_inertia_tensor" qualifiers="const"> - <return type="Basis"> - </return> + <return type="Basis" /> <description> Returns the inverse inertia tensor basis. This is used to calculate the angular acceleration resulting from a torque applied to the [RigidBody3D]. </description> </method> <method name="set_axis_velocity"> - <return type="void"> - </return> - <argument index="0" name="axis_velocity" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="axis_velocity" type="Vector3" /> <description> Sets an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior. </description> @@ -162,30 +142,24 @@ </members> <signals> <signal name="body_entered"> - <argument index="0" name="body" type="Node"> - </argument> + <argument index="0" name="body" type="Node" /> <description> Emitted when a collision with another [PhysicsBody3D] or [GridMap] occurs. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s. [code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap]. </description> </signal> <signal name="body_exited"> - <argument index="0" name="body" type="Node"> - </argument> + <argument index="0" name="body" type="Node" /> <description> Emitted when the collision with another [PhysicsBody3D] or [GridMap] ends. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s. [code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap]. </description> </signal> <signal name="body_shape_entered"> - <argument index="0" name="body_rid" type="RID"> - </argument> - <argument index="1" name="body" type="Node"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="body_rid" type="RID" /> + <argument index="1" name="body" type="Node" /> + <argument index="2" name="body_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when one of this RigidBody3D's [Shape3D]s collides with another [PhysicsBody3D] or [GridMap]'s [Shape3D]s. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s. [code]body_id[/code] the [RID] of the other [PhysicsBody3D] or [MeshLibrary]'s [CollisionObject3D] used by the [PhysicsServer3D]. @@ -196,14 +170,10 @@ </description> </signal> <signal name="body_shape_exited"> - <argument index="0" name="body_rid" type="RID"> - </argument> - <argument index="1" name="body" type="Node"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> + <argument index="0" name="body_rid" type="RID" /> + <argument index="1" name="body" type="Node" /> + <argument index="2" name="body_shape" type="int" /> + <argument index="3" name="local_shape" type="int" /> <description> Emitted when the collision between one of this RigidBody3D's [Shape3D]s and another [PhysicsBody3D] or [GridMap]'s [Shape3D]s ends. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s. [code]body_id[/code] the [RID] of the other [PhysicsBody3D] or [MeshLibrary]'s [CollisionObject3D] used by the [PhysicsServer3D]. [GridMap]s are detected if the Meshes have [Shape3D]s. diff --git a/doc/classes/SceneState.xml b/doc/classes/SceneState.xml index 6d804cc697..1c3bac9270 100644 --- a/doc/classes/SceneState.xml +++ b/doc/classes/SceneState.xml @@ -11,187 +11,146 @@ </tutorials> <methods> <method name="get_connection_binds" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="idx" type="int" /> <description> Returns the list of bound parameters for the signal at [code]idx[/code]. </description> </method> <method name="get_connection_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of signal connections in the scene. The [code]idx[/code] argument used to query connection metadata in other [code]get_connection_*[/code] methods in the interval [code][0, get_connection_count() - 1][/code]. </description> </method> <method name="get_connection_flags" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Returns the connection flags for the signal at [code]idx[/code]. See [enum Object.ConnectFlags] constants. </description> </method> <method name="get_connection_method" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="idx" type="int" /> <description> Returns the method connected to the signal at [code]idx[/code]. </description> </method> <method name="get_connection_signal" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="idx" type="int" /> <description> Returns the name of the signal at [code]idx[/code]. </description> </method> <method name="get_connection_source" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="NodePath" /> + <argument index="0" name="idx" type="int" /> <description> Returns the path to the node that owns the signal at [code]idx[/code], relative to the root node. </description> </method> <method name="get_connection_target" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="NodePath" /> + <argument index="0" name="idx" type="int" /> <description> Returns the path to the node that owns the method connected to the signal at [code]idx[/code], relative to the root node. </description> </method> <method name="get_node_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of nodes in the scene. The [code]idx[/code] argument used to query node data in other [code]get_node_*[/code] methods in the interval [code][0, get_node_count() - 1][/code]. </description> </method> <method name="get_node_groups" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="idx" type="int" /> <description> Returns the list of group names associated with the node at [code]idx[/code]. </description> </method> <method name="get_node_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Returns the node's index, which is its position relative to its siblings. This is only relevant and saved in scenes for cases where new nodes are added to an instantiated or inherited scene among siblings from the base scene. Despite the name, this index is not related to the [code]idx[/code] argument used here and in other methods. </description> </method> <method name="get_node_instance" qualifiers="const"> - <return type="PackedScene"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="PackedScene" /> + <argument index="0" name="idx" type="int" /> <description> Returns a [PackedScene] for the node at [code]idx[/code] (i.e. the whole branch starting at this node, with its child nodes and resources), or [code]null[/code] if the node is not an instance. </description> </method> <method name="get_node_instance_placeholder" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Returns the path to the represented scene file if the node at [code]idx[/code] is an [InstancePlaceholder]. </description> </method> <method name="get_node_name" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="idx" type="int" /> <description> Returns the name of the node at [code]idx[/code]. </description> </method> <method name="get_node_owner_path" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="NodePath" /> + <argument index="0" name="idx" type="int" /> <description> Returns the path to the owner of the node at [code]idx[/code], relative to the root node. </description> </method> <method name="get_node_path" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="for_parent" type="bool" default="false"> - </argument> + <return type="NodePath" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="for_parent" type="bool" default="false" /> <description> Returns the path to the node at [code]idx[/code]. If [code]for_parent[/code] is [code]true[/code], returns the path of the [code]idx[/code] node's parent instead. </description> </method> <method name="get_node_property_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Returns the number of exported or overridden properties for the node at [code]idx[/code]. The [code]prop_idx[/code] argument used to query node property data in other [code]get_node_property_*[/code] methods in the interval [code][0, get_node_property_count() - 1][/code]. </description> </method> <method name="get_node_property_name" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="prop_idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="prop_idx" type="int" /> <description> Returns the name of the property at [code]prop_idx[/code] for the node at [code]idx[/code]. </description> </method> <method name="get_node_property_value" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="prop_idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="idx" type="int" /> + <argument index="1" name="prop_idx" type="int" /> <description> Returns the value of the property at [code]prop_idx[/code] for the node at [code]idx[/code]. </description> </method> <method name="get_node_type" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="idx" type="int" /> <description> Returns the type of the node at [code]idx[/code]. </description> </method> <method name="is_node_instance_placeholder" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="idx" type="int" /> <description> Returns [code]true[/code] if the node at [code]idx[/code] is an [InstancePlaceholder]. </description> diff --git a/doc/classes/SceneTree.xml b/doc/classes/SceneTree.xml index 9930665d26..59e3190213 100644 --- a/doc/classes/SceneTree.xml +++ b/doc/classes/SceneTree.xml @@ -14,36 +14,27 @@ </tutorials> <methods> <method name="call_group" qualifiers="vararg"> - <return type="Variant"> - </return> - <argument index="0" name="group" type="StringName"> - </argument> - <argument index="1" name="method" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="group" type="StringName" /> + <argument index="1" name="method" type="StringName" /> <description> Calls [code]method[/code] on each member of the given group. You can pass arguments to [code]method[/code] by specifying them at the end of the method call. [b]Note:[/b] [method call_group] will always call methods with an one-frame delay, in a way similar to [method Object.call_deferred]. To call methods immediately, use [method call_group_flags] with the [constant GROUP_CALL_REALTIME] flag. </description> </method> <method name="call_group_flags" qualifiers="vararg"> - <return type="Variant"> - </return> - <argument index="0" name="flags" type="int"> - </argument> - <argument index="1" name="group" type="StringName"> - </argument> - <argument index="2" name="method" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="flags" type="int" /> + <argument index="1" name="group" type="StringName" /> + <argument index="2" name="method" type="StringName" /> <description> Calls [code]method[/code] on each member of the given group, respecting the given [enum GroupCallFlags]. You can pass arguments to [code]method[/code] by specifying them at the end of the method call. [b]Note:[/b] Group call flags are used to control the method calling behavior. If the [constant GROUP_CALL_REALTIME] flag is present in the [code]flags[/code] argument, methods will be called immediately. If this flag isn't present in [code]flags[/code], methods will be called with a one-frame delay in a way similar to [method call_group]. </description> </method> <method name="change_scene"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <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 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. @@ -51,10 +42,8 @@ </description> </method> <method name="change_scene_to"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="packed_scene" type="PackedScene"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="packed_scene" type="PackedScene" /> <description> Changes the running scene to a new instance of the given [PackedScene]. Returns [constant OK] on success or [constant ERR_CANT_CREATE] if the scene cannot be instantiated. @@ -62,12 +51,9 @@ </description> </method> <method name="create_timer"> - <return type="SceneTreeTimer"> - </return> - <argument index="0" name="time_sec" type="float"> - </argument> - <argument index="1" name="process_always" type="bool" default="true"> - </argument> + <return type="SceneTreeTimer" /> + <argument index="0" name="time_sec" type="float" /> + <argument index="1" name="process_always" type="bool" default="true" /> <description> Returns a [SceneTreeTimer] which will [signal SceneTreeTimer.timeout] after the given time in seconds elapsed in this [SceneTree]. If [code]process_always[/code] is set to [code]false[/code], pausing the [SceneTree] will also pause the timer. Commonly used to create a one-shot delay timer as in the following example: @@ -91,97 +77,76 @@ </description> </method> <method name="create_tween"> - <return type="Tween"> - </return> + <return type="Tween" /> <description> Creates and returns a new [Tween]. </description> </method> <method name="get_first_node_in_group"> - <return type="Node"> - </return> - <argument index="0" name="group" type="StringName"> - </argument> + <return type="Node" /> + <argument index="0" name="group" type="StringName" /> <description> </description> </method> <method name="get_frame" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the current frame number, i.e. the total frame count since the application started. </description> </method> <method name="get_node_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of nodes in this [SceneTree]. </description> </method> <method name="get_nodes_in_group"> - <return type="Array"> - </return> - <argument index="0" name="group" type="StringName"> - </argument> + <return type="Array" /> + <argument index="0" name="group" type="StringName" /> <description> Returns a list of all nodes assigned to the given group. </description> </method> <method name="get_processed_tweens"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of currently existing [Tween]s in the [SceneTree] (both running and paused). </description> </method> <method name="has_group" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if the given group exists. </description> </method> <method name="notify_group"> - <return type="void"> - </return> - <argument index="0" name="group" type="StringName"> - </argument> - <argument index="1" name="notification" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="group" type="StringName" /> + <argument index="1" name="notification" type="int" /> <description> Sends the given notification to all members of the [code]group[/code]. </description> </method> <method name="notify_group_flags"> - <return type="void"> - </return> - <argument index="0" name="call_flags" type="int"> - </argument> - <argument index="1" name="group" type="StringName"> - </argument> - <argument index="2" name="notification" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="call_flags" type="int" /> + <argument index="1" name="group" type="StringName" /> + <argument index="2" name="notification" type="int" /> <description> Sends the given notification to all members of the [code]group[/code], respecting the given [enum GroupCallFlags]. </description> </method> <method name="queue_delete"> - <return type="void"> - </return> - <argument index="0" name="obj" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="obj" type="Object" /> <description> Queues the given object for deletion, delaying the call to [method Object.free] to after the current frame. </description> </method> <method name="quit"> - <return type="void"> - </return> - <argument index="0" name="exit_code" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="exit_code" type="int" default="0" /> <description> Quits the application at the end of the current iteration. Argument [code]exit_code[/code] can optionally be given (defaulting to 0) to customize the exit status code. By convention, an exit code of [code]0[/code] indicates success whereas a non-zero exit code indicates an error. @@ -190,56 +155,42 @@ </description> </method> <method name="reload_current_scene"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Reloads the currently active scene. Returns [constant OK] on success, [constant ERR_UNCONFIGURED] if no [member current_scene] was defined yet, [constant ERR_CANT_OPEN] if [member current_scene] cannot be loaded into a [PackedScene], or [constant ERR_CANT_CREATE] if the scene cannot be instantiated. </description> </method> <method name="set_auto_accept_quit"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enabled" type="bool" /> <description> If [code]true[/code], the application automatically accepts quitting. Enabled by default. For mobile platforms, see [method set_quit_on_go_back]. </description> </method> <method name="set_group"> - <return type="void"> - </return> - <argument index="0" name="group" type="StringName"> - </argument> - <argument index="1" name="property" type="String"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="group" type="StringName" /> + <argument index="1" name="property" type="String" /> + <argument index="2" name="value" type="Variant" /> <description> Sets the given [code]property[/code] to [code]value[/code] on all members of the given group. </description> </method> <method name="set_group_flags"> - <return type="void"> - </return> - <argument index="0" name="call_flags" type="int"> - </argument> - <argument index="1" name="group" type="StringName"> - </argument> - <argument index="2" name="property" type="String"> - </argument> - <argument index="3" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="call_flags" type="int" /> + <argument index="1" name="group" type="StringName" /> + <argument index="2" name="property" type="String" /> + <argument index="3" name="value" type="Variant" /> <description> Sets the given [code]property[/code] to [code]value[/code] on all members of the given group, respecting the given [enum GroupCallFlags]. </description> </method> <method name="set_quit_on_go_back"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enabled" type="bool" /> <description> If [code]true[/code], the application quits automatically on going back (e.g. on Android). Enabled by default. To handle 'Go Back' button when this option is disabled, use [constant DisplayServer.WINDOW_EVENT_GO_BACK_REQUEST]. @@ -277,38 +228,32 @@ </members> <signals> <signal name="files_dropped"> - <argument index="0" name="files" type="PackedStringArray"> - </argument> - <argument index="1" name="screen" type="int"> - </argument> + <argument index="0" name="files" type="PackedStringArray" /> + <argument index="1" name="screen" type="int" /> <description> Emitted when files are dragged from the OS file manager and dropped in the game window. The arguments are a list of file paths and the identifier of the screen where the drag originated. </description> </signal> <signal name="node_added"> - <argument index="0" name="node" type="Node"> - </argument> + <argument index="0" name="node" type="Node" /> <description> Emitted whenever a node is added to the [SceneTree]. </description> </signal> <signal name="node_configuration_warning_changed"> - <argument index="0" name="node" type="Node"> - </argument> + <argument index="0" name="node" type="Node" /> <description> Emitted when a node's configuration changed. Only emitted in [code]tool[/code] mode. </description> </signal> <signal name="node_removed"> - <argument index="0" name="node" type="Node"> - </argument> + <argument index="0" name="node" type="Node" /> <description> Emitted whenever a node is removed from the [SceneTree]. </description> </signal> <signal name="node_renamed"> - <argument index="0" name="node" type="Node"> - </argument> + <argument index="0" name="node" type="Node" /> <description> Emitted whenever a node is renamed. </description> diff --git a/doc/classes/Script.xml b/doc/classes/Script.xml index e7527d73e2..843d8ef9cb 100644 --- a/doc/classes/Script.xml +++ b/doc/classes/Script.xml @@ -12,100 +12,83 @@ </tutorials> <methods> <method name="can_instantiate" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the script can be instantiated. </description> </method> <method name="get_base_script" qualifiers="const"> - <return type="Script"> - </return> + <return type="Script" /> <description> Returns the script directly inherited by this script. </description> </method> <method name="get_instance_base_type" qualifiers="const"> - <return type="StringName"> - </return> + <return type="StringName" /> <description> Returns the script's base type. </description> </method> <method name="get_property_default_value"> - <return type="Variant"> - </return> - <argument index="0" name="property" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="property" type="StringName" /> <description> Returns the default value of the specified property. </description> </method> <method name="get_script_constant_map"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Returns a dictionary containing constant names and their values. </description> </method> <method name="get_script_method_list"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the list of methods in this [Script]. </description> </method> <method name="get_script_property_list"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the list of properties in this [Script]. </description> </method> <method name="get_script_signal_list"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the list of user signals defined in this [Script]. </description> </method> <method name="has_script_signal" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="signal_name" type="StringName"> - </argument> + <return type="bool" /> + <argument 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> </method> <method name="has_source_code" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the script contains non-empty source code. </description> </method> <method name="instance_has" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="base_object" type="Object"> - </argument> + <return type="bool" /> + <argument index="0" name="base_object" type="Object" /> <description> Returns [code]true[/code] if [code]base_object[/code] is an instance of this script. </description> </method> <method name="is_tool" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the script is a tool script. A tool script can run in the editor. </description> </method> <method name="reload"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="keep_state" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="keep_state" type="bool" default="false" /> <description> Reloads the script's class implementation. Returns an error code. </description> diff --git a/doc/classes/ScriptCreateDialog.xml b/doc/classes/ScriptCreateDialog.xml index 7185213c44..189bfdc3b8 100644 --- a/doc/classes/ScriptCreateDialog.xml +++ b/doc/classes/ScriptCreateDialog.xml @@ -28,16 +28,11 @@ </tutorials> <methods> <method name="config"> - <return type="void"> - </return> - <argument index="0" name="inherits" type="String"> - </argument> - <argument index="1" name="path" type="String"> - </argument> - <argument index="2" name="built_in_enabled" type="bool" default="true"> - </argument> - <argument index="3" name="load_enabled" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="inherits" type="String" /> + <argument index="1" name="path" type="String" /> + <argument index="2" name="built_in_enabled" type="bool" default="true" /> + <argument index="3" name="load_enabled" type="bool" default="true" /> <description> Prefills required fields to configure the ScriptCreateDialog for use. </description> @@ -49,8 +44,7 @@ </members> <signals> <signal name="script_created"> - <argument index="0" name="script" type="Script"> - </argument> + <argument index="0" name="script" type="Script" /> <description> Emitted when the user clicks the OK button. </description> diff --git a/doc/classes/ScriptEditor.xml b/doc/classes/ScriptEditor.xml index 31dbf7453f..628be54e1d 100644 --- a/doc/classes/ScriptEditor.xml +++ b/doc/classes/ScriptEditor.xml @@ -10,68 +10,55 @@ </tutorials> <methods> <method name="get_current_editor" qualifiers="const"> - <return type="ScriptEditorBase"> - </return> + <return type="ScriptEditorBase" /> <description> Returns the [ScriptEditorBase] object that the user is currently editing. </description> </method> <method name="get_current_script"> - <return type="Script"> - </return> + <return type="Script" /> <description> Returns a [Script] that is currently active in editor. </description> </method> <method name="get_open_script_editors" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array with all [ScriptEditorBase] objects which are currently open in editor. </description> </method> <method name="get_open_scripts" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array with all [Script] objects which are currently open in editor. </description> </method> <method name="goto_line"> - <return type="void"> - </return> - <argument index="0" name="line_number" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="line_number" type="int" /> <description> Goes to the specified line in the current script. </description> </method> <method name="open_script_create_dialog"> - <return type="void"> - </return> - <argument index="0" name="base_name" type="String"> - </argument> - <argument index="1" name="base_path" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="base_name" type="String" /> + <argument index="1" name="base_path" type="String" /> <description> Opens the script create dialog. The script will extend [code]base_name[/code]. The file extension can be omitted from [code]base_path[/code]. It will be added based on the selected scripting language. </description> </method> <method name="register_syntax_highlighter"> - <return type="void"> - </return> - <argument index="0" name="syntax_highlighter" type="EditorSyntaxHighlighter"> - </argument> + <return type="void" /> + <argument index="0" name="syntax_highlighter" type="EditorSyntaxHighlighter" /> <description> Registers the [EditorSyntaxHighlighter] to the editor, the [EditorSyntaxHighlighter] will be available on all open scripts. [b]Note:[/b] Does not apply to scripts that are already opened. </description> </method> <method name="unregister_syntax_highlighter"> - <return type="void"> - </return> - <argument index="0" name="syntax_highlighter" type="EditorSyntaxHighlighter"> - </argument> + <return type="void" /> + <argument index="0" name="syntax_highlighter" type="EditorSyntaxHighlighter" /> <description> Unregisters the [EditorSyntaxHighlighter] from the editor. [b]Note:[/b] The [EditorSyntaxHighlighter] will still be applied to scripts that are already opened. @@ -80,15 +67,13 @@ </methods> <signals> <signal name="editor_script_changed"> - <argument index="0" name="script" type="Script"> - </argument> + <argument index="0" name="script" type="Script" /> <description> Emitted when user changed active script. Argument is a freshly activated [Script]. </description> </signal> <signal name="script_close"> - <argument index="0" name="script" type="Script"> - </argument> + <argument index="0" name="script" type="Script" /> <description> Emitted when editor is about to close the active script. Argument is a [Script] that is going to be closed. </description> diff --git a/doc/classes/ScriptEditorBase.xml b/doc/classes/ScriptEditorBase.xml index a135062bd8..0efcde5638 100644 --- a/doc/classes/ScriptEditorBase.xml +++ b/doc/classes/ScriptEditorBase.xml @@ -10,17 +10,14 @@ </tutorials> <methods> <method name="_add_syntax_highlighter" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="highlighter" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="highlighter" type="Object" /> <description> Adds a [EditorSyntaxHighlighter] to the open script. </description> </method> <method name="get_base_editor" qualifiers="const"> - <return type="Control"> - </return> + <return type="Control" /> <description> Returns the underlying [Control] used for editing scripts. This can be either [CodeEdit] (for text scripts) or [GraphEdit] (for visual scripts). </description> @@ -33,8 +30,7 @@ </description> </signal> <signal name="go_to_help"> - <argument index="0" name="what" type="String"> - </argument> + <argument index="0" name="what" type="String" /> <description> Emitted when the user requests a specific documentation page. </description> @@ -45,24 +41,20 @@ </description> </signal> <signal name="replace_in_files_requested"> - <argument index="0" name="text" type="String"> - </argument> + <argument index="0" name="text" type="String" /> <description> Emitted when the user request to find and replace text in the file system. Not used by visual scripts. </description> </signal> <signal name="request_help"> - <argument index="0" name="topic" type="String"> - </argument> + <argument index="0" name="topic" type="String" /> <description> Emitted when the user requests contextual help. </description> </signal> <signal name="request_open_script_at_line"> - <argument index="0" name="script" type="Object"> - </argument> - <argument index="1" name="line" type="int"> - </argument> + <argument index="0" name="script" type="Object" /> + <argument index="1" name="line" type="int" /> <description> Emitted when the user requests a script. </description> @@ -73,8 +65,7 @@ </description> </signal> <signal name="search_in_files_requested"> - <argument index="0" name="text" type="String"> - </argument> + <argument index="0" name="text" type="String" /> <description> Emitted when the user request to search text in the file system. Not used by visual scripts. </description> diff --git a/doc/classes/ScrollContainer.xml b/doc/classes/ScrollContainer.xml index 60f3106b4b..600e2ee245 100644 --- a/doc/classes/ScrollContainer.xml +++ b/doc/classes/ScrollContainer.xml @@ -12,24 +12,20 @@ </tutorials> <methods> <method name="ensure_control_visible"> - <return type="void"> - </return> - <argument index="0" name="control" type="Control"> - </argument> + <return type="void" /> + <argument index="0" name="control" type="Control" /> <description> Ensures the given [code]control[/code] is visible (must be a direct or indirect child of the ScrollContainer). Used by [member follow_focus]. </description> </method> <method name="get_h_scrollbar"> - <return type="HScrollBar"> - </return> + <return type="HScrollBar" /> <description> Returns the horizontal scrollbar [HScrollBar] of this [ScrollContainer]. </description> </method> <method name="get_v_scrollbar"> - <return type="VScrollBar"> - </return> + <return type="VScrollBar" /> <description> Returns the vertical scrollbar [VScrollBar] of this [ScrollContainer]. </description> diff --git a/doc/classes/Semaphore.xml b/doc/classes/Semaphore.xml index e8b405e52a..7794161ac4 100644 --- a/doc/classes/Semaphore.xml +++ b/doc/classes/Semaphore.xml @@ -11,22 +11,19 @@ </tutorials> <methods> <method name="post"> - <return type="void"> - </return> + <return type="void" /> <description> Lowers the [Semaphore], allowing one more thread in. </description> </method> <method name="try_wait"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Like [method wait], but won't block, so if the value is zero, fails immediately and returns [constant ERR_BUSY]. If non-zero, it returns [constant OK] to report success. </description> </method> <method name="wait"> - <return type="void"> - </return> + <return type="void" /> <description> Waits for the [Semaphore], if its value is zero, blocks until non-zero. </description> diff --git a/doc/classes/Shader.xml b/doc/classes/Shader.xml index a717eba438..bc5457b8ce 100644 --- a/doc/classes/Shader.xml +++ b/doc/classes/Shader.xml @@ -12,39 +12,31 @@ </tutorials> <methods> <method name="get_default_texture_param" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="param" type="StringName"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="param" type="StringName" /> <description> Returns the texture that is set as default for the specified parameter. [b]Note:[/b] [code]param[/code] must match the name of the uniform in the code exactly. </description> </method> <method name="get_mode" qualifiers="const"> - <return type="int" enum="Shader.Mode"> - </return> + <return type="int" enum="Shader.Mode" /> <description> Returns the shader mode for the shader, either [constant MODE_CANVAS_ITEM], [constant MODE_SPATIAL] or [constant MODE_PARTICLES]. </description> </method> <method name="has_param" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns [code]true[/code] if the shader has this param defined as a uniform in its code. [b]Note:[/b] [code]param[/code] must match the name of the uniform in the code exactly. </description> </method> <method name="set_default_texture_param"> - <return type="void"> - </return> - <argument index="0" name="param" type="StringName"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="StringName" /> + <argument index="1" name="texture" type="Texture2D" /> <description> Sets the default texture to be used with a texture uniform. The default is used if a texture is not set in the [ShaderMaterial]. [b]Note:[/b] [code]param[/code] must match the name of the uniform in the code exactly. diff --git a/doc/classes/ShaderMaterial.xml b/doc/classes/ShaderMaterial.xml index b1748703ff..fe3ddc1b60 100644 --- a/doc/classes/ShaderMaterial.xml +++ b/doc/classes/ShaderMaterial.xml @@ -11,39 +11,30 @@ </tutorials> <methods> <method name="get_shader_param" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="param" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="param" type="StringName" /> <description> Returns the current value set for this material of a uniform in the shader. </description> </method> <method name="property_can_revert"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="String" /> <description> Returns [code]true[/code] if the property identified by [code]name[/code] can be reverted to a default value. </description> </method> <method name="property_get_revert"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="Variant" /> + <argument index="0" name="name" type="String" /> <description> Returns the default value of the material property with given [code]name[/code]. </description> </method> <method name="set_shader_param"> - <return type="void"> - </return> - <argument index="0" name="param" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> Changes the value set for this material of a uniform in the shader. [b]Note:[/b] [code]param[/code] must match the name of the uniform in the code exactly. </description> diff --git a/doc/classes/Shape2D.xml b/doc/classes/Shape2D.xml index 65a37314f6..c1191aa9de 100644 --- a/doc/classes/Shape2D.xml +++ b/doc/classes/Shape2D.xml @@ -11,76 +11,53 @@ </tutorials> <methods> <method name="collide"> - <return type="bool"> - </return> - <argument index="0" name="local_xform" type="Transform2D"> - </argument> - <argument index="1" name="with_shape" type="Shape2D"> - </argument> - <argument index="2" name="shape_xform" type="Transform2D"> - </argument> + <return type="bool" /> + <argument index="0" name="local_xform" type="Transform2D" /> + <argument index="1" name="with_shape" type="Shape2D" /> + <argument index="2" name="shape_xform" type="Transform2D" /> <description> Returns [code]true[/code] if this shape is colliding with another. This method needs the transformation matrix for this shape ([code]local_xform[/code]), the shape to check collisions with ([code]with_shape[/code]), and the transformation matrix of that shape ([code]shape_xform[/code]). </description> </method> <method name="collide_and_get_contacts"> - <return type="Array"> - </return> - <argument index="0" name="local_xform" type="Transform2D"> - </argument> - <argument index="1" name="with_shape" type="Shape2D"> - </argument> - <argument index="2" name="shape_xform" type="Transform2D"> - </argument> + <return type="Array" /> + <argument index="0" name="local_xform" type="Transform2D" /> + <argument index="1" name="with_shape" type="Shape2D" /> + <argument index="2" name="shape_xform" type="Transform2D" /> <description> Returns a list of the points where this shape touches another. If there are no collisions the list is empty. This method needs the transformation matrix for this shape ([code]local_xform[/code]), the shape to check collisions with ([code]with_shape[/code]), and the transformation matrix of that shape ([code]shape_xform[/code]). </description> </method> <method name="collide_with_motion"> - <return type="bool"> - </return> - <argument index="0" name="local_xform" type="Transform2D"> - </argument> - <argument index="1" name="local_motion" type="Vector2"> - </argument> - <argument index="2" name="with_shape" type="Shape2D"> - </argument> - <argument index="3" name="shape_xform" type="Transform2D"> - </argument> - <argument index="4" name="shape_motion" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="local_xform" type="Transform2D" /> + <argument index="1" name="local_motion" type="Vector2" /> + <argument index="2" name="with_shape" type="Shape2D" /> + <argument index="3" name="shape_xform" type="Transform2D" /> + <argument index="4" name="shape_motion" type="Vector2" /> <description> Returns whether this shape would collide with another, if a given movement was applied. This method needs the transformation matrix for this shape ([code]local_xform[/code]), the movement to test on this shape ([code]local_motion[/code]), the shape to check collisions with ([code]with_shape[/code]), the transformation matrix of that shape ([code]shape_xform[/code]), and the movement to test onto the other object ([code]shape_motion[/code]). </description> </method> <method name="collide_with_motion_and_get_contacts"> - <return type="Array"> - </return> - <argument index="0" name="local_xform" type="Transform2D"> - </argument> - <argument index="1" name="local_motion" type="Vector2"> - </argument> - <argument index="2" name="with_shape" type="Shape2D"> - </argument> - <argument index="3" name="shape_xform" type="Transform2D"> - </argument> - <argument index="4" name="shape_motion" type="Vector2"> - </argument> + <return type="Array" /> + <argument index="0" name="local_xform" type="Transform2D" /> + <argument index="1" name="local_motion" type="Vector2" /> + <argument index="2" name="with_shape" type="Shape2D" /> + <argument index="3" name="shape_xform" type="Transform2D" /> + <argument index="4" name="shape_motion" type="Vector2" /> <description> Returns a list of the points where this shape would touch another, if a given movement was applied. If there are no collisions the list is empty. This method needs the transformation matrix for this shape ([code]local_xform[/code]), the movement to test on this shape ([code]local_motion[/code]), the shape to check collisions with ([code]with_shape[/code]), the transformation matrix of that shape ([code]shape_xform[/code]), and the movement to test onto the other object ([code]shape_motion[/code]). </description> </method> <method name="draw"> - <return type="void"> - </return> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_item" type="RID" /> + <argument index="1" name="color" type="Color" /> <description> Draws a solid shape onto a [CanvasItem] with the [RenderingServer] API filled with the specified [code]color[/code]. The exact drawing method is specific for each shape and cannot be configured. </description> diff --git a/doc/classes/Shape3D.xml b/doc/classes/Shape3D.xml index b5f70132d7..5fd16d8d36 100644 --- a/doc/classes/Shape3D.xml +++ b/doc/classes/Shape3D.xml @@ -11,8 +11,7 @@ </tutorials> <methods> <method name="get_debug_mesh"> - <return type="ArrayMesh"> - </return> + <return type="ArrayMesh" /> <description> Returns the [ArrayMesh] used to draw the debug collision for this [Shape3D]. </description> diff --git a/doc/classes/Shortcut.xml b/doc/classes/Shortcut.xml index 55bbb083c9..04955103dc 100644 --- a/doc/classes/Shortcut.xml +++ b/doc/classes/Shortcut.xml @@ -11,24 +11,20 @@ </tutorials> <methods> <method name="get_as_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the shortcut's [InputEvent] as a [String]. </description> </method> <method name="is_shortcut" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> + <return type="bool" /> + <argument index="0" name="event" type="InputEvent" /> <description> Returns [code]true[/code] if the shortcut's [InputEvent] equals [code]event[/code]. </description> </method> <method name="is_valid" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> If [code]true[/code], this shortcut is valid. </description> diff --git a/doc/classes/Signal.xml b/doc/classes/Signal.xml index 1fd70a43fd..0e44abef42 100644 --- a/doc/classes/Signal.xml +++ b/doc/classes/Signal.xml @@ -9,117 +9,93 @@ </tutorials> <methods> <method name="Signal" qualifiers="constructor"> - <return type="Signal"> - </return> + <return type="Signal" /> <description> Constructs a null [Signal] with no object nor signal name bound. </description> </method> <method name="Signal" qualifiers="constructor"> - <return type="Signal"> - </return> - <argument index="0" name="from" type="Signal"> - </argument> + <return type="Signal" /> + <argument index="0" name="from" type="Signal" /> <description> Constructs a [Signal] as a copy of the given [Signal]. </description> </method> <method name="Signal" qualifiers="constructor"> - <return type="Signal"> - </return> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="signal" type="StringName"> - </argument> + <return type="Signal" /> + <argument index="0" name="object" type="Object" /> + <argument index="1" name="signal" type="StringName" /> <description> Creates a new [Signal] with the name [code]signal[/code] in the specified [code]object[/code]. </description> </method> <method name="connect"> - <return type="int"> - </return> - <argument index="0" name="callable" type="Callable"> - </argument> - <argument index="1" name="binds" type="Array" default="[]"> - </argument> - <argument index="2" name="flags" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="callable" type="Callable" /> + <argument index="1" name="binds" type="Array" default="[]" /> + <argument index="2" name="flags" type="int" default="0" /> <description> Connects this signal to the specified [Callable], optionally providing binds and connection flags. </description> </method> <method name="disconnect"> - <return type="void"> - </return> - <argument index="0" name="callable" type="Callable"> - </argument> + <return type="void" /> + <argument index="0" name="callable" type="Callable" /> <description> Disconnects this signal from the specified [Callable]. </description> </method> <method name="emit" qualifiers="vararg const"> - <return type="void"> - </return> + <return type="void" /> <description> Emits this signal to all connected objects. </description> </method> <method name="get_connections" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the list of [Callable]s connected to this signal. </description> </method> <method name="get_name" qualifiers="const"> - <return type="StringName"> - </return> + <return type="StringName" /> <description> Returns the name of this signal. </description> </method> <method name="get_object" qualifiers="const"> - <return type="Object"> - </return> + <return type="Object" /> <description> Returns the object emitting this signal. </description> </method> <method name="get_object_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the ID of the object emitting this signal (see [method Object.get_instance_id]). </description> </method> <method name="is_connected" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="callable" type="Callable"> - </argument> + <return type="bool" /> + <argument index="0" name="callable" type="Callable" /> <description> Returns [code]true[/code] if the specified [Callable] is connected to this signal. </description> </method> <method name="is_null" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Signal"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Signal" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Signal"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Signal" /> <description> </description> </method> diff --git a/doc/classes/Skeleton2D.xml b/doc/classes/Skeleton2D.xml index 1ae39dfc07..828d24338b 100644 --- a/doc/classes/Skeleton2D.xml +++ b/doc/classes/Skeleton2D.xml @@ -11,66 +11,51 @@ </tutorials> <methods> <method name="execute_modifications"> - <return type="void"> - </return> - <argument index="0" name="delta" type="float"> - </argument> - <argument index="1" name="execution_mode" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="delta" type="float" /> + <argument index="1" name="execution_mode" type="int" /> <description> Executes all the modifications on the [SkeletonModificationStack2D], if the Skeleton3D has one assigned. </description> </method> <method name="get_bone"> - <return type="Bone2D"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Bone2D" /> + <argument index="0" name="idx" type="int" /> <description> Returns a [Bone2D] from the node hierarchy parented by Skeleton2D. The object to return is identified by the parameter [code]idx[/code]. Bones are indexed by descending the node hierarchy from top to bottom, adding the children of each branch before moving to the next sibling. </description> </method> <method name="get_bone_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of [Bone2D] nodes in the node hierarchy parented by Skeleton2D. </description> </method> <method name="get_bone_local_pose_override"> - <return type="Transform2D"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="bone_idx" type="int" /> <description> Returns the local pose override transform for [code]bone_idx[/code]. </description> </method> <method name="get_modification_stack" qualifiers="const"> - <return type="SkeletonModificationStack2D"> - </return> + <return type="SkeletonModificationStack2D" /> <description> Returns the [SkeletonModificationStack2D] attached to this skeleton, if one exists. </description> </method> <method name="get_skeleton" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the [RID] of a Skeleton2D instance. </description> </method> <method name="set_bone_local_pose_override"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="override_pose" type="Transform2D"> - </argument> - <argument index="2" name="strength" type="float"> - </argument> - <argument index="3" name="persistent" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> + <argument index="1" name="override_pose" type="Transform2D" /> + <argument index="2" name="strength" type="float" /> + <argument index="3" name="persistent" type="bool" /> <description> Sets the local pose transform, [code]pose[/code], for the bone at [code]bone_idx[/code]. [code]amount[/code] is the interpolation strength that will be used when applying the pose, and [code]persistent[/code] determines if the applied pose will remain. @@ -78,10 +63,8 @@ </description> </method> <method name="set_modification_stack"> - <return type="void"> - </return> - <argument index="0" name="modification_stack" type="SkeletonModificationStack2D"> - </argument> + <return type="void" /> + <argument index="0" name="modification_stack" type="SkeletonModificationStack2D" /> <description> Sets the [SkeletonModificationStack2D] attached to this skeleton. </description> diff --git a/doc/classes/Skeleton3D.xml b/doc/classes/Skeleton3D.xml index 136f2f0a63..0ec2f6b7ca 100644 --- a/doc/classes/Skeleton3D.xml +++ b/doc/classes/Skeleton3D.xml @@ -14,220 +14,173 @@ </tutorials> <methods> <method name="add_bone"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> <description> Adds a bone, with name [code]name[/code]. [method get_bone_count] will become the bone index. </description> </method> <method name="bone_transform_to_world_transform"> - <return type="Transform3D"> - </return> - <argument index="0" name="bone_transform" type="Transform3D"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="bone_transform" type="Transform3D" /> <description> Takes the given bone pose/transform and converts it to a world transform, relative to the [Skeleton3D] node. This is useful for using the bone transform in calculations with transforms from [Node3D]-based nodes. </description> </method> <method name="clear_bones"> - <return type="void"> - </return> + <return type="void" /> <description> Clear all the bones in this skeleton. </description> </method> <method name="clear_bones_global_pose_override"> - <return type="void"> - </return> + <return type="void" /> <description> Removes the global pose override on all bones in the skeleton. </description> </method> <method name="find_bone" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="String" /> <description> Returns the bone index that matches [code]name[/code] as its name. </description> </method> <method name="get_bone_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of bones in the skeleton. </description> </method> <method name="get_bone_custom_pose" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="bone_idx" type="int" /> <description> Returns the custom pose of the specified bone. Custom pose is applied on top of the rest pose. </description> </method> <method name="get_bone_global_pose" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="bone_idx" type="int" /> <description> Returns the overall transform of the specified bone, with respect to the skeleton. Being relative to the skeleton frame, this is not the actual "global" transform of the bone. </description> </method> <method name="get_bone_global_pose_no_override" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="bone_idx" type="int" /> <description> Returns the overall transform of the specified bone, with respect to the skeleton, but without any global pose overrides. Being relative to the skeleton frame, this is not the actual "global" transform of the bone. </description> </method> <method name="get_bone_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="bone_idx" type="int" /> <description> Returns the name of the bone at index [code]index[/code]. </description> </method> <method name="get_bone_parent" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="bone_idx" type="int" /> <description> Returns the bone index which is the parent of the bone at [code]bone_idx[/code]. If -1, then bone has no parent. [b]Note:[/b] The parent bone returned will always be less than [code]bone_idx[/code]. </description> </method> <method name="get_bone_pose" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="bone_idx" type="int" /> <description> Returns the pose transform of the specified bone. Pose is applied on top of the custom pose, which is applied on top the rest pose. </description> </method> <method name="get_bone_process_orders"> - <return type="PackedInt32Array"> - </return> + <return type="PackedInt32Array" /> <description> </description> </method> <method name="get_bone_rest" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="bone_idx" type="int" /> <description> Returns the rest transform for a bone [code]bone_idx[/code]. </description> </method> <method name="is_bone_rest_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bone_idx" type="int" /> <description> Returns whether the bone rest for the bone at [code]bone_idx[/code] is disabled. </description> </method> <method name="localize_rests"> - <return type="void"> - </return> + <return type="void" /> <description> Returns all bones in the skeleton to their rest poses. </description> </method> <method name="physical_bones_add_collision_exception"> - <return type="void"> - </return> - <argument index="0" name="exception" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="exception" type="RID" /> <description> Adds a collision exception to the physical bone. Works just like the [RigidBody3D] node. </description> </method> <method name="physical_bones_remove_collision_exception"> - <return type="void"> - </return> - <argument index="0" name="exception" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="exception" type="RID" /> <description> Removes a collision exception to the physical bone. Works just like the [RigidBody3D] node. </description> </method> <method name="physical_bones_start_simulation"> - <return type="void"> - </return> - <argument index="0" name="bones" type="StringName[]" default="[]"> - </argument> + <return type="void" /> + <argument index="0" name="bones" type="StringName[]" default="[]" /> <description> Tells the [PhysicalBone3D] nodes in the Skeleton to start simulating and reacting to the physics world. Optionally, a list of bone names can be passed-in, allowing only the passed-in bones to be simulated. </description> </method> <method name="physical_bones_stop_simulation"> - <return type="void"> - </return> + <return type="void" /> <description> Tells the [PhysicalBone3D] nodes in the Skeleton to stop simulating. </description> </method> <method name="register_skin"> - <return type="SkinReference"> - </return> - <argument index="0" name="skin" type="Skin"> - </argument> + <return type="SkinReference" /> + <argument index="0" name="skin" type="Skin" /> <description> Binds the given Skin to the Skeleton. </description> </method> <method name="set_bone_custom_pose"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="custom_pose" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> + <argument index="1" name="custom_pose" type="Transform3D" /> <description> Sets the custom pose transform, [code]custom_pose[/code], for the bone at [code]bone_idx[/code]. This pose is an addition to the bone rest pose. [b]Note[/b]: The pose transform needs to be in bone space. Use [method world_transform_to_bone_transform] to convert a world transform, like one you can get from a [Node3D], to bone space. </description> </method> <method name="set_bone_disable_rest"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="disable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> + <argument index="1" name="disable" type="bool" /> <description> Disables the rest pose for the bone at [code]bone_idx[/code] if [code]true[/code], enables the bone rest if [code]false[/code]. </description> </method> <method name="set_bone_global_pose_override"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="pose" type="Transform3D"> - </argument> - <argument index="2" name="amount" type="float"> - </argument> - <argument index="3" name="persistent" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> + <argument index="1" name="pose" type="Transform3D" /> + <argument index="2" name="amount" type="float" /> + <argument index="3" name="persistent" type="bool" default="false" /> <description> Sets the global pose transform, [code]pose[/code], for the bone at [code]bone_idx[/code]. [code]amount[/code] is the interpolation strength that will be used when applying the pose, and [code]persistent[/code] determines if the applied pose will remain. @@ -235,64 +188,48 @@ </description> </method> <method name="set_bone_name"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> + <argument index="1" name="name" type="String" /> <description> </description> </method> <method name="set_bone_parent"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="parent_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> + <argument index="1" name="parent_idx" type="int" /> <description> Sets the bone index [code]parent_idx[/code] as the parent of the bone at [code]bone_idx[/code]. If -1, then bone has no parent. [b]Note:[/b] [code]parent_idx[/code] must be less than [code]bone_idx[/code]. </description> </method> <method name="set_bone_pose"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="pose" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> + <argument index="1" name="pose" type="Transform3D" /> <description> Sets the pose transform for bone [code]bone_idx[/code]. [b]Note[/b]: The pose transform needs to be in bone space. Use [method world_transform_to_bone_transform] to convert a world transform, like one you can get from a [Node3D], to bone space. </description> </method> <method name="set_bone_rest"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="rest" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> + <argument index="1" name="rest" type="Transform3D" /> <description> Sets the rest transform for bone [code]bone_idx[/code]. </description> </method> <method name="unparent_bone_and_rest"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> <description> Unparents the bone at [code]bone_idx[/code] and sets its rest position to that of its parent prior to being reset. </description> </method> <method name="world_transform_to_bone_transform"> - <return type="Transform3D"> - </return> - <argument index="0" name="world_transform" type="Transform3D"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="world_transform" type="Transform3D" /> <description> Takes the given world transform, relative to the [Skeleton3D], and converts it to a bone pose/transform. This is useful for using setting bone poses using transforms from [Node3D]-based nodes. diff --git a/doc/classes/SkeletonIK3D.xml b/doc/classes/SkeletonIK3D.xml index 138ebe4411..93cdd770cc 100644 --- a/doc/classes/SkeletonIK3D.xml +++ b/doc/classes/SkeletonIK3D.xml @@ -9,28 +9,23 @@ </tutorials> <methods> <method name="get_parent_skeleton" qualifiers="const"> - <return type="Skeleton3D"> - </return> + <return type="Skeleton3D" /> <description> </description> </method> <method name="is_running"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="start"> - <return type="void"> - </return> - <argument index="0" name="one_time" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="one_time" type="bool" default="false" /> <description> </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> diff --git a/doc/classes/SkeletonModification2D.xml b/doc/classes/SkeletonModification2D.xml index dfd0256d9b..cff55b6a17 100644 --- a/doc/classes/SkeletonModification2D.xml +++ b/doc/classes/SkeletonModification2D.xml @@ -11,81 +11,64 @@ </tutorials> <methods> <method name="_draw_editor_gizmo" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Used for drawing [b]editor-only[/b] modification gizmos. This function will only be called in the Godot editor and can be overridden to draw custom gizmos. [b]Note:[/b] You will need to use the Skeleton2D from [method SkeletonModificationStack2D.get_skeleton] and it's draw functions, as the [SkeletonModification2D] resource cannot draw on its own. </description> </method> <method name="_execute" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="delta" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="delta" type="float" /> <description> Executes the given modification. This is where the modification performs whatever function it is designed to do. </description> </method> <method name="_setup_modification" qualifiers="virtual"> - <return type="void"> - </return> - <argument index="0" name="modification_stack" type="SkeletonModificationStack2D"> - </argument> + <return type="void" /> + <argument index="0" name="modification_stack" type="SkeletonModificationStack2D" /> <description> Called when the modification is setup. This is where the modification performs initialization. </description> </method> <method name="clamp_angle"> - <return type="float"> - </return> - <argument index="0" name="angle" type="float"> - </argument> - <argument index="1" name="min" type="float"> - </argument> - <argument index="2" name="max" type="float"> - </argument> - <argument index="3" name="invert" type="bool"> - </argument> + <return type="float" /> + <argument index="0" name="angle" type="float" /> + <argument index="1" name="min" type="float" /> + <argument index="2" name="max" type="float" /> + <argument index="3" name="invert" type="bool" /> <description> Takes a angle and clamps it so it is within the passed-in [code]min[/code] and [code]max[/code] range. [code]invert[/code] will inversely clamp the angle, clamping it to the range outside of the given bounds. </description> </method> <method name="get_editor_draw_gizmo" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether this modification will call [method _draw_editor_gizmo] in the Godot editor to draw modification-specific gizmos. </description> </method> <method name="get_is_setup" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether this modification has been successfully setup or not. </description> </method> <method name="get_modification_stack"> - <return type="SkeletonModificationStack2D"> - </return> + <return type="SkeletonModificationStack2D" /> <description> Returns the [SkeletonModificationStack2D] that this modification is bound to. Through the modification stack, you can access the Skeleton3D the modification is operating on. </description> </method> <method name="set_editor_draw_gizmo"> - <return type="void"> - </return> - <argument index="0" name="draw_gizmo" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="draw_gizmo" type="bool" /> <description> Sets whether this modification will call [method _draw_editor_gizmo] in the Godot editor to draw modification-specific gizmos. </description> </method> <method name="set_is_setup"> - <return type="void"> - </return> - <argument index="0" name="is_setup" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="is_setup" type="bool" /> <description> Manually allows you to set the setup state of the modification. This function should only rarely be used, as the [SkeletonModificationStack2D] the modification is bound to should handle setting the modification up. </description> diff --git a/doc/classes/SkeletonModification2DCCDIK.xml b/doc/classes/SkeletonModification2DCCDIK.xml index 1a74905df2..f876615de7 100644 --- a/doc/classes/SkeletonModification2DCCDIK.xml +++ b/doc/classes/SkeletonModification2DCCDIK.xml @@ -13,142 +13,107 @@ </tutorials> <methods> <method name="get_ccdik_joint_bone2d_node" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="NodePath" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the [Bone2D] node assigned to the CCDIK joint at [code]joint_idx[/code]. </description> </method> <method name="get_ccdik_joint_bone_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the index of the [Bone2D] node assigned to the CCDIK joint at [code]joint_idx[/code]. </description> </method> <method name="get_ccdik_joint_constraint_angle_invert" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns whether the CCDIK joint at [code]joint_idx[/code] uses an inverted joint constraint. See [method set_ccdik_joint_constraint_angle_invert] for details. </description> </method> <method name="get_ccdik_joint_constraint_angle_max" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the maximum angle constraint for the joint at [code]joint_idx[/code]. </description> </method> <method name="get_ccdik_joint_constraint_angle_min" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the minimum angle constraint for the joint at [code]joint_idx[/code]. </description> </method> <method name="get_ccdik_joint_enable_constraint" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns whether angle constraints on the CCDIK joint at [code]joint_idx[/code] are enabled. </description> </method> <method name="get_ccdik_joint_rotate_from_joint" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns whether the joint at [code]joint_idx[/code] is set to rotate from the joint, [code]true[/code], or to rotate from the tip, [code]false[/code]. The default is to rotate from the tip. </description> </method> <method name="set_ccdik_joint_bone2d_node"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="bone2d_nodepath" type="NodePath"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="bone2d_nodepath" type="NodePath" /> <description> Sets the [Bone2D] node assigned to the CCDIK joint at [code]joint_idx[/code]. </description> </method> <method name="set_ccdik_joint_bone_index"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="bone_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="bone_idx" type="int" /> <description> Sets the bone index, [code]bone_index[/code], of the CCDIK joint at [code]joint_idx[/code]. When possible, this will also update the [code]bone2d_node[/code] of the CCDIK joint based on data provided by the linked skeleton. </description> </method> <method name="set_ccdik_joint_constraint_angle_invert"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="invert" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="invert" type="bool" /> <description> Sets whether the CCDIK joint at [code]joint_idx[/code] uses an inverted joint constraint. An inverted joint constraint only constraints the CCDIK joint to the angles [i]outside of[/i] the inputted minimum and maximum angles. For this reason, it is referred to as an inverted joint constraint, as it constraints the joint to the outside of the inputted values. </description> </method> <method name="set_ccdik_joint_constraint_angle_max"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="angle_max" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="angle_max" type="float" /> <description> Sets the maximum angle constraint for the joint at [code]joint_idx[/code]. </description> </method> <method name="set_ccdik_joint_constraint_angle_min"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="angle_min" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="angle_min" type="float" /> <description> Sets the minimum angle constraint for the joint at [code]joint_idx[/code]. </description> </method> <method name="set_ccdik_joint_enable_constraint"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="enable_constraint" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="enable_constraint" type="bool" /> <description> Determines whether angle constraints on the CCDIK joint at [code]joint_idx[/code] are enabled. When [code]true[/code], constraints will be enabled and taken into account when solving. </description> </method> <method name="set_ccdik_joint_rotate_from_joint"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="rotate_from_joint" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="rotate_from_joint" type="bool" /> <description> Sets whether the joint at [code]joint_idx[/code] is set to rotate from the joint, [code]true[/code], or to rotate from the tip, [code]false[/code]. </description> diff --git a/doc/classes/SkeletonModification2DFABRIK.xml b/doc/classes/SkeletonModification2DFABRIK.xml index 62ab34b06f..314405498a 100644 --- a/doc/classes/SkeletonModification2DFABRIK.xml +++ b/doc/classes/SkeletonModification2DFABRIK.xml @@ -14,81 +14,61 @@ </tutorials> <methods> <method name="get_fabrik_joint_bone2d_node" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="NodePath" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the [Bone2D] node assigned to the FABRIK joint at [code]joint_idx[/code]. </description> </method> <method name="get_fabrik_joint_bone_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the index of the [Bone2D] node assigned to the FABRIK joint at [code]joint_idx[/code]. </description> </method> <method name="get_fabrik_joint_magnet_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the magnet position vector for the joint at [code]joint_idx[/code]. </description> </method> <method name="get_fabrik_joint_use_target_rotation" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns whether the joint is using the target's rotation rather than allowing FABRIK to rotate the joint. This option only applies to the tip/final joint in the chain. </description> </method> <method name="set_fabrik_joint_bone2d_node"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="bone2d_nodepath" type="NodePath"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="bone2d_nodepath" type="NodePath" /> <description> Sets the [Bone2D] node assigned to the FABRIK joint at [code]joint_idx[/code]. </description> </method> <method name="set_fabrik_joint_bone_index"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="bone_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="bone_idx" type="int" /> <description> Sets the bone index, [code]bone_index[/code], of the FABRIK joint at [code]joint_idx[/code]. When possible, this will also update the [code]bone2d_node[/code] of the FABRIK joint based on data provided by the linked skeleton. </description> </method> <method name="set_fabrik_joint_magnet_position"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="magnet_position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="magnet_position" type="Vector2" /> <description> Sets the magnet position vector for the joint at [code]joint_idx[/code]. </description> </method> <method name="set_fabrik_joint_use_target_rotation"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="use_target_rotation" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="use_target_rotation" type="bool" /> <description> Sets whether the joint at [code]joint_idx[/code] will use the target node's rotation rather than letting FABRIK rotate the node. [b]Note:[/b] This option only works for the tip/final joint in the chain. For all other nodes, this option will be ignored. diff --git a/doc/classes/SkeletonModification2DJiggle.xml b/doc/classes/SkeletonModification2DJiggle.xml index da25191dc0..8d3732e225 100644 --- a/doc/classes/SkeletonModification2DJiggle.xml +++ b/doc/classes/SkeletonModification2DJiggle.xml @@ -12,193 +12,147 @@ </tutorials> <methods> <method name="get_collision_mask" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the collision mask used by the Jiggle modifier when collisions are enabled. </description> </method> <method name="get_jiggle_joint_bone2d_node" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="NodePath" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the [Bone2D] node assigned to the Jiggle joint at [code]joint_idx[/code]. </description> </method> <method name="get_jiggle_joint_bone_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the index of the [Bone2D] node assigned to the Jiggle joint at [code]joint_idx[/code]. </description> </method> <method name="get_jiggle_joint_damping" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the amount of damping of the Jiggle joint at [code]joint_idx[/code]. </description> </method> <method name="get_jiggle_joint_gravity" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns a [Vector2] representing the amount of gravity the Jiggle joint at [code]joint_idx[/code] is influenced by. </description> </method> <method name="get_jiggle_joint_mass" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the amount of mass of the jiggle joint at [code]joint_idx[/code]. </description> </method> <method name="get_jiggle_joint_override" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns a boolean that indicates whether the joint at [code]joint_idx[/code] is overriding the default Jiggle joint data defined in the modification. </description> </method> <method name="get_jiggle_joint_stiffness" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the stiffness of the Jiggle joint at [code]joint_idx[/code]. </description> </method> <method name="get_jiggle_joint_use_gravity" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns a boolean that indicates whether the joint at [code]joint_idx[/code] is using gravity or not. </description> </method> <method name="get_use_colliders" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the jiggle modifier is taking physics colliders into account when solving. </description> </method> <method name="set_collision_mask"> - <return type="void"> - </return> - <argument index="0" name="collision_mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="collision_mask" type="int" /> <description> Sets the collision mask that the Jiggle modifier will use when reacting to colliders, if the Jiggle modifier is set to take colliders into account. </description> </method> <method name="set_jiggle_joint_bone2d_node"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="bone2d_node" type="NodePath"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="bone2d_node" type="NodePath" /> <description> Sets the [Bone2D] node assigned to the Jiggle joint at [code]joint_idx[/code]. </description> </method> <method name="set_jiggle_joint_bone_index"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="bone_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="bone_idx" type="int" /> <description> Sets the bone index, [code]bone_index[/code], of the Jiggle joint at [code]joint_idx[/code]. When possible, this will also update the [code]bone2d_node[/code] of the Jiggle joint based on data provided by the linked skeleton. </description> </method> <method name="set_jiggle_joint_damping"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="damping" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="damping" type="float" /> <description> Sets the amount of dampening of the Jiggle joint at [code]joint_idx[/code]. </description> </method> <method name="set_jiggle_joint_gravity"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="gravity" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="gravity" type="Vector2" /> <description> Sets the gravity vector of the Jiggle joint at [code]joint_idx[/code]. </description> </method> <method name="set_jiggle_joint_mass"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="mass" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="mass" type="float" /> <description> Sets the of mass of the Jiggle joint at [code]joint_idx[/code]. </description> </method> <method name="set_jiggle_joint_override"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="override" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="override" type="bool" /> <description> Sets whether the Jiggle joint at [code]joint_idx[/code] should override the default Jiggle joint settings. Setting this to [code]true[/code] will make the joint use its own settings rather than the default ones attached to the modification. </description> </method> <method name="set_jiggle_joint_stiffness"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="stiffness" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="stiffness" type="float" /> <description> Sets the of stiffness of the Jiggle joint at [code]joint_idx[/code]. </description> </method> <method name="set_jiggle_joint_use_gravity"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="use_gravity" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="use_gravity" type="bool" /> <description> Sets whether the Jiggle joint at [code]joint_idx[/code] should use gravity. </description> </method> <method name="set_use_colliders"> - <return type="void"> - </return> - <argument index="0" name="use_colliders" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="use_colliders" type="bool" /> <description> If [code]true[/code], the Jiggle modifier will take colliders into account, keeping them from entering into these collision objects. </description> diff --git a/doc/classes/SkeletonModification2DLookAt.xml b/doc/classes/SkeletonModification2DLookAt.xml index b0fa0e5a01..998a897d20 100644 --- a/doc/classes/SkeletonModification2DLookAt.xml +++ b/doc/classes/SkeletonModification2DLookAt.xml @@ -10,82 +10,67 @@ </tutorials> <methods> <method name="get_additional_rotation" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the amount of additional rotation that is applied after the LookAt modification executes. </description> </method> <method name="get_constraint_angle_invert" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the constraints to this modification are inverted or not. </description> </method> <method name="get_constraint_angle_max" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the constraint's maximum allowed angle. </description> </method> <method name="get_constraint_angle_min" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the constraint's minimum allowed angle. </description> </method> <method name="get_enable_constraint" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the LookAt modification is using constraints. </description> </method> <method name="set_additional_rotation"> - <return type="void"> - </return> - <argument index="0" name="rotation" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="rotation" type="float" /> <description> Sets the amount of additional rotation that is to be applied after executing the modification. This allows for offsetting the results by the inputted rotation amount. </description> </method> <method name="set_constraint_angle_invert"> - <return type="void"> - </return> - <argument index="0" name="invert" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="invert" type="bool" /> <description> When [code]true[/code], the modification will use an inverted joint constraint. An inverted joint constraint only constraints the [Bone2D] to the angles [i]outside of[/i] the inputted minimum and maximum angles. For this reason, it is referred to as an inverted joint constraint, as it constraints the joint to the outside of the inputted values. </description> </method> <method name="set_constraint_angle_max"> - <return type="void"> - </return> - <argument index="0" name="angle_max" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="angle_max" type="float" /> <description> Sets the constraint's maximum allowed angle. </description> </method> <method name="set_constraint_angle_min"> - <return type="void"> - </return> - <argument index="0" name="angle_min" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="angle_min" type="float" /> <description> Sets the constraint's minimum allowed angle. </description> </method> <method name="set_enable_constraint"> - <return type="void"> - </return> - <argument index="0" name="enable_constraint" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable_constraint" type="bool" /> <description> Sets whether this modification will use constraints or not. When [code]true[/code], constraints will be applied when solving the LookAt modification. </description> diff --git a/doc/classes/SkeletonModification2DPhysicalBones.xml b/doc/classes/SkeletonModification2DPhysicalBones.xml index 2547727097..e6bcb3c9d7 100644 --- a/doc/classes/SkeletonModification2DPhysicalBones.xml +++ b/doc/classes/SkeletonModification2DPhysicalBones.xml @@ -10,48 +10,38 @@ </tutorials> <methods> <method name="fetch_physical_bones"> - <return type="void"> - </return> + <return type="void" /> <description> Empties the list of [PhysicalBone2D] nodes and populates it will all [PhysicalBone2D] nodes that are children of the [Skeleton2D]. </description> </method> <method name="get_physical_bone_node" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> + <return type="NodePath" /> + <argument index="0" name="joint_idx" type="int" /> <description> Returns the [PhysicalBone2D] node at [code]joint_idx[/code]. </description> </method> <method name="set_physical_bone_node"> - <return type="void"> - </return> - <argument index="0" name="joint_idx" type="int"> - </argument> - <argument index="1" name="physicalbone2d_node" type="NodePath"> - </argument> + <return type="void" /> + <argument index="0" name="joint_idx" type="int" /> + <argument index="1" name="physicalbone2d_node" type="NodePath" /> <description> Sets the [PhysicalBone2D] node at [code]joint_idx[/code]. [b]Note:[/b] This is just the index used for this modification, not the bone index used in the [Skeleton2D]. </description> </method> <method name="start_simulation"> - <return type="void"> - </return> - <argument index="0" name="bones" type="StringName[]" default="[]"> - </argument> + <return type="void" /> + <argument index="0" name="bones" type="StringName[]" default="[]" /> <description> Tell the [PhysicalBone2D] nodes to start simulating and interacting with the physics world. Optionally, an array of bone names can be passed to this function, and that will cause only [PhysicalBone2D] nodes with those names to start simulating. </description> </method> <method name="stop_simulation"> - <return type="void"> - </return> - <argument index="0" name="bones" type="StringName[]" default="[]"> - </argument> + <return type="void" /> + <argument index="0" name="bones" type="StringName[]" default="[]" /> <description> Tell the [PhysicalBone2D] nodes to stop simulating and interacting with the physics world. Optionally, an array of bone names can be passed to this function, and that will cause only [PhysicalBone2D] nodes with those names to stop simulating. diff --git a/doc/classes/SkeletonModification2DStackHolder.xml b/doc/classes/SkeletonModification2DStackHolder.xml index 313cf81482..e5d9f2194a 100644 --- a/doc/classes/SkeletonModification2DStackHolder.xml +++ b/doc/classes/SkeletonModification2DStackHolder.xml @@ -11,17 +11,14 @@ </tutorials> <methods> <method name="get_held_modification_stack" qualifiers="const"> - <return type="SkeletonModificationStack2D"> - </return> + <return type="SkeletonModificationStack2D" /> <description> Returns the [SkeletonModificationStack2D] that this modification is holding. </description> </method> <method name="set_held_modification_stack"> - <return type="void"> - </return> - <argument index="0" name="held_modification_stack" type="SkeletonModificationStack2D"> - </argument> + <return type="void" /> + <argument index="0" name="held_modification_stack" type="SkeletonModificationStack2D" /> <description> Sets the [SkeletonModificationStack2D] that this modification is holding. This modification stack will then be executed when this modification is executed. </description> diff --git a/doc/classes/SkeletonModification2DTwoBoneIK.xml b/doc/classes/SkeletonModification2DTwoBoneIK.xml index 0eecfa635c..25ee981d5d 100644 --- a/doc/classes/SkeletonModification2DTwoBoneIK.xml +++ b/doc/classes/SkeletonModification2DTwoBoneIK.xml @@ -11,65 +11,53 @@ </tutorials> <methods> <method name="get_joint_one_bone2d_node" qualifiers="const"> - <return type="NodePath"> - </return> + <return type="NodePath" /> <description> Returns the [Bone2D] node that is being used as the first bone in the TwoBoneIK modification. </description> </method> <method name="get_joint_one_bone_idx" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the index of the [Bone2D] node that is being used as the first bone in the TwoBoneIK modification. </description> </method> <method name="get_joint_two_bone2d_node" qualifiers="const"> - <return type="NodePath"> - </return> + <return type="NodePath" /> <description> Returns the [Bone2D] node that is being used as the second bone in the TwoBoneIK modification. </description> </method> <method name="get_joint_two_bone_idx" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the index of the [Bone2D] node that is being used as the second bone in the TwoBoneIK modification. </description> </method> <method name="set_joint_one_bone2d_node"> - <return type="void"> - </return> - <argument index="0" name="bone2d_node" type="NodePath"> - </argument> + <return type="void" /> + <argument index="0" name="bone2d_node" type="NodePath" /> <description> Sets the [Bone2D] node that is being used as the first bone in the TwoBoneIK modification. </description> </method> <method name="set_joint_one_bone_idx"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> <description> Sets the index of the [Bone2D] node that is being used as the first bone in the TwoBoneIK modification. </description> </method> <method name="set_joint_two_bone2d_node"> - <return type="void"> - </return> - <argument index="0" name="bone2d_node" type="NodePath"> - </argument> + <return type="void" /> + <argument index="0" name="bone2d_node" type="NodePath" /> <description> Sets the [Bone2D] node that is being used as the second bone in the TwoBoneIK modification. </description> </method> <method name="set_joint_two_bone_idx"> - <return type="void"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="bone_idx" type="int" /> <description> Sets the index of the [Bone2D] node that is being used as the second bone in the TwoBoneIK modification. </description> diff --git a/doc/classes/SkeletonModificationStack2D.xml b/doc/classes/SkeletonModificationStack2D.xml index 4ffd2c33fb..97b8e3b945 100644 --- a/doc/classes/SkeletonModificationStack2D.xml +++ b/doc/classes/SkeletonModificationStack2D.xml @@ -12,81 +12,64 @@ </tutorials> <methods> <method name="add_modification"> - <return type="void"> - </return> - <argument index="0" name="modification" type="SkeletonModification2D"> - </argument> + <return type="void" /> + <argument index="0" name="modification" type="SkeletonModification2D" /> <description> Adds the passed-in [SkeletonModification2D] to the stack. </description> </method> <method name="delete_modification"> - <return type="void"> - </return> - <argument index="0" name="mod_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="mod_idx" type="int" /> <description> Deletes the [SkeletonModification2D] at the index position [code]mod_idx[/code], if it exists. </description> </method> <method name="enable_all_modifications"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enabled" type="bool" /> <description> Enables all [SkeletonModification2D]s in the stack. </description> </method> <method name="execute"> - <return type="void"> - </return> - <argument index="0" name="delta" type="float"> - </argument> - <argument index="1" name="execution_mode" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="delta" type="float" /> + <argument index="1" name="execution_mode" type="int" /> <description> Executes all of the [SkeletonModification2D]s in the stack that use the same execution mode as the passed-in [code]execution_mode[/code], starting from index [code]0[/code] to [member modification_count]. [b]Note:[/b] The order of the modifications can matter depending on the modifications. For example, modifications on a spine should operate before modifications on the arms in order to get proper results. </description> </method> <method name="get_is_setup" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns a boolean that indicates whether the modification stack is setup and can execute. </description> </method> <method name="get_modification" qualifiers="const"> - <return type="SkeletonModification2D"> - </return> - <argument index="0" name="mod_idx" type="int"> - </argument> + <return type="SkeletonModification2D" /> + <argument index="0" name="mod_idx" type="int" /> <description> Returns the [SkeletonModification2D] at the passed-in index, [code]mod_idx[/code]. </description> </method> <method name="get_skeleton" qualifiers="const"> - <return type="Skeleton2D"> - </return> + <return type="Skeleton2D" /> <description> Returns the [Skeleton2D] node that the SkeletonModificationStack2D is bound to. </description> </method> <method name="set_modification"> - <return type="void"> - </return> - <argument index="0" name="mod_idx" type="int"> - </argument> - <argument index="1" name="modification" type="SkeletonModification2D"> - </argument> + <return type="void" /> + <argument index="0" name="mod_idx" type="int" /> + <argument index="1" name="modification" type="SkeletonModification2D" /> <description> Sets the modification at [code]mod_idx[/code] to the passed-in modification, [code]modification[/code]. </description> </method> <method name="setup"> - <return type="void"> - </return> + <return type="void" /> <description> Sets up the modification stack so it can execute. This function should be called by [Skeleton2D] and shouldn't be manually called unless you know what you are doing. </description> diff --git a/doc/classes/Skin.xml b/doc/classes/Skin.xml index f409b6c80c..67ca36f4d6 100644 --- a/doc/classes/Skin.xml +++ b/doc/classes/Skin.xml @@ -8,86 +8,64 @@ </tutorials> <methods> <method name="add_bind"> - <return type="void"> - </return> - <argument index="0" name="bone" type="int"> - </argument> - <argument index="1" name="pose" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="bone" type="int" /> + <argument index="1" name="pose" type="Transform3D" /> <description> </description> </method> <method name="clear_binds"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="get_bind_bone" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="bind_index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="bind_index" type="int" /> <description> </description> </method> <method name="get_bind_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_bind_name" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="bind_index" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="bind_index" type="int" /> <description> </description> </method> <method name="get_bind_pose" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="bind_index" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="bind_index" type="int" /> <description> </description> </method> <method name="set_bind_bone"> - <return type="void"> - </return> - <argument index="0" name="bind_index" type="int"> - </argument> - <argument index="1" name="bone" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="bind_index" type="int" /> + <argument index="1" name="bone" type="int" /> <description> </description> </method> <method name="set_bind_count"> - <return type="void"> - </return> - <argument index="0" name="bind_count" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="bind_count" type="int" /> <description> </description> </method> <method name="set_bind_name"> - <return type="void"> - </return> - <argument index="0" name="bind_index" type="int"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="bind_index" type="int" /> + <argument index="1" name="name" type="StringName" /> <description> </description> </method> <method name="set_bind_pose"> - <return type="void"> - </return> - <argument index="0" name="bind_index" type="int"> - </argument> - <argument index="1" name="pose" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="bind_index" type="int" /> + <argument index="1" name="pose" type="Transform3D" /> <description> </description> </method> diff --git a/doc/classes/SkinReference.xml b/doc/classes/SkinReference.xml index 3f8bc3be82..d0634c543c 100644 --- a/doc/classes/SkinReference.xml +++ b/doc/classes/SkinReference.xml @@ -8,14 +8,12 @@ </tutorials> <methods> <method name="get_skeleton" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="get_skin" qualifiers="const"> - <return type="Skin"> - </return> + <return type="Skin" /> <description> </description> </method> diff --git a/doc/classes/SliderJoint3D.xml b/doc/classes/SliderJoint3D.xml index ef9c9a48b6..dc9760b667 100644 --- a/doc/classes/SliderJoint3D.xml +++ b/doc/classes/SliderJoint3D.xml @@ -10,20 +10,15 @@ </tutorials> <methods> <method name="get_param" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="param" type="int" enum="SliderJoint3D.Param"> - </argument> + <return type="float" /> + <argument index="0" name="param" type="int" enum="SliderJoint3D.Param" /> <description> </description> </method> <method name="set_param"> - <return type="void"> - </return> - <argument index="0" name="param" type="int" enum="SliderJoint3D.Param"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="param" type="int" enum="SliderJoint3D.Param" /> + <argument index="1" name="value" type="float" /> <description> </description> </method> diff --git a/doc/classes/SoftBody3D.xml b/doc/classes/SoftBody3D.xml index b143c60d9d..16f80c43bc 100644 --- a/doc/classes/SoftBody3D.xml +++ b/doc/classes/SoftBody3D.xml @@ -11,72 +11,56 @@ </tutorials> <methods> <method name="add_collision_exception_with"> - <return type="void"> - </return> - <argument index="0" name="body" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="Node" /> <description> Adds a body to the list of bodies that this body can't collide with. </description> </method> <method name="get_collision_exceptions"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of nodes that were added as collision exceptions for this body. </description> </method> <method name="get_collision_layer_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns an individual bit on the collision mask. </description> </method> <method name="get_collision_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns an individual bit on the collision mask. </description> </method> <method name="get_physics_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> </description> </method> <method name="remove_collision_exception_with"> - <return type="void"> - </return> - <argument index="0" name="body" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="body" type="Node" /> <description> Removes a body from the list of bodies that this body can't collide with. </description> </method> <method name="set_collision_layer_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> Sets individual bits on the layer mask. Use this if you only need to change one layer's value. </description> </method> <method name="set_collision_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> Sets individual bits on the collision mask. Use this if you only need to change one layer's value. </description> diff --git a/doc/classes/SpinBox.xml b/doc/classes/SpinBox.xml index 7e2481f458..1c1e6e5a15 100644 --- a/doc/classes/SpinBox.xml +++ b/doc/classes/SpinBox.xml @@ -30,15 +30,13 @@ </tutorials> <methods> <method name="apply"> - <return type="void"> - </return> + <return type="void" /> <description> Applies the current value of this [SpinBox]. </description> </method> <method name="get_line_edit"> - <return type="LineEdit"> - </return> + <return type="LineEdit" /> <description> Returns the [LineEdit] instance from this [SpinBox]. You can use it to access properties and methods of [LineEdit]. </description> diff --git a/doc/classes/SplitContainer.xml b/doc/classes/SplitContainer.xml index b3f85ce7e1..be49a99988 100644 --- a/doc/classes/SplitContainer.xml +++ b/doc/classes/SplitContainer.xml @@ -10,8 +10,7 @@ </tutorials> <methods> <method name="clamp_split_offset"> - <return type="void"> - </return> + <return type="void" /> <description> Clamps the [member split_offset] value to not go outside the currently possible minimal and maximum values. </description> @@ -30,8 +29,7 @@ </members> <signals> <signal name="dragged"> - <argument index="0" name="offset" type="int"> - </argument> + <argument index="0" name="offset" type="int" /> <description> Emitted when the dragger is dragged by user. </description> diff --git a/doc/classes/SpringArm3D.xml b/doc/classes/SpringArm3D.xml index 3ffdbebae8..50aa3d39b8 100644 --- a/doc/classes/SpringArm3D.xml +++ b/doc/classes/SpringArm3D.xml @@ -13,33 +13,27 @@ </tutorials> <methods> <method name="add_excluded_object"> - <return type="void"> - </return> - <argument index="0" name="RID" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="RID" type="RID" /> <description> Adds the [PhysicsBody3D] object with the given [RID] to the list of [PhysicsBody3D] objects excluded from the collision check. </description> </method> <method name="clear_excluded_objects"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the list of [PhysicsBody3D] objects excluded from the collision check. </description> </method> <method name="get_hit_length"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the spring arm's current length. </description> </method> <method name="remove_excluded_object"> - <return type="bool"> - </return> - <argument index="0" name="RID" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="RID" type="RID" /> <description> Removes the given [RID] from the list of [PhysicsBody3D] objects excluded from the collision check. </description> diff --git a/doc/classes/Sprite2D.xml b/doc/classes/Sprite2D.xml index b419b003bf..0b26fdc055 100644 --- a/doc/classes/Sprite2D.xml +++ b/doc/classes/Sprite2D.xml @@ -11,8 +11,7 @@ </tutorials> <methods> <method name="get_rect" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns a [Rect2] representing the Sprite2D's boundary in local coordinates. Can be used to detect if the Sprite2D was clicked. Example: [codeblocks] @@ -41,10 +40,8 @@ </description> </method> <method name="is_pixel_opaque" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="pos" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="pos" type="Vector2" /> <description> Returns [code]true[/code], if the pixel at the given position is opaque and [code]false[/code] in other case. [b]Note:[/b] It also returns [code]false[/code], if the sprite's texture is [code]null[/code] or if the given position is invalid. diff --git a/doc/classes/SpriteBase3D.xml b/doc/classes/SpriteBase3D.xml index 3168e2d848..b723c9f4d4 100644 --- a/doc/classes/SpriteBase3D.xml +++ b/doc/classes/SpriteBase3D.xml @@ -10,35 +10,28 @@ </tutorials> <methods> <method name="generate_triangle_mesh" qualifiers="const"> - <return type="TriangleMesh"> - </return> + <return type="TriangleMesh" /> <description> Returns a [TriangleMesh] with the sprite's vertices following its current configuration (such as its [member axis] and [member pixel_size]). </description> </method> <method name="get_draw_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="flag" type="int" enum="SpriteBase3D.DrawFlags"> - </argument> + <return type="bool" /> + <argument index="0" name="flag" type="int" enum="SpriteBase3D.DrawFlags" /> <description> Returns the value of the specified flag. </description> </method> <method name="get_item_rect" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns the rectangle representing this sprite. </description> </method> <method name="set_draw_flag"> - <return type="void"> - </return> - <argument index="0" name="flag" type="int" enum="SpriteBase3D.DrawFlags"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="flag" type="int" enum="SpriteBase3D.DrawFlags" /> + <argument index="1" name="enabled" type="bool" /> <description> If [code]true[/code], the specified flag will be enabled. See [enum SpriteBase3D.DrawFlags] for a list of flags. </description> diff --git a/doc/classes/SpriteFrames.xml b/doc/classes/SpriteFrames.xml index 1c7d84c5a2..3bd40ff6f4 100644 --- a/doc/classes/SpriteFrames.xml +++ b/doc/classes/SpriteFrames.xml @@ -11,159 +11,120 @@ </tutorials> <methods> <method name="add_animation"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" /> <description> Adds a new animation to the library. </description> </method> <method name="add_frame"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> - <argument index="1" name="frame" type="Texture2D"> - </argument> - <argument index="2" name="at_position" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" /> + <argument index="1" name="frame" type="Texture2D" /> + <argument index="2" name="at_position" type="int" default="-1" /> <description> Adds a frame to the given animation. </description> </method> <method name="clear"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" /> <description> Removes all frames from the given animation. </description> </method> <method name="clear_all"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all animations. A "default" animation will be created. </description> </method> <method name="get_animation_loop" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="anim" type="StringName" /> <description> Returns [code]true[/code] if the given animation is configured to loop when it finishes playing. Otherwise, returns [code]false[/code]. </description> </method> <method name="get_animation_names" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns an array containing the names associated to each animation. Values are placed in alphabetical order. </description> </method> <method name="get_animation_speed" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> + <return type="float" /> + <argument index="0" name="anim" type="StringName" /> <description> The animation's speed in frames per second. </description> </method> <method name="get_frame" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="anim" type="StringName" /> + <argument index="1" name="idx" type="int" /> <description> Returns the animation's selected frame. </description> </method> <method name="get_frame_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> + <return type="int" /> + <argument index="0" name="anim" type="StringName" /> <description> Returns the number of frames in the animation. </description> </method> <method name="has_animation" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="anim" type="StringName" /> <description> If [code]true[/code], the named animation exists. </description> </method> <method name="remove_animation"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" /> <description> Removes the given animation. </description> </method> <method name="remove_frame"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" /> + <argument index="1" name="idx" type="int" /> <description> Removes the animation's selected frame. </description> </method> <method name="rename_animation"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> - <argument index="1" name="newname" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" /> + <argument index="1" name="newname" type="StringName" /> <description> Changes the animation's name to [code]newname[/code]. </description> </method> <method name="set_animation_loop"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> - <argument index="1" name="loop" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" /> + <argument index="1" name="loop" type="bool" /> <description> If [code]true[/code], the animation will loop. </description> </method> <method name="set_animation_speed"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> - <argument index="1" name="speed" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" /> + <argument index="1" name="speed" type="float" /> <description> The animation's speed in frames per second. </description> </method> <method name="set_frame"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName"> - </argument> - <argument index="1" name="idx" type="int"> - </argument> - <argument index="2" name="txt" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" /> + <argument index="1" name="idx" type="int" /> + <argument index="2" name="txt" type="Texture2D" /> <description> Sets the texture of the given frame. </description> diff --git a/doc/classes/StreamPeer.xml b/doc/classes/StreamPeer.xml index 5367a572f1..e3d77d22c5 100644 --- a/doc/classes/StreamPeer.xml +++ b/doc/classes/StreamPeer.xml @@ -10,205 +10,166 @@ </tutorials> <methods> <method name="get_16"> - <return type="int"> - </return> + <return type="int" /> <description> Gets a signed 16-bit value from the stream. </description> </method> <method name="get_32"> - <return type="int"> - </return> + <return type="int" /> <description> Gets a signed 32-bit value from the stream. </description> </method> <method name="get_64"> - <return type="int"> - </return> + <return type="int" /> <description> Gets a signed 64-bit value from the stream. </description> </method> <method name="get_8"> - <return type="int"> - </return> + <return type="int" /> <description> Gets a signed byte from the stream. </description> </method> <method name="get_available_bytes" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of bytes this [StreamPeer] has available. </description> </method> <method name="get_data"> - <return type="Array"> - </return> - <argument index="0" name="bytes" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="bytes" type="int" /> <description> Returns a chunk data with the received bytes. The amount of bytes to be received can be requested in the [code]bytes[/code] argument. If not enough bytes are available, the function will block until the desired amount is received. This function returns two values, an [enum @GlobalScope.Error] code and a data array. </description> </method> <method name="get_double"> - <return type="float"> - </return> + <return type="float" /> <description> Gets a double-precision float from the stream. </description> </method> <method name="get_float"> - <return type="float"> - </return> + <return type="float" /> <description> Gets a single-precision float from the stream. </description> </method> <method name="get_partial_data"> - <return type="Array"> - </return> - <argument index="0" name="bytes" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="bytes" type="int" /> <description> Returns a chunk data with the received bytes. The amount of bytes to be received can be requested in the "bytes" argument. If not enough bytes are available, the function will return how many were actually received. This function returns two values, an [enum @GlobalScope.Error] code, and a data array. </description> </method> <method name="get_string"> - <return type="String"> - </return> - <argument index="0" name="bytes" type="int" default="-1"> - </argument> + <return type="String" /> + <argument index="0" name="bytes" type="int" default="-1" /> <description> Gets a string with byte-length [code]bytes[/code] from the stream. If [code]bytes[/code] is negative (default) the length will be read from the stream using the reverse process of [method put_string]. </description> </method> <method name="get_u16"> - <return type="int"> - </return> + <return type="int" /> <description> Gets an unsigned 16-bit value from the stream. </description> </method> <method name="get_u32"> - <return type="int"> - </return> + <return type="int" /> <description> Gets an unsigned 32-bit value from the stream. </description> </method> <method name="get_u64"> - <return type="int"> - </return> + <return type="int" /> <description> Gets an unsigned 64-bit value from the stream. </description> </method> <method name="get_u8"> - <return type="int"> - </return> + <return type="int" /> <description> Gets an unsigned byte from the stream. </description> </method> <method name="get_utf8_string"> - <return type="String"> - </return> - <argument index="0" name="bytes" type="int" default="-1"> - </argument> + <return type="String" /> + <argument index="0" name="bytes" type="int" default="-1" /> <description> Gets an UTF-8 string with byte-length [code]bytes[/code] from the stream (this decodes the string sent as UTF-8). If [code]bytes[/code] is negative (default) the length will be read from the stream using the reverse process of [method put_utf8_string]. </description> </method> <method name="get_var"> - <return type="Variant"> - </return> - <argument index="0" name="allow_objects" type="bool" default="false"> - </argument> + <return type="Variant" /> + <argument index="0" name="allow_objects" type="bool" default="false" /> <description> Gets a Variant from the stream. If [code]allow_objects[/code] is [code]true[/code], decoding objects is allowed. [b]Warning:[/b] Deserialized objects can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats such as remote code execution. </description> </method> <method name="put_16"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Puts a signed 16-bit value into the stream. </description> </method> <method name="put_32"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Puts a signed 32-bit value into the stream. </description> </method> <method name="put_64"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Puts a signed 64-bit value into the stream. </description> </method> <method name="put_8"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Puts a signed byte into the stream. </description> </method> <method name="put_data"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="data" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="data" type="PackedByteArray" /> <description> Sends a chunk of data through the connection, blocking if necessary until the data is done sending. This function returns an [enum @GlobalScope.Error] code. </description> </method> <method name="put_double"> - <return type="void"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="float" /> <description> Puts a double-precision float into the stream. </description> </method> <method name="put_float"> - <return type="void"> - </return> - <argument index="0" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="float" /> <description> Puts a single-precision float into the stream. </description> </method> <method name="put_partial_data"> - <return type="Array"> - </return> - <argument index="0" name="data" type="PackedByteArray"> - </argument> + <return type="Array" /> + <argument index="0" name="data" type="PackedByteArray" /> <description> Sends a chunk of data through the connection. If all the data could not be sent at once, only part of it will. This function returns two values, an [enum @GlobalScope.Error] code and an integer, describing how much data was actually sent. </description> </method> <method name="put_string"> - <return type="void"> - </return> - <argument index="0" name="value" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="String" /> <description> Puts a zero-terminated ASCII string into the stream prepended by a 32-bit unsigned integer representing its size. Note: To put an ASCII string without prepending its size, you can use [method put_data]: @@ -223,46 +184,36 @@ </description> </method> <method name="put_u16"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Puts an unsigned 16-bit value into the stream. </description> </method> <method name="put_u32"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Puts an unsigned 32-bit value into the stream. </description> </method> <method name="put_u64"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Puts an unsigned 64-bit value into the stream. </description> </method> <method name="put_u8"> - <return type="void"> - </return> - <argument index="0" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="int" /> <description> Puts an unsigned byte into the stream. </description> </method> <method name="put_utf8_string"> - <return type="void"> - </return> - <argument index="0" name="value" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="String" /> <description> Puts a zero-terminated UTF-8 string into the stream prepended by a 32 bits unsigned integer representing its size. Note: To put an UTF-8 string without prepending its size, you can use [method put_data]: @@ -277,12 +228,9 @@ </description> </method> <method name="put_var"> - <return type="void"> - </return> - <argument index="0" name="value" type="Variant"> - </argument> - <argument index="1" name="full_objects" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="value" type="Variant" /> + <argument index="1" name="full_objects" type="bool" default="false" /> <description> Puts a Variant into the stream. If [code]full_objects[/code] is [code]true[/code] encoding objects is allowed (and can potentially include code). </description> diff --git a/doc/classes/StreamPeerBuffer.xml b/doc/classes/StreamPeerBuffer.xml index 03a150b90f..62476ca166 100644 --- a/doc/classes/StreamPeerBuffer.xml +++ b/doc/classes/StreamPeerBuffer.xml @@ -8,42 +8,34 @@ </tutorials> <methods> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="duplicate" qualifiers="const"> - <return type="StreamPeerBuffer"> - </return> + <return type="StreamPeerBuffer" /> <description> </description> </method> <method name="get_position" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="resize"> - <return type="void"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="int" /> <description> </description> </method> <method name="seek"> - <return type="void"> - </return> - <argument index="0" name="position" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="int" /> <description> </description> </method> diff --git a/doc/classes/StreamPeerSSL.xml b/doc/classes/StreamPeerSSL.xml index 6a06c0b3f4..034168c2a0 100644 --- a/doc/classes/StreamPeerSSL.xml +++ b/doc/classes/StreamPeerSSL.xml @@ -11,53 +11,40 @@ </tutorials> <methods> <method name="accept_stream"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="stream" type="StreamPeer"> - </argument> - <argument index="1" name="private_key" type="CryptoKey"> - </argument> - <argument index="2" name="certificate" type="X509Certificate"> - </argument> - <argument index="3" name="chain" type="X509Certificate" default="null"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="stream" type="StreamPeer" /> + <argument index="1" name="private_key" type="CryptoKey" /> + <argument index="2" name="certificate" type="X509Certificate" /> + <argument index="3" name="chain" type="X509Certificate" default="null" /> <description> Accepts a peer connection as a server using the given [code]private_key[/code] and providing the given [code]certificate[/code] to the client. You can pass the optional [code]chain[/code] parameter to provide additional CA chain information along with the certificate. </description> </method> <method name="connect_to_stream"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="stream" type="StreamPeer"> - </argument> - <argument index="1" name="validate_certs" type="bool" default="false"> - </argument> - <argument index="2" name="for_hostname" type="String" default=""""> - </argument> - <argument index="3" name="valid_certificate" type="X509Certificate" default="null"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="stream" type="StreamPeer" /> + <argument index="1" name="validate_certs" type="bool" default="false" /> + <argument index="2" name="for_hostname" type="String" default="""" /> + <argument index="3" name="valid_certificate" type="X509Certificate" default="null" /> <description> Connects to a peer using an underlying [StreamPeer] [code]stream[/code]. If [code]validate_certs[/code] is [code]true[/code], [StreamPeerSSL] will validate that the certificate presented by the peer matches the [code]for_hostname[/code]. [b]Note:[/b] Specifying a custom [code]valid_certificate[/code] is not supported in HTML5 exports due to browsers restrictions. </description> </method> <method name="disconnect_from_stream"> - <return type="void"> - </return> + <return type="void" /> <description> Disconnects from host. </description> </method> <method name="get_status" qualifiers="const"> - <return type="int" enum="StreamPeerSSL.Status"> - </return> + <return type="int" enum="StreamPeerSSL.Status" /> <description> Returns the status of the connection. See [enum Status] for values. </description> </method> <method name="poll"> - <return type="void"> - </return> + <return type="void" /> <description> Poll the connection to check for incoming bytes. Call this right before [method StreamPeer.get_available_bytes] for it to work properly. </description> diff --git a/doc/classes/StreamPeerTCP.xml b/doc/classes/StreamPeerTCP.xml index 7b7c1d7426..bba48e7275 100644 --- a/doc/classes/StreamPeerTCP.xml +++ b/doc/classes/StreamPeerTCP.xml @@ -10,75 +10,61 @@ </tutorials> <methods> <method name="bind"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="host" type="String" default=""*""> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="host" type="String" default=""*"" /> <description> Opens the TCP socket, and binds it to the specified local address. This method is generally not needed, and only used to force the subsequent call to [method connect_to_host] to use the specified [code]host[/code] and [code]port[/code] as source address. This can be desired in some NAT punchthrough techniques, or when forcing the source network interface. </description> </method> <method name="connect_to_host"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <argument index="1" name="port" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="host" type="String" /> + <argument index="1" name="port" type="int" /> <description> Connects to the specified [code]host:port[/code] pair. A hostname will be resolved if valid. Returns [constant OK] on success. </description> </method> <method name="disconnect_from_host"> - <return type="void"> - </return> + <return type="void" /> <description> Disconnects from host. </description> </method> <method name="get_connected_host" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the IP of this peer. </description> </method> <method name="get_connected_port" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the port of this peer. </description> </method> <method name="get_local_port" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the local port to which this peer is bound. </description> </method> <method name="get_status"> - <return type="int" enum="StreamPeerTCP.Status"> - </return> + <return type="int" enum="StreamPeerTCP.Status" /> <description> Returns the status of the connection, see [enum Status]. </description> </method> <method name="is_connected_to_host" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this peer is currently connected or is connecting to a host, [code]false[/code] otherwise. </description> </method> <method name="set_no_delay"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enabled" type="bool" /> <description> If [code]enabled[/code] is [code]true[/code], packets will be sent immediately. If [code]enabled[/code] is [code]false[/code] (the default), packet transfers will be delayed and combined using [url=https://en.wikipedia.org/wiki/Nagle%27s_algorithm]Nagle's algorithm[/url]. [b]Note:[/b] It's recommended to leave this disabled for applications that send large packets or need to transfer a lot of data, as enabling this can decrease the total available bandwidth. diff --git a/doc/classes/StreamTexture2D.xml b/doc/classes/StreamTexture2D.xml index 214298475c..7b6c594786 100644 --- a/doc/classes/StreamTexture2D.xml +++ b/doc/classes/StreamTexture2D.xml @@ -10,10 +10,8 @@ </tutorials> <methods> <method name="load"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Loads the texture from the given path. </description> diff --git a/doc/classes/StreamTexture3D.xml b/doc/classes/StreamTexture3D.xml index 7054a4ee99..4b2eb16ba3 100644 --- a/doc/classes/StreamTexture3D.xml +++ b/doc/classes/StreamTexture3D.xml @@ -8,10 +8,8 @@ </tutorials> <methods> <method name="load"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> </description> </method> diff --git a/doc/classes/StreamTextureLayered.xml b/doc/classes/StreamTextureLayered.xml index 10a7aae976..888fb339db 100644 --- a/doc/classes/StreamTextureLayered.xml +++ b/doc/classes/StreamTextureLayered.xml @@ -8,10 +8,8 @@ </tutorials> <methods> <method name="load"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> </description> </method> diff --git a/doc/classes/String.xml b/doc/classes/String.xml index 3bf05e7c92..027ae2000a 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -11,58 +11,47 @@ </tutorials> <methods> <method name="String" qualifiers="constructor"> - <return type="String"> - </return> + <return type="String" /> <description> Constructs an empty [String] ([code]""[/code]). </description> </method> <method name="String" qualifiers="constructor"> - <return type="String"> - </return> - <argument index="0" name="from" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="from" type="String" /> <description> Constructs a [String] as a copy of the given [String]. </description> </method> <method name="String" qualifiers="constructor"> - <return type="String"> - </return> - <argument index="0" name="from" type="NodePath"> - </argument> + <return type="String" /> + <argument index="0" name="from" type="NodePath" /> <description> Constructs a new String from the given [NodePath]. </description> </method> <method name="String" qualifiers="constructor"> - <return type="String"> - </return> - <argument index="0" name="from" type="StringName"> - </argument> + <return type="String" /> + <argument index="0" name="from" type="StringName" /> <description> Constructs a new String from the given [StringName]. </description> </method> <method name="begins_with" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="text" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="text" type="String" /> <description> Returns [code]true[/code] if the string begins with the given string. </description> </method> <method name="bigrams" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns the bigrams (pairs of consecutive letters) of this string. </description> </method> <method name="bin_to_int" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Converts a string containing a binary number into an integer. Binary strings can either be prefixed with [code]0b[/code] or not, and they can also start with a [code]-[/code] before the optional prefix. [codeblocks] @@ -78,32 +67,27 @@ </description> </method> <method name="c_escape" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a copy of the string with special characters escaped using the C language standard. </description> </method> <method name="c_unescape" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a copy of the string with escaped characters replaced by their meanings. Supported escape sequences are [code]\'[/code], [code]\"[/code], [code]\?[/code], [code]\\[/code], [code]\a[/code], [code]\b[/code], [code]\f[/code], [code]\n[/code], [code]\r[/code], [code]\t[/code], [code]\v[/code]. [b]Note:[/b] Unlike the GDScript parser, this method doesn't support the [code]\uXXXX[/code] escape sequence. </description> </method> <method name="capitalize" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Changes the case of some letters. Replaces underscores with spaces, adds spaces before in-word uppercase characters, converts all letters to lowercase, then capitalizes the first letter and every letter following a space character. For [code]capitalize camelCase mixed_with_underscores[/code], it will return [code]Capitalize Camel Case Mixed With Underscores[/code]. </description> </method> <method name="casecmp_to" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="to" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="to" type="String" /> <description> Performs a case-sensitive comparison to another string. Returns [code]-1[/code] if less than, [code]1[/code] if greater than, or [code]0[/code] if equal. "less than" or "greater than" are determined by the [url=https://en.wikipedia.org/wiki/List_of_Unicode_characters]Unicode code points[/code] of each string, which roughly matches the alphabetical order. [b]Behavior with different string lengths:[/b] Returns [code]1[/code] if the "base" string is longer than the [code]to[/code] string or [code]-1[/code] if the "base" string is shorter than the [code]to[/code] string. Keep in mind this length is determined by the number of Unicode codepoints, [i]not[/i] the actual visible characters. @@ -112,62 +96,46 @@ </description> </method> <method name="chr" qualifiers="static"> - <return type="String"> - </return> - <argument index="0" name="char" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="char" type="int" /> <description> </description> </method> <method name="count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="what" type="String"> - </argument> - <argument index="1" name="from" type="int" default="0"> - </argument> - <argument index="2" name="to" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="what" type="String" /> + <argument index="1" name="from" type="int" default="0" /> + <argument index="2" name="to" type="int" default="0" /> <description> Returns the number of occurrences of substring [code]what[/code] between [code]from[/code] and [code]to[/code] positions. If [code]from[/code] and [code]to[/code] equals 0 the whole string will be used. If only [code]to[/code] equals 0 the remained substring will be used. </description> </method> <method name="countn" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="what" type="String"> - </argument> - <argument index="1" name="from" type="int" default="0"> - </argument> - <argument index="2" name="to" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="what" type="String" /> + <argument index="1" name="from" type="int" default="0" /> + <argument index="2" name="to" type="int" default="0" /> <description> Returns the number of occurrences of substring [code]what[/code] (ignoring case) between [code]from[/code] and [code]to[/code] positions. If [code]from[/code] and [code]to[/code] equals 0 the whole string will be used. If only [code]to[/code] equals 0 the remained substring will be used. </description> </method> <method name="dedent" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a copy of the string with indentation (leading tabs and spaces) removed. </description> </method> <method name="ends_with" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="text" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="text" type="String" /> <description> Returns [code]true[/code] if the string ends with the given string. </description> </method> <method name="find" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="what" type="String"> - </argument> - <argument index="1" name="from" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="what" type="String" /> + <argument index="1" name="from" type="int" default="0" /> <description> Returns the index of the [b]first[/b] case-sensitive occurrence of the specified string in this instance, or [code]-1[/code]. Optionally, the starting search index can be specified, continuing to the end of the string. [b]Note:[/b] If you just want to know whether a string contains a substring, use the [code]in[/code] operator as follows: @@ -183,65 +151,53 @@ </description> </method> <method name="findn" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="what" type="String"> - </argument> - <argument index="1" name="from" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="what" type="String" /> + <argument index="1" name="from" type="int" default="0" /> <description> Returns the index of the [b]first[/b] case-insensitive occurrence of the specified string in this instance, or [code]-1[/code]. Optionally, the starting search index can be specified, continuing to the end of the string. </description> </method> <method name="format" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="values" type="Variant"> - </argument> - <argument index="1" name="placeholder" type="String" default=""{_}""> - </argument> + <return type="String" /> + <argument index="0" name="values" type="Variant" /> + <argument index="1" name="placeholder" type="String" default=""{_}"" /> <description> Formats the string by replacing all occurrences of [code]placeholder[/code] with [code]values[/code]. </description> </method> <method name="get_base_dir" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> If the string is a valid file path, returns the base directory name. </description> </method> <method name="get_basename" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> If the string is a valid file path, returns the full file path without the extension. </description> </method> <method name="get_extension" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> If the string is a valid file path, returns the extension. </description> </method> <method name="get_file" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> If the string is a valid file path, returns the filename. </description> </method> <method name="hash" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Hashes the string and returns a 32-bit integer. </description> </method> <method name="hex_to_int" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Converts a string containing a hexadecimal number into an integer. Hexadecimal strings can either be prefixed with [code]0x[/code] or not, and they can also start with a [code]-[/code] before the optional prefix. [codeblocks] @@ -257,120 +213,98 @@ </description> </method> <method name="humanize_size" qualifiers="static"> - <return type="String"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="size" type="int" /> <description> </description> </method> <method name="insert" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="position" type="int"> - </argument> - <argument index="1" name="what" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="position" type="int" /> + <argument index="1" name="what" type="String" /> <description> Returns a copy of the string with the substring [code]what[/code] inserted at the given position. </description> </method> <method name="is_absolute_path" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> If the string is a path to a file or directory, returns [code]true[/code] if the path is absolute. </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the length of the string equals [code]0[/code]. </description> </method> <method name="is_rel_path" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> If the string is a path to a file or directory, returns [code]true[/code] if the path is relative. </description> </method> <method name="is_subsequence_of" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="text" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="text" type="String" /> <description> Returns [code]true[/code] if this string is a subsequence of the given string. </description> </method> <method name="is_subsequence_ofi" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="text" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="text" type="String" /> <description> Returns [code]true[/code] if this string is a subsequence of the given string, without considering case. </description> </method> <method name="is_valid_filename" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this string is free from characters that aren't allowed in file names, those being: [code]: / \ ? * " | % < >[/code] </description> </method> <method name="is_valid_float" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this string contains a valid float. </description> </method> <method name="is_valid_hex_number" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="with_prefix" type="bool" default="false"> - </argument> + <return type="bool" /> + <argument index="0" name="with_prefix" type="bool" default="false" /> <description> Returns [code]true[/code] if this string contains a valid hexadecimal number. If [code]with_prefix[/code] is [code]true[/code], then a validity of the hexadecimal number is determined by [code]0x[/code] prefix, for instance: [code]0xDEADC0DE[/code]. </description> </method> <method name="is_valid_html_color" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this string contains a valid color in hexadecimal HTML notation. Other HTML notations such as named colors or [code]hsl()[/code] colors aren't considered valid by this method and will return [code]false[/code]. </description> </method> <method name="is_valid_identifier" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this string is a valid identifier. A valid identifier may contain only letters, digits and underscores ([code]_[/code]) and the first character may not be a digit. </description> </method> <method name="is_valid_int" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this string contains a valid integer. </description> </method> <method name="is_valid_ip_address" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this string contains only a well-formatted IPv4 or IPv6 address. This method considers [url=https://en.wikipedia.org/wiki/Reserved_IP_addresses]reserved IP addresses[/url] such as [code]0.0.0.0[/code] as valid. </description> </method> <method name="join" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="parts" type="PackedStringArray"> - </argument> + <return type="String" /> + <argument index="0" name="parts" type="PackedStringArray" /> <description> Return a [String] which is the concatenation of the [code]parts[/code]. The separator between elements is the string providing this method. Example: @@ -385,17 +319,14 @@ </description> </method> <method name="json_escape" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a copy of the string with special characters escaped using the JSON standard. </description> </method> <method name="left" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="position" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="position" type="int" /> <description> Returns a number of characters from the left of the string. If negative [code]position[/code] is used, the characters are counted downwards from [String]'s length. Examples: @@ -406,70 +337,56 @@ </description> </method> <method name="length" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the string's amount of characters. </description> </method> <method name="lpad" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="min_length" type="int"> - </argument> - <argument index="1" name="character" type="String" default="" ""> - </argument> + <return type="String" /> + <argument index="0" name="min_length" type="int" /> + <argument index="1" name="character" type="String" default="" "" /> <description> Formats a string to be at least [code]min_length[/code] long by adding [code]character[/code]s to the left of the string. </description> </method> <method name="lstrip" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="chars" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="chars" type="String" /> <description> Returns a copy of the string with characters removed from the left. The [code]chars[/code] argument is a string specifying the set of characters to be removed. [b]Note:[/b] The [code]chars[/code] is not a prefix. See [method trim_prefix] method that will remove a single prefix string rather than a set of characters. </description> </method> <method name="match" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="expr" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="expr" type="String" /> <description> Does a simple case-sensitive expression match, where [code]"*"[/code] matches zero or more arbitrary characters and [code]"?"[/code] matches any single character except a period ([code]"."[/code]). </description> </method> <method name="matchn" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="expr" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="expr" type="String" /> <description> Does a simple case-insensitive expression match, where [code]"*"[/code] matches zero or more arbitrary characters and [code]"?"[/code] matches any single character except a period ([code]"."[/code]). </description> </method> <method name="md5_buffer" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Returns the MD5 hash of the string as an array of bytes. </description> </method> <method name="md5_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the MD5 hash of the string as a string. </description> </method> <method name="naturalnocasecmp_to" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="to" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="to" type="String" /> <description> Performs a case-insensitive [i]natural order[/i] comparison to another string. Returns [code]-1[/code] if less than, [code]1[/code] if greater than, or [code]0[/code] if equal. "less than" or "greater than" are determined by the [url=https://en.wikipedia.org/wiki/List_of_Unicode_characters]Unicode code points[/code] of each string, which roughly matches the alphabetical order. Internally, lowercase characters will be converted to uppercase during the comparison. When used for sorting, natural order comparison will order suites of numbers as expected by most people. If you sort the numbers from 1 to 10 using natural order, you will get [code][1, 2, 3, ...][/code] instead of [code][1, 10, 2, 3, ...][/code]. @@ -479,10 +396,8 @@ </description> </method> <method name="nocasecmp_to" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="to" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="to" type="String" /> <description> Performs a case-insensitive comparison to another string. Returns [code]-1[/code] if less than, [code]1[/code] if greater than, or [code]0[/code] if equal. "less than" or "greater than" are determined by the [url=https://en.wikipedia.org/wiki/List_of_Unicode_characters]Unicode code points[/code] of each string, which roughly matches the alphabetical order. Internally, lowercase characters will be converted to uppercase during the comparison. [b]Behavior with different string lengths:[/b] Returns [code]1[/code] if the "base" string is longer than the [code]to[/code] string or [code]-1[/code] if the "base" string is shorter than the [code]to[/code] string. Keep in mind this length is determined by the number of Unicode codepoints, [i]not[/i] the actual visible characters. @@ -491,188 +406,141 @@ </description> </method> <method name="num" qualifiers="static"> - <return type="String"> - </return> - <argument index="0" name="number" type="float"> - </argument> - <argument index="1" name="decimals" type="int" default="-1"> - </argument> + <return type="String" /> + <argument index="0" name="number" type="float" /> + <argument index="1" name="decimals" type="int" default="-1" /> <description> </description> </method> <method name="num_scientific" qualifiers="static"> - <return type="String"> - </return> - <argument index="0" name="number" type="float"> - </argument> + <return type="String" /> + <argument index="0" name="number" type="float" /> <description> </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="String" /> <description> </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="StringName" /> <description> </description> </method> <method name="operator %" qualifiers="operator"> - <return type="String"> - </return> - <argument index="0" name="right" type="Variant"> - </argument> + <return type="String" /> + <argument index="0" name="right" type="Variant" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="String"> - </return> - <argument index="0" name="right" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="right" type="String" /> <description> </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="String" /> <description> </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="String" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="String" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="StringName" /> <description> </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="String" /> <description> </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="String" /> <description> </description> </method> <method name="pad_decimals" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="digits" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="digits" type="int" /> <description> Formats a number to have an exact number of [code]digits[/code] after the decimal point. </description> </method> <method name="pad_zeros" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="digits" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="digits" type="int" /> <description> Formats a number to have an exact number of [code]digits[/code] before the decimal point. </description> </method> <method name="plus_file" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="file" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="file" type="String" /> <description> If the string is a path, this concatenates [code]file[/code] at the end of the string as a subpath. E.g. [code]"this/is".plus_file("path") == "this/is/path"[/code]. </description> </method> <method name="repeat" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="count" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="count" type="int" /> <description> Returns original string repeated a number of times. The number of repetitions is given by the argument. </description> </method> <method name="replace" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="what" type="String"> - </argument> - <argument index="1" name="forwhat" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="what" type="String" /> + <argument index="1" name="forwhat" type="String" /> <description> Replaces occurrences of a case-sensitive substring with the given one inside the string. </description> </method> <method name="replacen" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="what" type="String"> - </argument> - <argument index="1" name="forwhat" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="what" type="String" /> + <argument index="1" name="forwhat" type="String" /> <description> Replaces occurrences of a case-insensitive substring with the given one inside the string. </description> </method> <method name="rfind" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="what" type="String"> - </argument> - <argument index="1" name="from" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="what" type="String" /> + <argument index="1" name="from" type="int" default="-1" /> <description> Returns the index of the [b]last[/b] case-sensitive occurrence of the specified string in this instance, or [code]-1[/code]. Optionally, the starting search index can be specified, continuing to the beginning of the string. </description> </method> <method name="rfindn" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="what" type="String"> - </argument> - <argument index="1" name="from" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="what" type="String" /> + <argument index="1" name="from" type="int" default="-1" /> <description> Returns the index of the [b]last[/b] case-insensitive occurrence of the specified string in this instance, or [code]-1[/code]. Optionally, the starting search index can be specified, continuing to the beginning of the string. </description> </method> <method name="right" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="position" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="position" type="int" /> <description> Returns a number of characters from the right of the string. If negative [code]position[/code] is used, the characters are counted downwards from [String]'s length. Examples: @@ -683,25 +551,18 @@ </description> </method> <method name="rpad" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="min_length" type="int"> - </argument> - <argument index="1" name="character" type="String" default="" ""> - </argument> + <return type="String" /> + <argument index="0" name="min_length" type="int" /> + <argument index="1" name="character" type="String" default="" "" /> <description> Formats a string to be at least [code]min_length[/code] long by adding [code]character[/code]s to the right of the string. </description> </method> <method name="rsplit" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="delimiter" type="String"> - </argument> - <argument index="1" name="allow_empty" type="bool" default="true"> - </argument> - <argument index="2" name="maxsplit" type="int" default="0"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="delimiter" type="String" /> + <argument index="1" name="allow_empty" type="bool" default="true" /> + <argument index="2" name="maxsplit" type="int" default="0" /> <description> Splits the string by a [code]delimiter[/code] string and returns an array of the substrings, starting from right. The splits in the returned array are sorted in the same order as the original string, from left to right. @@ -722,61 +583,49 @@ </description> </method> <method name="rstrip" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="chars" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="chars" type="String" /> <description> Returns a copy of the string with characters removed from the right. The [code]chars[/code] argument is a string specifying the set of characters to be removed. [b]Note:[/b] The [code]chars[/code] is not a suffix. See [method trim_suffix] method that will remove a single suffix string rather than a set of characters. </description> </method> <method name="sha1_buffer" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Returns the SHA-1 hash of the string as an array of bytes. </description> </method> <method name="sha1_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the SHA-1 hash of the string as a string. </description> </method> <method name="sha256_buffer" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Returns the SHA-256 hash of the string as an array of bytes. </description> </method> <method name="sha256_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the SHA-256 hash of the string as a string. </description> </method> <method name="similarity" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="text" type="String"> - </argument> + <return type="float" /> + <argument index="0" name="text" type="String" /> <description> Returns the similarity index of the text compared to this string. 1 means totally similar and 0 means totally dissimilar. </description> </method> <method name="split" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="delimiter" type="String"> - </argument> - <argument index="1" name="allow_empty" type="bool" default="true"> - </argument> - <argument index="2" name="maxsplit" type="int" default="0"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="delimiter" type="String" /> + <argument index="1" name="allow_empty" type="bool" default="true" /> + <argument index="2" name="maxsplit" type="int" default="0" /> <description> Splits the string by a [code]delimiter[/code] string and returns an array of the substrings. The [code]delimiter[/code] can be of any length. If [code]maxsplit[/code] is specified, it defines the number of splits to do from the left up to [code]maxsplit[/code]. The default value of [code]0[/code] means that all items are split. @@ -800,132 +649,107 @@ </description> </method> <method name="split_floats" qualifiers="const"> - <return type="PackedFloat32Array"> - </return> - <argument index="0" name="delimiter" type="String"> - </argument> - <argument index="1" name="allow_empty" type="bool" default="true"> - </argument> + <return type="PackedFloat32Array" /> + <argument index="0" name="delimiter" type="String" /> + <argument index="1" name="allow_empty" type="bool" default="true" /> <description> Splits the string in floats by using a delimiter string and returns an array of the substrings. For example, [code]"1,2.5,3"[/code] will return [code][1,2.5,3][/code] if split by [code]","[/code]. </description> </method> <method name="strip_edges" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="left" type="bool" default="true"> - </argument> - <argument index="1" name="right" type="bool" default="true"> - </argument> + <return type="String" /> + <argument index="0" name="left" type="bool" default="true" /> + <argument index="1" name="right" type="bool" default="true" /> <description> Returns a copy of the string stripped of any non-printable character (including tabulations, spaces and line breaks) at the beginning and the end. The optional arguments are used to toggle stripping on the left and right edges respectively. </description> </method> <method name="strip_escapes" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a copy of the string stripped of any escape character. These include all non-printable control characters of the first page of the ASCII table (< 32), such as tabulation ([code]\t[/code] in C) and newline ([code]\n[/code] and [code]\r[/code]) characters, but not spaces. </description> </method> <method name="substr" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="len" type="int" default="-1"> - </argument> + <return type="String" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="len" type="int" default="-1" /> <description> Returns part of the string from the position [code]from[/code] with length [code]len[/code]. Argument [code]len[/code] is optional and using [code]-1[/code] will return remaining characters from given position. </description> </method> <method name="to_ascii_buffer" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Converts the String (which is a character array) to ASCII/Latin-1 encoded [PackedByteArray] (which is an array of bytes). The conversion is faster compared to [method to_utf8_buffer], as this method assumes that all the characters in the String are ASCII/Latin-1 characters, unsupported characters are replaced with spaces. </description> </method> <method name="to_float" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Converts a string containing a decimal number into a [code]float[/code]. </description> </method> <method name="to_int" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Converts a string containing an integer number into an [code]int[/code]. </description> </method> <method name="to_lower" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the string converted to lowercase. </description> </method> <method name="to_upper" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the string converted to uppercase. </description> </method> <method name="to_utf16_buffer" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Converts the String (which is an array of characters) to UTF-16 encoded [PackedByteArray] (which is an array of bytes). </description> </method> <method name="to_utf32_buffer" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Converts the String (which is an array of characters) to UTF-32 encoded [PackedByteArray] (which is an array of bytes). </description> </method> <method name="to_utf8_buffer" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Converts the String (which is an array of characters) to UTF-8 encode [PackedByteArray] (which is an array of bytes). The conversion is a bit slower than [method to_ascii_buffer], but supports all UTF-8 characters. Therefore, you should prefer this function over [method to_ascii_buffer]. </description> </method> <method name="trim_prefix" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="prefix" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="prefix" type="String" /> <description> Removes a given string from the start if it starts with it or leaves the string unchanged. </description> </method> <method name="trim_suffix" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="suffix" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="suffix" type="String" /> <description> Removes a given string from the end if it ends with it or leaves the string unchanged. </description> </method> <method name="unicode_at" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="at" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="at" type="int" /> <description> Returns the character code at position [code]at[/code]. </description> </method> <method name="uri_decode" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Decodes a string in URL encoded format. This is meant to decode parameters in a URL when receiving an HTTP request. [codeblocks] @@ -939,8 +763,7 @@ </description> </method> <method name="uri_encode" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Encodes a string to URL friendly format. This is meant to encode parameters in a URL when sending an HTTP request. [codeblocks] @@ -954,24 +777,20 @@ </description> </method> <method name="validate_node_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Removes any characters from the string that are prohibited in [Node] names ([code].[/code] [code]:[/code] [code]@[/code] [code]/[/code] [code]"[/code]). </description> </method> <method name="xml_escape" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="escape_quotes" type="bool" default="false"> - </argument> + <return type="String" /> + <argument index="0" name="escape_quotes" type="bool" default="false" /> <description> Returns a copy of the string with special characters escaped using the XML standard. If [code]escape_quotes[/code] is [code]true[/code], the single quote ([code]'[/code]) and double quote ([code]"[/code]) characters are also escaped. </description> </method> <method name="xml_unescape" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a copy of the string with escaped characters replaced by their meanings according to the XML standard. </description> diff --git a/doc/classes/StringName.xml b/doc/classes/StringName.xml index be32f6a234..4c2619e782 100644 --- a/doc/classes/StringName.xml +++ b/doc/classes/StringName.xml @@ -10,59 +10,46 @@ </tutorials> <methods> <method name="StringName" qualifiers="constructor"> - <return type="StringName"> - </return> + <return type="StringName" /> <description> Constructs an empty [StringName]. </description> </method> <method name="StringName" qualifiers="constructor"> - <return type="StringName"> - </return> - <argument index="0" name="from" type="StringName"> - </argument> + <return type="StringName" /> + <argument index="0" name="from" type="StringName" /> <description> Constructs a [StringName] as a copy of the given [StringName]. </description> </method> <method name="StringName" qualifiers="constructor"> - <return type="StringName"> - </return> - <argument index="0" name="from" type="String"> - </argument> + <return type="StringName" /> + <argument index="0" name="from" type="String" /> <description> Creates a new [StringName] from the given [String]. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="String" /> <description> </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="StringName" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="String" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="StringName" /> <description> </description> </method> diff --git a/doc/classes/StyleBox.xml b/doc/classes/StyleBox.xml index a01dfbd4b8..024524251d 100644 --- a/doc/classes/StyleBox.xml +++ b/doc/classes/StyleBox.xml @@ -11,82 +11,65 @@ </tutorials> <methods> <method name="draw" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_item" type="RID" /> + <argument index="1" name="rect" type="Rect2" /> <description> Draws this stylebox using a [CanvasItem] with given [RID]. You can get a [RID] value using [method Object.get_instance_id] on a [CanvasItem]-derived node. </description> </method> <method name="get_center_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the size of this [StyleBox] without the margins. </description> </method> <method name="get_current_item_drawn" qualifiers="const"> - <return type="CanvasItem"> - </return> + <return type="CanvasItem" /> <description> Returns the [CanvasItem] that handles its [constant CanvasItem.NOTIFICATION_DRAW] or [method CanvasItem._draw] callback at this moment. </description> </method> <method name="get_default_margin" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> + <return type="float" /> + <argument index="0" name="margin" type="int" enum="Side" /> <description> Returns the default margin of the specified [enum Side]. </description> </method> <method name="get_margin" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> + <return type="float" /> + <argument index="0" name="margin" type="int" enum="Side" /> <description> Returns the content margin offset for the specified [enum Side]. Positive values reduce size inwards, unlike [Control]'s margin values. </description> </method> <method name="get_minimum_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the minimum size that this stylebox can be shrunk to. </description> </method> <method name="get_offset" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the "offset" of a stylebox. This helper function returns a value equivalent to [code]Vector2(style.get_margin(MARGIN_LEFT), style.get_margin(MARGIN_TOP))[/code]. </description> </method> <method name="set_default_margin"> - <return type="void"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> - <argument index="1" name="offset" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="margin" type="int" enum="Side" /> + <argument index="1" name="offset" type="float" /> <description> Sets the default value of the specified [enum Side] to [code]offset[/code] pixels. </description> </method> <method name="test_mask" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> + <return type="bool" /> + <argument index="0" name="point" type="Vector2" /> + <argument index="1" name="rect" type="Rect2" /> <description> Test a position in a rectangle, return whether it passes the mask test. </description> diff --git a/doc/classes/StyleBoxFlat.xml b/doc/classes/StyleBoxFlat.xml index 9e02fb57c3..540b007341 100644 --- a/doc/classes/StyleBoxFlat.xml +++ b/doc/classes/StyleBoxFlat.xml @@ -25,125 +25,93 @@ </tutorials> <methods> <method name="get_border_width" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> + <return type="int" /> + <argument index="0" name="margin" type="int" enum="Side" /> <description> Returns the specified [enum Side]'s border width. </description> </method> <method name="get_border_width_min" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the smallest border width out of all four borders. </description> </method> <method name="get_corner_radius" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="corner" type="int" enum="Corner"> - </argument> + <return type="int" /> + <argument index="0" name="corner" type="int" enum="Corner" /> <description> Returns the given [code]corner[/code]'s radius. See [enum Corner] for possible values. </description> </method> <method name="get_expand_margin" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> + <return type="float" /> + <argument index="0" name="margin" type="int" enum="Side" /> <description> Returns the size of the specified [enum Side]'s expand margin. </description> </method> <method name="set_border_width"> - <return type="void"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> - <argument index="1" name="width" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="margin" type="int" enum="Side" /> + <argument index="1" name="width" type="int" /> <description> Sets the specified [enum Side]'s border width to [code]width[/code] pixels. </description> </method> <method name="set_border_width_all"> - <return type="void"> - </return> - <argument index="0" name="width" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="width" type="int" /> <description> Sets the border width to [code]width[/code] pixels for all sides. </description> </method> <method name="set_corner_radius"> - <return type="void"> - </return> - <argument index="0" name="corner" type="int" enum="Corner"> - </argument> - <argument index="1" name="radius" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="corner" type="int" enum="Corner" /> + <argument index="1" name="radius" type="int" /> <description> Sets the corner radius to [code]radius[/code] pixels for the given [code]corner[/code]. See [enum Corner] for possible values. </description> </method> <method name="set_corner_radius_all"> - <return type="void"> - </return> - <argument index="0" name="radius" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="radius" type="int" /> <description> Sets the corner radius to [code]radius[/code] pixels for all corners. </description> </method> <method name="set_corner_radius_individual"> - <return type="void"> - </return> - <argument index="0" name="radius_top_left" type="int"> - </argument> - <argument index="1" name="radius_top_right" type="int"> - </argument> - <argument index="2" name="radius_bottom_right" type="int"> - </argument> - <argument index="3" name="radius_bottom_left" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="radius_top_left" type="int" /> + <argument index="1" name="radius_top_right" type="int" /> + <argument index="2" name="radius_bottom_right" type="int" /> + <argument index="3" name="radius_bottom_left" type="int" /> <description> Sets the corner radius for each corner to [code]radius_top_left[/code], [code]radius_top_right[/code], [code]radius_bottom_right[/code], and [code]radius_bottom_left[/code] pixels. </description> </method> <method name="set_expand_margin"> - <return type="void"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> - <argument index="1" name="size" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="margin" type="int" enum="Side" /> + <argument index="1" name="size" type="float" /> <description> Sets the expand margin to [code]size[/code] pixels for the specified [enum Side]. </description> </method> <method name="set_expand_margin_all"> - <return type="void"> - </return> - <argument index="0" name="size" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="float" /> <description> Sets the expand margin to [code]size[/code] pixels for all margins. </description> </method> <method name="set_expand_margin_individual"> - <return type="void"> - </return> - <argument index="0" name="size_left" type="float"> - </argument> - <argument index="1" name="size_top" type="float"> - </argument> - <argument index="2" name="size_right" type="float"> - </argument> - <argument index="3" name="size_bottom" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="size_left" type="float" /> + <argument index="1" name="size_top" type="float" /> + <argument index="2" name="size_right" type="float" /> + <argument index="3" name="size_bottom" type="float" /> <description> Sets the expand margin for each margin to [code]size_left[/code], [code]size_top[/code], [code]size_right[/code], and [code]size_bottom[/code] pixels. </description> diff --git a/doc/classes/StyleBoxTexture.xml b/doc/classes/StyleBoxTexture.xml index be14048126..92939dfbf5 100644 --- a/doc/classes/StyleBoxTexture.xml +++ b/doc/classes/StyleBoxTexture.xml @@ -10,65 +10,48 @@ </tutorials> <methods> <method name="get_expand_margin_size" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> + <return type="float" /> + <argument index="0" name="margin" type="int" enum="Side" /> <description> Returns the expand margin size of the specified [enum Side]. </description> </method> <method name="get_margin_size" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> + <return type="float" /> + <argument index="0" name="margin" type="int" enum="Side" /> <description> Returns the margin size of the specified [enum Side]. </description> </method> <method name="set_expand_margin_all"> - <return type="void"> - </return> - <argument index="0" name="size" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="float" /> <description> Sets the expand margin to [code]size[/code] pixels for all margins. </description> </method> <method name="set_expand_margin_individual"> - <return type="void"> - </return> - <argument index="0" name="size_left" type="float"> - </argument> - <argument index="1" name="size_top" type="float"> - </argument> - <argument index="2" name="size_right" type="float"> - </argument> - <argument index="3" name="size_bottom" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="size_left" type="float" /> + <argument index="1" name="size_top" type="float" /> + <argument index="2" name="size_right" type="float" /> + <argument index="3" name="size_bottom" type="float" /> <description> Sets the expand margin for each margin to [code]size_left[/code], [code]size_top[/code], [code]size_right[/code], and [code]size_bottom[/code] pixels. </description> </method> <method name="set_expand_margin_size"> - <return type="void"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> - <argument index="1" name="size" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="margin" type="int" enum="Side" /> + <argument index="1" name="size" type="float" /> <description> Sets the expand margin to [code]size[/code] pixels for the specified [enum Side]. </description> </method> <method name="set_margin_size"> - <return type="void"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> - <argument index="1" name="size" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="margin" type="int" enum="Side" /> + <argument index="1" name="size" type="float" /> <description> Sets the margin to [code]size[/code] pixels for the specified [enum Side]. </description> diff --git a/doc/classes/SurfaceTool.xml b/doc/classes/SurfaceTool.xml index a8b836ff0c..e5b03eb4d4 100644 --- a/doc/classes/SurfaceTool.xml +++ b/doc/classes/SurfaceTool.xml @@ -32,294 +32,225 @@ </tutorials> <methods> <method name="add_index"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Adds an index to index array if you are using indexed vertices. Does not need to be called before adding vertices. </description> </method> <method name="add_triangle_fan"> - <return type="void"> - </return> - <argument index="0" name="vertices" type="PackedVector3Array"> - </argument> - <argument index="1" name="uvs" type="PackedVector2Array" default="PackedVector2Array()"> - </argument> - <argument index="2" name="colors" type="PackedColorArray" default="PackedColorArray()"> - </argument> - <argument index="3" name="uv2s" type="PackedVector2Array" default="PackedVector2Array()"> - </argument> - <argument index="4" name="normals" type="PackedVector3Array" default="PackedVector3Array()"> - </argument> - <argument index="5" name="tangents" type="Array" default="[]"> - </argument> + <return type="void" /> + <argument index="0" name="vertices" type="PackedVector3Array" /> + <argument index="1" name="uvs" type="PackedVector2Array" default="PackedVector2Array()" /> + <argument index="2" name="colors" type="PackedColorArray" default="PackedColorArray()" /> + <argument index="3" name="uv2s" type="PackedVector2Array" default="PackedVector2Array()" /> + <argument index="4" name="normals" type="PackedVector3Array" default="PackedVector3Array()" /> + <argument index="5" name="tangents" type="Array" default="[]" /> <description> Inserts a triangle fan made of array data into [Mesh] being constructed. Requires the primitive type be set to [constant Mesh.PRIMITIVE_TRIANGLES]. </description> </method> <method name="add_vertex"> - <return type="void"> - </return> - <argument index="0" name="vertex" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="vertex" type="Vector3" /> <description> Specifies the position of current vertex. Should be called after specifying other vertex properties (e.g. Color, UV). </description> </method> <method name="append_from"> - <return type="void"> - </return> - <argument index="0" name="existing" type="Mesh"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> - <argument index="2" name="transform" type="Transform3D"> - </argument> + <return type="void" /> + <argument index="0" name="existing" type="Mesh" /> + <argument index="1" name="surface" type="int" /> + <argument index="2" name="transform" type="Transform3D" /> <description> Append vertices from a given [Mesh] surface onto the current vertex array with specified [Transform3D]. </description> </method> <method name="begin"> - <return type="void"> - </return> - <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType"> - </argument> + <return type="void" /> + <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType" /> <description> Called before adding any vertices. Takes the primitive type as an argument (e.g. [constant Mesh.PRIMITIVE_TRIANGLES]). </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clear all information passed into the surface tool so far. </description> </method> <method name="commit"> - <return type="ArrayMesh"> - </return> - <argument index="0" name="existing" type="ArrayMesh" default="null"> - </argument> - <argument index="1" name="flags" type="int" default="0"> - </argument> + <return type="ArrayMesh" /> + <argument index="0" name="existing" type="ArrayMesh" default="null" /> + <argument index="1" name="flags" type="int" default="0" /> <description> Returns a constructed [ArrayMesh] from current information passed in. If an existing [ArrayMesh] is passed in as an argument, will add an extra surface to the existing [ArrayMesh]. [b]FIXME:[/b] Document possible values for [code]flags[/code], it changed in 4.0. Likely some combinations of [enum Mesh.ArrayFormat]. </description> </method> <method name="commit_to_arrays"> - <return type="Array"> - </return> + <return type="Array" /> <description> Commits the data to the same format used by [method ArrayMesh.add_surface_from_arrays]. This way you can further process the mesh data using the [ArrayMesh] API. </description> </method> <method name="create_from"> - <return type="void"> - </return> - <argument index="0" name="existing" type="Mesh"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="existing" type="Mesh" /> + <argument index="1" name="surface" type="int" /> <description> Creates a vertex array from an existing [Mesh]. </description> </method> <method name="create_from_blend_shape"> - <return type="void"> - </return> - <argument index="0" name="existing" type="Mesh"> - </argument> - <argument index="1" name="surface" type="int"> - </argument> - <argument index="2" name="blend_shape" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="existing" type="Mesh" /> + <argument index="1" name="surface" type="int" /> + <argument index="2" name="blend_shape" type="String" /> <description> Creates a vertex array from the specified blend shape of an existing [Mesh]. This can be used to extract a specific pose from a blend shape. </description> </method> <method name="deindex"> - <return type="void"> - </return> + <return type="void" /> <description> Removes the index array by expanding the vertex array. </description> </method> <method name="generate_lod"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="nd_threshold" type="float"> - </argument> - <argument index="1" name="target_index_count" type="int" default="3"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="nd_threshold" type="float" /> + <argument index="1" name="target_index_count" type="int" default="3" /> <description> </description> </method> <method name="generate_normals"> - <return type="void"> - </return> - <argument index="0" name="flip" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="flip" type="bool" default="false" /> <description> Generates normals from vertices so you do not have to do it manually. If [code]flip[/code] is [code]true[/code], the resulting normals will be inverted. [method generate_normals] should be called [i]after[/i] generating geometry and [i]before[/i] committing the mesh using [method commit] or [method commit_to_arrays]. [b]Note:[/b] [method generate_normals] only works if the primitive type to be set to [constant Mesh.PRIMITIVE_TRIANGLES]. </description> </method> <method name="generate_tangents"> - <return type="void"> - </return> + <return type="void" /> <description> Generates a tangent vector for each vertex. Requires that each vertex have UVs and normals set already. </description> </method> <method name="get_custom_format" qualifiers="const"> - <return type="int" enum="SurfaceTool.CustomFormat"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" enum="SurfaceTool.CustomFormat" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="get_max_axis_length" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> </description> </method> <method name="get_primitive" qualifiers="const"> - <return type="int" enum="Mesh.PrimitiveType"> - </return> + <return type="int" enum="Mesh.PrimitiveType" /> <description> </description> </method> <method name="get_skin_weight_count" qualifiers="const"> - <return type="int" enum="SurfaceTool.SkinWeightCount"> - </return> + <return type="int" enum="SurfaceTool.SkinWeightCount" /> <description> </description> </method> <method name="index"> - <return type="void"> - </return> + <return type="void" /> <description> Shrinks the vertex array by creating an index array. This can improve performance by avoiding vertex reuse. </description> </method> <method name="optimize_indices_for_cache"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="set_bones"> - <return type="void"> - </return> - <argument index="0" name="bones" type="PackedInt32Array"> - </argument> + <return type="void" /> + <argument index="0" name="bones" type="PackedInt32Array" /> <description> Specifies an array of bones to use for the [i]next[/i] vertex. [code]bones[/code] must contain 4 integers. </description> </method> <method name="set_color"> - <return type="void"> - </return> - <argument index="0" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="color" type="Color" /> <description> Specifies a [Color] to use for the [i]next[/i] vertex. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all. [b]Note:[/b] The material must have [member BaseMaterial3D.vertex_color_use_as_albedo] enabled for the vertex color to be visible. </description> </method> <method name="set_custom"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="custom" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="custom" type="Color" /> <description> </description> </method> <method name="set_custom_format"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="format" type="int" enum="SurfaceTool.CustomFormat"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="format" type="int" enum="SurfaceTool.CustomFormat" /> <description> </description> </method> <method name="set_material"> - <return type="void"> - </return> - <argument index="0" name="material" type="Material"> - </argument> + <return type="void" /> + <argument index="0" name="material" type="Material" /> <description> Sets [Material] to be used by the [Mesh] you are constructing. </description> </method> <method name="set_normal"> - <return type="void"> - </return> - <argument index="0" name="normal" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="normal" type="Vector3" /> <description> Specifies a normal to use for the [i]next[/i] vertex. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all. </description> </method> <method name="set_skin_weight_count"> - <return type="void"> - </return> - <argument index="0" name="count" type="int" enum="SurfaceTool.SkinWeightCount"> - </argument> + <return type="void" /> + <argument index="0" name="count" type="int" enum="SurfaceTool.SkinWeightCount" /> <description> </description> </method> <method name="set_smooth_group"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Specifies whether the current vertex (if using only vertex arrays) or current index (if also using index arrays) should use smooth normals for normal calculation. </description> </method> <method name="set_tangent"> - <return type="void"> - </return> - <argument index="0" name="tangent" type="Plane"> - </argument> + <return type="void" /> + <argument index="0" name="tangent" type="Plane" /> <description> Specifies a tangent to use for the [i]next[/i] vertex. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all. </description> </method> <method name="set_uv"> - <return type="void"> - </return> - <argument index="0" name="uv" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="uv" type="Vector2" /> <description> Specifies a set of UV coordinates to use for the [i]next[/i] vertex. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all. </description> </method> <method name="set_uv2"> - <return type="void"> - </return> - <argument index="0" name="uv2" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="uv2" type="Vector2" /> <description> Specifies an optional second set of UV coordinates to use for the [i]next[/i] vertex. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all. </description> </method> <method name="set_weights"> - <return type="void"> - </return> - <argument index="0" name="weights" type="PackedFloat32Array"> - </argument> + <return type="void" /> + <argument index="0" name="weights" type="PackedFloat32Array" /> <description> Specifies weight values to use for the [i]next[/i] vertex. [code]weights[/code] must contain 4 values. If every vertex needs to have this information set and you fail to submit it for the first vertex, this information may not be used at all. </description> diff --git a/doc/classes/SyntaxHighlighter.xml b/doc/classes/SyntaxHighlighter.xml index 642d75fa9b..ea0d1c27a3 100644 --- a/doc/classes/SyntaxHighlighter.xml +++ b/doc/classes/SyntaxHighlighter.xml @@ -12,42 +12,35 @@ </tutorials> <methods> <method name="_clear_highlighting_cache" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Virtual method which can be overridden to clear any local caches. </description> </method> <method name="_get_line_syntax_highlighting" qualifiers="virtual"> - <return type="Dictionary"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="line" type="int" /> <description> Virtual method which can be overridden to return syntax highlighting data. See [method get_line_syntax_highlighting] for more details. </description> </method> <method name="_update_cache" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> Virtual method which can be overridden to update any local caches. </description> </method> <method name="clear_highlighting_cache"> - <return type="void"> - </return> + <return type="void" /> <description> Clears all cached syntax highlighting data. Then calls overridable method [method _clear_highlighting_cache]. </description> </method> <method name="get_line_syntax_highlighting"> - <return type="Dictionary"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="line" type="int" /> <description> Returns syntax highlighting data for a single line. If the line is not cached, calls [method _get_line_syntax_highlighting] to calculate the data. The return [Dictionary] is column number to [Dictionary]. The column number notes the start of a region, the region will end if another region is found, or at the end of the line. The nested [Dictionary] contains the data for that region, currently only the key "color" is supported. @@ -66,15 +59,13 @@ </description> </method> <method name="get_text_edit"> - <return type="TextEdit"> - </return> + <return type="TextEdit" /> <description> Returns the associated [TextEdit] node. </description> </method> <method name="update_cache"> - <return type="void"> - </return> + <return type="void" /> <description> Clears then updates the [SyntaxHighlighter] caches. Override [method _update_cache] for a callback. [b]Note:[/b] This is called automatically when the associated [TextEdit] node, updates its own cache. diff --git a/doc/classes/TCPServer.xml b/doc/classes/TCPServer.xml index 7160055c6d..9692693eff 100644 --- a/doc/classes/TCPServer.xml +++ b/doc/classes/TCPServer.xml @@ -10,33 +10,27 @@ </tutorials> <methods> <method name="get_local_port" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the local port this server is listening to. </description> </method> <method name="is_connection_available" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if a connection is available for taking. </description> </method> <method name="is_listening" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the server is currently listening for connections. </description> </method> <method name="listen"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="bind_address" type="String" default=""*""> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="bind_address" type="String" default=""*"" /> <description> Listen on the [code]port[/code] binding to [code]bind_address[/code]. If [code]bind_address[/code] is set as [code]"*"[/code] (default), the server will listen on all available addresses (both IPv4 and IPv6). @@ -45,15 +39,13 @@ </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops listening. </description> </method> <method name="take_connection"> - <return type="StreamPeerTCP"> - </return> + <return type="StreamPeerTCP" /> <description> If a connection is available, returns a StreamPeerTCP with the connection. </description> diff --git a/doc/classes/TabContainer.xml b/doc/classes/TabContainer.xml index 3f24509ec7..2abe4dc90f 100644 --- a/doc/classes/TabContainer.xml +++ b/doc/classes/TabContainer.xml @@ -13,124 +13,98 @@ </tutorials> <methods> <method name="get_current_tab_control" qualifiers="const"> - <return type="Control"> - </return> + <return type="Control" /> <description> Returns the child [Control] node located at the active tab index. </description> </method> <method name="get_popup" qualifiers="const"> - <return type="Popup"> - </return> + <return type="Popup" /> <description> Returns the [Popup] node instance if one has been set already with [method set_popup]. </description> </method> <method name="get_previous_tab" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the previously active tab index. </description> </method> <method name="get_tab_control" qualifiers="const"> - <return type="Control"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="Control" /> + <argument index="0" name="tab_idx" type="int" /> <description> Returns the [Control] node from the tab at index [code]tab_idx[/code]. </description> </method> <method name="get_tab_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of tabs. </description> </method> <method name="get_tab_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="tab_idx" type="int" /> <description> Returns [code]true[/code] if the tab at index [code]tab_idx[/code] is disabled. </description> </method> <method name="get_tab_icon" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="tab_idx" type="int" /> <description> Returns the [Texture2D] for the tab at index [code]tab_idx[/code] or [code]null[/code] if the tab has no [Texture2D]. </description> </method> <method name="get_tab_title" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="tab_idx" type="int" /> <description> Returns the title of the tab at index [code]tab_idx[/code]. Tab titles default to the name of the indexed child node, but this can be overridden with [method set_tab_title]. </description> </method> <method name="get_tabs_rearrange_group" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the [TabContainer] rearrange group id. </description> </method> <method name="set_popup"> - <return type="void"> - </return> - <argument index="0" name="popup" type="Node"> - </argument> + <return type="void" /> + <argument index="0" name="popup" type="Node" /> <description> If set on a [Popup] node instance, a popup menu icon appears in the top-right corner of the [TabContainer]. Clicking it will expand the [Popup] node. </description> </method> <method name="set_tab_disabled"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> + <argument index="1" name="disabled" type="bool" /> <description> If [code]disabled[/code] is [code]false[/code], hides the tab at index [code]tab_idx[/code]. [b]Note:[/b] Its title text will remain, unless also removed with [method set_tab_title]. </description> </method> <method name="set_tab_icon"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="icon" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> + <argument index="1" name="icon" type="Texture2D" /> <description> Sets an icon for the tab at index [code]tab_idx[/code]. </description> </method> <method name="set_tab_title"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="title" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> + <argument index="1" name="title" type="String" /> <description> Sets a title for the tab at index [code]tab_idx[/code]. Tab titles default to the name of the indexed child node, but this can be overridden with [method set_tab_title]. </description> </method> <method name="set_tabs_rearrange_group"> - <return type="void"> - </return> - <argument index="0" name="group_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="group_id" type="int" /> <description> Defines rearrange group id, choose for each [TabContainer] the same value to enable tab drag between [TabContainer]. Enable drag with [code]set_drag_to_rearrange_enabled(true)[/code]. </description> @@ -163,15 +137,13 @@ </description> </signal> <signal name="tab_changed"> - <argument index="0" name="tab" type="int"> - </argument> + <argument index="0" name="tab" type="int" /> <description> Emitted when switching to another tab. </description> </signal> <signal name="tab_selected"> - <argument index="0" name="tab" type="int"> - </argument> + <argument index="0" name="tab" type="int" /> <description> Emitted when a tab is selected, even if it is the current tab. </description> diff --git a/doc/classes/Tabs.xml b/doc/classes/Tabs.xml index aff104c922..537bb9c403 100644 --- a/doc/classes/Tabs.xml +++ b/doc/classes/Tabs.xml @@ -10,244 +10,188 @@ </tutorials> <methods> <method name="add_tab"> - <return type="void"> - </return> - <argument index="0" name="title" type="String" default=""""> - </argument> - <argument index="1" name="icon" type="Texture2D" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="title" type="String" default="""" /> + <argument index="1" name="icon" type="Texture2D" default="null" /> <description> Adds a new tab. </description> </method> <method name="clear_tab_opentype_features"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> <description> Removes all OpenType features from the tab title. </description> </method> <method name="ensure_tab_visible"> - <return type="void"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="idx" type="int" /> <description> Moves the scroll view to make the tab visible. </description> </method> <method name="get_offset_buttons_visible" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the offset buttons (the ones that appear when there's not enough space for all tabs) are visible. </description> </method> <method name="get_previous_tab" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the previously active tab index. </description> </method> <method name="get_select_with_rmb" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if select with right mouse button is enabled. </description> </method> <method name="get_tab_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of tabs. </description> </method> <method name="get_tab_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="tab_idx" type="int" /> <description> Returns [code]true[/code] if the tab at index [code]tab_idx[/code] is disabled. </description> </method> <method name="get_tab_icon" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="tab_idx" type="int" /> <description> Returns the [Texture2D] for the tab at index [code]tab_idx[/code] or [code]null[/code] if the tab has no [Texture2D]. </description> </method> <method name="get_tab_language" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="tab_idx" type="int" /> <description> Returns tab title language code. </description> </method> <method name="get_tab_offset" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of hidden tabs offsetted to the left. </description> </method> <method name="get_tab_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="tab_idx" type="int" /> + <argument index="1" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code] of the tab title. </description> </method> <method name="get_tab_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="Rect2" /> + <argument index="0" name="tab_idx" type="int" /> <description> Returns tab [Rect2] with local position and size. </description> </method> <method name="get_tab_text_direction" qualifiers="const"> - <return type="int" enum="Control.TextDirection"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="int" enum="Control.TextDirection" /> + <argument index="0" name="tab_idx" type="int" /> <description> Returns tab title text base writing direction. </description> </method> <method name="get_tab_title" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="tab_idx" type="int" /> <description> Returns the title of the tab at index [code]tab_idx[/code]. Tab titles default to the name of the indexed child node, but this can be overridden with [method set_tab_title]. </description> </method> <method name="get_tabs_rearrange_group" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the [Tabs]' rearrange group ID. </description> </method> <method name="move_tab"> - <return type="void"> - </return> - <argument index="0" name="from" type="int"> - </argument> - <argument index="1" name="to" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from" type="int" /> + <argument index="1" name="to" type="int" /> <description> Moves a tab from [code]from[/code] to [code]to[/code]. </description> </method> <method name="remove_tab"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> <description> Removes the tab at index [code]tab_idx[/code]. </description> </method> <method name="set_select_with_rmb"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enabled" type="bool" /> <description> If [code]true[/code], enables selecting a tab with the right mouse button. </description> </method> <method name="set_tab_disabled"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> + <argument index="1" name="disabled" type="bool" /> <description> If [code]disabled[/code] is [code]false[/code], hides the tab at index [code]tab_idx[/code]. [b]Note:[/b] Its title text will remain unless it is also removed with [method set_tab_title]. </description> </method> <method name="set_tab_icon"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="icon" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> + <argument index="1" name="icon" type="Texture2D" /> <description> Sets an [code]icon[/code] for the tab at index [code]tab_idx[/code]. </description> </method> <method name="set_tab_language"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="language" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> + <argument index="1" name="language" type="String" /> <description> Sets language code of tab title used for line-breaking and text shaping algorithms, if left empty current locale is used instead. </description> </method> <method name="set_tab_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> - <argument index="2" name="values" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> + <argument index="1" name="tag" type="String" /> + <argument index="2" name="values" type="int" /> <description> Sets OpenType feature [code]tag[/code] for the tab title. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url]. </description> </method> <method name="set_tab_text_direction"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="direction" type="int" enum="Control.TextDirection"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> + <argument index="1" name="direction" type="int" enum="Control.TextDirection" /> <description> Sets tab title base writing direction. </description> </method> <method name="set_tab_title"> - <return type="void"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="title" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="tab_idx" type="int" /> + <argument index="1" name="title" type="String" /> <description> Sets a [code]title[/code] for the tab at index [code]tab_idx[/code]. </description> </method> <method name="set_tabs_rearrange_group"> - <return type="void"> - </return> - <argument index="0" name="group_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="group_id" type="int" /> <description> Defines the rearrange group ID. Choose for each [Tabs] the same value to dragging tabs between [Tabs]. Enable drag with [code]set_drag_to_rearrange_enabled(true)[/code]. </description> @@ -275,43 +219,37 @@ </members> <signals> <signal name="reposition_active_tab_request"> - <argument index="0" name="idx_to" type="int"> - </argument> + <argument index="0" name="idx_to" type="int" /> <description> Emitted when the active tab is rearranged via mouse drag. See [member drag_to_rearrange_enabled]. </description> </signal> <signal name="right_button_pressed"> - <argument index="0" name="tab" type="int"> - </argument> + <argument index="0" name="tab" type="int" /> <description> Emitted when a tab is right-clicked. </description> </signal> <signal name="tab_changed"> - <argument index="0" name="tab" type="int"> - </argument> + <argument index="0" name="tab" type="int" /> <description> Emitted when switching to another tab. </description> </signal> <signal name="tab_clicked"> - <argument index="0" name="tab" type="int"> - </argument> + <argument index="0" name="tab" type="int" /> <description> Emitted when a tab is clicked, even if it is the current tab. </description> </signal> <signal name="tab_closed"> - <argument index="0" name="tab" type="int"> - </argument> + <argument index="0" name="tab" type="int" /> <description> Emitted when a tab is closed. </description> </signal> <signal name="tab_hovered"> - <argument index="0" name="tab" type="int"> - </argument> + <argument index="0" name="tab" type="int" /> <description> Emitted when a tab is hovered by the mouse. </description> diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 8d5f8f951c..5444721e10 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -11,92 +11,74 @@ </tutorials> <methods> <method name="_backspace" qualifiers="virtual"> - <return type="void"> - </return> + <return type="void" /> <description> A virtual method that is called whenever backspace is triggered. </description> </method> <method name="add_gutter"> - <return type="void"> - </return> - <argument index="0" name="at" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="at" type="int" default="-1" /> <description> </description> </method> <method name="backspace"> - <return type="void"> - </return> + <return type="void" /> <description> Causes the [TextEdit] to perform a backspace. </description> </method> <method name="center_viewport_to_cursor"> - <return type="void"> - </return> + <return type="void" /> <description> Centers the viewport on the line the editing cursor is at. This also resets the [member scroll_horizontal] value to [code]0[/code]. </description> </method> <method name="clear_opentype_features"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all OpenType features. </description> </method> <method name="clear_undo_history"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the undo history. </description> </method> <method name="copy"> - <return type="void"> - </return> + <return type="void" /> <description> Copy's the current text selection. </description> </method> <method name="cursor_get_column" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the column the editing cursor is at. </description> </method> <method name="cursor_get_line" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the line the editing cursor is at. </description> </method> <method name="cursor_set_column"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="adjust_viewport" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="adjust_viewport" type="bool" default="true" /> <description> Moves the cursor at the specified [code]column[/code] index. If [code]adjust_viewport[/code] is set to [code]true[/code], the viewport will center at the cursor position after the move occurs. </description> </method> <method name="cursor_set_line"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="adjust_viewport" type="bool" default="true"> - </argument> - <argument index="2" name="can_be_hidden" type="bool" default="true"> - </argument> - <argument index="3" name="wrap_index" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="adjust_viewport" type="bool" default="true" /> + <argument index="2" name="can_be_hidden" type="bool" default="true" /> + <argument index="3" name="wrap_index" type="int" default="0" /> <description> Moves the cursor at the specified [code]line[/code] index. If [code]adjust_viewport[/code] is set to [code]true[/code], the viewport will center at the cursor position after the move occurs. @@ -104,350 +86,276 @@ </description> </method> <method name="cut"> - <return type="void"> - </return> + <return type="void" /> <description> Cut's the current selection. </description> </method> <method name="delete_selection"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="deselect"> - <return type="void"> - </return> + <return type="void" /> <description> Deselects the current selection. </description> </method> <method name="get_caret_draw_pos" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Gets the caret pixel draw position. </description> </method> <method name="get_first_non_whitespace_column" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="line" type="int" /> <description> </description> </method> <method name="get_gutter_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_gutter_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="gutter" type="int" /> <description> </description> </method> <method name="get_gutter_type" qualifiers="const"> - <return type="int" enum="TextEdit.GutterType"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> + <return type="int" enum="TextEdit.GutterType" /> + <argument index="0" name="gutter" type="int" /> <description> </description> </method> <method name="get_gutter_width" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="gutter" type="int" /> <description> </description> </method> <method name="get_indent_level" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="line" type="int" /> <description> Returns the indent level of a specific line. </description> </method> <method name="get_line" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="line" type="int" /> <description> Returns the text of a specific line. </description> </method> <method name="get_line_background_color"> - <return type="Color"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="line" type="int" /> <description> Returns the current background color of the line. [code]Color(0, 0, 0, 0)[/code] is returned if no color is set. </description> </method> <method name="get_line_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of total lines in the text. </description> </method> <method name="get_line_gutter_icon" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> <description> </description> </method> <method name="get_line_gutter_item_color"> - <return type="Color"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> <description> </description> </method> <method name="get_line_gutter_metadata" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> <description> </description> </method> <method name="get_line_gutter_text" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> <description> </description> </method> <method name="get_menu" qualifiers="const"> - <return type="PopupMenu"> - </return> + <return type="PopupMenu" /> <description> Returns the [PopupMenu] of this [TextEdit]. By default, this menu is displayed when right-clicking on the [TextEdit]. </description> </method> <method name="get_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code]. </description> </method> <method name="get_selection_column" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_selection_from_column" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the selection begin column. </description> </method> <method name="get_selection_from_line" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the selection begin line. </description> </method> <method name="get_selection_line" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_selection_mode" qualifiers="const"> - <return type="int" enum="TextEdit.SelectionMode"> - </return> + <return type="int" enum="TextEdit.SelectionMode" /> <description> </description> </method> <method name="get_selection_text" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the text inside the selection. </description> </method> <method name="get_selection_to_column" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the selection end column. </description> </method> <method name="get_selection_to_line" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the selection end line. </description> </method> <method name="get_tab_size" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the [TextEdit]'s' tab size. </description> </method> <method name="get_visible_line_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of visible lines, including wrapped text. </description> </method> <method name="get_word_under_cursor" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a [String] text with the word under the caret (text cursor) location. </description> </method> <method name="insert_text_at_cursor"> - <return type="void"> - </return> - <argument index="0" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="text" type="String" /> <description> Insert the specified text at the cursor position. </description> </method> <method name="is_caret_visible" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the caret is visible on the screen. </description> </method> <method name="is_gutter_clickable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="gutter" type="int" /> <description> </description> </method> <method name="is_gutter_drawn" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="gutter" type="int" /> <description> </description> </method> <method name="is_gutter_overwritable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="gutter" type="int" /> <description> </description> </method> <method name="is_line_gutter_clickable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> <description> </description> </method> <method name="is_menu_visible" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the menu is visible. Use this instead of [code]get_menu().visible[/code] to improve performance (so the creation of the menu is avoided). </description> </method> <method name="is_selection_active" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the selection is active. </description> </method> <method name="menu_option"> - <return type="void"> - </return> - <argument index="0" name="option" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="option" type="int" /> <description> Triggers a right-click menu action by the specified index. See [enum MenuItems] for a list of available indexes. </description> </method> <method name="merge_gutters"> - <return type="void"> - </return> - <argument index="0" name="from_line" type="int"> - </argument> - <argument index="1" name="to_line" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from_line" type="int" /> + <argument index="1" name="to_line" type="int" /> <description> </description> </method> <method name="paste"> - <return type="void"> - </return> + <return type="void" /> <description> Paste the current selection. </description> </method> <method name="redo"> - <return type="void"> - </return> + <return type="void" /> <description> Perform redo operation. </description> </method> <method name="remove_gutter"> - <return type="void"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="gutter" type="int" /> <description> </description> </method> <method name="search" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="key" type="String"> - </argument> - <argument index="1" name="flags" type="int"> - </argument> - <argument index="2" name="from_line" type="int"> - </argument> - <argument index="3" name="from_column" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="key" type="String" /> + <argument index="1" name="flags" type="int" /> + <argument index="2" name="from_line" type="int" /> + <argument index="3" name="from_column" type="int" /> <description> Perform a search inside the text. Search flags can be specified in the [enum SearchFlags] enum. Returns an empty [code]Dictionary[/code] if no result was found. Otherwise, returns a [code]Dictionary[/code] containing [code]line[/code] and [code]column[/code] entries, e.g: @@ -472,218 +380,154 @@ </description> </method> <method name="select"> - <return type="void"> - </return> - <argument index="0" name="from_line" type="int"> - </argument> - <argument index="1" name="from_column" type="int"> - </argument> - <argument index="2" name="to_line" type="int"> - </argument> - <argument index="3" name="to_column" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from_line" type="int" /> + <argument index="1" name="from_column" type="int" /> + <argument index="2" name="to_line" type="int" /> + <argument index="3" name="to_column" type="int" /> <description> Perform selection, from line/column to line/column. If [member selecting_enabled] is [code]false[/code], no selection will occur. </description> </method> <method name="select_all"> - <return type="void"> - </return> + <return type="void" /> <description> Select all the text. If [member selecting_enabled] is [code]false[/code], no selection will occur. </description> </method> <method name="set_gutter_clickable"> - <return type="void"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> - <argument index="1" name="clickable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="gutter" type="int" /> + <argument index="1" name="clickable" type="bool" /> <description> </description> </method> <method name="set_gutter_custom_draw"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="object" type="Object"> - </argument> - <argument index="2" name="callback" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="object" type="Object" /> + <argument index="2" name="callback" type="StringName" /> <description> </description> </method> <method name="set_gutter_draw"> - <return type="void"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> - <argument index="1" name="draw" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="gutter" type="int" /> + <argument index="1" name="draw" type="bool" /> <description> </description> </method> <method name="set_gutter_name"> - <return type="void"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="gutter" type="int" /> + <argument index="1" name="name" type="String" /> <description> </description> </method> <method name="set_gutter_overwritable"> - <return type="void"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> - <argument index="1" name="overwritable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="gutter" type="int" /> + <argument index="1" name="overwritable" type="bool" /> <description> </description> </method> <method name="set_gutter_type"> - <return type="void"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> - <argument index="1" name="type" type="int" enum="TextEdit.GutterType"> - </argument> + <return type="void" /> + <argument index="0" name="gutter" type="int" /> + <argument index="1" name="type" type="int" enum="TextEdit.GutterType" /> <description> </description> </method> <method name="set_gutter_width"> - <return type="void"> - </return> - <argument index="0" name="gutter" type="int"> - </argument> - <argument index="1" name="width" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="gutter" type="int" /> + <argument index="1" name="width" type="int" /> <description> </description> </method> <method name="set_line"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="new_text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="new_text" type="String" /> <description> Sets the text for a specific line. </description> </method> <method name="set_line_background_color"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="color" type="Color" /> <description> Sets the current background color of the line. Set to [code]Color(0, 0, 0, 0)[/code] for no color. </description> </method> <method name="set_line_gutter_clickable"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> - <argument index="2" name="clickable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> + <argument index="2" name="clickable" type="bool" /> <description> </description> </method> <method name="set_line_gutter_icon"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> - <argument index="2" name="icon" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> + <argument index="2" name="icon" type="Texture2D" /> <description> </description> </method> <method name="set_line_gutter_item_color"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> + <argument index="2" name="color" type="Color" /> <description> </description> </method> <method name="set_line_gutter_metadata"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> - <argument index="2" name="metadata" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> + <argument index="2" name="metadata" type="Variant" /> <description> </description> </method> <method name="set_line_gutter_text"> - <return type="void"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> - <argument index="2" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> + <argument index="2" name="text" type="String" /> <description> </description> </method> <method name="set_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="tag" type="String"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="tag" type="String" /> + <argument index="1" name="value" type="int" /> <description> Sets OpenType feature [code]tag[/code]. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url]. </description> </method> <method name="set_selection_mode"> - <return type="void"> - </return> - <argument index="0" name="mode" type="int" enum="TextEdit.SelectionMode"> - </argument> - <argument index="1" name="line" type="int" default="-1"> - </argument> - <argument index="2" name="column" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="mode" type="int" enum="TextEdit.SelectionMode" /> + <argument index="1" name="line" type="int" default="-1" /> + <argument index="2" name="column" type="int" default="-1" /> <description> </description> </method> <method name="set_tab_size"> - <return type="void"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="size" type="int" /> <description> Sets the tab size for the [TextEdit] to use. </description> </method> <method name="undo"> - <return type="void"> - </return> + <return type="void" /> <description> Perform undo operation. </description> @@ -795,10 +639,8 @@ </description> </signal> <signal name="gutter_clicked"> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="gutter" type="int"> - </argument> + <argument index="0" name="line" type="int" /> + <argument index="1" name="gutter" type="int" /> <description> </description> </signal> @@ -807,26 +649,20 @@ </description> </signal> <signal name="lines_edited_from"> - <argument index="0" name="from_line" type="int"> - </argument> - <argument index="1" name="to_line" type="int"> - </argument> + <argument index="0" name="from_line" type="int" /> + <argument index="1" name="to_line" type="int" /> <description> </description> </signal> <signal name="symbol_lookup"> - <argument index="0" name="symbol" type="String"> - </argument> - <argument index="1" name="row" type="int"> - </argument> - <argument index="2" name="column" type="int"> - </argument> + <argument index="0" name="symbol" type="String" /> + <argument index="1" name="row" type="int" /> + <argument index="2" name="column" type="int" /> <description> </description> </signal> <signal name="symbol_validate"> - <argument index="0" name="symbol" type="String"> - </argument> + <argument index="0" name="symbol" type="String" /> <description> </description> </signal> diff --git a/doc/classes/TextLine.xml b/doc/classes/TextLine.xml index 318c3be794..cc66f56d65 100644 --- a/doc/classes/TextLine.xml +++ b/doc/classes/TextLine.xml @@ -10,175 +10,134 @@ </tutorials> <methods> <method name="add_object"> - <return type="bool"> - </return> - <argument index="0" name="key" type="Variant"> - </argument> - <argument index="1" name="size" type="Vector2"> - </argument> - <argument index="2" name="inline_align" type="int" enum="VAlign" default="1"> - </argument> - <argument index="3" name="length" type="int" default="1"> - </argument> + <return type="bool" /> + <argument index="0" name="key" type="Variant" /> + <argument index="1" name="size" type="Vector2" /> + <argument index="2" name="inline_align" type="int" enum="VAlign" default="1" /> + <argument index="3" name="length" type="int" default="1" /> <description> Adds inline object to the text buffer, [code]key[/code] must be unique. In the text, object is represented as [code]length[/code] object replacement characters. </description> </method> <method name="add_string"> - <return type="bool"> - </return> - <argument index="0" name="text" type="String"> - </argument> - <argument index="1" name="fonts" type="Font"> - </argument> - <argument index="2" name="size" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="text" type="String" /> + <argument index="1" name="fonts" type="Font" /> + <argument index="2" name="size" type="int" /> <argument index="3" name="opentype_features" type="Dictionary" default="{ -}"> - </argument> - <argument index="4" name="language" type="String" default=""""> - </argument> +}" /> + <argument index="4" name="language" type="String" default="""" /> <description> Adds text span and font to draw it. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears text line (removes text and inline objects). </description> </method> <method name="draw" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draw text into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box. </description> </method> <method name="draw_outline" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="outline_size" type="int" default="1"> - </argument> - <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="outline_size" type="int" default="1" /> + <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draw text into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box. </description> </method> <method name="get_line_ascent" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the text ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical). </description> </method> <method name="get_line_descent" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the text descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical). </description> </method> <method name="get_line_underline_position" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns pixel offset of the underline below the baseline. </description> </method> <method name="get_line_underline_thickness" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns thickness of the underline. </description> </method> <method name="get_line_width" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns width (for horizontal layout) or height (for vertical) of the text. </description> </method> <method name="get_object_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="key" type="Variant"> - </argument> + <return type="Rect2" /> + <argument index="0" name="key" type="Variant" /> <description> Returns bounding rectangle of the inline object. </description> </method> <method name="get_objects" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns array of inline objects. </description> </method> <method name="get_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns TextServer buffer RID. </description> </method> <method name="get_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns size of the bounding box of the text. </description> </method> <method name="hit_test" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="coords" type="float"> - </argument> + <return type="int" /> + <argument index="0" name="coords" type="float" /> <description> Returns caret character offset at the specified pixel offset at the baseline. This function always returns a valid position. </description> </method> <method name="resize_object"> - <return type="bool"> - </return> - <argument index="0" name="key" type="Variant"> - </argument> - <argument index="1" name="size" type="Vector2"> - </argument> - <argument index="2" name="inline_align" type="int" enum="VAlign" default="1"> - </argument> + <return type="bool" /> + <argument index="0" name="key" type="Variant" /> + <argument index="1" name="size" type="Vector2" /> + <argument index="2" name="inline_align" type="int" enum="VAlign" default="1" /> <description> Sets new size and alignment of embedded object. </description> </method> <method name="set_bidi_override"> - <return type="void"> - </return> - <argument index="0" name="override" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="override" type="Array" /> <description> Overrides BiDi for the structured text. Override ranges should cover full source text without overlaps. BiDi algorithm will be used on each range separately. </description> </method> <method name="tab_align"> - <return type="void"> - </return> - <argument index="0" name="tab_stops" type="PackedFloat32Array"> - </argument> + <return type="void" /> + <argument index="0" name="tab_stops" type="PackedFloat32Array" /> <description> Aligns text to the given tab-stops. </description> diff --git a/doc/classes/TextParagraph.xml b/doc/classes/TextParagraph.xml index d67a9bcb85..9050f9246a 100644 --- a/doc/classes/TextParagraph.xml +++ b/doc/classes/TextParagraph.xml @@ -10,356 +10,265 @@ </tutorials> <methods> <method name="add_object"> - <return type="bool"> - </return> - <argument index="0" name="key" type="Variant"> - </argument> - <argument index="1" name="size" type="Vector2"> - </argument> - <argument index="2" name="inline_align" type="int" enum="VAlign" default="1"> - </argument> - <argument index="3" name="length" type="int" default="1"> - </argument> + <return type="bool" /> + <argument index="0" name="key" type="Variant" /> + <argument index="1" name="size" type="Vector2" /> + <argument index="2" name="inline_align" type="int" enum="VAlign" default="1" /> + <argument index="3" name="length" type="int" default="1" /> <description> Adds inline object to the text buffer, [code]key[/code] must be unique. In the text, object is represented as [code]length[/code] object replacement characters. </description> </method> <method name="add_string"> - <return type="bool"> - </return> - <argument index="0" name="text" type="String"> - </argument> - <argument index="1" name="fonts" type="Font"> - </argument> - <argument index="2" name="size" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="text" type="String" /> + <argument index="1" name="fonts" type="Font" /> + <argument index="2" name="size" type="int" /> <argument index="3" name="opentype_features" type="Dictionary" default="{ -}"> - </argument> - <argument index="4" name="language" type="String" default=""""> - </argument> +}" /> + <argument index="4" name="language" type="String" default="""" /> <description> Adds text span and font to draw it. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears text paragraph (removes text and inline objects). </description> </method> <method name="clear_dropcap"> - <return type="void"> - </return> + <return type="void" /> <description> Removes dropcap. </description> </method> <method name="draw" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="3" name="dc_color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="color" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="3" name="dc_color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draw all lines of the text and drop cap into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box. </description> </method> <method name="draw_dropcap" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draw drop cap into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box. </description> </method> <method name="draw_dropcap_outline" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="outline_size" type="int" default="1"> - </argument> - <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="outline_size" type="int" default="1" /> + <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draw drop cap outline into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box. </description> </method> <method name="draw_line" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="line" type="int"> - </argument> - <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="line" type="int" /> + <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draw single line of text into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box. </description> </method> <method name="draw_line_outline" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="line" type="int"> - </argument> - <argument index="3" name="outline_size" type="int" default="1"> - </argument> - <argument index="4" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="line" type="int" /> + <argument index="3" name="outline_size" type="int" default="1" /> + <argument index="4" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draw outline of the single line of text into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box. </description> </method> <method name="draw_outline" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="outline_size" type="int" default="1"> - </argument> - <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="4" name="dc_color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="pos" type="Vector2" /> + <argument index="2" name="outline_size" type="int" default="1" /> + <argument index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="4" name="dc_color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draw outlines of all lines of the text and drop cap into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box. </description> </method> <method name="get_dropcap_lines" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns number of lines used by dropcap. </description> </method> <method name="get_dropcap_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Return drop cap text buffer RID. </description> </method> <method name="get_dropcap_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns drop cap bounding box size. </description> </method> <method name="get_line_ascent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="line" type="int" /> <description> Returns the text line ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical). </description> </method> <method name="get_line_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns number of lines in the paragraph. </description> </method> <method name="get_line_descent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="line" type="int" /> <description> Returns the text line descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical). </description> </method> <method name="get_line_object_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="line" type="int"> - </argument> - <argument index="1" name="key" type="Variant"> - </argument> + <return type="Rect2" /> + <argument index="0" name="line" type="int" /> + <argument index="1" name="key" type="Variant" /> <description> Returns bounding rectangle of the inline object. </description> </method> <method name="get_line_objects" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="line" type="int" /> <description> Returns array of inline objects in the line. </description> </method> <method name="get_line_range" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="line" type="int" /> <description> Returns character range of the line. </description> </method> <method name="get_line_rid" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="line" type="int" /> <description> Returns TextServer line buffer RID. </description> </method> <method name="get_line_size" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="line" type="int" /> <description> Returns size of the bounding box of the line of text. </description> </method> <method name="get_line_underline_position" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="line" type="int" /> <description> Returns pixel offset of the underline below the baseline. </description> </method> <method name="get_line_underline_thickness" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="line" type="int" /> <description> Returns thickness of the underline. </description> </method> <method name="get_line_width" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="line" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="line" type="int" /> <description> Returns width (for horizontal layout) or height (for vertical) of the line of text. </description> </method> <method name="get_non_wraped_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the size of the bounding box of the paragraph, without line breaks. </description> </method> <method name="get_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns TextServer full string buffer RID. </description> </method> <method name="get_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the size of the bounding box of the paragraph. </description> </method> <method name="get_spacing_bottom" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns extra spacing at the bottom of the line. See [member Font.extra_spacing_bottom]. </description> </method> <method name="get_spacing_top" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns extra spacing at the top of the line. See [member Font.extra_spacing_top]. </description> </method> <method name="hit_test" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="coords" type="Vector2"> - </argument> + <return type="int" /> + <argument index="0" name="coords" type="Vector2" /> <description> Returns caret character offset at the specified coordinates. This function always returns a valid position. </description> </method> <method name="resize_object"> - <return type="bool"> - </return> - <argument index="0" name="key" type="Variant"> - </argument> - <argument index="1" name="size" type="Vector2"> - </argument> - <argument index="2" name="inline_align" type="int" enum="VAlign" default="1"> - </argument> + <return type="bool" /> + <argument index="0" name="key" type="Variant" /> + <argument index="1" name="size" type="Vector2" /> + <argument index="2" name="inline_align" type="int" enum="VAlign" default="1" /> <description> Sets new size and alignment of embedded object. </description> </method> <method name="set_bidi_override"> - <return type="void"> - </return> - <argument index="0" name="override" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="override" type="Array" /> <description> Overrides BiDi for the structured text. Override ranges should cover full source text without overlaps. BiDi algorithm will be used on each range separately. </description> </method> <method name="set_dropcap"> - <return type="bool"> - </return> - <argument index="0" name="text" type="String"> - </argument> - <argument index="1" name="fonts" type="Font"> - </argument> - <argument index="2" name="size" type="int"> - </argument> - <argument index="3" name="dropcap_margins" type="Rect2" default="Rect2(0, 0, 0, 0)"> - </argument> + <return type="bool" /> + <argument index="0" name="text" type="String" /> + <argument index="1" name="fonts" type="Font" /> + <argument index="2" name="size" type="int" /> + <argument index="3" name="dropcap_margins" type="Rect2" default="Rect2(0, 0, 0, 0)" /> <argument index="4" name="opentype_features" type="Dictionary" default="{ -}"> - </argument> - <argument index="5" name="language" type="String" default=""""> - </argument> +}" /> + <argument index="5" name="language" type="String" default="""" /> <description> Sets drop cap, overrides previously set drop cap. Drop cap (dropped capital) is a decorative element at the beginning of a paragraph that is larger than the rest of the text. </description> </method> <method name="tab_align"> - <return type="void"> - </return> - <argument index="0" name="tab_stops" type="PackedFloat32Array"> - </argument> + <return type="void" /> + <argument index="0" name="tab_stops" type="PackedFloat32Array" /> <description> Aligns paragraph to the given tab-stops. </description> diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml index 0f9318fda1..dbf7ae93aa 100644 --- a/doc/classes/TextServer.xml +++ b/doc/classes/TextServer.xml @@ -10,51 +10,37 @@ </tutorials> <methods> <method name="create_font_bitmap"> - <return type="RID"> - </return> - <argument index="0" name="height" type="float"> - </argument> - <argument index="1" name="ascent" type="float"> - </argument> - <argument index="2" name="base_size" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="height" type="float" /> + <argument index="1" name="ascent" type="float" /> + <argument index="2" name="base_size" type="int" /> <description> Creates new, empty bitmap font. To free the resulting font, use [method free_rid] method. </description> </method> <method name="create_font_memory"> - <return type="RID"> - </return> - <argument index="0" name="data" type="PackedByteArray"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="base_size" type="int" default="16"> - </argument> + <return type="RID" /> + <argument index="0" name="data" type="PackedByteArray" /> + <argument index="1" name="type" type="String" /> + <argument index="2" name="base_size" type="int" default="16" /> <description> Creates new font from the data in memory. To free the resulting font, use [method free_rid] method. Note: For non-scalable fonts [code]base_size[/code] is ignored, use [method font_get_base_size] to check actual font size. </description> </method> <method name="create_font_resource"> - <return type="RID"> - </return> - <argument index="0" name="filename" type="String"> - </argument> - <argument index="1" name="base_size" type="int" default="16"> - </argument> + <return type="RID" /> + <argument index="0" name="filename" type="String" /> + <argument index="1" name="base_size" type="int" default="16" /> <description> Creates new font from the file. To free the resulting font, use [method free_rid] method. Note: For non-scalable fonts [code]base_size[/code] is ignored, use [method font_get_base_size] to check actual font size. </description> </method> <method name="create_font_system"> - <return type="RID"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="base_size" type="int" default="16"> - </argument> + <return type="RID" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="base_size" type="int" default="16" /> <description> Creates new font from the system font. To free the resulting font, use [method free_rid] method. Note: This method is supported by servers with the [code]FEATURE_FONT_SYSTEM[/code] feature. @@ -62,12 +48,9 @@ </description> </method> <method name="create_shaped_text"> - <return type="RID"> - </return> - <argument index="0" name="direction" type="int" enum="TextServer.Direction" default="0"> - </argument> - <argument index="1" name="orientation" type="int" enum="TextServer.Orientation" default="0"> - </argument> + <return type="RID" /> + <argument index="0" name="direction" type="int" enum="TextServer.Direction" default="0" /> + <argument index="1" name="orientation" type="int" enum="TextServer.Orientation" default="0" /> <description> Creates new buffer for complex text layout, with the given [code]direction[/code] and [code]orientation[/code]. To free the resulting buffer, use [method free_rid] method. Note: Direction is ignored if server does not support [code]FEATURE_BIDI_LAYOUT[/code] feature. @@ -75,198 +58,138 @@ </description> </method> <method name="draw_hex_code_box" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas" type="RID"> - </argument> - <argument index="1" name="size" type="int"> - </argument> - <argument index="2" name="pos" type="Vector2"> - </argument> - <argument index="3" name="index" type="int"> - </argument> - <argument index="4" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="canvas" type="RID" /> + <argument index="1" name="size" type="int" /> + <argument index="2" name="pos" type="Vector2" /> + <argument index="3" name="index" type="int" /> + <argument index="4" name="color" type="Color" /> <description> Draws box displaying character hexadecimal code. Used for replacing missing characters. </description> </method> <method name="font_bitmap_add_char"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="char" type="int"> - </argument> - <argument index="2" name="texture_idx" type="int"> - </argument> - <argument index="3" name="rect" type="Rect2"> - </argument> - <argument index="4" name="align" type="Vector2"> - </argument> - <argument index="5" name="advance" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="char" type="int" /> + <argument index="2" name="texture_idx" type="int" /> + <argument index="3" name="rect" type="Rect2" /> + <argument index="4" name="align" type="Vector2" /> + <argument index="5" name="advance" type="float" /> <description> Adds a character to the font, where [code]character[/code] is the Unicode value, [code]texture[/code] is the texture index, [code]rect[/code] is the region in the texture (in pixels!), [code]align[/code] is the (optional) alignment for the character and [code]advance[/code] is the (optional) advance. </description> </method> <method name="font_bitmap_add_kerning_pair"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="A" type="int"> - </argument> - <argument index="2" name="B" type="int"> - </argument> - <argument index="3" name="kerning" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="A" type="int" /> + <argument index="2" name="B" type="int" /> + <argument index="3" name="kerning" type="int" /> <description> Adds a kerning pair to the bitmap font as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character. </description> </method> <method name="font_bitmap_add_texture"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="texture" type="Texture"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="texture" type="Texture" /> <description> Adds a texture to the bitmap font. </description> </method> <method name="font_draw_glyph" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="canvas" type="RID"> - </argument> - <argument index="2" name="size" type="int"> - </argument> - <argument index="3" name="pos" type="Vector2"> - </argument> - <argument index="4" name="index" type="int"> - </argument> - <argument index="5" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="Vector2" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="canvas" type="RID" /> + <argument index="2" name="size" type="int" /> + <argument index="3" name="pos" type="Vector2" /> + <argument index="4" name="index" type="int" /> + <argument index="5" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draws single glyph into a canvas item at the position, using [code]font[/code] at the size [code]size[/code]. Note: Glyph index is specific to the font, use glyphs indices returned by [method shaped_text_get_glyphs] or [method font_get_glyph_index]. </description> </method> <method name="font_draw_glyph_outline" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="canvas" type="RID"> - </argument> - <argument index="2" name="size" type="int"> - </argument> - <argument index="3" name="outline_size" type="int"> - </argument> - <argument index="4" name="pos" type="Vector2"> - </argument> - <argument index="5" name="index" type="int"> - </argument> - <argument index="6" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="Vector2" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="canvas" type="RID" /> + <argument index="2" name="size" type="int" /> + <argument index="3" name="outline_size" type="int" /> + <argument index="4" name="pos" type="Vector2" /> + <argument index="5" name="index" type="int" /> + <argument index="6" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draws single glyph outline of size [code]outline_size[/code] into a canvas item at the position, using [code]font[/code] at the size [code]size[/code]. Note: Glyph index is specific to the font, use glyphs indices returned by [method shaped_text_get_glyphs] or [method font_get_glyph_index]. </description> </method> <method name="font_get_antialiased" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="font" type="RID" /> <description> Returns [code]true[/code], if font anti-aliasing is supported and enabled. </description> </method> <method name="font_get_ascent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="size" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="size" type="int" /> <description> Returns the font ascent (number of pixels above the baseline). </description> </method> <method name="font_get_base_size" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="font" type="RID" /> <description> Returns the default size of the font. </description> </method> <method name="font_get_descent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="size" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="size" type="int" /> <description> Returns the font descent (number of pixels below the baseline). </description> </method> <method name="font_get_distance_field_hint" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="font" type="RID" /> <description> Returns [code]true[/code], if distance field hint is enabled. </description> </method> <method name="font_get_feature_list" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="font" type="RID" /> <description> Returns list of OpenType features supported by font. </description> </method> <method name="font_get_force_autohinter" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="font" type="RID" /> <description> Returns [code]true[/code], if autohinter is supported and enabled. </description> </method> <method name="font_get_glyph_advance" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="index" type="int"> - </argument> - <argument index="2" name="size" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="index" type="int" /> + <argument index="2" name="size" type="int" /> <description> Returns advance of the glyph. </description> </method> <method name="font_get_glyph_contours" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="size" type="int"> - </argument> - <argument index="2" name="index" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="size" type="int" /> + <argument index="2" name="index" type="int" /> <description> Returns outline contours of the glyph in a Dictionary. [code]points[/code] - [PackedVector3Array], containing outline points. [code]x[/code] and [code]y[/code] are point coordinates. [code]z[/code] is the type of the point, using the [enum ContourPointTag] values. @@ -275,955 +198,701 @@ </description> </method> <method name="font_get_glyph_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="char" type="int"> - </argument> - <argument index="2" name="variation_selector" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="char" type="int" /> + <argument index="2" name="variation_selector" type="int" default="0" /> <description> Returns the glyph index of a [code]char[/code], optionally modified by the [code]variation_selector[/code]. </description> </method> <method name="font_get_glyph_kerning" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="index_a" type="int"> - </argument> - <argument index="2" name="index_b" type="int"> - </argument> - <argument index="3" name="size" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="index_a" type="int" /> + <argument index="2" name="index_b" type="int" /> + <argument index="3" name="size" type="int" /> <description> Returns a kerning of the pair of glyphs. </description> </method> <method name="font_get_height" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="size" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="size" type="int" /> <description> Returns the total font height (ascent plus descent) in pixels. </description> </method> <method name="font_get_hinting" qualifiers="const"> - <return type="int" enum="TextServer.Hinting"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="int" enum="TextServer.Hinting" /> + <argument index="0" name="font" type="RID" /> <description> Returns the font hinting. </description> </method> <method name="font_get_language_support_override"> - <return type="bool"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="language" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="language" type="String" /> <description> Returns [code]true[/code] if support override is enabled for the [code]language[/code]. </description> </method> <method name="font_get_language_support_overrides"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="font" type="RID" /> <description> Returns list of language support overrides. </description> </method> <method name="font_get_oversampling" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the font oversampling factor, shared by all fonts in the TextServer. </description> </method> <method name="font_get_script_support_override"> - <return type="bool"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="script" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="script" type="String" /> <description> Returns [code]true[/code] if support override is enabled for the [code]script[/code]. </description> </method> <method name="font_get_script_support_overrides"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="font" type="RID" /> <description> Returns list of script support overrides. </description> </method> <method name="font_get_spacing_glyph" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="font" type="RID" /> <description> Returns extra spacing for each glyph in pixels. </description> </method> <method name="font_get_spacing_space" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="int" /> + <argument index="0" name="font" type="RID" /> <description> Sets extra spacing for each glyph in pixels. </description> </method> <method name="font_get_supported_chars" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="String" /> + <argument index="0" name="font" type="RID" /> <description> Returns a string containing all the characters available in the font. </description> </method> <method name="font_get_underline_position" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="size" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="size" type="int" /> <description> Returns underline offset (number of pixels below the baseline). </description> </method> <method name="font_get_underline_thickness" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="size" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="size" type="int" /> <description> Returns underline thickness in pixels. </description> </method> <method name="font_get_variation" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> + <return type="float" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="tag" type="String" /> <description> Returns variation coordinate [code]tag[/code]. </description> </method> <method name="font_get_variation_list" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="font" type="RID" /> <description> Returns list of supported [url=https://docs.microsoft.com/en-us/typography/opentype/spec/dvaraxisreg]variation coordinates[/url], each coordinate is returned as [code]tag: Vector3i(min_value,max_value,default_value)[/code]. Font variations allow for continuous change of glyph characteristics along some given design axis, such as weight, width or slant. </description> </method> <method name="font_has_char" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="char" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="char" type="int" /> <description> Returns [code]true[/code] if [code]char[/code] is available in the font. </description> </method> <method name="font_has_outline" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="font" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="font" type="RID" /> <description> Returns [code]true[/code], if font supports glyph outlines. </description> </method> <method name="font_is_language_supported" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="language" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="language" type="String" /> <description> Returns [code]true[/code], if font supports given language (ISO 639 code). </description> </method> <method name="font_is_script_supported" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="script" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="script" type="String" /> <description> Returns [code]true[/code], if font supports given script (ISO 15924 code). </description> </method> <method name="font_remove_language_support_override"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="language" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="language" type="String" /> <description> Remove language support override. </description> </method> <method name="font_remove_script_support_override"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="script" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="script" type="String" /> <description> Removes script support override. </description> </method> <method name="font_set_antialiased"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="antialiased" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="antialiased" type="bool" /> <description> Sets font anti-aliasing. </description> </method> <method name="font_set_distance_field_hint"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="distance_field" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="distance_field" type="bool" /> <description> Sets font distance field hint. </description> </method> <method name="font_set_force_autohinter"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="enabeld" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="enabeld" type="bool" /> <description> Enables/disables default autohinter. </description> </method> <method name="font_set_hinting"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="hinting" type="int" enum="TextServer.Hinting"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="hinting" type="int" enum="TextServer.Hinting" /> <description> Sets font hinting. </description> </method> <method name="font_set_language_support_override"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="language" type="String"> - </argument> - <argument index="2" name="supported" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="language" type="String" /> + <argument index="2" name="supported" type="bool" /> <description> Adds override for [method font_is_language_supported]. </description> </method> <method name="font_set_oversampling"> - <return type="void"> - </return> - <argument index="0" name="oversampling" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="oversampling" type="float" /> <description> Sets oversampling factor, shared by all font in the TextServer. </description> </method> <method name="font_set_script_support_override"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="script" type="String"> - </argument> - <argument index="2" name="supported" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="script" type="String" /> + <argument index="2" name="supported" type="bool" /> <description> Adds override for [method font_is_script_supported]. </description> </method> <method name="font_set_spacing_glyph"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="value" type="int" /> <description> Returns extra spacing for the space character in pixels. </description> </method> <method name="font_set_spacing_space"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="value" type="int" /> <description> Sets extra spacing for the space character in pixels. </description> </method> <method name="font_set_variation"> - <return type="void"> - </return> - <argument index="0" name="font" type="RID"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> - <argument index="2" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="font" type="RID" /> + <argument index="1" name="tag" type="String" /> + <argument index="2" name="value" type="float" /> <description> Sets variation coordinate [code]name[/code]. Unsupported coordinates will be silently ignored. </description> </method> <method name="format_number" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="number" type="String"> - </argument> - <argument index="1" name="language" type="String" default=""""> - </argument> + <return type="String" /> + <argument index="0" name="number" type="String" /> + <argument index="1" name="language" type="String" default="""" /> <description> Converts a number from the Western Arabic (0..9) to the numeral systems used in [code]language[/code]. </description> </method> <method name="free_rid"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Frees an object created by this [TextServer]. </description> </method> <method name="get_hex_code_box_size" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="size" type="int"> - </argument> - <argument index="1" name="index" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="size" type="int" /> + <argument index="1" name="index" type="int" /> <description> Returns size of the replacement character (box with character hexadecimal code that is drawn in place of invalid characters). </description> </method> <method name="get_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the name of the server interface. </description> </method> <method name="get_system_fonts" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns list of available system fonts. Note: This method is supported by servers with the [code]FEATURE_FONT_SYSTEM[/code] feature. </description> </method> <method name="has"> - <return type="bool"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="rid" type="RID" /> <description> Returns [code]true[/code] if [code]rid[/code] is valid resource owned by this text server. </description> </method> <method name="has_feature"> - <return type="bool"> - </return> - <argument index="0" name="feature" type="int" enum="TextServer.Feature"> - </argument> + <return type="bool" /> + <argument index="0" name="feature" type="int" enum="TextServer.Feature" /> <description> Returns [code]true[/code] if the server supports a feature. </description> </method> <method name="is_locale_right_to_left"> - <return type="bool"> - </return> - <argument index="0" name="locale" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="locale" type="String" /> <description> Returns [code]true[/code] if locale is right-to-left. </description> </method> <method name="load_support_data"> - <return type="bool"> - </return> - <argument index="0" name="filename" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="filename" type="String" /> <description> Loads optional TextServer database (e.g. ICU break iterators and dictionaries). Note: This function should be called before any other TextServer functions used, otherwise it won't have any effect. </description> </method> <method name="name_to_tag"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="String" /> <description> Converts readable feature, variation, script or language name to OpenType tag. </description> </method> <method name="parse_number" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="number" type="String"> - </argument> - <argument index="1" name="language" type="String" default=""""> - </argument> + <return type="String" /> + <argument index="0" name="number" type="String" /> + <argument index="1" name="language" type="String" default="""" /> <description> Converts a number from the numeral systems used in [code]language[/code] to Western Arabic (0..9). </description> </method> <method name="percent_sign" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="language" type="String" default=""""> - </argument> + <return type="String" /> + <argument index="0" name="language" type="String" default="""" /> <description> Returns percent sign used in the [code]language[/code]. </description> </method> <method name="shaped_text_add_object"> - <return type="bool"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="key" type="Variant"> - </argument> - <argument index="2" name="size" type="Vector2"> - </argument> - <argument index="3" name="inline_align" type="int" enum="VAlign" default="1"> - </argument> - <argument index="4" name="length" type="int" default="1"> - </argument> + <return type="bool" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="key" type="Variant" /> + <argument index="2" name="size" type="Vector2" /> + <argument index="3" name="inline_align" type="int" enum="VAlign" default="1" /> + <argument index="4" name="length" type="int" default="1" /> <description> Adds inline object to the text buffer, [code]key[/code] must be unique. In the text, object is represented as [code]length[/code] object replacement characters. </description> </method> <method name="shaped_text_add_string"> - <return type="bool"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="text" type="String"> - </argument> - <argument index="2" name="fonts" type="Array"> - </argument> - <argument index="3" name="size" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="text" type="String" /> + <argument index="2" name="fonts" type="Array" /> + <argument index="3" name="size" type="int" /> <argument index="4" name="opentype_features" type="Dictionary" default="{ -}"> - </argument> - <argument index="5" name="language" type="String" default=""""> - </argument> +}" /> + <argument index="5" name="language" type="String" default="""" /> <description> Adds text span and font to draw it to the text buffer. </description> </method> <method name="shaped_text_clear"> - <return type="void"> - </return> - <argument index="0" name="rid" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="rid" type="RID" /> <description> Clears text buffer (removes text and inline objects). </description> </method> <method name="shaped_text_draw" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="canvas" type="RID"> - </argument> - <argument index="2" name="pos" type="Vector2"> - </argument> - <argument index="3" name="clip_l" type="float" default="-1"> - </argument> - <argument index="4" name="clip_r" type="float" default="-1"> - </argument> - <argument index="5" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="canvas" type="RID" /> + <argument index="2" name="pos" type="Vector2" /> + <argument index="3" name="clip_l" type="float" default="-1" /> + <argument index="4" name="clip_r" type="float" default="-1" /> + <argument index="5" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draw shaped text into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout). </description> </method> <method name="shaped_text_draw_outline" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="canvas" type="RID"> - </argument> - <argument index="2" name="pos" type="Vector2"> - </argument> - <argument index="3" name="clip_l" type="float" default="-1"> - </argument> - <argument index="4" name="clip_r" type="float" default="-1"> - </argument> - <argument index="5" name="outline_size" type="int" default="1"> - </argument> - <argument index="6" name="color" type="Color" default="Color(1, 1, 1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="canvas" type="RID" /> + <argument index="2" name="pos" type="Vector2" /> + <argument index="3" name="clip_l" type="float" default="-1" /> + <argument index="4" name="clip_r" type="float" default="-1" /> + <argument index="5" name="outline_size" type="int" default="1" /> + <argument index="6" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <description> Draw the outline of the shaped text into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout). </description> </method> <method name="shaped_text_fit_to_width"> - <return type="float"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="width" type="float"> - </argument> - <argument index="2" name="jst_flags" type="int" default="3"> - </argument> + <return type="float" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="width" type="float" /> + <argument index="2" name="jst_flags" type="int" default="3" /> <description> Adjusts text with to fit to specified width, returns new text width. </description> </method> <method name="shaped_text_get_ascent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns the text ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical). Note: overall ascent can be higher than font ascent, if some glyphs are displaced from the baseline. </description> </method> <method name="shaped_text_get_carets" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="position" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="position" type="int" /> <description> Returns shapes of the carets corresponding to the character offset [code]position[/code] in the text. Returned caret shape is 1 pixel wide rectangle. </description> </method> <method name="shaped_text_get_descent" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns the text descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical). Note: overall descent can be higher than font descent, if some glyphs are displaced from the baseline. </description> </method> <method name="shaped_text_get_direction" qualifiers="const"> - <return type="int" enum="TextServer.Direction"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="int" enum="TextServer.Direction" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns direction of the text. </description> </method> <method name="shaped_text_get_dominant_direciton_in_range" qualifiers="const"> - <return type="int" enum="TextServer.Direction"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="start" type="int"> - </argument> - <argument index="2" name="end" type="int"> - </argument> + <return type="int" enum="TextServer.Direction" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="start" type="int" /> + <argument index="2" name="end" type="int" /> <description> Returns dominant direction of in the range of text. </description> </method> <method name="shaped_text_get_glyphs" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="Array" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns text glyphs. </description> </method> <method name="shaped_text_get_line_breaks" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="width" type="float"> - </argument> - <argument index="2" name="start" type="int" default="0"> - </argument> - <argument index="3" name="break_flags" type="int" default="48"> - </argument> + <return type="Array" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="width" type="float" /> + <argument index="2" name="start" type="int" default="0" /> + <argument index="3" name="break_flags" type="int" default="48" /> <description> Breaks text to the lines and returns character ranges for each line. </description> </method> <method name="shaped_text_get_line_breaks_adv" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="width" type="PackedFloat32Array"> - </argument> - <argument index="2" name="start" type="int" default="0"> - </argument> - <argument index="3" name="once" type="bool" default="true"> - </argument> - <argument index="4" name="break_flags" type="int" default="48"> - </argument> + <return type="Array" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="width" type="PackedFloat32Array" /> + <argument index="2" name="start" type="int" default="0" /> + <argument index="3" name="once" type="bool" default="true" /> + <argument index="4" name="break_flags" type="int" default="48" /> <description> Breaks text to the lines and columns. Returns character ranges for each segment. </description> </method> <method name="shaped_text_get_object_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="key" type="Variant"> - </argument> + <return type="Rect2" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="key" type="Variant" /> <description> Returns bounding rectangle of the inline object. </description> </method> <method name="shaped_text_get_objects" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="Array" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns array of inline objects. </description> </method> <method name="shaped_text_get_orientation" qualifiers="const"> - <return type="int" enum="TextServer.Orientation"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="int" enum="TextServer.Orientation" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns text orientation. </description> </method> <method name="shaped_text_get_parent" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="RID" /> + <argument index="0" name="shaped" type="RID" /> <description> Sets text orientation. </description> </method> <method name="shaped_text_get_preserve_control" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns [code]true[/code] if text buffer is configured to display control characters. </description> </method> <method name="shaped_text_get_preserve_invalid" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns [code]true[/code] if text buffer is configured to display hexadecimal codes in place of invalid characters. Note: If set to [code]false[/code], nothing is displayed in place of invalid characters. </description> </method> <method name="shaped_text_get_range" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns substring buffer character range in the parent buffer. </description> </method> <method name="shaped_text_get_selection" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="start" type="int"> - </argument> - <argument index="2" name="end" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="start" type="int" /> + <argument index="2" name="end" type="int" /> <description> Returns selection rectangles for the specified character range. </description> </method> <method name="shaped_text_get_size" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="Vector2" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns size of the text. </description> </method> <method name="shaped_text_get_underline_position" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns pixel offset of the underline below the baseline. </description> </method> <method name="shaped_text_get_underline_thickness" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns thickness of the underline. </description> </method> <method name="shaped_text_get_width" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="float" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns width (for horizontal layout) or height (for vertical) of the text. </description> </method> <method name="shaped_text_get_word_breaks" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="Array" /> + <argument index="0" name="shaped" type="RID" /> <description> Breaks text into words and returns array of character ranges. </description> </method> <method name="shaped_text_hit_test_grapheme" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="coords" type="float"> - </argument> + <return type="int" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="coords" type="float" /> <description> Returns grapheme index at the specified pixel offset at the baseline, or [code]-1[/code] if none is found. </description> </method> <method name="shaped_text_hit_test_position" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="coords" type="float"> - </argument> + <return type="int" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="coords" type="float" /> <description> Returns caret character offset at the specified pixel offset at the baseline. This function always returns a valid position. </description> </method> <method name="shaped_text_is_ready" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="shaped" type="RID" /> <description> Returns [code]true[/code] if buffer is successfully shaped. </description> </method> <method name="shaped_text_next_grapheme_pos"> - <return type="int"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="pos" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="pos" type="int" /> <description> Returns composite character end position closest to the [code]pos[/code]. </description> </method> <method name="shaped_text_overrun_trim_to_width"> - <return type="void"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="width" type="float" default="0"> - </argument> - <argument index="2" name="overrun_trim_flags" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="width" type="float" default="0" /> + <argument index="2" name="overrun_trim_flags" type="int" default="0" /> <description> Trims text if it exceeds the given width. </description> </method> <method name="shaped_text_prev_grapheme_pos"> - <return type="int"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="pos" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="pos" type="int" /> <description> Returns composite character start position closest to the [code]pos[/code]. </description> </method> <method name="shaped_text_resize_object"> - <return type="bool"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="key" type="Variant"> - </argument> - <argument index="2" name="size" type="Vector2"> - </argument> - <argument index="3" name="inline_align" type="int" enum="VAlign" default="1"> - </argument> + <return type="bool" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="key" type="Variant" /> + <argument index="2" name="size" type="Vector2" /> + <argument index="3" name="inline_align" type="int" enum="VAlign" default="1" /> <description> Sets new size and alignment of embedded object. </description> </method> <method name="shaped_text_set_bidi_override"> - <return type="void"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="override" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="override" type="Array" /> <description> Overrides BiDi for the structured text. Override ranges should cover full source text without overlaps. BiDi algorithm will be used on each range separately. </description> </method> <method name="shaped_text_set_direction"> - <return type="void"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="direction" type="int" enum="TextServer.Direction" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="direction" type="int" enum="TextServer.Direction" default="0" /> <description> Sets desired text direction. If set to [code]TEXT_DIRECTION_AUTO[/code], direction will be detected based on the buffer contents and current locale. Note: Direction is ignored if server does not support [code]FEATURE_BIDI_LAYOUT[/code] feature. </description> </method> <method name="shaped_text_set_orientation"> - <return type="void"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="orientation" type="int" enum="TextServer.Orientation" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="orientation" type="int" enum="TextServer.Orientation" default="0" /> <description> Sets desired text orientation. Note: Orientation is ignored if server does not support [code]FEATURE_VERTICAL_LAYOUT[/code] feature. </description> </method> <method name="shaped_text_set_preserve_control"> - <return type="void"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> If set to [code]true[/code] text buffer will display control characters. </description> </method> <method name="shaped_text_set_preserve_invalid"> - <return type="void"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="enabled" type="bool" /> <description> If set to [code]true[/code] text buffer will display invalid characters as hexadecimal codes, otherwise nothing is displayed. </description> </method> <method name="shaped_text_shape"> - <return type="bool"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> + <return type="bool" /> + <argument index="0" name="shaped" type="RID" /> <description> Shapes buffer if it's not shaped. Returns [code]true[/code] if the string is shaped successfully. Note: It is not necessary to call this function manually, buffer will be shaped automatically as soon as any of its output data is requested. </description> </method> <method name="shaped_text_substr" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="start" type="int"> - </argument> - <argument index="2" name="length" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="start" type="int" /> + <argument index="2" name="length" type="int" /> <description> Returns text buffer for the substring of the text in the [code]shaped[/code] text buffer (including inline objects). </description> </method> <method name="shaped_text_tab_align"> - <return type="float"> - </return> - <argument index="0" name="shaped" type="RID"> - </argument> - <argument index="1" name="tab_stops" type="PackedFloat32Array"> - </argument> + <return type="float" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="tab_stops" type="PackedFloat32Array" /> <description> Aligns shaped text to the given tab-stops. </description> </method> <method name="tag_to_name"> - <return type="String"> - </return> - <argument index="0" name="tag" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="tag" type="int" /> <description> Converts OpenType tag to readable feature, variation, script or language name. </description> diff --git a/doc/classes/TextServerManager.xml b/doc/classes/TextServerManager.xml index 29586f30b4..b1dd314544 100644 --- a/doc/classes/TextServerManager.xml +++ b/doc/classes/TextServerManager.xml @@ -11,67 +11,54 @@ </tutorials> <methods> <method name="find_interface" qualifiers="const"> - <return type="TextServer"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="TextServer" /> + <argument index="0" name="name" type="String" /> <description> Finds an interface by its name. </description> </method> <method name="get_interface" qualifiers="const"> - <return type="TextServer"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="TextServer" /> + <argument index="0" name="index" type="int" /> <description> Returns the interface registered at a given index. </description> </method> <method name="get_interface_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of interfaces currently registered. </description> </method> <method name="get_interface_features" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> <description> Returns text server supported features (binary OR). </description> </method> <method name="get_interface_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="index" type="int" /> <description> Returns the interface name registered at a given index. </description> </method> <method name="get_interfaces" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns a list of available interfaces the index and name of each interface. </description> </method> <method name="get_primary_interface" qualifiers="const"> - <return type="TextServer"> - </return> + <return type="TextServer" /> <description> Returns the primary [TextServer] interface. </description> </method> <method name="set_primary_interface"> - <return type="bool"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="index" type="int" /> <description> Sets (and initializes it if required) interface registered at a given index as the primary. Invalidates all references to the fonts and text buffers. </description> diff --git a/doc/classes/Texture2D.xml b/doc/classes/Texture2D.xml index 35b719ae48..bf5ddeb4ab 100644 --- a/doc/classes/Texture2D.xml +++ b/doc/classes/Texture2D.xml @@ -13,87 +13,64 @@ </tutorials> <methods> <method name="draw" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> - <argument index="2" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="3" name="transpose" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_item" type="RID" /> + <argument index="1" name="position" type="Vector2" /> + <argument index="2" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="3" name="transpose" type="bool" default="false" /> <description> Draws the texture using a [CanvasItem] with the [RenderingServer] API at the specified [code]position[/code]. </description> </method> <method name="draw_rect" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <argument index="2" name="tile" type="bool"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="4" name="transpose" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_item" type="RID" /> + <argument index="1" name="rect" type="Rect2" /> + <argument index="2" name="tile" type="bool" /> + <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="4" name="transpose" type="bool" default="false" /> <description> Draws the texture using a [CanvasItem] with the [RenderingServer] API. </description> </method> <method name="draw_rect_region" qualifiers="const"> - <return type="void"> - </return> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <argument index="2" name="src_rect" type="Rect2"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)"> - </argument> - <argument index="4" name="transpose" type="bool" default="false"> - </argument> - <argument index="5" name="clip_uv" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="canvas_item" type="RID" /> + <argument index="1" name="rect" type="Rect2" /> + <argument index="2" name="src_rect" type="Rect2" /> + <argument index="3" name="modulate" type="Color" default="Color(1, 1, 1, 1)" /> + <argument index="4" name="transpose" type="bool" default="false" /> + <argument index="5" name="clip_uv" type="bool" default="true" /> <description> Draws a part of the texture using a [CanvasItem] with the [RenderingServer] API. </description> </method> <method name="get_height" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the texture height. </description> </method> <method name="get_image" qualifiers="const"> - <return type="Image"> - </return> + <return type="Image" /> <description> Returns an [Image] that is a copy of data from this [Texture2D]. [Image]s can be accessed and manipulated directly. </description> </method> <method name="get_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the texture size. </description> </method> <method name="get_width" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the texture width. </description> </method> <method name="has_alpha" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this [Texture2D] has an alpha channel. </description> diff --git a/doc/classes/Texture3D.xml b/doc/classes/Texture3D.xml index 85e940716d..8ba0d7d4b9 100644 --- a/doc/classes/Texture3D.xml +++ b/doc/classes/Texture3D.xml @@ -8,38 +8,32 @@ </tutorials> <methods> <method name="get_data" qualifiers="const"> - <return type="Image[]"> - </return> + <return type="Image[]" /> <description> </description> </method> <method name="get_depth" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_format" qualifiers="const"> - <return type="int" enum="Image.Format"> - </return> + <return type="int" enum="Image.Format" /> <description> </description> </method> <method name="get_height" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_width" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="has_mipmaps" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> diff --git a/doc/classes/TextureLayered.xml b/doc/classes/TextureLayered.xml index d81c3c7c5a..dd8c709049 100644 --- a/doc/classes/TextureLayered.xml +++ b/doc/classes/TextureLayered.xml @@ -10,50 +10,42 @@ </tutorials> <methods> <method name="get_format" qualifiers="const"> - <return type="int" enum="Image.Format"> - </return> + <return type="int" enum="Image.Format" /> <description> Returns the current format being used by this texture. See [enum Image.Format] for details. </description> </method> <method name="get_height" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the height of the texture. Height is typically represented by the Y-axis. </description> </method> <method name="get_layer_data" qualifiers="const"> - <return type="Image"> - </return> - <argument index="0" name="layer" type="int"> - </argument> + <return type="Image" /> + <argument index="0" name="layer" type="int" /> <description> Returns an [Image] resource with the data from specified [code]layer[/code]. </description> </method> <method name="get_layered_type" qualifiers="const"> - <return type="int" enum="TextureLayered.LayeredType"> - </return> + <return type="int" enum="TextureLayered.LayeredType" /> <description> </description> </method> <method name="get_layers" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_width" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the width of the texture. Width is typically represented by the X-axis. </description> </method> <method name="has_mipmaps" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> diff --git a/doc/classes/TextureProgressBar.xml b/doc/classes/TextureProgressBar.xml index 59cde536ad..9da89ebe43 100644 --- a/doc/classes/TextureProgressBar.xml +++ b/doc/classes/TextureProgressBar.xml @@ -10,20 +10,15 @@ </tutorials> <methods> <method name="get_stretch_margin" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> + <return type="int" /> + <argument index="0" name="margin" type="int" enum="Side" /> <description> </description> </method> <method name="set_stretch_margin"> - <return type="void"> - </return> - <argument index="0" name="margin" type="int" enum="Side"> - </argument> - <argument index="1" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="margin" type="int" enum="Side" /> + <argument index="1" name="value" type="int" /> <description> </description> </method> diff --git a/doc/classes/Theme.xml b/doc/classes/Theme.xml index 969d8ab2a4..1124fb8084 100644 --- a/doc/classes/Theme.xml +++ b/doc/classes/Theme.xml @@ -12,625 +12,464 @@ </tutorials> <methods> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears all values on the theme. </description> </method> <method name="clear_color"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Clears the [Color] at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="clear_constant"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Clears the constant at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="clear_font"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Clears the [Font] at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="clear_font_size"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Clears the font size [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="clear_icon"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Clears the icon at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="clear_stylebox"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Clears [StyleBox] at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="clear_theme_item"> - <return type="void"> - </return> - <argument index="0" name="data_type" type="int" enum="Theme.DataType"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> - <argument index="2" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="data_type" type="int" enum="Theme.DataType" /> + <argument index="1" name="name" type="StringName" /> + <argument index="2" name="theme_type" type="StringName" /> <description> Clears the theme item of [code]data_type[/code] at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="clear_type_variation"> - <return type="void"> - </return> - <argument index="0" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="theme_type" type="StringName" /> <description> Unmarks [code]theme_type[/code] as being a variation of any other type. </description> </method> <method name="copy_default_theme"> - <return type="void"> - </return> + <return type="void" /> <description> Sets the theme's values to a copy of the default theme values. </description> </method> <method name="copy_theme"> - <return type="void"> - </return> - <argument index="0" name="other" type="Theme"> - </argument> + <return type="void" /> + <argument index="0" name="other" type="Theme" /> <description> Sets the theme's values to a copy of a given theme. </description> </method> <method name="get_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="Color" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns the [Color] at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="get_color_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="theme_type" type="String"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="theme_type" type="String" /> <description> Returns all the [Color]s as a [PackedStringArray] filled with each [Color]'s name, for use in [method get_color], if the theme has [code]theme_type[/code]. </description> </method> <method name="get_color_type_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns all the [Color] types as a [PackedStringArray] filled with unique type names, for use in [method get_color] and/or [method get_color_list]. </description> </method> <method name="get_constant" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns the constant at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="get_constant_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="theme_type" type="String"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="theme_type" type="String" /> <description> Returns all the constants as a [PackedStringArray] filled with each constant's name, for use in [method get_constant], if the theme has [code]theme_type[/code]. </description> </method> <method name="get_constant_type_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns all the constant types as a [PackedStringArray] filled with unique type names, for use in [method get_constant] and/or [method get_constant_list]. </description> </method> <method name="get_font" qualifiers="const"> - <return type="Font"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="Font" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns the [Font] at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="get_font_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="theme_type" type="String"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="theme_type" type="String" /> <description> Returns all the [Font]s as a [PackedStringArray] filled with each [Font]'s name, for use in [method get_font], if the theme has [code]theme_type[/code]. </description> </method> <method name="get_font_size" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns the font size at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="get_font_size_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="theme_type" type="String"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="theme_type" type="String" /> <description> Returns all the font sizes as a [PackedStringArray] filled with each font size name, for use in [method get_font_size], if the theme has [code]theme_type[/code]. </description> </method> <method name="get_font_size_type_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns all the font size types as a [PackedStringArray] filled with unique type names, for use in [method get_font_size] and/or [method get_font_size_list]. </description> </method> <method name="get_font_type_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns all the [Font] types as a [PackedStringArray] filled with unique type names, for use in [method get_font] and/or [method get_font_list]. </description> </method> <method name="get_icon" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns the icon [Texture2D] at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="get_icon_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="theme_type" type="String"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="theme_type" type="String" /> <description> Returns all the icons as a [PackedStringArray] filled with each [Texture2D]'s name, for use in [method get_icon], if the theme has [code]theme_type[/code]. </description> </method> <method name="get_icon_type_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns all the icon types as a [PackedStringArray] filled with unique type names, for use in [method get_icon] and/or [method get_icon_list]. </description> </method> <method name="get_stylebox" qualifiers="const"> - <return type="StyleBox"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="StyleBox" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns the [StyleBox] at [code]name[/code] if the theme has [code]theme_type[/code]. Valid [code]name[/code]s may be found using [method get_stylebox_list]. Valid [code]theme_type[/code]s may be found using [method get_stylebox_type_list]. </description> </method> <method name="get_stylebox_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="theme_type" type="String"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="theme_type" type="String" /> <description> Returns all the [StyleBox]s as a [PackedStringArray] filled with each [StyleBox]'s name, for use in [method get_stylebox], if the theme has [code]theme_type[/code]. Valid [code]theme_type[/code]s may be found using [method get_stylebox_type_list]. </description> </method> <method name="get_stylebox_type_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns all the [StyleBox] types as a [PackedStringArray] filled with unique type names, for use in [method get_stylebox] and/or [method get_stylebox_list]. </description> </method> <method name="get_theme_item" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="data_type" type="int" enum="Theme.DataType"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> - <argument index="2" name="theme_type" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="data_type" type="int" enum="Theme.DataType" /> + <argument index="1" name="name" type="StringName" /> + <argument index="2" name="theme_type" type="StringName" /> <description> Returns the theme item of [code]data_type[/code] at [code]name[/code] if the theme has [code]theme_type[/code]. Valid [code]name[/code]s may be found using [method get_theme_item_list] or a data type specific method. Valid [code]theme_type[/code]s may be found using [method get_theme_item_type_list] or a data type specific method. </description> </method> <method name="get_theme_item_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="data_type" type="int" enum="Theme.DataType"> - </argument> - <argument index="1" name="theme_type" type="String"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="data_type" type="int" enum="Theme.DataType" /> + <argument index="1" name="theme_type" type="String" /> <description> Returns all the theme items of [code]data_type[/code] as a [PackedStringArray] filled with each theme items's name, for use in [method get_theme_item] or a data type specific method, if the theme has [code]theme_type[/code]. Valid [code]theme_type[/code]s may be found using [method get_theme_item_type_list] or a data type specific method. </description> </method> <method name="get_theme_item_type_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="data_type" type="int" enum="Theme.DataType"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="data_type" type="int" enum="Theme.DataType" /> <description> Returns all the theme items of [code]data_type[/code] types as a [PackedStringArray] filled with unique type names, for use in [method get_theme_item], [method get_theme_item_list] or data type specific methods. </description> </method> <method name="get_type_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns all the theme types as a [PackedStringArray] filled with unique type names, for use in other [code]get_*[/code] functions of this theme. </description> </method> <method name="get_type_variation_base" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="theme_type" type="StringName"> - </argument> + <return type="StringName" /> + <argument index="0" name="theme_type" type="StringName" /> <description> Returns the base theme type if [code]theme_type[/code] is a valid variation type. Returns an empty string otherwise. </description> </method> <method name="get_type_variation_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> - <argument index="0" name="base_type" type="StringName"> - </argument> + <return type="PackedStringArray" /> + <argument index="0" name="base_type" type="StringName" /> <description> Returns a list of all variation for the given [code]base_type[/code]. </description> </method> <method name="has_color" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns [code]true[/code] if [Color] with [code]name[/code] is in [code]theme_type[/code]. Returns [code]false[/code] if the theme does not have [code]theme_type[/code]. </description> </method> <method name="has_constant" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns [code]true[/code] if constant with [code]name[/code] is in [code]theme_type[/code]. Returns [code]false[/code] if the theme does not have [code]theme_type[/code]. </description> </method> <method name="has_font" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns [code]true[/code] if [Font] with [code]name[/code] is in [code]theme_type[/code]. Returns [code]false[/code] if the theme does not have [code]theme_type[/code]. </description> </method> <method name="has_font_size" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns [code]true[/code] if font size with [code]name[/code] is in [code]theme_type[/code]. Returns [code]false[/code] if the theme does not have [code]theme_type[/code]. </description> </method> <method name="has_icon" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns [code]true[/code] if icon [Texture2D] with [code]name[/code] is in [code]theme_type[/code]. Returns [code]false[/code] if the theme does not have [code]theme_type[/code]. </description> </method> <method name="has_stylebox" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> <description> Returns [code]true[/code] if [StyleBox] with [code]name[/code] is in [code]theme_type[/code]. Returns [code]false[/code] if the theme does not have [code]theme_type[/code]. </description> </method> <method name="has_theme_item" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="data_type" type="int" enum="Theme.DataType"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> - <argument index="2" name="theme_type" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="data_type" type="int" enum="Theme.DataType" /> + <argument index="1" name="name" type="StringName" /> + <argument index="2" name="theme_type" type="StringName" /> <description> Returns [code]true[/code] if a theme item of [code]data_type[/code] with [code]name[/code] is in [code]theme_type[/code]. Returns [code]false[/code] if the theme does not have [code]theme_type[/code]. </description> </method> <method name="is_type_variation" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="theme_type" type="StringName"> - </argument> - <argument index="1" name="base_type" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="theme_type" type="StringName" /> + <argument index="1" name="base_type" type="StringName" /> <description> Returns [code]true[/code] if [code]theme_type[/code] is marked as a variation of [code]base_type[/code] in this theme. </description> </method> <method name="rename_color"> - <return type="void"> - </return> - <argument index="0" name="old_name" type="StringName"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> - <argument index="2" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="old_name" type="StringName" /> + <argument index="1" name="name" type="StringName" /> + <argument index="2" name="theme_type" type="StringName" /> <description> Renames the [Color] at [code]old_name[/code] to [code]name[/code] if the theme has [code]theme_type[/code]. If [code]name[/code] is already taken, this method fails. </description> </method> <method name="rename_constant"> - <return type="void"> - </return> - <argument index="0" name="old_name" type="StringName"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> - <argument index="2" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="old_name" type="StringName" /> + <argument index="1" name="name" type="StringName" /> + <argument index="2" name="theme_type" type="StringName" /> <description> Renames the constant at [code]old_name[/code] to [code]name[/code] if the theme has [code]theme_type[/code]. If [code]name[/code] is already taken, this method fails. </description> </method> <method name="rename_font"> - <return type="void"> - </return> - <argument index="0" name="old_name" type="StringName"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> - <argument index="2" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="old_name" type="StringName" /> + <argument index="1" name="name" type="StringName" /> + <argument index="2" name="theme_type" type="StringName" /> <description> Renames the [Font] at [code]old_name[/code] to [code]name[/code] if the theme has [code]theme_type[/code]. If [code]name[/code] is already taken, this method fails. </description> </method> <method name="rename_font_size"> - <return type="void"> - </return> - <argument index="0" name="old_name" type="StringName"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> - <argument index="2" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="old_name" type="StringName" /> + <argument index="1" name="name" type="StringName" /> + <argument index="2" name="theme_type" type="StringName" /> <description> Renames the font size [code]old_name[/code] to [code]name[/code] if the theme has [code]theme_type[/code]. If [code]name[/code] is already taken, this method fails. </description> </method> <method name="rename_icon"> - <return type="void"> - </return> - <argument index="0" name="old_name" type="StringName"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> - <argument index="2" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="old_name" type="StringName" /> + <argument index="1" name="name" type="StringName" /> + <argument index="2" name="theme_type" type="StringName" /> <description> Renames the icon at [code]old_name[/code] to [code]name[/code] if the theme has [code]theme_type[/code]. If [code]name[/code] is already taken, this method fails. </description> </method> <method name="rename_stylebox"> - <return type="void"> - </return> - <argument index="0" name="old_name" type="StringName"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> - <argument index="2" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="old_name" type="StringName" /> + <argument index="1" name="name" type="StringName" /> + <argument index="2" name="theme_type" type="StringName" /> <description> Renames [StyleBox] at [code]old_name[/code] to [code]name[/code] if the theme has [code]theme_type[/code]. If [code]name[/code] is already taken, this method fails. </description> </method> <method name="rename_theme_item"> - <return type="void"> - </return> - <argument index="0" name="data_type" type="int" enum="Theme.DataType"> - </argument> - <argument index="1" name="old_name" type="StringName"> - </argument> - <argument index="2" name="name" type="StringName"> - </argument> - <argument index="3" name="theme_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="data_type" type="int" enum="Theme.DataType" /> + <argument index="1" name="old_name" type="StringName" /> + <argument index="2" name="name" type="StringName" /> + <argument index="3" name="theme_type" type="StringName" /> <description> Renames the theme item of [code]data_type[/code] at [code]old_name[/code] to [code]name[/code] if the theme has [code]theme_type[/code]. If [code]name[/code] is already taken, this method fails. </description> </method> <method name="set_color"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> + <argument index="2" name="color" type="Color" /> <description> Sets the theme's [Color] to [code]color[/code] at [code]name[/code] in [code]theme_type[/code]. Creates [code]theme_type[/code] if the theme does not have it. </description> </method> <method name="set_constant"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> - <argument index="2" name="constant" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> + <argument index="2" name="constant" type="int" /> <description> Sets the theme's constant to [code]constant[/code] at [code]name[/code] in [code]theme_type[/code]. Creates [code]theme_type[/code] if the theme does not have it. </description> </method> <method name="set_font"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> - <argument index="2" name="font" type="Font"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> + <argument index="2" name="font" type="Font" /> <description> Sets the theme's [Font] to [code]font[/code] at [code]name[/code] in [code]theme_type[/code]. Creates [code]theme_type[/code] if the theme does not have it. </description> </method> <method name="set_font_size"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> - <argument index="2" name="font_size" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> + <argument index="2" name="font_size" type="int" /> <description> Sets the theme's font size to [code]font_size[/code] at [code]name[/code] in [code]theme_type[/code]. Creates [code]theme_type[/code] if the theme does not have it. </description> </method> <method name="set_icon"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> - <argument index="2" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> + <argument index="2" name="texture" type="Texture2D" /> <description> Sets the theme's icon [Texture2D] to [code]texture[/code] at [code]name[/code] in [code]theme_type[/code]. Creates [code]theme_type[/code] if the theme does not have it. </description> </method> <method name="set_stylebox"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName"> - </argument> - <argument index="2" name="texture" type="StyleBox"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" /> + <argument index="2" name="texture" type="StyleBox" /> <description> Sets theme's [StyleBox] to [code]stylebox[/code] at [code]name[/code] in [code]theme_type[/code]. Creates [code]theme_type[/code] if the theme does not have it. </description> </method> <method name="set_theme_item"> - <return type="void"> - </return> - <argument index="0" name="data_type" type="int" enum="Theme.DataType"> - </argument> - <argument index="1" name="name" type="StringName"> - </argument> - <argument index="2" name="theme_type" type="StringName"> - </argument> - <argument index="3" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="data_type" type="int" enum="Theme.DataType" /> + <argument index="1" name="name" type="StringName" /> + <argument index="2" name="theme_type" type="StringName" /> + <argument index="3" name="value" type="Variant" /> <description> Sets the theme item of [code]data_type[/code] to [code]value[/code] at [code]name[/code] in [code]theme_type[/code]. Does nothing if the [code]value[/code] type does not match [code]data_type[/code]. @@ -638,12 +477,9 @@ </description> </method> <method name="set_type_variation"> - <return type="void"> - </return> - <argument index="0" name="theme_type" type="StringName"> - </argument> - <argument index="1" name="base_type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="theme_type" type="StringName" /> + <argument index="1" name="base_type" type="StringName" /> <description> Marks [code]theme_type[/code] as being a variation of [code]base_type[/code]. This adds [code]theme_type[/code] as a suggested option for [member Control.theme_type_variation] on a [Control] that is of the [code]base_type[/code] class. diff --git a/doc/classes/Thread.xml b/doc/classes/Thread.xml index 5ac9416b72..b553aad518 100644 --- a/doc/classes/Thread.xml +++ b/doc/classes/Thread.xml @@ -14,38 +14,30 @@ </tutorials> <methods> <method name="get_id" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the current [Thread]'s ID, uniquely identifying it among all threads. If the [Thread] is not running this returns an empty string. </description> </method> <method name="is_active" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this [Thread] is currently active. An active [Thread] cannot start work on a new method but can be joined with [method wait_to_finish]. </description> </method> <method name="start"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="instance" type="Object"> - </argument> - <argument index="1" name="method" type="StringName"> - </argument> - <argument index="2" name="userdata" type="Variant" default="null"> - </argument> - <argument index="3" name="priority" type="int" enum="Thread.Priority" default="1"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="instance" type="Object" /> + <argument index="1" name="method" type="StringName" /> + <argument index="2" name="userdata" type="Variant" default="null" /> + <argument index="3" name="priority" type="int" enum="Thread.Priority" default="1" /> <description> Starts a new [Thread] that runs [code]method[/code] on object [code]instance[/code] with [code]userdata[/code] passed as an argument. Even if no userdata is passed, [code]method[/code] must accept one argument and it will be null. The [code]priority[/code] of the [Thread] can be changed by passing a value from the [enum Priority] enum. Returns [constant OK] on success, or [constant ERR_CANT_CREATE] on failure. </description> </method> <method name="wait_to_finish"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Joins the [Thread] and waits for it to finish. Returns what the method called returned. </description> diff --git a/doc/classes/TileData.xml b/doc/classes/TileData.xml index bb793024eb..b5031cfc63 100644 --- a/doc/classes/TileData.xml +++ b/doc/classes/TileData.xml @@ -8,208 +8,149 @@ </tutorials> <methods> <method name="add_collision_polygon"> - <return type="void"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="layer_id" type="int" /> <description> </description> </method> <method name="get_collision_polygon_one_way_margin" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="polygon_index" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="polygon_index" type="int" /> <description> </description> </method> <method name="get_collision_polygon_points" qualifiers="const"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="polygon_index" type="int"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="polygon_index" type="int" /> <description> </description> </method> <method name="get_collision_polygons_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="layer_id" type="int" /> <description> </description> </method> <method name="get_custom_data" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="layer_name" type="String"> - </argument> + <return type="Variant" /> + <argument index="0" name="layer_name" type="String" /> <description> </description> </method> <method name="get_custom_data_by_layer_id" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="layer_id" type="int" /> <description> </description> </method> <method name="get_navigation_polygon" qualifiers="const"> - <return type="NavigationPolygon"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> + <return type="NavigationPolygon" /> + <argument index="0" name="layer_id" type="int" /> <description> </description> </method> <method name="get_occluder" qualifiers="const"> - <return type="OccluderPolygon2D"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> + <return type="OccluderPolygon2D" /> + <argument index="0" name="layer_id" type="int" /> <description> </description> </method> <method name="get_peering_bit_terrain" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="peering_bit" type="int" enum="TileSet.CellNeighbor"> - </argument> + <return type="int" /> + <argument index="0" name="peering_bit" type="int" enum="TileSet.CellNeighbor" /> <description> </description> </method> <method name="is_collision_polygon_one_way" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="polygon_index" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="polygon_index" type="int" /> <description> </description> </method> <method name="remove_collision_polygon"> - <return type="void"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="polygon_index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="polygon_index" type="int" /> <description> </description> </method> <method name="set_collision_polygon_one_way"> - <return type="void"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="polygon_index" type="int"> - </argument> - <argument index="2" name="one_way" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="polygon_index" type="int" /> + <argument index="2" name="one_way" type="bool" /> <description> </description> </method> <method name="set_collision_polygon_one_way_margin"> - <return type="void"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="polygon_index" type="int"> - </argument> - <argument index="2" name="one_way_margin" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="polygon_index" type="int" /> + <argument index="2" name="one_way_margin" type="float" /> <description> </description> </method> <method name="set_collision_polygon_points"> - <return type="void"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="polygon_index" type="int"> - </argument> - <argument index="2" name="polygon" type="PackedVector2Array"> - </argument> + <return type="void" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="polygon_index" type="int" /> + <argument index="2" name="polygon" type="PackedVector2Array" /> <description> </description> </method> <method name="set_collision_polygons_count"> - <return type="void"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="polygons_count" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="polygons_count" type="int" /> <description> </description> </method> <method name="set_custom_data"> - <return type="void"> - </return> - <argument index="0" name="layer_name" type="String"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="layer_name" type="String" /> + <argument index="1" name="value" type="Variant" /> <description> </description> </method> <method name="set_custom_data_by_layer_id"> - <return type="void"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="value" type="Variant" /> <description> </description> </method> <method name="set_navigation_polygon"> - <return type="void"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="navigation_polygon" type="NavigationPolygon"> - </argument> + <return type="void" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="navigation_polygon" type="NavigationPolygon" /> <description> </description> </method> <method name="set_occluder"> - <return type="void"> - </return> - <argument index="0" name="layer_id" type="int"> - </argument> - <argument index="1" name="occluder_polygon" type="OccluderPolygon2D"> - </argument> + <return type="void" /> + <argument index="0" name="layer_id" type="int" /> + <argument index="1" name="occluder_polygon" type="OccluderPolygon2D" /> <description> </description> </method> <method name="set_peering_bit_terrain"> - <return type="void"> - </return> - <argument index="0" name="peering_bit" type="int" enum="TileSet.CellNeighbor"> - </argument> - <argument index="1" name="terrain" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="peering_bit" type="int" enum="TileSet.CellNeighbor" /> + <argument index="1" name="terrain" type="int" /> <description> </description> </method> <method name="tile_get_material" qualifiers="const"> - <return type="ShaderMaterial"> - </return> + <return type="ShaderMaterial" /> <description> </description> </method> <method name="tile_set_material"> - <return type="void"> - </return> - <argument index="0" name="material" type="ShaderMaterial"> - </argument> + <return type="void" /> + <argument index="0" name="material" type="ShaderMaterial" /> <description> </description> </method> diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index e6f696d27c..957619ad81 100644 --- a/doc/classes/TileMap.xml +++ b/doc/classes/TileMap.xml @@ -18,117 +18,89 @@ </tutorials> <methods> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears all cells. </description> </method> <method name="fix_invalid_tiles"> - <return type="void"> - </return> + <return type="void" /> <description> Clears cells that do not exist in the tileset. </description> </method> <method name="get_cell_alternative_tile" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="coords" type="Vector2i"> - </argument> - <argument index="1" name="use_proxies" type="bool"> - </argument> + <return type="int" /> + <argument index="0" name="coords" type="Vector2i" /> + <argument index="1" name="use_proxies" type="bool" /> <description> </description> </method> <method name="get_cell_atlas_coords" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="coords" type="Vector2i"> - </argument> - <argument index="1" name="use_proxies" type="bool"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="coords" type="Vector2i" /> + <argument index="1" name="use_proxies" type="bool" /> <description> </description> </method> <method name="get_cell_source_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="coords" type="Vector2i"> - </argument> - <argument index="1" name="use_proxies" type="bool"> - </argument> + <return type="int" /> + <argument index="0" name="coords" type="Vector2i" /> + <argument index="1" name="use_proxies" type="bool" /> <description> </description> </method> <method name="get_neighbor_cell" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="coords" type="Vector2i"> - </argument> - <argument index="1" name="neighbor" type="int" enum="TileSet.CellNeighbor"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="coords" type="Vector2i" /> + <argument index="1" name="neighbor" type="int" enum="TileSet.CellNeighbor" /> <description> </description> </method> <method name="get_surrounding_tiles"> - <return type="Vector2i[]"> - </return> - <argument index="0" name="coords" type="Vector2i"> - </argument> + <return type="Vector2i[]" /> + <argument index="0" name="coords" type="Vector2i" /> <description> </description> </method> <method name="get_used_cells" qualifiers="const"> - <return type="Vector2i[]"> - </return> + <return type="Vector2i[]" /> <description> Returns a [Vector2] array with the positions of all cells containing a tile from the tileset (i.e. a tile index different from [code]-1[/code]). </description> </method> <method name="get_used_rect"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns a rectangle enclosing the used (non-empty) tiles of the map. </description> </method> <method name="map_to_world" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="map_position" type="Vector2i"> - </argument> + <return type="Vector2" /> + <argument index="0" name="map_position" type="Vector2i" /> <description> Returns the local position corresponding to the given tilemap (grid-based) coordinates. </description> </method> <method name="set_cell"> - <return type="void"> - </return> - <argument index="0" name="coords" type="Vector2i"> - </argument> - <argument index="1" name="source_id" type="int" default="-1"> - </argument> - <argument index="2" name="atlas_coords" type="Vector2i" default="Vector2i(-1, -1)"> - </argument> - <argument index="3" name="alternative_tile" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="coords" type="Vector2i" /> + <argument index="1" name="source_id" type="int" default="-1" /> + <argument index="2" name="atlas_coords" type="Vector2i" default="Vector2i(-1, -1)" /> + <argument index="3" name="alternative_tile" type="int" default="-1" /> <description> Sets the tile index for the cell given by a Vector2i. </description> </method> <method name="update_dirty_quadrants"> - <return type="void"> - </return> + <return type="void" /> <description> Updates the tile map's quadrants, allowing things such as navigation and collision shapes to be immediately used if modified. </description> </method> <method name="world_to_map" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="world_position" type="Vector2"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="world_position" type="Vector2" /> <description> Returns the tilemap (grid-based) coordinates corresponding to the given local position. </description> diff --git a/doc/classes/TileSet.xml b/doc/classes/TileSet.xml index 8185b09a30..27e31f25a4 100644 --- a/doc/classes/TileSet.xml +++ b/doc/classes/TileSet.xml @@ -18,410 +18,292 @@ </tutorials> <methods> <method name="add_source"> - <return type="int"> - </return> - <argument index="0" name="atlas_source_id_override" type="TileSetSource"> - </argument> - <argument index="1" name="arg1" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="atlas_source_id_override" type="TileSetSource" /> + <argument index="1" name="arg1" type="int" default="-1" /> <description> </description> </method> <method name="cleanup_invalid_tile_proxies"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="clear_tile_proxies"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="get_alternative_level_tile_proxy"> - <return type="Array"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> - <argument index="1" name="coords_from" type="Vector2i"> - </argument> - <argument index="2" name="alternative_from" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="source_from" type="int" /> + <argument index="1" name="coords_from" type="Vector2i" /> + <argument index="2" name="alternative_from" type="int" /> <description> </description> </method> <method name="get_coords_level_tile_proxy"> - <return type="Array"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> - <argument index="1" name="coords_from" type="Vector2i"> - </argument> + <return type="Array" /> + <argument index="0" name="source_from" type="int" /> + <argument index="1" name="coords_from" type="Vector2i" /> <description> </description> </method> <method name="get_navigation_layer_layers" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="layer_index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="layer_index" type="int" /> <description> </description> </method> <method name="get_next_source_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_occlusion_layer_light_mask" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="arg0" type="int" /> <description> </description> </method> <method name="get_occlusion_layer_sdf_collision" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="arg0" type="int" /> <description> </description> </method> <method name="get_physics_layer_collision_layer" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="layer_index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="layer_index" type="int" /> <description> </description> </method> <method name="get_physics_layer_collision_mask" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="layer_index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="layer_index" type="int" /> <description> </description> </method> <method name="get_physics_layer_physics_material" qualifiers="const"> - <return type="PhysicsMaterial"> - </return> - <argument index="0" name="layer_index" type="int"> - </argument> + <return type="PhysicsMaterial" /> + <argument index="0" name="layer_index" type="int" /> <description> </description> </method> <method name="get_source" qualifiers="const"> - <return type="TileSetSource"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="TileSetSource" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="get_source_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_source_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="get_source_level_tile_proxy"> - <return type="int"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="source_from" type="int" /> <description> </description> </method> <method name="get_terrain_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="terrain_set" type="int"> - </argument> - <argument index="1" name="terrain_index" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="terrain_set" type="int" /> + <argument index="1" name="terrain_index" type="int" /> <description> </description> </method> <method name="get_terrain_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="terrain_set" type="int"> - </argument> - <argument index="1" name="terrain_index" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="terrain_set" type="int" /> + <argument index="1" name="terrain_index" type="int" /> <description> </description> </method> <method name="get_terrain_set_mode" qualifiers="const"> - <return type="int" enum="TileSet.TerrainMode"> - </return> - <argument index="0" name="terrain_set" type="int"> - </argument> + <return type="int" enum="TileSet.TerrainMode" /> + <argument index="0" name="terrain_set" type="int" /> <description> </description> </method> <method name="get_terrains_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="terrain_set" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="terrain_set" type="int" /> <description> </description> </method> <method name="has_alternative_level_tile_proxy"> - <return type="bool"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> - <argument index="1" name="coords_from" type="Vector2i"> - </argument> - <argument index="2" name="alternative_from" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="source_from" type="int" /> + <argument index="1" name="coords_from" type="Vector2i" /> + <argument index="2" name="alternative_from" type="int" /> <description> </description> </method> <method name="has_coords_level_tile_proxy"> - <return type="bool"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> - <argument index="1" name="coords_from" type="Vector2i"> - </argument> + <return type="bool" /> + <argument index="0" name="source_from" type="int" /> + <argument index="1" name="coords_from" type="Vector2i" /> <description> </description> </method> <method name="has_source" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="has_source_level_tile_proxy"> - <return type="bool"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="source_from" type="int" /> <description> </description> </method> <method name="map_tile_proxy" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> - <argument index="1" name="coords_from" type="Vector2i"> - </argument> - <argument index="2" name="alternative_from" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="source_from" type="int" /> + <argument index="1" name="coords_from" type="Vector2i" /> + <argument index="2" name="alternative_from" type="int" /> <description> </description> </method> <method name="remove_alternative_level_tile_proxy"> - <return type="void"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> - <argument index="1" name="coords_from" type="Vector2i"> - </argument> - <argument index="2" name="alternative_from" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="source_from" type="int" /> + <argument index="1" name="coords_from" type="Vector2i" /> + <argument index="2" name="alternative_from" type="int" /> <description> </description> </method> <method name="remove_coords_level_tile_proxy"> - <return type="void"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> - <argument index="1" name="coords_from" type="Vector2i"> - </argument> + <return type="void" /> + <argument index="0" name="source_from" type="int" /> + <argument index="1" name="coords_from" type="Vector2i" /> <description> </description> </method> <method name="remove_source"> - <return type="void"> - </return> - <argument index="0" name="source_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="source_id" type="int" /> <description> </description> </method> <method name="remove_source_level_tile_proxy"> - <return type="void"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="source_from" type="int" /> <description> </description> </method> <method name="set_alternative_level_tile_proxy"> - <return type="void"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> - <argument index="1" name="coords_from" type="Vector2i"> - </argument> - <argument index="2" name="alternative_from" type="int"> - </argument> - <argument index="3" name="source_to" type="int"> - </argument> - <argument index="4" name="coords_to" type="Vector2i"> - </argument> - <argument index="5" name="alternative_to" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="source_from" type="int" /> + <argument index="1" name="coords_from" type="Vector2i" /> + <argument index="2" name="alternative_from" type="int" /> + <argument index="3" name="source_to" type="int" /> + <argument index="4" name="coords_to" type="Vector2i" /> + <argument index="5" name="alternative_to" type="int" /> <description> </description> </method> <method name="set_coords_level_tile_proxy"> - <return type="void"> - </return> - <argument index="0" name="p_source_from" type="int"> - </argument> - <argument index="1" name="coords_from" type="Vector2i"> - </argument> - <argument index="2" name="source_to" type="int"> - </argument> - <argument index="3" name="coords_to" type="Vector2i"> - </argument> + <return type="void" /> + <argument index="0" name="p_source_from" type="int" /> + <argument index="1" name="coords_from" type="Vector2i" /> + <argument index="2" name="source_to" type="int" /> + <argument index="3" name="coords_to" type="Vector2i" /> <description> </description> </method> <method name="set_navigation_layer_layers"> - <return type="void"> - </return> - <argument index="0" name="layer_index" type="int"> - </argument> - <argument index="1" name="layers" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="layer_index" type="int" /> + <argument index="1" name="layers" type="int" /> <description> </description> </method> <method name="set_occlusion_layer_light_mask"> - <return type="void"> - </return> - <argument index="0" name="layer_index" type="int"> - </argument> - <argument index="1" name="light_mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="layer_index" type="int" /> + <argument index="1" name="light_mask" type="int" /> <description> </description> </method> <method name="set_occlusion_layer_sdf_collision"> - <return type="void"> - </return> - <argument index="0" name="layer_index" type="int"> - </argument> - <argument index="1" name="sdf_collision" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="layer_index" type="int" /> + <argument index="1" name="sdf_collision" type="int" /> <description> </description> </method> <method name="set_physics_layer_collision_layer"> - <return type="void"> - </return> - <argument index="0" name="layer_index" type="int"> - </argument> - <argument index="1" name="layer" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="layer_index" type="int" /> + <argument index="1" name="layer" type="int" /> <description> </description> </method> <method name="set_physics_layer_collision_mask"> - <return type="void"> - </return> - <argument index="0" name="layer_index" type="int"> - </argument> - <argument index="1" name="mask" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="layer_index" type="int" /> + <argument index="1" name="mask" type="int" /> <description> </description> </method> <method name="set_physics_layer_physics_material"> - <return type="void"> - </return> - <argument index="0" name="layer_index" type="int"> - </argument> - <argument index="1" name="physics_material" type="PhysicsMaterial"> - </argument> + <return type="void" /> + <argument index="0" name="layer_index" type="int" /> + <argument index="1" name="physics_material" type="PhysicsMaterial" /> <description> </description> </method> <method name="set_source_id"> - <return type="void"> - </return> - <argument index="0" name="source_id" type="int"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="source_id" type="int" /> + <argument index="1" name="arg1" type="int" /> <description> </description> </method> <method name="set_source_level_tile_proxy"> - <return type="void"> - </return> - <argument index="0" name="source_from" type="int"> - </argument> - <argument index="1" name="source_to" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="source_from" type="int" /> + <argument index="1" name="source_to" type="int" /> <description> </description> </method> <method name="set_terrain_color"> - <return type="void"> - </return> - <argument index="0" name="terrain_set" type="int"> - </argument> - <argument index="1" name="terrain_index" type="int"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="terrain_set" type="int" /> + <argument index="1" name="terrain_index" type="int" /> + <argument index="2" name="color" type="Color" /> <description> </description> </method> <method name="set_terrain_name"> - <return type="void"> - </return> - <argument index="0" name="terrain_set" type="int"> - </argument> - <argument index="1" name="terrain_index" type="int"> - </argument> - <argument index="2" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="terrain_set" type="int" /> + <argument index="1" name="terrain_index" type="int" /> + <argument index="2" name="name" type="String" /> <description> </description> </method> <method name="set_terrain_set_mode"> - <return type="void"> - </return> - <argument index="0" name="terrain_set" type="int"> - </argument> - <argument index="1" name="mode" type="int" enum="TileSet.TerrainMode"> - </argument> + <return type="void" /> + <argument index="0" name="terrain_set" type="int" /> + <argument index="1" name="mode" type="int" enum="TileSet.TerrainMode" /> <description> </description> </method> <method name="set_terrains_count"> - <return type="void"> - </return> - <argument index="0" name="terrain_set" type="int"> - </argument> - <argument index="1" name="terrains_count" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="terrain_set" type="int" /> + <argument index="1" name="terrains_count" type="int" /> <description> </description> </method> diff --git a/doc/classes/TileSetAtlasSource.xml b/doc/classes/TileSetAtlasSource.xml index 8482c356d7..8caa3a7c39 100644 --- a/doc/classes/TileSetAtlasSource.xml +++ b/doc/classes/TileSetAtlasSource.xml @@ -8,186 +8,136 @@ </tutorials> <methods> <method name="can_move_tile_in_atlas" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="new_atlas_coords" type="Vector2i" default="Vector2i(-1, -1)"> - </argument> - <argument index="2" name="new_size" type="Vector2i" default="Vector2i(-1, -1)"> - </argument> + <return type="bool" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="new_atlas_coords" type="Vector2i" default="Vector2i(-1, -1)" /> + <argument index="2" name="new_size" type="Vector2i" default="Vector2i(-1, -1)" /> <description> </description> </method> <method name="clear_tiles_outside_texture"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="create_alternative_tile"> - <return type="int"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="alternative_id_override" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="alternative_id_override" type="int" default="-1" /> <description> </description> </method> <method name="create_tile"> - <return type="void"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="size" type="Vector2i" default="Vector2i(1, 1)"> - </argument> + <return type="void" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="size" type="Vector2i" default="Vector2i(1, 1)" /> <description> </description> </method> <method name="get_alternative_tile_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="index" type="int" /> <description> </description> </method> <method name="get_alternative_tiles_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> + <return type="int" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> <description> </description> </method> <method name="get_atlas_grid_size" qualifiers="const"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> </description> </method> <method name="get_next_alternative_tile_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> + <return type="int" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> <description> </description> </method> <method name="get_tile_at_coords" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> <description> </description> </method> <method name="get_tile_data" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="index" type="int"> - </argument> + <return type="Object" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="index" type="int" /> <description> </description> </method> <method name="get_tile_id" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="get_tile_size_in_atlas" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> <description> </description> </method> <method name="get_tile_texture_region" qualifiers="const"> - <return type="Rect2i"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> + <return type="Rect2i" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> <description> </description> </method> <method name="get_tiles_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="has_alternative_tile" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="alternative_tile" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="alternative_tile" type="int" /> <description> </description> </method> <method name="has_tile" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> + <return type="bool" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> <description> </description> </method> <method name="has_tiles_outside_texture"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="move_tile_in_atlas"> - <return type="void"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="new_atlas_coords" type="Vector2i" default="Vector2i(-1, -1)"> - </argument> - <argument index="2" name="new_size" type="Vector2i" default="Vector2i(-1, -1)"> - </argument> + <return type="void" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="new_atlas_coords" type="Vector2i" default="Vector2i(-1, -1)" /> + <argument index="2" name="new_size" type="Vector2i" default="Vector2i(-1, -1)" /> <description> </description> </method> <method name="remove_alternative_tile"> - <return type="void"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="alternative_tile" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="alternative_tile" type="int" /> <description> </description> </method> <method name="remove_tile"> - <return type="void"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> + <return type="void" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> <description> </description> </method> <method name="set_alternative_tile_id"> - <return type="void"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="alternative_tile" type="int"> - </argument> - <argument index="2" name="new_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="alternative_tile" type="int" /> + <argument index="2" name="new_id" type="int" /> <description> </description> </method> diff --git a/doc/classes/TileSetScenesCollectionSource.xml b/doc/classes/TileSetScenesCollectionSource.xml index 1a00eb51c0..a44f519a4c 100644 --- a/doc/classes/TileSetScenesCollectionSource.xml +++ b/doc/classes/TileSetScenesCollectionSource.xml @@ -8,144 +8,107 @@ </tutorials> <methods> <method name="create_scene_tile"> - <return type="int"> - </return> - <argument index="0" name="packed_scene" type="PackedScene"> - </argument> - <argument index="1" name="id_override" type="int" default="-1"> - </argument> + <return type="int" /> + <argument index="0" name="packed_scene" type="PackedScene" /> + <argument index="1" name="id_override" type="int" default="-1" /> <description> </description> </method> <method name="get_alternative_tile_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="index" type="int" /> <description> </description> </method> <method name="get_alternative_tiles_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> + <return type="int" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> <description> </description> </method> <method name="get_next_scene_tile_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_scene_tile_display_placeholder" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> </description> </method> <method name="get_scene_tile_id"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="get_scene_tile_scene" qualifiers="const"> - <return type="PackedScene"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="PackedScene" /> + <argument index="0" name="id" type="int" /> <description> </description> </method> <method name="get_scene_tiles_count"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_tile_id" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="get_tiles_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="has_alternative_tile" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> - <argument index="1" name="alternative_tile" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> + <argument index="1" name="alternative_tile" type="int" /> <description> </description> </method> <method name="has_scene_tile_id"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> </description> </method> <method name="has_tile" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="atlas_coords" type="Vector2i"> - </argument> + <return type="bool" /> + <argument index="0" name="atlas_coords" type="Vector2i" /> <description> </description> </method> <method name="remove_scene_tile"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> </description> </method> <method name="set_scene_tile_display_placeholder"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="display_placeholder" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="display_placeholder" type="bool" /> <description> </description> </method> <method name="set_scene_tile_id"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="new_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="new_id" type="int" /> <description> </description> </method> <method name="set_scene_tile_scene"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="packed_scene" type="PackedScene"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="packed_scene" type="PackedScene" /> <description> </description> </method> diff --git a/doc/classes/Time.xml b/doc/classes/Time.xml index 0c7c090e97..24ce30154d 100644 --- a/doc/classes/Time.xml +++ b/doc/classes/Time.xml @@ -13,81 +13,63 @@ </tutorials> <methods> <method name="get_date_dict_from_system" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="utc" type="bool" default="false"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="utc" type="bool" default="false" /> <description> Returns the current date as a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]weekday[/code], and [code]dst[/code] (Daylight Savings Time). The returned values are in the system's local time when [code]utc[/code] is false, otherwise they are in UTC. </description> </method> <method name="get_date_dict_from_unix_time" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="unix_time_val" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="unix_time_val" type="int" /> <description> Converts the given Unix timestamp to a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], and [code]weekday[/code]. </description> </method> <method name="get_date_string_from_system" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="utc" type="bool" default="false"> - </argument> + <return type="String" /> + <argument index="0" name="utc" type="bool" default="false" /> <description> Returns the current date as an ISO 8601 date string (YYYY-MM-DD). The returned values are in the system's local time when [code]utc[/code] is false, otherwise they are in UTC. </description> </method> <method name="get_date_string_from_unix_time" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="unix_time_val" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="unix_time_val" type="int" /> <description> Converts the given Unix timestamp to an ISO 8601 date string (YYYY-MM-DD). </description> </method> <method name="get_datetime_dict_from_string" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="datetime" type="String"> - </argument> - <argument index="1" name="weekday" type="bool"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="datetime" type="String" /> + <argument index="1" name="weekday" type="bool" /> <description> Converts the given ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS) to a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]weekday[/code], [code]hour[/code], [code]minute[/code], and [code]second[/code]. If [code]weekday[/code] is false, then the [code]weekday[/code] entry is excluded (the calculation is relatively expensive). </description> </method> <method name="get_datetime_dict_from_system" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="utc" type="bool" default="false"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="utc" type="bool" default="false" /> <description> Returns the current date as a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]weekday[/code], [code]hour[/code], [code]minute[/code], and [code]second[/code]. </description> </method> <method name="get_datetime_dict_from_unix_time" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="unix_time_val" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="unix_time_val" type="int" /> <description> Converts the given Unix timestamp to a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], and [code]weekday[/code]. The returned Dictionary's values will be the same as the [method get_datetime_dict_from_system] if the Unix timestamp is the current time, with the exception of Daylight Savings Time as it cannot be determined from the epoch. </description> </method> <method name="get_datetime_string_from_dict" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="datetime" type="Dictionary"> - </argument> - <argument index="1" name="use_space" type="bool"> - </argument> + <return type="String" /> + <argument index="0" name="datetime" type="Dictionary" /> + <argument index="1" name="use_space" type="bool" /> <description> Converts the given dictionary of keys to an ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS). The given dictionary can be populated with the following keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]hour[/code], [code]minute[/code], and [code]second[/code]. Any other entries (including [code]dst[/code]) are ignored. @@ -96,12 +78,9 @@ </description> </method> <method name="get_datetime_string_from_system" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="utc" type="bool" default="false"> - </argument> - <argument index="1" name="use_space" type="bool" default="false"> - </argument> + <return type="String" /> + <argument index="0" name="utc" type="bool" default="false" /> + <argument index="1" name="use_space" type="bool" default="false" /> <description> Returns the current date and time as a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]weekday[/code], [code]dst[/code] (Daylight Savings Time), [code]hour[/code], [code]minute[/code], and [code]second[/code]. The returned values are in the system's local time when [code]utc[/code] is false, otherwise they are in UTC. @@ -109,81 +88,65 @@ </description> </method> <method name="get_datetime_string_from_unix_time" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="unix_time_val" type="int"> - </argument> - <argument index="1" name="use_space" type="bool" default="false"> - </argument> + <return type="String" /> + <argument index="0" name="unix_time_val" type="int" /> + <argument index="1" name="use_space" type="bool" default="false" /> <description> Converts the given Unix timestamp to an ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS). If [code]use_space[/code] is true, use a space instead of the letter T in the middle. </description> </method> <method name="get_ticks_msec" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of time passed in milliseconds since the engine started. </description> </method> <method name="get_ticks_usec" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the amount of time passed in microseconds since the engine started. </description> </method> <method name="get_time_dict_from_system" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="utc" type="bool" default="false"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="utc" type="bool" default="false" /> <description> Returns the current time as a dictionary of keys: [code]hour[/code], [code]minute[/code], and [code]second[/code]. The returned values are in the system's local time when [code]utc[/code] is false, otherwise they are in UTC. </description> </method> <method name="get_time_dict_from_unix_time" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="unix_time_val" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="unix_time_val" type="int" /> <description> Converts the given time to a dictionary of keys: [code]hour[/code], [code]minute[/code], and [code]second[/code]. </description> </method> <method name="get_time_string_from_system" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="utc" type="bool" default="false"> - </argument> + <return type="String" /> + <argument index="0" name="utc" type="bool" default="false" /> <description> Returns the current time as an ISO 8601 time string (HH:MM:SS). The returned values are in the system's local time when [code]utc[/code] is false, otherwise they are in UTC. </description> </method> <method name="get_time_string_from_unix_time" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="unix_time_val" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="unix_time_val" type="int" /> <description> Converts the given Unix timestamp to an ISO 8601 time string (HH:MM:SS). </description> </method> <method name="get_time_zone_from_system" qualifiers="const"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Returns the current time zone as a dictionary of keys: [code]bias[/code] and [code]name[/code]. The [code]bias[/code] value is the offset from UTC in minutes, since not all time zones are multiples of an hour from UTC. </description> </method> <method name="get_unix_time_from_datetime_dict" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="datetime" type="Dictionary"> - </argument> + <return type="int" /> + <argument index="0" name="datetime" type="Dictionary" /> <description> Converts a dictionary of time values to a Unix timestamp. The given dictionary can be populated with the following keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]hour[/code], [code]minute[/code], and [code]second[/code]. Any other entries (including [code]dst[/code]) are ignored. @@ -192,17 +155,14 @@ </description> </method> <method name="get_unix_time_from_datetime_string" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="datetime" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="datetime" type="String" /> <description> Converts the given ISO 8601 date and/or time string to a Unix timestamp. The string can contain a date only, a time only, or both. </description> </method> <method name="get_unix_time_from_system" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the current Unix timestamp in seconds based on the system time. </description> diff --git a/doc/classes/Timer.xml b/doc/classes/Timer.xml index 807d8033c1..b91f159160 100644 --- a/doc/classes/Timer.xml +++ b/doc/classes/Timer.xml @@ -12,25 +12,21 @@ </tutorials> <methods> <method name="is_stopped" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the timer is stopped. </description> </method> <method name="start"> - <return type="void"> - </return> - <argument index="0" name="time_sec" type="float" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="time_sec" type="float" default="-1" /> <description> Starts the timer. Sets [code]wait_time[/code] to [code]time_sec[/code] if [code]time_sec > 0[/code]. This also resets the remaining time to [code]wait_time[/code]. [b]Note:[/b] this method will not resume a paused timer. See [member paused]. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the timer. </description> diff --git a/doc/classes/TouchScreenButton.xml b/doc/classes/TouchScreenButton.xml index bb4c17c531..e75a41a936 100644 --- a/doc/classes/TouchScreenButton.xml +++ b/doc/classes/TouchScreenButton.xml @@ -12,8 +12,7 @@ </tutorials> <methods> <method name="is_pressed" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this button is currently pressed. </description> diff --git a/doc/classes/Transform2D.xml b/doc/classes/Transform2D.xml index 4f9b59c188..2c3eda1e07 100644 --- a/doc/classes/Transform2D.xml +++ b/doc/classes/Transform2D.xml @@ -15,243 +15,190 @@ </tutorials> <methods> <method name="Transform2D" qualifiers="constructor"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Constructs a default-initialized [Transform2D] set to [constant IDENTITY]. </description> </method> <method name="Transform2D" qualifiers="constructor"> - <return type="Transform2D"> - </return> - <argument index="0" name="from" type="Transform2D"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="from" type="Transform2D" /> <description> Constructs a [Transform2D] as a copy of the given [Transform2D]. </description> </method> <method name="Transform2D" qualifiers="constructor"> - <return type="Transform2D"> - </return> - <argument index="0" name="rotation" type="float"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="rotation" type="float" /> + <argument index="1" name="position" type="Vector2" /> <description> Constructs the transform from a given angle (in radians) and position. </description> </method> <method name="Transform2D" qualifiers="constructor"> - <return type="Transform2D"> - </return> - <argument index="0" name="x_axis" type="Vector2"> - </argument> - <argument index="1" name="y_axis" type="Vector2"> - </argument> - <argument index="2" name="origin" type="Vector2"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="x_axis" type="Vector2" /> + <argument index="1" name="y_axis" type="Vector2" /> + <argument index="2" name="origin" type="Vector2" /> <description> Constructs the transform from 3 [Vector2] values representing [member x], [member y], and the [member origin] (the three column vectors). </description> </method> <method name="affine_inverse" qualifiers="const"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Returns the inverse of the transform, under the assumption that the transformation is composed of rotation, scaling and translation. </description> </method> <method name="basis_xform" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="v" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="v" type="Vector2" /> <description> Returns a vector transformed (multiplied) by the basis matrix. This method does not account for translation (the origin vector). </description> </method> <method name="basis_xform_inv" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="v" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="v" type="Vector2" /> <description> Returns a vector transformed (multiplied) by the inverse basis matrix. This method does not account for translation (the origin vector). </description> </method> <method name="get_origin" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the transform's origin (translation). </description> </method> <method name="get_rotation" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the transform's rotation (in radians). </description> </method> <method name="get_scale" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the scale. </description> </method> <method name="interpolate_with" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="xform" type="Transform2D"> - </argument> - <argument index="1" name="weight" type="float"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="xform" type="Transform2D" /> + <argument index="1" name="weight" type="float" /> <description> Returns a transform interpolated between this transform and another by a given [code]weight[/code] (on the range of 0.0 to 1.0). </description> </method> <method name="inverse" qualifiers="const"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Returns the inverse of the transform, under the assumption that the transformation is composed of rotation and translation (no scaling, use [method affine_inverse] for transforms with scaling). </description> </method> <method name="is_equal_approx" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="xform" type="Transform2D"> - </argument> + <return type="bool" /> + <argument index="0" name="xform" type="Transform2D" /> <description> Returns [code]true[/code] if this transform and [code]transform[/code] are approximately equal, by calling [code]is_equal_approx[/code] on each component. </description> </method> <method name="looking_at" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="target" type="Vector2" default="Transform2D(1, 0, 0, 1, 0, 0)"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="target" type="Vector2" default="Transform2D(1, 0, 0, 1, 0, 0)" /> <description> Returns a copy of the transform rotated such that it's rotation on the X-axis points towards the [code]target[/code] position. Operations take place in global space. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Transform2D"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Transform2D" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Rect2"> - </return> - <argument index="0" name="right" type="Rect2"> - </argument> + <return type="Rect2" /> + <argument index="0" name="right" type="Rect2" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Transform2D"> - </return> - <argument index="0" name="right" type="Transform2D"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="right" type="Transform2D" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="PackedVector2Array"> - </return> - <argument index="0" name="right" type="PackedVector2Array"> - </argument> + <return type="PackedVector2Array" /> + <argument index="0" name="right" type="PackedVector2Array" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Transform2D"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="right" type="float" /> <description> This operator multiplies all components of the [Transform2D], including the origin vector, which scales it uniformly. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Transform2D"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="right" type="int" /> <description> This operator multiplies all components of the [Transform2D], including the origin vector, which scales it uniformly. </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Transform2D"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Transform2D" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="orthonormalized" qualifiers="const"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Returns the transform with the basis orthogonal (90 degrees), and normalized axis vectors (scale of 1 or -1). </description> </method> <method name="rotated" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="phi" type="float"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="phi" type="float" /> <description> Rotates the transform by the given angle (in radians), using matrix multiplication. </description> </method> <method name="scaled" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="scale" type="Vector2"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="scale" type="Vector2" /> <description> Scales the transform by the given scale factor, using matrix multiplication. </description> </method> <method name="set_rotation"> - <return type="void"> - </return> - <argument index="0" name="rotation" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="rotation" type="float" /> <description> Sets the transform's rotation (in radians). </description> </method> <method name="translated" qualifiers="const"> - <return type="Transform2D"> - </return> - <argument index="0" name="offset" type="Vector2"> - </argument> + <return type="Transform2D" /> + <argument index="0" name="offset" type="Vector2" /> <description> Translates the transform by the given offset, relative to the transform's basis vectors. Unlike [method rotated] and [method scaled], this does not use matrix multiplication. diff --git a/doc/classes/Transform3D.xml b/doc/classes/Transform3D.xml index 5410cbced7..53cdfd53c9 100644 --- a/doc/classes/Transform3D.xml +++ b/doc/classes/Transform3D.xml @@ -17,88 +17,67 @@ </tutorials> <methods> <method name="Transform3D" qualifiers="constructor"> - <return type="Transform3D"> - </return> + <return type="Transform3D" /> <description> Constructs a default-initialized [Transform3D] set to [constant IDENTITY]. </description> </method> <method name="Transform3D" qualifiers="constructor"> - <return type="Transform3D"> - </return> - <argument index="0" name="from" type="Transform3D"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="from" type="Transform3D" /> <description> Constructs a [Transform3D] as a copy of the given [Transform3D]. </description> </method> <method name="Transform3D" qualifiers="constructor"> - <return type="Transform3D"> - </return> - <argument index="0" name="basis" type="Basis"> - </argument> - <argument index="1" name="origin" type="Vector3"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="basis" type="Basis" /> + <argument index="1" name="origin" type="Vector3" /> <description> Constructs a Transform3D from a [Basis] and [Vector3]. </description> </method> <method name="Transform3D" qualifiers="constructor"> - <return type="Transform3D"> - </return> - <argument index="0" name="x_axis" type="Vector3"> - </argument> - <argument index="1" name="y_axis" type="Vector3"> - </argument> - <argument index="2" name="z_axis" type="Vector3"> - </argument> - <argument index="3" name="origin" type="Vector3"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="x_axis" type="Vector3" /> + <argument index="1" name="y_axis" type="Vector3" /> + <argument index="2" name="z_axis" type="Vector3" /> + <argument index="3" name="origin" type="Vector3" /> <description> Constructs a Transform3D from four [Vector3] values (matrix columns). Each axis corresponds to local basis vectors (some of which may be scaled). </description> </method> <method name="affine_inverse" qualifiers="const"> - <return type="Transform3D"> - </return> + <return type="Transform3D" /> <description> Returns the inverse of the transform, under the assumption that the transformation is composed of rotation, scaling and translation. </description> </method> <method name="interpolate_with" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="xform" type="Transform3D"> - </argument> - <argument index="1" name="weight" type="float"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="xform" type="Transform3D" /> + <argument index="1" name="weight" type="float" /> <description> Interpolates the transform to other Transform3D by weight amount (on the range of 0.0 to 1.0). </description> </method> <method name="inverse" qualifiers="const"> - <return type="Transform3D"> - </return> + <return type="Transform3D" /> <description> Returns the inverse of the transform, under the assumption that the transformation is composed of rotation and translation (no scaling, use affine_inverse for transforms with scaling). </description> </method> <method name="is_equal_approx" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="xform" type="Transform3D"> - </argument> + <return type="bool" /> + <argument index="0" name="xform" type="Transform3D" /> <description> Returns [code]true[/code] if this transform and [code]transform[/code] are approximately equal, by calling [code]is_equal_approx[/code] on each component. </description> </method> <method name="looking_at" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="target" type="Vector3"> - </argument> - <argument index="1" name="up" type="Vector3" default="Vector3(0, 1, 0)"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="target" type="Vector3" /> + <argument index="1" name="up" type="Vector3" default="Vector3(0, 1, 0)" /> <description> Returns a copy of the transform rotated such that its -Z axis points towards the [code]target[/code] position. The transform will first be rotated around the given [code]up[/code] vector, and then fully aligned to the target by a further rotation around an axis perpendicular to both the [code]target[/code] and [code]up[/code] vectors. @@ -106,103 +85,79 @@ </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Transform3D"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Transform3D" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="PackedVector3Array"> - </return> - <argument index="0" name="right" type="PackedVector3Array"> - </argument> + <return type="PackedVector3Array" /> + <argument index="0" name="right" type="PackedVector3Array" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Transform3D"> - </return> - <argument index="0" name="right" type="Transform3D"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="right" type="Transform3D" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="AABB"> - </return> - <argument index="0" name="right" type="AABB"> - </argument> + <return type="AABB" /> + <argument index="0" name="right" type="AABB" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Transform3D"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="right" type="float" /> <description> This operator multiplies all components of the [Transform3D], including the origin vector, which scales it uniformly. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Transform3D"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="right" type="int" /> <description> This operator multiplies all components of the [Transform3D], including the origin vector, which scales it uniformly. </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Transform3D"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Transform3D" /> <description> </description> </method> <method name="orthonormalized" qualifiers="const"> - <return type="Transform3D"> - </return> + <return type="Transform3D" /> <description> Returns the transform with the basis orthogonal (90 degrees), and normalized axis vectors. </description> </method> <method name="rotated" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="axis" type="Vector3"> - </argument> - <argument index="1" name="phi" type="float"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="axis" type="Vector3" /> + <argument index="1" name="phi" type="float" /> <description> Rotates the transform around the given axis by the given angle (in radians), using matrix multiplication. The axis must be a normalized vector. </description> </method> <method name="scaled" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="scale" type="Vector3"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="scale" type="Vector3" /> <description> Scales basis and origin of the transform by the given scale factor, using matrix multiplication. </description> </method> <method name="translated" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="offset" type="Vector3"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="offset" type="Vector3" /> <description> Translates the transform by the given offset, relative to the transform's basis vectors. Unlike [method rotated] and [method scaled], this does not use matrix multiplication. diff --git a/doc/classes/Translation.xml b/doc/classes/Translation.xml index d286c6cf0c..4b83a2abf5 100644 --- a/doc/classes/Translation.xml +++ b/doc/classes/Translation.xml @@ -12,80 +12,59 @@ </tutorials> <methods> <method name="add_message"> - <return type="void"> - </return> - <argument index="0" name="src_message" type="StringName"> - </argument> - <argument index="1" name="xlated_message" type="StringName"> - </argument> - <argument index="2" name="context" type="StringName" default=""""> - </argument> + <return type="void" /> + <argument index="0" name="src_message" type="StringName" /> + <argument index="1" name="xlated_message" type="StringName" /> + <argument index="2" name="context" type="StringName" default="""" /> <description> Adds a message if nonexistent, followed by its translation. An additional context could be used to specify the translation context or differentiate polysemic words. </description> </method> <method name="add_plural_message"> - <return type="void"> - </return> - <argument index="0" name="src_message" type="StringName"> - </argument> - <argument index="1" name="xlated_messages" type="PackedStringArray"> - </argument> - <argument index="2" name="context" type="StringName" default=""""> - </argument> + <return type="void" /> + <argument index="0" name="src_message" type="StringName" /> + <argument index="1" name="xlated_messages" type="PackedStringArray" /> + <argument index="2" name="context" type="StringName" default="""" /> <description> Adds a message involving plural translation if nonexistent, followed by its translation. An additional context could be used to specify the translation context or differentiate polysemic words. </description> </method> <method name="erase_message"> - <return type="void"> - </return> - <argument index="0" name="src_message" type="StringName"> - </argument> - <argument index="1" name="context" type="StringName" default=""""> - </argument> + <return type="void" /> + <argument index="0" name="src_message" type="StringName" /> + <argument index="1" name="context" type="StringName" default="""" /> <description> Erases a message. </description> </method> <method name="get_message" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="src_message" type="StringName"> - </argument> - <argument index="1" name="context" type="StringName" default=""""> - </argument> + <return type="StringName" /> + <argument index="0" name="src_message" type="StringName" /> + <argument index="1" name="context" type="StringName" default="""" /> <description> Returns a message's translation. </description> </method> <method name="get_message_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of existing messages. </description> </method> <method name="get_message_list" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns all the messages (keys). </description> </method> <method name="get_plural_message" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="src_message" type="StringName"> - </argument> - <argument index="1" name="src_plural_message" type="StringName"> - </argument> - <argument index="2" name="n" type="int"> - </argument> - <argument index="3" name="context" type="StringName" default=""""> - </argument> + <return type="StringName" /> + <argument index="0" name="src_message" type="StringName" /> + <argument index="1" name="src_plural_message" type="StringName" /> + <argument index="2" name="n" type="int" /> + <argument index="3" name="context" type="StringName" default="""" /> <description> Returns a message's translation involving plurals. The number [code]n[/code] is the number or quantity of the plural object. It will be used to guide the translation system to fetch the correct plural form for the selected language. diff --git a/doc/classes/TranslationServer.xml b/doc/classes/TranslationServer.xml index 664cb3e2e3..655c16b0cd 100644 --- a/doc/classes/TranslationServer.xml +++ b/doc/classes/TranslationServer.xml @@ -12,94 +12,73 @@ </tutorials> <methods> <method name="add_translation"> - <return type="void"> - </return> - <argument index="0" name="translation" type="Translation"> - </argument> + <return type="void" /> + <argument index="0" name="translation" type="Translation" /> <description> Adds a [Translation] resource. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the server from all translations. </description> </method> <method name="get_loaded_locales" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an Array of all loaded locales of the game. </description> </method> <method name="get_locale" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the current locale of the game. </description> </method> <method name="get_locale_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="locale" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="locale" type="String" /> <description> Returns a locale's language and its variant (e.g. [code]"en_US"[/code] would return [code]"English (United States)"[/code]). </description> </method> <method name="get_translation_object"> - <return type="Translation"> - </return> - <argument index="0" name="locale" type="String"> - </argument> + <return type="Translation" /> + <argument index="0" name="locale" type="String" /> <description> Returns the [Translation] instance based on the [code]locale[/code] passed in. It will return a [code]nullptr[/code] if there is no [Translation] instance that matches the [code]locale[/code]. </description> </method> <method name="remove_translation"> - <return type="void"> - </return> - <argument index="0" name="translation" type="Translation"> - </argument> + <return type="void" /> + <argument index="0" name="translation" type="Translation" /> <description> Removes the given translation from the server. </description> </method> <method name="set_locale"> - <return type="void"> - </return> - <argument index="0" name="locale" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="locale" type="String" /> <description> Sets the locale of the game. </description> </method> <method name="translate" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="message" type="StringName"> - </argument> - <argument index="1" name="context" type="StringName" default=""""> - </argument> + <return type="StringName" /> + <argument index="0" name="message" type="StringName" /> + <argument index="1" name="context" type="StringName" default="""" /> <description> Returns the current locale's translation for the given message (key) and context. </description> </method> <method name="translate_plural" qualifiers="const"> - <return type="StringName"> - </return> - <argument index="0" name="message" type="StringName"> - </argument> - <argument index="1" name="plural_message" type="StringName"> - </argument> - <argument index="2" name="n" type="int"> - </argument> - <argument index="3" name="context" type="StringName" default=""""> - </argument> + <return type="StringName" /> + <argument index="0" name="message" type="StringName" /> + <argument index="1" name="plural_message" type="StringName" /> + <argument index="2" name="n" type="int" /> + <argument index="3" name="context" type="StringName" default="""" /> <description> Returns the current locale's translation for the given message (key), plural_message and context. The number [code]n[/code] is the number or quantity of the plural object. It will be used to guide the translation system to fetch the correct plural form for the selected language. diff --git a/doc/classes/Tree.xml b/doc/classes/Tree.xml index b498b9bb90..c7c2c04256 100644 --- a/doc/classes/Tree.xml +++ b/doc/classes/Tree.xml @@ -36,35 +36,28 @@ </tutorials> <methods> <method name="are_column_titles_visible" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the column titles are being shown. </description> </method> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the tree. This removes all items. </description> </method> <method name="clear_column_title_opentype_features"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> <description> Removes all OpenType features from the item's text. </description> </method> <method name="create_item"> - <return type="TreeItem"> - </return> - <argument index="0" name="parent" type="Object" default="null"> - </argument> - <argument index="1" name="idx" type="int" default="-1"> - </argument> + <return type="TreeItem" /> + <argument index="0" name="parent" type="Object" default="null" /> + <argument index="1" name="idx" type="int" default="-1" /> <description> Creates an item in the tree and adds it as a child of [code]parent[/code]. If [code]parent[/code] is [code]null[/code], the root item will be the parent, or the new item will be the root itself if the tree is empty. @@ -72,15 +65,13 @@ </description> </method> <method name="edit_selected"> - <return type="bool"> - </return> + <return type="bool" /> <description> Edits the selected tree item as if it was clicked. The item must be set editable with [method TreeItem.set_editable]. Returns [code]true[/code] if the item could be edited. Fails if no item is selected. </description> </method> <method name="ensure_cursor_is_visible"> - <return type="void"> - </return> + <return type="void" /> <description> Makes the currently focused cell visible. This will scroll the tree if necessary. In [constant SELECT_ROW] mode, this will not do horizontal scrolling, as all the cells in the selected row is focused logically. @@ -88,81 +79,63 @@ </description> </method> <method name="get_column_at_position" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> + <return type="int" /> + <argument index="0" name="position" type="Vector2" /> <description> Returns the column index at [code]position[/code], or -1 if no item is there. </description> </method> <method name="get_column_expand_ratio" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="column" type="int" /> <description> </description> </method> <method name="get_column_title" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="column" type="int" /> <description> Returns the column's title. </description> </method> <method name="get_column_title_direction" qualifiers="const"> - <return type="int" enum="Control.TextDirection"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="int" enum="Control.TextDirection" /> + <argument index="0" name="column" type="int" /> <description> Returns column title base writing direction. </description> </method> <method name="get_column_title_language" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="column" type="int" /> <description> Returns column title language code. </description> </method> <method name="get_column_title_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code] of the column title. </description> </method> <method name="get_column_width" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="column" type="int" /> <description> Returns the column's width in pixels. </description> </method> <method name="get_custom_popup_rect" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns the rectangle for custom popups. Helper to create custom cell controls that display a popup. See [method TreeItem.set_cell_mode]. </description> </method> <method name="get_drop_section_at_position" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> + <return type="int" /> + <argument index="0" name="position" type="Vector2" /> <description> Returns the drop section at [code]position[/code], or -100 if no item is there. Values -1, 0, or 1 will be returned for the "above item", "on item", and "below item" drop sections, respectively. See [enum DropModeFlags] for a description of each drop section. @@ -170,8 +143,7 @@ </description> </method> <method name="get_edited" qualifiers="const"> - <return type="TreeItem"> - </return> + <return type="TreeItem" /> <description> Returns the currently edited item. Can be used with [signal item_edited] to get the item that was modified. [codeblocks] @@ -197,66 +169,54 @@ </description> </method> <method name="get_edited_column" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the column for the currently edited item. </description> </method> <method name="get_item_area_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="item" type="Object"> - </argument> - <argument index="1" name="column" type="int" default="-1"> - </argument> + <return type="Rect2" /> + <argument index="0" name="item" type="Object" /> + <argument index="1" name="column" type="int" default="-1" /> <description> Returns the rectangle area for the specified item. If [code]column[/code] is specified, only get the position and size of that column, otherwise get the rectangle containing all columns. </description> </method> <method name="get_item_at_position" qualifiers="const"> - <return type="TreeItem"> - </return> - <argument index="0" name="position" type="Vector2"> - </argument> + <return type="TreeItem" /> + <argument index="0" name="position" type="Vector2" /> <description> Returns the tree item at the specified position (relative to the tree origin position). </description> </method> <method name="get_next_selected"> - <return type="TreeItem"> - </return> - <argument index="0" name="from" type="Object"> - </argument> + <return type="TreeItem" /> + <argument index="0" name="from" type="Object" /> <description> Returns the next selected item after the given one, or [code]null[/code] if the end is reached. If [code]from[/code] is [code]null[/code], this returns the first selected item. </description> </method> <method name="get_pressed_button" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the last pressed button's index. </description> </method> <method name="get_root" qualifiers="const"> - <return type="TreeItem"> - </return> + <return type="TreeItem" /> <description> Returns the tree's root item, or [code]null[/code] if the tree is empty. </description> </method> <method name="get_scroll" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the current scrolling position. </description> </method> <method name="get_selected" qualifiers="const"> - <return type="TreeItem"> - </return> + <return type="TreeItem" /> <description> Returns the currently focused item, or [code]null[/code] if no item is focused. In [constant SELECT_ROW] and [constant SELECT_SINGLE] modes, the focused item is same as the selected item. In [constant SELECT_MULTI] mode, the focused item is the item under the focus cursor, not necessarily selected. @@ -264,8 +224,7 @@ </description> </method> <method name="get_selected_column" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the currently focused column, or -1 if no column is focused. In [constant SELECT_SINGLE] mode, the focused column is the selected column. In [constant SELECT_ROW] mode, the focused column is always 0 if any item is selected. In [constant SELECT_MULTI] mode, the focused column is the column under the focus cursor, and there are not necessarily any column selected. @@ -273,123 +232,90 @@ </description> </method> <method name="is_column_clipping_content" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="column" type="int" /> <description> </description> </method> <method name="is_column_expanding" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="column" type="int" /> <description> </description> </method> <method name="scroll_to_item"> - <return type="void"> - </return> - <argument index="0" name="item" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="Object" /> <description> Causes the [Tree] to jump to the specified item. </description> </method> <method name="set_column_clip_content"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> <method name="set_column_custom_minimum_width"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="min_width" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="min_width" type="int" /> <description> Overrides the calculated minimum width of a column. It can be set to `0` to restore the default behavior. Columns that have the "Expand" flag will use their "min_width" in a similar fashion to [member Control.size_flags_stretch_ratio]. </description> </method> <method name="set_column_expand"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="expand" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="expand" type="bool" /> <description> If [code]true[/code], the column will have the "Expand" flag of [Control]. Columns that have the "Expand" flag will use their "min_width" in a similar fashion to [member Control.size_flags_stretch_ratio]. </description> </method> <method name="set_column_expand_ratio"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="ratio" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="ratio" type="int" /> <description> </description> </method> <method name="set_column_title"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="title" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="title" type="String" /> <description> Sets the title of a column. </description> </method> <method name="set_column_title_direction"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="direction" type="int" enum="Control.TextDirection"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="direction" type="int" enum="Control.TextDirection" /> <description> Sets column title base writing direction. </description> </method> <method name="set_column_title_language"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="language" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="language" type="String" /> <description> Sets language code of column title used for line-breaking and text shaping algorithms, if left empty current locale is used instead. </description> </method> <method name="set_column_title_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> - <argument index="2" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="tag" type="String" /> + <argument index="2" name="value" type="int" /> <description> Sets OpenType feature [code]tag[/code] for the column title. </description> </method> <method name="set_column_titles_visible"> - <return type="void"> - </return> - <argument index="0" name="visible" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="visible" type="bool" /> <description> If [code]true[/code], column titles are visible. </description> @@ -429,12 +355,9 @@ </members> <signals> <signal name="button_pressed"> - <argument index="0" name="item" type="TreeItem"> - </argument> - <argument index="1" name="column" type="int"> - </argument> - <argument index="2" name="id" type="int"> - </argument> + <argument index="0" name="item" type="TreeItem" /> + <argument index="1" name="column" type="int" /> + <argument index="2" name="id" type="int" /> <description> Emitted when a button on the tree was pressed (see [method TreeItem.add_button]). </description> @@ -445,29 +368,25 @@ </description> </signal> <signal name="column_title_pressed"> - <argument index="0" name="column" type="int"> - </argument> + <argument index="0" name="column" type="int" /> <description> Emitted when a column's title is pressed. </description> </signal> <signal name="custom_popup_edited"> - <argument index="0" name="arrow_clicked" type="bool"> - </argument> + <argument index="0" name="arrow_clicked" type="bool" /> <description> Emitted when a cell with the [constant TreeItem.CELL_MODE_CUSTOM] is clicked to be edited. </description> </signal> <signal name="empty_rmb"> - <argument index="0" name="position" type="Vector2"> - </argument> + <argument index="0" name="position" type="Vector2" /> <description> Emitted when the right mouse button is pressed in the empty space of the tree. </description> </signal> <signal name="empty_tree_rmb_selected"> - <argument index="0" name="position" type="Vector2"> - </argument> + <argument index="0" name="position" type="Vector2" /> <description> Emitted when the right mouse button is pressed if right mouse button selection is active and the tree is empty. </description> @@ -478,8 +397,7 @@ </description> </signal> <signal name="item_collapsed"> - <argument index="0" name="item" type="TreeItem"> - </argument> + <argument index="0" name="item" type="TreeItem" /> <description> Emitted when an item is collapsed by a click on the folding arrow. </description> @@ -505,8 +423,7 @@ </description> </signal> <signal name="item_rmb_selected"> - <argument index="0" name="position" type="Vector2"> - </argument> + <argument index="0" name="position" type="Vector2" /> <description> Emitted when an item is selected with the right mouse button. </description> @@ -517,12 +434,9 @@ </description> </signal> <signal name="multi_selected"> - <argument index="0" name="item" type="TreeItem"> - </argument> - <argument index="1" name="column" type="int"> - </argument> - <argument index="2" name="selected" type="bool"> - </argument> + <argument index="0" name="item" type="TreeItem" /> + <argument index="1" name="column" type="int" /> + <argument index="2" name="selected" type="bool" /> <description> Emitted instead of [code]item_selected[/code] if [code]select_mode[/code] is [constant SELECT_MULTI]. </description> diff --git a/doc/classes/TreeItem.xml b/doc/classes/TreeItem.xml index 85c9caa101..944b9fdc06 100644 --- a/doc/classes/TreeItem.xml +++ b/doc/classes/TreeItem.xml @@ -11,811 +11,611 @@ </tutorials> <methods> <method name="add_button"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button" type="Texture2D"> - </argument> - <argument index="2" name="button_idx" type="int" default="-1"> - </argument> - <argument index="3" name="disabled" type="bool" default="false"> - </argument> - <argument index="4" name="tooltip" type="String" default=""""> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="button" type="Texture2D" /> + <argument index="2" name="button_idx" type="int" default="-1" /> + <argument index="3" name="disabled" type="bool" default="false" /> + <argument index="4" name="tooltip" type="String" default="""" /> <description> Adds a button with [Texture2D] [code]button[/code] at column [code]column[/code]. The [code]button_idx[/code] index is used to identify the button when calling other methods. If not specified, the next available index is used, which may be retrieved by calling [method get_button_count] immediately after this method. Optionally, the button can be [code]disabled[/code] and have a [code]tooltip[/code]. </description> </method> <method name="call_recursive" qualifiers="vararg"> - <return type="Variant"> - </return> - <argument index="0" name="method" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="method" type="StringName" /> <description> Calls the [code]method[/code] on the actual TreeItem and its children recursively. Pass parameters as a comma separated list. </description> </method> <method name="clear_custom_bg_color"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> <description> Resets the background color for the given column to default. </description> </method> <method name="clear_custom_color"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> <description> Resets the color for the given column to default. </description> </method> <method name="clear_opentype_features"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> <description> Removes all OpenType features. </description> </method> <method name="create_child"> - <return type="TreeItem"> - </return> - <argument index="0" name="idx" type="int" default="-1"> - </argument> + <return type="TreeItem" /> + <argument index="0" name="idx" type="int" default="-1" /> <description> Creates an item and adds it as a child. The new item will be inserted as position [code]idx[/code] (the default value [code]-1[/code] means the last position), or it will be the last child if [code]idx[/code] is higher than the child count. </description> </method> <method name="deselect"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> <description> Deselects the given column. </description> </method> <method name="erase_button"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button_idx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="button_idx" type="int" /> <description> Removes the button at index [code]button_idx[/code] in column [code]column[/code]. </description> </method> <method name="get_button" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button_idx" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="button_idx" type="int" /> <description> Returns the [Texture2D] of the button at index [code]button_idx[/code] in column [code]column[/code]. </description> </method> <method name="get_button_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="column" type="int" /> <description> Returns the number of buttons in column [code]column[/code]. May be used to get the most recently added button's index, if no index was specified. </description> </method> <method name="get_button_tooltip" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button_idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="button_idx" type="int" /> <description> Returns the tooltip string for the button at index [code]button_idx[/code] in column [code]column[/code]. </description> </method> <method name="get_cell_mode" qualifiers="const"> - <return type="int" enum="TreeItem.TreeCellMode"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="int" enum="TreeItem.TreeCellMode" /> + <argument index="0" name="column" type="int" /> <description> Returns the column's cell mode. </description> </method> <method name="get_child"> - <return type="TreeItem"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="TreeItem" /> + <argument index="0" name="idx" type="int" /> <description> Returns a child item by its index (see [method get_child_count]). This method is often used for iterating all children of an item. Negative indices access the children from the last one. </description> </method> <method name="get_child_count"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of child items. </description> </method> <method name="get_children"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of references to the item's children. </description> </method> <method name="get_custom_bg_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="column" type="int" /> <description> Returns the custom background color of column [code]column[/code]. </description> </method> <method name="get_custom_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="column" type="int" /> <description> Returns the custom color of column [code]column[/code]. </description> </method> <method name="get_custom_font" qualifiers="const"> - <return type="Font"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="Font" /> + <argument index="0" name="column" type="int" /> <description> </description> </method> <method name="get_expand_right" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="column" type="int" /> <description> Returns [code]true[/code] if [code]expand_right[/code] is set. </description> </method> <method name="get_first_child" qualifiers="const"> - <return type="TreeItem"> - </return> + <return type="TreeItem" /> <description> Returns the TreeItem's first child. </description> </method> <method name="get_icon" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="Texture2D" /> + <argument index="0" name="column" type="int" /> <description> Returns the given column's icon [Texture2D]. Error if no icon is set. </description> </method> <method name="get_icon_max_width" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="column" type="int" /> <description> Returns the column's icon's maximum width. </description> </method> <method name="get_icon_modulate" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="Color" /> + <argument index="0" name="column" type="int" /> <description> Returns the [Color] modulating the column's icon. </description> </method> <method name="get_icon_region" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="Rect2" /> + <argument index="0" name="column" type="int" /> <description> Returns the icon [Texture2D] region as [Rect2]. </description> </method> <method name="get_index"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the node's order in the tree. For example, if called on the first child item the position is [code]0[/code]. </description> </method> <method name="get_language" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="column" type="int" /> <description> Returns item's text language code. </description> </method> <method name="get_metadata" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="column" type="int" /> <description> Returns the metadata value that was set for the given column using [method set_metadata]. </description> </method> <method name="get_next" qualifiers="const"> - <return type="TreeItem"> - </return> + <return type="TreeItem" /> <description> Returns the next TreeItem in the tree or a null object if there is none. </description> </method> <method name="get_next_visible"> - <return type="TreeItem"> - </return> - <argument index="0" name="wrap" type="bool" default="false"> - </argument> + <return type="TreeItem" /> + <argument index="0" name="wrap" type="bool" default="false" /> <description> Returns the next visible TreeItem in the tree or a null object if there is none. If [code]wrap[/code] is enabled, the method will wrap around to the first visible element in the tree when called on the last visible element, otherwise it returns [code]null[/code]. </description> </method> <method name="get_opentype_feature" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> + <return type="int" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="tag" type="String" /> <description> Returns OpenType feature [code]tag[/code] of the item's text. </description> </method> <method name="get_parent" qualifiers="const"> - <return type="TreeItem"> - </return> + <return type="TreeItem" /> <description> Returns the parent TreeItem or a null object if there is none. </description> </method> <method name="get_prev"> - <return type="TreeItem"> - </return> + <return type="TreeItem" /> <description> Returns the previous TreeItem in the tree or a null object if there is none. </description> </method> <method name="get_prev_visible"> - <return type="TreeItem"> - </return> - <argument index="0" name="wrap" type="bool" default="false"> - </argument> + <return type="TreeItem" /> + <argument index="0" name="wrap" type="bool" default="false" /> <description> Returns the previous visible TreeItem in the tree or a null object if there is none. If [code]wrap[/code] is enabled, the method will wrap around to the last visible element in the tree when called on the first visible element, otherwise it returns [code]null[/code]. </description> </method> <method name="get_range" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="column" type="int" /> <description> Returns the value of a [constant CELL_MODE_RANGE] column. </description> </method> <method name="get_range_config"> - <return type="Dictionary"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="column" type="int" /> <description> Returns a dictionary containing the range parameters for a given column. The keys are "min", "max", "step", and "expr". </description> </method> <method name="get_structured_text_bidi_override" qualifiers="const"> - <return type="int" enum="Control.StructuredTextParser"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="int" enum="Control.StructuredTextParser" /> + <argument index="0" name="column" type="int" /> <description> </description> </method> <method name="get_structured_text_bidi_override_options" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="Array" /> + <argument index="0" name="column" type="int" /> <description> </description> </method> <method name="get_suffix" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="column" type="int" /> <description> Gets the suffix string shown after the column value. </description> </method> <method name="get_text" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="column" type="int" /> <description> Returns the given column's text. </description> </method> <method name="get_text_align" qualifiers="const"> - <return type="int" enum="TreeItem.TextAlign"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="int" enum="TreeItem.TextAlign" /> + <argument index="0" name="column" type="int" /> <description> Returns the given column's text alignment. </description> </method> <method name="get_text_direction" qualifiers="const"> - <return type="int" enum="Control.TextDirection"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="int" enum="Control.TextDirection" /> + <argument index="0" name="column" type="int" /> <description> Returns item's text base writing direction. </description> </method> <method name="get_tooltip" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="column" type="int" /> <description> Returns the given column's tooltip. </description> </method> <method name="get_tree" qualifiers="const"> - <return type="Tree"> - </return> + <return type="Tree" /> <description> Returns the [Tree] that owns this TreeItem. </description> </method> <method name="is_button_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button_idx" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="button_idx" type="int" /> <description> Returns [code]true[/code] if the button at index [code]button_idx[/code] for the given column is disabled. </description> </method> <method name="is_checked" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="column" type="int" /> <description> Returns [code]true[/code] if the given column is checked. </description> </method> <method name="is_custom_set_as_button" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="column" type="int" /> <description> </description> </method> <method name="is_editable"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="column" type="int" /> <description> Returns [code]true[/code] if column [code]column[/code] is editable. </description> </method> <method name="is_selectable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="column" type="int" /> <description> Returns [code]true[/code] if column [code]column[/code] is selectable. </description> </method> <method name="is_selected"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="column" type="int" /> <description> Returns [code]true[/code] if column [code]column[/code] is selected. </description> </method> <method name="move_after"> - <return type="void"> - </return> - <argument index="0" name="item" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="Object" /> <description> Moves this TreeItem right after the given [code]item[/code]. [b]Note:[/b] You can't move to the root or move the root. </description> </method> <method name="move_before"> - <return type="void"> - </return> - <argument index="0" name="item" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="item" type="Object" /> <description> Moves this TreeItem right before the given [code]item[/code]. [b]Note:[/b] You can't move to the root or move the root. </description> </method> <method name="remove_child"> - <return type="void"> - </return> - <argument index="0" name="child" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="child" type="Object" /> <description> Removes the given child [TreeItem] and all its children from the [Tree]. Note that it doesn't free the item from memory, so it can be reused later. To completely remove a [TreeItem] use [method Object.free]. </description> </method> <method name="select"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> <description> Selects the column [code]column[/code]. </description> </method> <method name="set_button"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button_idx" type="int"> - </argument> - <argument index="2" name="button" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="button_idx" type="int" /> + <argument index="2" name="button" type="Texture2D" /> <description> Sets the given column's button [Texture2D] at index [code]button_idx[/code] to [code]button[/code]. </description> </method> <method name="set_button_disabled"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button_idx" type="int"> - </argument> - <argument index="2" name="disabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="button_idx" type="int" /> + <argument index="2" name="disabled" type="bool" /> <description> If [code]true[/code], disables the button at index [code]button_idx[/code] in column [code]column[/code]. </description> </method> <method name="set_cell_mode"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="mode" type="int" enum="TreeItem.TreeCellMode"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="mode" type="int" enum="TreeItem.TreeCellMode" /> <description> Sets the given column's cell mode to [code]mode[/code]. See [enum TreeCellMode] constants. </description> </method> <method name="set_checked"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="checked" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="checked" type="bool" /> <description> If [code]true[/code], the column [code]column[/code] is checked. </description> </method> <method name="set_custom_as_button"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> </description> </method> <method name="set_custom_bg_color"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <argument index="2" name="just_outline" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="color" type="Color" /> + <argument index="2" name="just_outline" type="bool" default="false" /> <description> Sets the given column's custom background color and whether to just use it as an outline. </description> </method> <method name="set_custom_color"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="color" type="Color" /> <description> Sets the given column's custom color. </description> </method> <method name="set_custom_draw"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="object" type="Object"> - </argument> - <argument index="2" name="callback" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="object" type="Object" /> + <argument index="2" name="callback" type="StringName" /> <description> Sets the given column's custom draw callback to [code]callback[/code] method on [code]object[/code]. The [code]callback[/code] should accept two arguments: the [TreeItem] that is drawn and its position and size as a [Rect2]. </description> </method> <method name="set_custom_font"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="font" type="Font"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="font" type="Font" /> <description> </description> </method> <method name="set_editable"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="enabled" type="bool" /> <description> If [code]true[/code], column [code]column[/code] is editable. </description> </method> <method name="set_expand_right"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="enable" type="bool" /> <description> If [code]true[/code], column [code]column[/code] is expanded to the right. </description> </method> <method name="set_icon"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="texture" type="Texture2D"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="texture" type="Texture2D" /> <description> Sets the given column's icon [Texture2D]. </description> </method> <method name="set_icon_max_width"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="width" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="width" type="int" /> <description> Sets the given column's icon's maximum width. </description> </method> <method name="set_icon_modulate"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="modulate" type="Color"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="modulate" type="Color" /> <description> Modulates the given column's icon with [code]modulate[/code]. </description> </method> <method name="set_icon_region"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="region" type="Rect2"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="region" type="Rect2" /> <description> Sets the given column's icon's texture region. </description> </method> <method name="set_language"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="language" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="language" type="String" /> <description> Sets language code of item's text used for line-breaking and text shaping algorithms, if left empty current locale is used instead. </description> </method> <method name="set_metadata"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="meta" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="meta" type="Variant" /> <description> Sets the metadata value for the given column, which can be retrieved later using [method get_metadata]. This can be used, for example, to store a reference to the original data. </description> </method> <method name="set_opentype_feature"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="tag" type="String"> - </argument> - <argument index="2" name="value" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="tag" type="String" /> + <argument index="2" name="value" type="int" /> <description> Sets OpenType feature [code]tag[/code] for the item's text. </description> </method> <method name="set_range"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="value" type="float"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="value" type="float" /> <description> Sets the value of a [constant CELL_MODE_RANGE] column. </description> </method> <method name="set_range_config"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="min" type="float"> - </argument> - <argument index="2" name="max" type="float"> - </argument> - <argument index="3" name="step" type="float"> - </argument> - <argument index="4" name="expr" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="min" type="float" /> + <argument index="2" name="max" type="float" /> + <argument index="3" name="step" type="float" /> + <argument index="4" name="expr" type="bool" default="false" /> <description> Sets the range of accepted values for a column. The column must be in the [constant CELL_MODE_RANGE] mode. If [code]expr[/code] is [code]true[/code], the edit mode slider will use an exponential scale as with [member Range.exp_edit]. </description> </method> <method name="set_selectable"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="selectable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="selectable" type="bool" /> <description> If [code]true[/code], the given column is selectable. </description> </method> <method name="set_structured_text_bidi_override"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="parser" type="int" enum="Control.StructuredTextParser"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="parser" type="int" enum="Control.StructuredTextParser" /> <description> </description> </method> <method name="set_structured_text_bidi_override_options"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="args" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="args" type="Array" /> <description> </description> </method> <method name="set_suffix"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="text" type="String" /> <description> Sets a string to be shown after a column's value (for example, a unit abbreviation). </description> </method> <method name="set_text"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="text" type="String" /> <description> Sets the given column's text value. </description> </method> <method name="set_text_align"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="text_align" type="int" enum="TreeItem.TextAlign"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="text_align" type="int" enum="TreeItem.TextAlign" /> <description> Sets the given column's text alignment. See [enum TextAlign] for possible values. </description> </method> <method name="set_text_direction"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="direction" type="int" enum="Control.TextDirection"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="direction" type="int" enum="Control.TextDirection" /> <description> Sets item's text base writing direction. </description> </method> <method name="set_tooltip"> - <return type="void"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="tooltip" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="column" type="int" /> + <argument index="1" name="tooltip" type="String" /> <description> Sets the given column's tooltip text. </description> </method> <method name="uncollapse_tree"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> diff --git a/doc/classes/Tween.xml b/doc/classes/Tween.xml index 4efb0a3309..372a6e7ebf 100644 --- a/doc/classes/Tween.xml +++ b/doc/classes/Tween.xml @@ -44,18 +44,15 @@ </tutorials> <methods> <method name="bind_node"> - <return type="Tween"> - </return> - <argument index="0" name="node" type="Node"> - </argument> + <return type="Tween" /> + <argument index="0" name="node" type="Node" /> <description> Binds this [Tween] with the given [code]node[/code]. [Tween]s are processed directly by the [SceneTree], so they run independently of the animated nodes. When you bind a [Node] with the [Tween], the [Tween] will halt the animation when the object is not inside tree and the [Tween] will be automatically killed when the bound object is freed. Also [constant TWEEN_PAUSE_BOUND] will make the pausing behavior dependent on the bound node. For a shorter way to create and bind a [Tween], you can use [method Node.create_tween]. </description> </method> <method name="chain"> - <return type="Tween"> - </return> + <return type="Tween" /> <description> Used to chain two [Tweener]s after [method set_parallel] is called with [code]true[/code]. [codeblock] @@ -67,10 +64,8 @@ </description> </method> <method name="custom_step"> - <return type="bool"> - </return> - <argument index="0" name="delta" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="delta" type="float" /> <description> Processes the [Tween] by given [code]delta[/code] value, in seconds. Mostly useful when the [Tween] is paused, for controlling it manually. Can also be used to end the [Tween] animation immediately, by using [code]delta[/code] longer than the whole duration. Returns [code]true[/code] if the [Tween] still has [Tweener]s that haven't finished. @@ -78,20 +73,13 @@ </description> </method> <method name="interpolate_value"> - <return type="Variant"> - </return> - <argument index="0" name="trans_type" type="Variant"> - </argument> - <argument index="1" name="ease_type" type="Variant"> - </argument> - <argument index="2" name="elapsed_time" type="float"> - </argument> - <argument index="3" name="initial_value" type="float"> - </argument> - <argument index="4" name="delta_value" type="int" enum="Tween.TransitionType"> - </argument> - <argument index="5" name="duration" type="int" enum="Tween.EaseType"> - </argument> + <return type="Variant" /> + <argument index="0" name="trans_type" type="Variant" /> + <argument index="1" name="ease_type" type="Variant" /> + <argument index="2" name="elapsed_time" type="float" /> + <argument index="3" name="initial_value" type="float" /> + <argument index="4" name="delta_value" type="int" enum="Tween.TransitionType" /> + <argument index="5" name="duration" type="int" enum="Tween.EaseType" /> <description> This method can be used for manual interpolation of a value, when you don't want [Tween] to do animating for you. It's similar to [method @GlobalScope.lerp], but with support for custom transition and easing. [code]elapsed_time[/code] is the time in seconds that passed after the interping started and it's used to control the position of the interpolation. E.g. when it's equal to half of the [code]duration[/code], the interpolated value will be halfway between initial and final values. This value can also be greater than [code]duration[/code] or lower than 0, which will extrapolate the value. @@ -101,29 +89,25 @@ </description> </method> <method name="is_running"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the [Tween] is currently running, i.e. it wasn't paused and it's not finished. </description> </method> <method name="is_valid"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the [Tween] is valid. A valid [Tween] is a [Tween] contained by the scene tree (i.e. the array from [method SceneTree.get_processed_tweens] will contain this [Tween]). [Tween] might become invalid when it has finished tweening or was killed, also when created with [code]Tween.new()[/code]. Invalid [Tween] can't have [Tweener]s appended, because it can't animate them. You can however still use [method interpolate_value]. </description> </method> <method name="kill"> - <return type="void"> - </return> + <return type="void" /> <description> Aborts all tweening operations and invalidates the [Tween]. </description> </method> <method name="parallel"> - <return type="Tween"> - </return> + <return type="Tween" /> <description> Makes the next [Tweener] run parallelly to the previous one. Example: [codeblock] @@ -137,97 +121,78 @@ </description> </method> <method name="pause"> - <return type="void"> - </return> + <return type="void" /> <description> Pauses the tweening. The animation can be resumed by using [method play]. </description> </method> <method name="play"> - <return type="void"> - </return> + <return type="void" /> <description> Resumes a paused or stopped [Tween]. </description> </method> <method name="set_ease"> - <return type="Tween"> - </return> - <argument index="0" name="ease" type="int" enum="Tween.EaseType"> - </argument> + <return type="Tween" /> + <argument index="0" name="ease" type="int" enum="Tween.EaseType" /> <description> Sets the default ease type for [PropertyTweener]s and [MethodTweener]s animated by this [Tween]. </description> </method> <method name="set_loops"> - <return type="Tween"> - </return> - <argument index="0" name="loops" type="int" default="0"> - </argument> + <return type="Tween" /> + <argument index="0" name="loops" type="int" default="0" /> <description> Sets the number of times the tweening sequence will be repeated, i.e. [code]set_loops(2)[/code] will run the animation twice. Calling this method without arguments will make the [Tween] run infinitely, until it is either killed by [method kill] or by freeing bound node, or all the animated objects have been freed (which makes further animation impossible). </description> </method> <method name="set_parallel"> - <return type="Tween"> - </return> - <argument index="0" name="parallel" type="bool" default="true"> - </argument> + <return type="Tween" /> + <argument index="0" name="parallel" type="bool" default="true" /> <description> If [code]parallel[/code] is [code]true[/code], the [Tweener]s appended after this method will by default run simultaneously, as opposed to sequentially. </description> </method> <method name="set_pause_mode"> - <return type="Tween"> - </return> - <argument index="0" name="mode" type="int" enum="Tween.TweenPauseMode"> - </argument> + <return type="Tween" /> + <argument index="0" name="mode" type="int" enum="Tween.TweenPauseMode" /> <description> Determines the behavior of the [Tween] when the [SceneTree] is paused. Check [enum TweenPauseMode] for options. Default value is [constant TWEEN_PAUSE_BOUND]. </description> </method> <method name="set_process_mode"> - <return type="Tween"> - </return> - <argument index="0" name="mode" type="int" enum="Tween.TweenProcessMode"> - </argument> + <return type="Tween" /> + <argument index="0" name="mode" type="int" enum="Tween.TweenProcessMode" /> <description> Determines whether the [Tween] should run during idle frame (see [method Node._process]) or physics frame (see [method Node._physics_process]. Default value is [constant TWEEN_PROCESS_IDLE]. </description> </method> <method name="set_speed_scale"> - <return type="Tween"> - </return> - <argument index="0" name="speed" type="float"> - </argument> + <return type="Tween" /> + <argument index="0" name="speed" type="float" /> <description> Scales the speed of tweening. This affects all [Tweener]s and their delays. </description> </method> <method name="set_trans"> - <return type="Tween"> - </return> - <argument index="0" name="trans" type="int" enum="Tween.TransitionType"> - </argument> + <return type="Tween" /> + <argument index="0" name="trans" type="int" enum="Tween.TransitionType" /> <description> Sets the default transition type for [PropertyTweener]s and [MethodTweener]s animated by this [Tween]. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the tweening and resets the [Tween] to its initial state. This will not remove any appended [Tweener]s. </description> </method> <method name="tween_callback"> - <return type="CallbackTweener"> - </return> - <argument index="0" name="callback" type="Callable"> - </argument> + <return type="CallbackTweener" /> + <argument index="0" name="callback" type="Callable" /> <description> Creates and appends a [CallbackTweener]. This method can be used to call an arbitrary method in any object. Use [method Callable.bind] to bind additional arguments for the call. Example: object that keeps shooting every 1 second. @@ -244,10 +209,8 @@ </description> </method> <method name="tween_interval"> - <return type="IntervalTweener"> - </return> - <argument index="0" name="time" type="float"> - </argument> + <return type="IntervalTweener" /> + <argument index="0" name="time" type="float" /> <description> Creates and appends an [IntervalTweener]. This method can be used to create delays in the tween animation, as an alternative for using the delay in other [Tweener]s or when there's no animation (in which case the [Tween] acts as a timer). [code]time[/code] is the length of the interval, in seconds. Example: creating an interval in code execution. @@ -271,16 +234,11 @@ </description> </method> <method name="tween_method"> - <return type="MethodTweener"> - </return> - <argument index="0" name="method" type="Callable"> - </argument> - <argument index="1" name="from" type="float"> - </argument> - <argument index="2" name="to" type="float"> - </argument> - <argument index="3" name="duration" type="float"> - </argument> + <return type="MethodTweener" /> + <argument index="0" name="method" type="Callable" /> + <argument index="1" name="from" type="float" /> + <argument index="2" name="to" type="float" /> + <argument index="3" name="duration" type="float" /> <description> Creates and appends a [MethodTweener]. This method is similar to a combination of [method tween_callback] and [method tween_property]. It calls a method over time with a tweened value provided as an argument. The value is tweened between [code]from[/code] and [code]to[/code] over the time specified by [code]duration[/code], in seconds. Use [method Callable.bind] to bind additional arguments for the call. You can use [method MethodTweener.set_ease] and [method MethodTweener.set_trans] to tweak the easing and transition of the value or [method MethodTweener.set_delay] to delay the tweening. Example: making a 3D object look from one point to another point. @@ -300,16 +258,11 @@ </description> </method> <method name="tween_property"> - <return type="PropertyTweener"> - </return> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="property" type="NodePath"> - </argument> - <argument index="2" name="final_val" type="Variant"> - </argument> - <argument index="3" name="duration" type="float"> - </argument> + <return type="PropertyTweener" /> + <argument index="0" name="object" type="Object" /> + <argument index="1" name="property" type="NodePath" /> + <argument index="2" name="final_val" type="Variant" /> + <argument index="3" name="duration" type="float" /> <description> Creates and appends a [PropertyTweener]. This method tweens a [code]property[/code] of an [code]object[/code] between an initial value and [code]final_val[/code] in a span of time equal to [code]duration[/code], in seconds. The initial value by default is a value at the time the tweening of the [PropertyTweener] start. For example: [codeblock] @@ -336,15 +289,13 @@ </description> </signal> <signal name="loop_finished"> - <argument index="0" name="loop_count" type="int"> - </argument> + <argument index="0" name="loop_count" type="int" /> <description> Emitted when a full loop is complete (see [method set_loops]), providing the loop index. This signal is not emitted after final loop, use [signal finished] instead for this case. </description> </signal> <signal name="step_finished"> - <argument index="0" name="idx" type="int"> - </argument> + <argument index="0" name="idx" type="int" /> <description> Emitted when one step of the [Tween] is complete, providing the step index. One step is either a single [Tweener] or a group of [Tweener]s running parallelly. </description> diff --git a/doc/classes/UDPServer.xml b/doc/classes/UDPServer.xml index 5e2906450c..eb6d42fb0f 100644 --- a/doc/classes/UDPServer.xml +++ b/doc/classes/UDPServer.xml @@ -124,54 +124,45 @@ </tutorials> <methods> <method name="get_local_port" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the local port this server is listening to. </description> </method> <method name="is_connection_available" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if a packet with a new address/port combination was received on the socket. </description> </method> <method name="is_listening" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the socket is open and listening on a port. </description> </method> <method name="listen"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="bind_address" type="String" default=""*""> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="bind_address" type="String" default=""*"" /> <description> Starts the server by opening a UDP socket listening on the given port. You can optionally specify a [code]bind_address[/code] to only listen for packets sent to that address. See also [method PacketPeerUDP.bind]. </description> </method> <method name="poll"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Call this method at regular intervals (e.g. inside [method Node._process]) to process new packets. And packet from known address/port pair will be delivered to the appropriate [PacketPeerUDP], any packet received from an unknown address/port pair will be added as a pending connection (see [method is_connection_available], [method take_connection]). The maximum number of pending connection is defined via [member max_pending_connections]. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the server, closing the UDP socket if open. Will close all connected [PacketPeerUDP] accepted via [method take_connection] (remote peers will not be notified). </description> </method> <method name="take_connection"> - <return type="PacketPeerUDP"> - </return> + <return type="PacketPeerUDP" /> <description> Returns the first pending connection (connected to the appropriate address/port). Will return [code]null[/code] if no new connection is available. See also [method is_connection_available], [method PacketPeerUDP.connect_to_host]. </description> diff --git a/doc/classes/UndoRedo.xml b/doc/classes/UndoRedo.xml index aba6183124..4417447891 100644 --- a/doc/classes/UndoRedo.xml +++ b/doc/classes/UndoRedo.xml @@ -63,171 +63,135 @@ </tutorials> <methods> <method name="add_do_method" qualifiers="vararg"> - <return type="void"> - </return> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="method" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="object" type="Object" /> + <argument index="1" name="method" type="StringName" /> <description> Register a method that will be called when the action is committed. </description> </method> <method name="add_do_property"> - <return type="void"> - </return> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="property" type="StringName"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="object" type="Object" /> + <argument index="1" name="property" type="StringName" /> + <argument index="2" name="value" type="Variant" /> <description> Register a property value change for "do". </description> </method> <method name="add_do_reference"> - <return type="void"> - </return> - <argument index="0" name="object" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="object" type="Object" /> <description> Register a reference for "do" that will be erased if the "do" history is lost. This is useful mostly for new nodes created for the "do" call. Do not use for resources. </description> </method> <method name="add_undo_method" qualifiers="vararg"> - <return type="void"> - </return> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="method" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="object" type="Object" /> + <argument index="1" name="method" type="StringName" /> <description> Register a method that will be called when the action is undone. </description> </method> <method name="add_undo_property"> - <return type="void"> - </return> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="property" type="StringName"> - </argument> - <argument index="2" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="object" type="Object" /> + <argument index="1" name="property" type="StringName" /> + <argument index="2" name="value" type="Variant" /> <description> Register a property value change for "undo". </description> </method> <method name="add_undo_reference"> - <return type="void"> - </return> - <argument index="0" name="object" type="Object"> - </argument> + <return type="void" /> + <argument index="0" name="object" type="Object" /> <description> Register a reference for "undo" that will be erased if the "undo" history is lost. This is useful mostly for nodes removed with the "do" call (not the "undo" call!). </description> </method> <method name="clear_history"> - <return type="void"> - </return> - <argument index="0" name="increase_version" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="increase_version" type="bool" default="true" /> <description> Clear the undo/redo history and associated references. Passing [code]false[/code] to [code]increase_version[/code] will prevent the version number to be increased from this. </description> </method> <method name="commit_action"> - <return type="void"> - </return> - <argument index="0" name="execute" type="bool" default="true"> - </argument> + <return type="void" /> + <argument index="0" name="execute" type="bool" default="true" /> <description> Commit the action. If [code]execute[/code] is true (default), all "do" methods/properties are called/set when this function is called. </description> </method> <method name="create_action"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="merge_mode" type="int" enum="UndoRedo.MergeMode" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="merge_mode" type="int" enum="UndoRedo.MergeMode" default="0" /> <description> Create a new action. After this is called, do all your calls to [method add_do_method], [method add_undo_method], [method add_do_property], and [method add_undo_property], then commit the action with [method commit_action]. The way actions are merged is dictated by the [code]merge_mode[/code] argument. See [enum MergeMode] for details. </description> </method> <method name="get_action_name"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="id" type="int" /> <description> Gets the action name from its index. </description> </method> <method name="get_current_action"> - <return type="int"> - </return> + <return type="int" /> <description> Gets the index of the current action. </description> </method> <method name="get_current_action_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Gets the name of the current action, equivalent to [code]get_action_name(get_current_action())[/code]. </description> </method> <method name="get_history_count"> - <return type="int"> - </return> + <return type="int" /> <description> Return how many elements are in the history. </description> </method> <method name="get_version" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Gets the version. Every time a new action is committed, the [UndoRedo]'s version number is increased automatically. This is useful mostly to check if something changed from a saved version. </description> </method> <method name="has_redo"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if a "redo" action is available. </description> </method> <method name="has_undo"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if an "undo" action is available. </description> </method> <method name="is_committing_action" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the [UndoRedo] is currently committing the action, i.e. running its "do" method or property change (see [method commit_action]). </description> </method> <method name="redo"> - <return type="bool"> - </return> + <return type="bool" /> <description> Redo the last action. </description> </method> <method name="undo"> - <return type="bool"> - </return> + <return type="bool" /> <description> Undo the last action. </description> diff --git a/doc/classes/Vector2.xml b/doc/classes/Vector2.xml index 498aefbef0..cb5662419e 100644 --- a/doc/classes/Vector2.xml +++ b/doc/classes/Vector2.xml @@ -18,51 +18,41 @@ </tutorials> <methods> <method name="Vector2" qualifiers="constructor"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Constructs a default-initialized [Vector2] with all components set to [code]0[/code]. </description> </method> <method name="Vector2" qualifiers="constructor"> - <return type="Vector2"> - </return> - <argument index="0" name="from" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="from" type="Vector2" /> <description> Constructs a [Vector2] as a copy of the given [Vector2]. </description> </method> <method name="Vector2" qualifiers="constructor"> - <return type="Vector2"> - </return> - <argument index="0" name="from" type="Vector2i"> - </argument> + <return type="Vector2" /> + <argument index="0" name="from" type="Vector2i" /> <description> Constructs a new [Vector2] from [Vector2i]. </description> </method> <method name="Vector2" qualifiers="constructor"> - <return type="Vector2"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="y" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="y" type="float" /> <description> Constructs a new [Vector2] from the given [code]x[/code] and [code]y[/code]. </description> </method> <method name="abs" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns a new vector with all components in absolute values (i.e. positive). </description> </method> <method name="angle" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns this vector's angle with respect to the positive X axis, or [code](1, 0)[/code] vector, in radians. For example, [code]Vector2.RIGHT.angle()[/code] will return zero, [code]Vector2.DOWN.angle()[/code] will return [code]PI / 2[/code] (a quarter turn, or 90 degrees), and [code]Vector2(1, -1).angle()[/code] will return [code]-PI / 4[/code] (a negative eighth turn, or -45 degrees). @@ -70,114 +60,88 @@ </description> </method> <method name="angle_to" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="to" type="Vector2"> - </argument> + <return type="float" /> + <argument index="0" name="to" type="Vector2" /> <description> Returns the angle to the given vector, in radians. </description> </method> <method name="angle_to_point" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="to" type="Vector2"> - </argument> + <return type="float" /> + <argument index="0" name="to" type="Vector2" /> <description> Returns the angle between the line connecting the two points and the X axis, in radians. </description> </method> <method name="aspect" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the aspect ratio of this vector, the ratio of [member x] to [member y]. </description> </method> <method name="bounce" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="n" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="n" type="Vector2" /> <description> Returns the vector "bounced off" from a plane defined by the given normal. </description> </method> <method name="ceil" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the vector with all components rounded up (towards positive infinity). </description> </method> <method name="clamp" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="min" type="Vector2"> - </argument> - <argument index="1" name="max" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="min" type="Vector2" /> + <argument index="1" name="max" type="Vector2" /> <description> Returns a new vector with all components clamped between the components of [code]min[/code] and [code]max[/code], by running [method @GlobalScope.clamp] on each component. </description> </method> <method name="cross" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="with" type="Vector2"> - </argument> + <return type="float" /> + <argument index="0" name="with" type="Vector2" /> <description> Returns the cross product of this vector and [code]with[/code]. </description> </method> <method name="cubic_interpolate" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="b" type="Vector2"> - </argument> - <argument index="1" name="pre_a" type="Vector2"> - </argument> - <argument index="2" name="post_b" type="Vector2"> - </argument> - <argument index="3" name="weight" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="b" type="Vector2" /> + <argument index="1" name="pre_a" type="Vector2" /> + <argument index="2" name="post_b" type="Vector2" /> + <argument index="3" name="weight" type="float" /> <description> Cubically interpolates between this vector and [code]b[/code] using [code]pre_a[/code] and [code]post_b[/code] as handles, and returns the result at position [code]weight[/code]. [code]weight[/code] is on the range of 0.0 to 1.0, representing the amount of interpolation. </description> </method> <method name="direction_to" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="b" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="b" type="Vector2" /> <description> Returns the normalized vector pointing from this vector to [code]b[/code]. This is equivalent to using [code](b - a).normalized()[/code]. </description> </method> <method name="distance_squared_to" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="to" type="Vector2"> - </argument> + <return type="float" /> + <argument index="0" name="to" type="Vector2" /> <description> Returns the squared distance between this vector and [code]b[/code]. This method runs faster than [method distance_to], so prefer it if you need to compare vectors or need the squared distance for some formula. </description> </method> <method name="distance_to" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="to" type="Vector2"> - </argument> + <return type="float" /> + <argument index="0" name="to" type="Vector2" /> <description> Returns the distance between this vector and [code]to[/code]. </description> </method> <method name="dot" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="with" type="Vector2"> - </argument> + <return type="float" /> + <argument index="0" name="with" type="Vector2" /> <description> Returns the dot product of this vector and [code]with[/code]. This can be used to compare the angle between two vectors. For example, this can be used to determine whether an enemy is facing the player. The dot product will be [code]0[/code] for a straight angle (90 degrees), greater than 0 for angles narrower than 90 degrees and lower than 0 for angles wider than 90 degrees. @@ -186,313 +150,244 @@ </description> </method> <method name="floor" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the vector with all components rounded down (towards negative infinity). </description> </method> <method name="is_equal_approx" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="to" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="to" type="Vector2" /> <description> Returns [code]true[/code] if this vector and [code]v[/code] are approximately equal, by running [method @GlobalScope.is_equal_approx] on each component. </description> </method> <method name="is_normalized" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the vector is normalized, [code]false[/code] otherwise. </description> </method> <method name="length" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the length (magnitude) of this vector. </description> </method> <method name="length_squared" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the squared length (squared magnitude) of this vector. This method runs faster than [method length], so prefer it if you need to compare vectors or need the squared distance for some formula. </description> </method> <method name="lerp" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="to" type="Vector2"> - </argument> - <argument index="1" name="weight" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="to" type="Vector2" /> + <argument index="1" name="weight" type="float" /> <description> Returns the result of the linear interpolation between this vector and [code]to[/code] by amount [code]weight[/code]. [code]weight[/code] is on the range of 0.0 to 1.0, representing the amount of interpolation. </description> </method> <method name="limit_length" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="length" type="float" default="1.0"> - </argument> + <return type="Vector2" /> + <argument index="0" name="length" type="float" default="1.0" /> <description> Returns the vector with a maximum length by limiting its length to [code]length[/code]. </description> </method> <method name="move_toward" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="to" type="Vector2"> - </argument> - <argument index="1" name="delta" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="to" type="Vector2" /> + <argument index="1" name="delta" type="float" /> <description> Moves the vector toward [code]to[/code] by the fixed [code]delta[/code] amount. </description> </method> <method name="normalized" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the vector scaled to unit length. Equivalent to [code]v / v.length()[/code]. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="Transform2D"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="Transform2D" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator -" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="operator unary+" qualifiers="operator"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> </description> </method> <method name="operator unary-" qualifiers="operator"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> </description> </method> <method name="orthogonal" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns a perpendicular vector rotated 90 degrees counter-clockwise compared to the original, with the same length. </description> </method> <method name="posmod" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="mod" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="mod" type="float" /> <description> Returns a vector composed of the [method @GlobalScope.fposmod] of this vector's components and [code]mod[/code]. </description> </method> <method name="posmodv" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="modv" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="modv" type="Vector2" /> <description> Returns a vector composed of the [method @GlobalScope.fposmod] of this vector's components and [code]modv[/code]'s components. </description> </method> <method name="project" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="b" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="b" type="Vector2" /> <description> Returns the vector projected onto the vector [code]b[/code]. </description> </method> <method name="reflect" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="n" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="n" type="Vector2" /> <description> Returns the vector reflected from a plane defined by the given normal. </description> </method> <method name="rotated" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="phi" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="phi" type="float" /> <description> Returns the vector rotated by [code]phi[/code] radians. See also [method @GlobalScope.deg2rad]. </description> </method> <method name="round" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the vector with all components rounded to the nearest integer, with halfway cases rounded away from zero. </description> </method> <method name="sign" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the vector with each component set to one or negative one, depending on the signs of the components, or zero if the component is zero, by calling [method @GlobalScope.sign] on each component. </description> </method> <method name="slerp" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="to" type="Vector2"> - </argument> - <argument index="1" name="weight" type="float"> - </argument> + <return type="Vector2" /> + <argument index="0" name="to" type="Vector2" /> + <argument index="1" name="weight" type="float" /> <description> Returns the result of spherical linear interpolation between this vector and [code]to[/code], by amount [code]weight[/code]. [code]weight[/code] is on the range of 0.0 to 1.0, representing the amount of interpolation. [b]Note:[/b] Both vectors must be normalized. </description> </method> <method name="slide" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="n" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="n" type="Vector2" /> <description> Returns this vector slid along a plane defined by the given normal. </description> </method> <method name="snapped" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="step" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="step" type="Vector2" /> <description> Returns this vector with each component snapped to the nearest multiple of [code]step[/code]. This can also be used to round to an arbitrary number of decimals. </description> diff --git a/doc/classes/Vector2i.xml b/doc/classes/Vector2i.xml index 5f190de8ca..212b1fd22b 100644 --- a/doc/classes/Vector2i.xml +++ b/doc/classes/Vector2i.xml @@ -15,217 +15,167 @@ </tutorials> <methods> <method name="Vector2i" qualifiers="constructor"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> Constructs a default-initialized [Vector2i] with all components set to [code]0[/code]. </description> </method> <method name="Vector2i" qualifiers="constructor"> - <return type="Vector2i"> - </return> - <argument index="0" name="from" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="from" type="Vector2i" /> <description> Constructs a [Vector2i] as a copy of the given [Vector2i]. </description> </method> <method name="Vector2i" qualifiers="constructor"> - <return type="Vector2i"> - </return> - <argument index="0" name="from" type="Vector2"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="from" type="Vector2" /> <description> Constructs a new [Vector2i] from [Vector2]. The floating point coordinates will be truncated. </description> </method> <method name="Vector2i" qualifiers="constructor"> - <return type="Vector2i"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="x" type="int" /> + <argument index="1" name="y" type="int" /> <description> Constructs a new [Vector2i] from the given [code]x[/code] and [code]y[/code]. </description> </method> <method name="abs" qualifiers="const"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> Returns a new vector with all components in absolute values (i.e. positive). </description> </method> <method name="aspect" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the ratio of [member x] to [member y]. </description> </method> <method name="clamp" qualifiers="const"> - <return type="Vector2i"> - </return> - <argument index="0" name="min" type="Vector2i"> - </argument> - <argument index="1" name="max" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="min" type="Vector2i" /> + <argument index="1" name="max" type="Vector2i" /> <description> Returns a new vector with all components clamped between the components of [code]min[/code] and [code]max[/code], by running [method @GlobalScope.clamp] on each component. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator %" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator %" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator -" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector2i" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="operator unary+" qualifiers="operator"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> </description> </method> <method name="operator unary-" qualifiers="operator"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> </description> </method> <method name="sign" qualifiers="const"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> Returns the vector with each component set to one or negative one, depending on the signs of the components. </description> diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml index 1361666c18..78251b0342 100644 --- a/doc/classes/Vector3.xml +++ b/doc/classes/Vector3.xml @@ -18,143 +18,110 @@ </tutorials> <methods> <method name="Vector3" qualifiers="constructor"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Constructs a default-initialized [Vector3] with all components set to [code]0[/code]. </description> </method> <method name="Vector3" qualifiers="constructor"> - <return type="Vector3"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="from" type="Vector3" /> <description> Constructs a [Vector3] as a copy of the given [Vector3]. </description> </method> <method name="Vector3" qualifiers="constructor"> - <return type="Vector3"> - </return> - <argument index="0" name="from" type="Vector3i"> - </argument> + <return type="Vector3" /> + <argument index="0" name="from" type="Vector3i" /> <description> Constructs a new [Vector3] from [Vector3i]. </description> </method> <method name="Vector3" qualifiers="constructor"> - <return type="Vector3"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="y" type="float"> - </argument> - <argument index="2" name="z" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="y" type="float" /> + <argument index="2" name="z" type="float" /> <description> Returns a [Vector3] with the given components. </description> </method> <method name="abs" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns a new vector with all components in absolute values (i.e. positive). </description> </method> <method name="angle_to" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="to" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="to" type="Vector3" /> <description> Returns the unsigned minimum angle to the given vector, in radians. </description> </method> <method name="bounce" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="n" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="n" type="Vector3" /> <description> Returns the vector "bounced off" from a plane defined by the given normal. </description> </method> <method name="ceil" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns a new vector with all components rounded up (towards positive infinity). </description> </method> <method name="clamp" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="min" type="Vector3"> - </argument> - <argument index="1" name="max" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="min" type="Vector3" /> + <argument index="1" name="max" type="Vector3" /> <description> Returns a new vector with all components clamped between the components of [code]min[/code] and [code]max[/code], by running [method @GlobalScope.clamp] on each component. </description> </method> <method name="cross" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="with" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="with" type="Vector3" /> <description> Returns the cross product of this vector and [code]b[/code]. </description> </method> <method name="cubic_interpolate" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="b" type="Vector3"> - </argument> - <argument index="1" name="pre_a" type="Vector3"> - </argument> - <argument index="2" name="post_b" type="Vector3"> - </argument> - <argument index="3" name="weight" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="b" type="Vector3" /> + <argument index="1" name="pre_a" type="Vector3" /> + <argument index="2" name="post_b" type="Vector3" /> + <argument index="3" name="weight" type="float" /> <description> Performs a cubic interpolation between vectors [code]pre_a[/code], [code]a[/code], [code]b[/code], [code]post_b[/code] ([code]a[/code] is current), by the given amount [code]weight[/code]. [code]weight[/code] is on the range of 0.0 to 1.0, representing the amount of interpolation. </description> </method> <method name="direction_to" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="b" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="b" type="Vector3" /> <description> Returns the normalized vector pointing from this vector to [code]b[/code]. This is equivalent to using [code](b - a).normalized()[/code]. </description> </method> <method name="distance_squared_to" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="b" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="b" type="Vector3" /> <description> Returns the squared distance between this vector and [code]b[/code]. This method runs faster than [method distance_to], so prefer it if you need to compare vectors or need the squared distance for some formula. </description> </method> <method name="distance_to" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="b" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="b" type="Vector3" /> <description> Returns the distance between this vector and [code]b[/code]. </description> </method> <method name="dot" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="with" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="with" type="Vector3" /> <description> Returns the dot product of this vector and [code]b[/code]. This can be used to compare the angle between two vectors. For example, this can be used to determine whether an enemy is facing the player. The dot product will be [code]0[/code] for a straight angle (90 degrees), greater than 0 for angles narrower than 90 degrees and lower than 0 for angles wider than 90 degrees. @@ -163,372 +130,290 @@ </description> </method> <method name="floor" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns a new vector with all components rounded down (towards negative infinity). </description> </method> <method name="inverse" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the inverse of the vector. This is the same as [code]Vector3(1.0 / v.x, 1.0 / v.y, 1.0 / v.z)[/code]. </description> </method> <method name="is_equal_approx" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="to" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="to" type="Vector3" /> <description> Returns [code]true[/code] if this vector and [code]v[/code] are approximately equal, by running [method @GlobalScope.is_equal_approx] on each component. </description> </method> <method name="is_normalized" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the vector is normalized, [code]false[/code] otherwise. </description> </method> <method name="length" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the length (magnitude) of this vector. </description> </method> <method name="length_squared" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the squared length (squared magnitude) of this vector. This method runs faster than [method length], so prefer it if you need to compare vectors or need the squared distance for some formula. </description> </method> <method name="lerp" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="to" type="Vector3"> - </argument> - <argument index="1" name="weight" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="to" type="Vector3" /> + <argument index="1" name="weight" type="float" /> <description> Returns the result of the linear interpolation between this vector and [code]to[/code] by amount [code]weight[/code]. [code]weight[/code] is on the range of 0.0 to 1.0, representing the amount of interpolation. </description> </method> <method name="limit_length" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="length" type="float" default="1.0"> - </argument> + <return type="Vector3" /> + <argument index="0" name="length" type="float" default="1.0" /> <description> Returns the vector with a maximum length by limiting its length to [code]length[/code]. </description> </method> <method name="max_axis" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the axis of the vector's largest value. See [code]AXIS_*[/code] constants. If all components are equal, this method returns [constant AXIS_X]. </description> </method> <method name="min_axis" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the axis of the vector's smallest value. See [code]AXIS_*[/code] constants. If all components are equal, this method returns [constant AXIS_Z]. </description> </method> <method name="move_toward" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="to" type="Vector3"> - </argument> - <argument index="1" name="delta" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="to" type="Vector3" /> + <argument index="1" name="delta" type="float" /> <description> Moves this vector toward [code]to[/code] by the fixed [code]delta[/code] amount. </description> </method> <method name="normalized" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the vector scaled to unit length. Equivalent to [code]v / v.length()[/code]. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Basis"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Basis" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Quaternion"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Quaternion" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Transform3D"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Transform3D" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator -" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="operator unary+" qualifiers="operator"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> </description> </method> <method name="operator unary-" qualifiers="operator"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> </description> </method> <method name="outer" qualifiers="const"> - <return type="Basis"> - </return> - <argument index="0" name="with" type="Vector3"> - </argument> + <return type="Basis" /> + <argument index="0" name="with" type="Vector3" /> <description> Returns the outer product with [code]b[/code]. </description> </method> <method name="posmod" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="mod" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="mod" type="float" /> <description> Returns a vector composed of the [method @GlobalScope.fposmod] of this vector's components and [code]mod[/code]. </description> </method> <method name="posmodv" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="modv" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="modv" type="Vector3" /> <description> Returns a vector composed of the [method @GlobalScope.fposmod] of this vector's components and [code]modv[/code]'s components. </description> </method> <method name="project" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="b" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="b" type="Vector3" /> <description> Returns this vector projected onto another vector [code]b[/code]. </description> </method> <method name="reflect" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="n" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="n" type="Vector3" /> <description> Returns this vector reflected from a plane defined by the given normal. </description> </method> <method name="rotated" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="by_axis" type="Vector3"> - </argument> - <argument index="1" name="phi" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="by_axis" type="Vector3" /> + <argument index="1" name="phi" type="float" /> <description> Rotates this vector around a given axis by [code]phi[/code] radians. The axis must be a normalized vector. </description> </method> <method name="round" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns this vector with all components rounded to the nearest integer, with halfway cases rounded away from zero. </description> </method> <method name="sign" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns a vector with each component set to one or negative one, depending on the signs of this vector's components, or zero if the component is zero, by calling [method @GlobalScope.sign] on each component. </description> </method> <method name="signed_angle_to" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="to" type="Vector3"> - </argument> - <argument index="1" name="axis" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="to" type="Vector3" /> + <argument index="1" name="axis" type="Vector3" /> <description> Returns the signed angle to the given vector, in radians. The sign of the angle is positive in a counter-clockwise direction and negative in a clockwise direction when viewed from the side specified by the [code]axis[/code]. </description> </method> <method name="slerp" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="to" type="Vector3"> - </argument> - <argument index="1" name="weight" type="float"> - </argument> + <return type="Vector3" /> + <argument index="0" name="to" type="Vector3" /> + <argument index="1" name="weight" type="float" /> <description> Returns the result of spherical linear interpolation between this vector and [code]to[/code], by amount [code]weight[/code]. [code]weight[/code] is on the range of 0.0 to 1.0, representing the amount of interpolation. [b]Note:[/b] Both vectors must be normalized. </description> </method> <method name="slide" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="n" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="n" type="Vector3" /> <description> Returns this vector slid along a plane defined by the given normal. </description> </method> <method name="snapped" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="step" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="step" type="Vector3" /> <description> Returns this vector with each component snapped to the nearest multiple of [code]step[/code]. This can also be used to round to an arbitrary number of decimals. </description> </method> <method name="to_diagonal_matrix" qualifiers="const"> - <return type="Basis"> - </return> + <return type="Basis" /> <description> Returns a diagonal matrix with the vector as main diagonal. This is equivalent to a Basis with no rotation or shearing and this vector's components set as the scale. diff --git a/doc/classes/Vector3i.xml b/doc/classes/Vector3i.xml index e08bafa665..75df182025 100644 --- a/doc/classes/Vector3i.xml +++ b/doc/classes/Vector3i.xml @@ -15,225 +15,173 @@ </tutorials> <methods> <method name="Vector3i" qualifiers="constructor"> - <return type="Vector3i"> - </return> + <return type="Vector3i" /> <description> Constructs a default-initialized [Vector3i] with all components set to [code]0[/code]. </description> </method> <method name="Vector3i" qualifiers="constructor"> - <return type="Vector3i"> - </return> - <argument index="0" name="from" type="Vector3i"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="from" type="Vector3i" /> <description> Constructs a [Vector3i] as a copy of the given [Vector3i]. </description> </method> <method name="Vector3i" qualifiers="constructor"> - <return type="Vector3i"> - </return> - <argument index="0" name="from" type="Vector3"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="from" type="Vector3" /> <description> Constructs a new [Vector3i] from [Vector3]. The floating point coordinates will be truncated. </description> </method> <method name="Vector3i" qualifiers="constructor"> - <return type="Vector3i"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="z" type="int"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="x" type="int" /> + <argument index="1" name="y" type="int" /> + <argument index="2" name="z" type="int" /> <description> Returns a [Vector3i] with the given components. </description> </method> <method name="abs" qualifiers="const"> - <return type="Vector3i"> - </return> + <return type="Vector3i" /> <description> </description> </method> <method name="clamp" qualifiers="const"> - <return type="Vector3i"> - </return> - <argument index="0" name="min" type="Vector3i"> - </argument> - <argument index="1" name="max" type="Vector3i"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="min" type="Vector3i" /> + <argument index="1" name="max" type="Vector3i" /> <description> Returns a new vector with all components clamped between the components of [code]min[/code] and [code]max[/code], by running [method @GlobalScope.clamp] on each component. </description> </method> <method name="max_axis" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the axis of the vector's largest value. See [code]AXIS_*[/code] constants. If all components are equal, this method returns [constant AXIS_X]. </description> </method> <method name="min_axis" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the axis of the vector's smallest value. See [code]AXIS_*[/code] constants. If all components are equal, this method returns [constant AXIS_Z]. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator %" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator %" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator +" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator -" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="float" /> <description> </description> </method> <method name="operator /" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="int" /> <description> </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="Vector3i" /> <description> </description> </method> <method name="operator []" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="index" type="int" /> <description> </description> </method> <method name="operator unary+" qualifiers="operator"> - <return type="Vector3i"> - </return> + <return type="Vector3i" /> <description> </description> </method> <method name="operator unary-" qualifiers="operator"> - <return type="Vector3i"> - </return> + <return type="Vector3i" /> <description> </description> </method> <method name="sign" qualifiers="const"> - <return type="Vector3i"> - </return> + <return type="Vector3i" /> <description> Returns the vector with each component set to one or negative one, depending on the signs of the components. </description> diff --git a/doc/classes/VehicleWheel3D.xml b/doc/classes/VehicleWheel3D.xml index fb0cb03d1c..35f1189a06 100644 --- a/doc/classes/VehicleWheel3D.xml +++ b/doc/classes/VehicleWheel3D.xml @@ -12,22 +12,19 @@ </tutorials> <methods> <method name="get_rpm" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns the rotational speed of the wheel in revolutions per minute. </description> </method> <method name="get_skidinfo" qualifiers="const"> - <return type="float"> - </return> + <return type="float" /> <description> Returns a value between 0.0 and 1.0 that indicates whether this wheel is skidding. 0.0 is skidding (the wheel has lost grip, e.g. icy terrain), 1.0 means not skidding (the wheel has full grip, e.g. dry asphalt road). </description> </method> <method name="is_in_contact" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this wheel is in contact with a surface. </description> diff --git a/doc/classes/VelocityTracker3D.xml b/doc/classes/VelocityTracker3D.xml index 2d5e3a4d30..7e97cad5bf 100644 --- a/doc/classes/VelocityTracker3D.xml +++ b/doc/classes/VelocityTracker3D.xml @@ -8,24 +8,19 @@ </tutorials> <methods> <method name="get_tracked_linear_velocity" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> </description> </method> <method name="reset"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector3" /> <description> </description> </method> <method name="update_position"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector3"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector3" /> <description> </description> </method> diff --git a/doc/classes/VideoPlayer.xml b/doc/classes/VideoPlayer.xml index 12558ebbbc..86b2dd102b 100644 --- a/doc/classes/VideoPlayer.xml +++ b/doc/classes/VideoPlayer.xml @@ -13,37 +13,32 @@ </tutorials> <methods> <method name="get_stream_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the video stream's name, or [code]"<No Stream>"[/code] if no video stream is assigned. </description> </method> <method name="get_video_texture" qualifiers="const"> - <return type="Texture2D"> - </return> + <return type="Texture2D" /> <description> Returns the current frame as a [Texture2D]. </description> </method> <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the video is playing. [b]Note:[/b] The video is still considered playing if paused during playback. </description> </method> <method name="play"> - <return type="void"> - </return> + <return type="void" /> <description> Starts the video playback from the beginning. If the video is paused, this will not unpause the video. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the video playback and sets the stream position to 0. [b]Note:[/b] Although the stream position will be set to 0, the first frame of the video stream won't become the current frame. diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml index bf58dc4d8c..c2edab7e82 100644 --- a/doc/classes/Viewport.xml +++ b/doc/classes/Viewport.xml @@ -23,69 +23,57 @@ </tutorials> <methods> <method name="find_world_2d" qualifiers="const"> - <return type="World2D"> - </return> + <return type="World2D" /> <description> Returns the 2D world of the viewport. </description> </method> <method name="find_world_3d" qualifiers="const"> - <return type="World3D"> - </return> + <return type="World3D" /> <description> Returns the 3D world of the viewport, or if none the world of the parent viewport. </description> </method> <method name="get_camera_2d" qualifiers="const"> - <return type="Camera2D"> - </return> + <return type="Camera2D" /> <description> Returns the currently active 2D camera. Returns null if there are no active cameras. </description> </method> <method name="get_camera_3d" qualifiers="const"> - <return type="Camera3D"> - </return> + <return type="Camera3D" /> <description> Returns the currently active 3D camera. </description> </method> <method name="get_final_transform" qualifiers="const"> - <return type="Transform2D"> - </return> + <return type="Transform2D" /> <description> Returns the total transform of the viewport. </description> </method> <method name="get_mouse_position" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the mouse position relative to the viewport. </description> </method> <method name="get_render_info"> - <return type="int"> - </return> - <argument index="0" name="type" type="int" enum="Viewport.RenderInfoType"> - </argument> - <argument index="1" name="info" type="int" enum="Viewport.RenderInfo"> - </argument> + <return type="int" /> + <argument index="0" name="type" type="int" enum="Viewport.RenderInfoType" /> + <argument index="1" name="info" type="int" enum="Viewport.RenderInfo" /> <description> </description> </method> <method name="get_shadow_atlas_quadrant_subdiv" qualifiers="const"> - <return type="int" enum="Viewport.ShadowAtlasQuadrantSubdiv"> - </return> - <argument index="0" name="quadrant" type="int"> - </argument> + <return type="int" enum="Viewport.ShadowAtlasQuadrantSubdiv" /> + <argument index="0" name="quadrant" type="int" /> <description> Returns the [enum ShadowAtlasQuadrantSubdiv] of the specified quadrant. </description> </method> <method name="get_texture" qualifiers="const"> - <return type="ViewportTexture"> - </return> + <return type="ViewportTexture" /> <description> Returns the viewport's texture. [b]Note:[/b] Due to the way OpenGL works, the resulting [ViewportTexture] is flipped vertically. You can use [method Image.flip_y] on the result of [method Texture2D.get_image] to flip it back, for example: @@ -102,96 +90,76 @@ </description> </method> <method name="get_viewport_rid" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the viewport's RID from the [RenderingServer]. </description> </method> <method name="get_visible_rect" qualifiers="const"> - <return type="Rect2"> - </return> + <return type="Rect2" /> <description> Returns the visible rectangle in global screen coordinates. </description> </method> <method name="gui_get_drag_data" qualifiers="const"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns the drag data from the GUI, that was previously returned by [method Control._get_drag_data]. </description> </method> <method name="gui_is_dragging" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the viewport is currently performing a drag operation. </description> </method> <method name="input"> - <return type="void"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> - <argument index="1" name="in_local_coords" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="event" type="InputEvent" /> + <argument index="1" name="in_local_coords" type="bool" default="false" /> <description> </description> </method> <method name="input_text"> - <return type="void"> - </return> - <argument index="0" name="text" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="text" type="String" /> <description> </description> </method> <method name="is_embedding_subwindows" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="is_input_handled" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="set_input_as_handled"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the input from propagating further down the [SceneTree]. </description> </method> <method name="set_shadow_atlas_quadrant_subdiv"> - <return type="void"> - </return> - <argument index="0" name="quadrant" type="int"> - </argument> - <argument index="1" name="subdiv" type="int" enum="Viewport.ShadowAtlasQuadrantSubdiv"> - </argument> + <return type="void" /> + <argument index="0" name="quadrant" type="int" /> + <argument index="1" name="subdiv" type="int" enum="Viewport.ShadowAtlasQuadrantSubdiv" /> <description> Sets the number of subdivisions to use in the specified quadrant. A higher number of subdivisions allows you to have more shadows in the scene at once, but reduces the quality of the shadows. A good practice is to have quadrants with a varying number of subdivisions and to have as few subdivisions as possible. </description> </method> <method name="unhandled_input"> - <return type="void"> - </return> - <argument index="0" name="event" type="InputEvent"> - </argument> - <argument index="1" name="in_local_coords" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="event" type="InputEvent" /> + <argument index="1" name="in_local_coords" type="bool" default="false" /> <description> </description> </method> <method name="warp_mouse"> - <return type="void"> - </return> - <argument index="0" name="to_position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="to_position" type="Vector2" /> <description> Warps the mouse to a position relative to the viewport. </description> @@ -291,8 +259,7 @@ </members> <signals> <signal name="gui_focus_changed"> - <argument index="0" name="node" type="Control"> - </argument> + <argument index="0" name="node" type="Control" /> <description> Emitted when a Control node grabs keyboard focus. </description> diff --git a/doc/classes/VisibleOnScreenNotifier2D.xml b/doc/classes/VisibleOnScreenNotifier2D.xml index daad200ca8..995bd9e9d7 100644 --- a/doc/classes/VisibleOnScreenNotifier2D.xml +++ b/doc/classes/VisibleOnScreenNotifier2D.xml @@ -12,8 +12,7 @@ </tutorials> <methods> <method name="is_on_screen" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> If [code]true[/code], the bounding rectangle is on the screen. [b]Note:[/b] It takes one frame for the node's visibility to be assessed once added to the scene tree, so this method will return [code]false[/code] right after it is instantiated, even if it will be on screen in the draw pass. diff --git a/doc/classes/VisibleOnScreenNotifier3D.xml b/doc/classes/VisibleOnScreenNotifier3D.xml index 85ff324fbf..03db449c80 100644 --- a/doc/classes/VisibleOnScreenNotifier3D.xml +++ b/doc/classes/VisibleOnScreenNotifier3D.xml @@ -12,8 +12,7 @@ </tutorials> <methods> <method name="is_on_screen" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> If [code]true[/code], the bounding box is on the screen. [b]Note:[/b] It takes one frame for the node's visibility to be assessed once added to the scene tree, so this method will return [code]false[/code] right after it is instantiated, even if it will be on screen in the draw pass. diff --git a/doc/classes/VisualInstance3D.xml b/doc/classes/VisualInstance3D.xml index 2a12254b71..2d9c266f3c 100644 --- a/doc/classes/VisualInstance3D.xml +++ b/doc/classes/VisualInstance3D.xml @@ -10,59 +10,48 @@ </tutorials> <methods> <method name="get_aabb" qualifiers="const"> - <return type="AABB"> - </return> + <return type="AABB" /> <description> Returns the [AABB] (also known as the bounding box) for this [VisualInstance3D]. See also [method get_transformed_aabb]. </description> </method> <method name="get_base" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the RID of the resource associated with this [VisualInstance3D]. For example, if the Node is a [MeshInstance3D], this will return the RID of the associated [Mesh]. </description> </method> <method name="get_instance" qualifiers="const"> - <return type="RID"> - </return> + <return type="RID" /> <description> Returns the RID of this instance. This RID is the same as the RID returned by [method RenderingServer.instance_create]. This RID is needed if you want to call [RenderingServer] functions directly on this [VisualInstance3D]. </description> </method> <method name="get_layer_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="layer" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="layer" type="int" /> <description> Returns [code]true[/code] when the specified layer is enabled in [member layers] and [code]false[/code] otherwise. </description> </method> <method name="get_transformed_aabb" qualifiers="const"> - <return type="AABB"> - </return> + <return type="AABB" /> <description> Returns the transformed [AABB] (also known as the bounding box) for this [VisualInstance3D]. Transformed in this case means the [AABB] plus the position, rotation, and scale of the [Node3D]'s [Transform3D]. See also [method get_aabb]. </description> </method> <method name="set_base"> - <return type="void"> - </return> - <argument index="0" name="base" type="RID"> - </argument> + <return type="void" /> + <argument index="0" name="base" type="RID" /> <description> Sets the resource that is instantiated by this [VisualInstance3D], which changes how the engine handles the [VisualInstance3D] under the hood. Equivalent to [method RenderingServer.instance_set_base]. </description> </method> <method name="set_layer_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="layer" type="int"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="layer" type="int" /> + <argument index="1" name="enabled" type="bool" /> <description> Enables a particular layer in [member layers]. </description> diff --git a/doc/classes/VisualShader.xml b/doc/classes/VisualShader.xml index 19b4acd8f1..6f65f32ed5 100644 --- a/doc/classes/VisualShader.xml +++ b/doc/classes/VisualShader.xml @@ -11,195 +11,135 @@ </tutorials> <methods> <method name="add_node"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="node" type="VisualShaderNode"> - </argument> - <argument index="2" name="position" type="Vector2"> - </argument> - <argument index="3" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="node" type="VisualShaderNode" /> + <argument index="2" name="position" type="Vector2" /> + <argument index="3" name="id" type="int" /> <description> Adds the specified node to the shader. </description> </method> <method name="can_connect_nodes" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="from_node" type="int"> - </argument> - <argument index="2" name="from_port" type="int"> - </argument> - <argument index="3" name="to_node" type="int"> - </argument> - <argument index="4" name="to_port" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="from_node" type="int" /> + <argument index="2" name="from_port" type="int" /> + <argument index="3" name="to_node" type="int" /> + <argument index="4" name="to_port" type="int" /> <description> Returns [code]true[/code] if the specified nodes and ports can be connected together. </description> </method> <method name="connect_nodes"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="from_node" type="int"> - </argument> - <argument index="2" name="from_port" type="int"> - </argument> - <argument index="3" name="to_node" type="int"> - </argument> - <argument index="4" name="to_port" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="from_node" type="int" /> + <argument index="2" name="from_port" type="int" /> + <argument index="3" name="to_node" type="int" /> + <argument index="4" name="to_port" type="int" /> <description> Connects the specified nodes and ports. </description> </method> <method name="connect_nodes_forced"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="from_node" type="int"> - </argument> - <argument index="2" name="from_port" type="int"> - </argument> - <argument index="3" name="to_node" type="int"> - </argument> - <argument index="4" name="to_port" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="from_node" type="int" /> + <argument index="2" name="from_port" type="int" /> + <argument index="3" name="to_node" type="int" /> + <argument index="4" name="to_port" type="int" /> <description> Connects the specified nodes and ports, even if they can't be connected. Such connection is invalid and will not function properly. </description> </method> <method name="disconnect_nodes"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="from_node" type="int"> - </argument> - <argument index="2" name="from_port" type="int"> - </argument> - <argument index="3" name="to_node" type="int"> - </argument> - <argument index="4" name="to_port" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="from_node" type="int" /> + <argument index="2" name="from_port" type="int" /> + <argument index="3" name="to_node" type="int" /> + <argument index="4" name="to_port" type="int" /> <description> Connects the specified nodes and ports. </description> </method> <method name="get_node" qualifiers="const"> - <return type="VisualShaderNode"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="VisualShaderNode" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="id" type="int" /> <description> Returns the shader node instance with specified [code]type[/code] and [code]id[/code]. </description> </method> <method name="get_node_connections" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> + <return type="Array" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> <description> Returns the list of connected nodes with the specified type. </description> </method> <method name="get_node_list" qualifiers="const"> - <return type="PackedInt32Array"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> + <return type="PackedInt32Array" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> <description> Returns the list of all nodes in the shader with the specified type. </description> </method> <method name="get_node_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="id" type="int" /> <description> Returns the position of the specified node within the shader graph. </description> </method> <method name="get_valid_node_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> + <return type="int" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> <description> </description> </method> <method name="is_node_connection" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="from_node" type="int"> - </argument> - <argument index="2" name="from_port" type="int"> - </argument> - <argument index="3" name="to_node" type="int"> - </argument> - <argument index="4" name="to_port" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="from_node" type="int" /> + <argument index="2" name="from_port" type="int" /> + <argument index="3" name="to_node" type="int" /> + <argument index="4" name="to_port" type="int" /> <description> Returns [code]true[/code] if the specified node and port connection exist. </description> </method> <method name="remove_node"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="id" type="int" /> <description> Removes the specified node from the shader. </description> </method> <method name="replace_node"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <argument index="2" name="new_class" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="id" type="int" /> + <argument index="2" name="new_class" type="StringName" /> <description> Replaces the specified node with a node of new class type. </description> </method> <method name="set_mode"> - <return type="void"> - </return> - <argument index="0" name="mode" type="int" enum="Shader.Mode"> - </argument> + <return type="void" /> + <argument index="0" name="mode" type="int" enum="Shader.Mode" /> <description> Sets the mode of this shader. </description> </method> <method name="set_node_position"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="VisualShader.Type"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <argument index="2" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="VisualShader.Type" /> + <argument index="1" name="id" type="int" /> + <argument index="2" name="position" type="Vector2" /> <description> Sets the position of the specified node. </description> diff --git a/doc/classes/VisualShaderNode.xml b/doc/classes/VisualShaderNode.xml index 199224b190..2cff70b4f1 100644 --- a/doc/classes/VisualShaderNode.xml +++ b/doc/classes/VisualShaderNode.xml @@ -11,53 +11,42 @@ </tutorials> <methods> <method name="clear_default_input_values"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the default input ports value. </description> </method> <method name="get_default_input_values" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an [Array] containing default values for all of the input ports of the node in the form [code][index0, value0, index1, value1, ...][/code]. </description> </method> <method name="get_input_port_default_value" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="port" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="port" type="int" /> <description> Returns the default value of the input [code]port[/code]. </description> </method> <method name="remove_input_port_default_value"> - <return type="void"> - </return> - <argument index="0" name="port" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="port" type="int" /> <description> Removes the default value of the input [code]port[/code]. </description> </method> <method name="set_default_input_values"> - <return type="void"> - </return> - <argument index="0" name="values" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="values" type="Array" /> <description> Sets the default input ports values using an [Array] of the form [code][index0, value0, index1, value1, ...][/code]. For example: [code][0, Vector3(0, 0, 0), 1, Vector3(0, 0, 0)][/code]. </description> </method> <method name="set_input_port_default_value"> - <return type="void"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="value" type="Variant" /> <description> Sets the default value for the selected input [code]port[/code]. </description> diff --git a/doc/classes/VisualShaderNodeCustom.xml b/doc/classes/VisualShaderNodeCustom.xml index 17fc2f8c4d..f6dbd2ad43 100644 --- a/doc/classes/VisualShaderNodeCustom.xml +++ b/doc/classes/VisualShaderNodeCustom.xml @@ -17,24 +17,18 @@ </tutorials> <methods> <method name="_get_category" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Override this method to define the path to the associated custom node in the Visual Shader Editor's members dialog. The path may look like [code]"MyGame/MyFunctions/Noise"[/code]. Defining this method is [b]optional[/b]. If not overridden, the node will be filed under the "Addons" category. </description> </method> <method name="_get_code" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="input_vars" type="Array"> - </argument> - <argument index="1" name="output_vars" type="Array"> - </argument> - <argument index="2" name="mode" type="int"> - </argument> - <argument index="3" name="type" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="input_vars" type="Array" /> + <argument index="1" name="output_vars" type="Array" /> + <argument index="2" name="mode" type="int" /> + <argument index="3" name="type" type="int" /> <description> Override this method to define the actual shader code of the associated custom node. The shader code should be returned as a string, which can have multiple lines (the [code]"""[/code] multiline string construct can be used for convenience). The [code]input_vars[/code] and [code]output_vars[/code] arrays contain the string names of the various input and output variables, as defined by [code]_get_input_*[/code] and [code]_get_output_*[/code] virtual methods in this class. @@ -44,18 +38,15 @@ </description> </method> <method name="_get_description" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Override this method to define the description of the associated custom node in the Visual Shader Editor's members dialog. Defining this method is [b]optional[/b]. </description> </method> <method name="_get_global_code" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="mode" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="mode" type="int" /> <description> Override this method to add shader code on top of the global shader, to define your own standard library of reusable methods, varyings, constants, uniforms, etc. The shader code should be returned as a string, which can have multiple lines (the [code]"""[/code] multiline string construct can be used for convenience). Be careful with this functionality as it can cause name conflicts with other custom nodes, so be sure to give the defined entities unique names. @@ -64,80 +55,67 @@ </description> </method> <method name="_get_input_port_count" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> Override this method to define the amount of input ports of the associated custom node. Defining this method is [b]required[/b]. If not overridden, the node has no input ports. </description> </method> <method name="_get_input_port_name" qualifiers="virtual"> - <return type="StringName"> - </return> - <argument index="0" name="port" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="port" type="int" /> <description> Override this method to define the names of input ports of the associated custom node. The names are used both for the input slots in the editor and as identifiers in the shader code, and are passed in the [code]input_vars[/code] array in [method _get_code]. Defining this method is [b]optional[/b], but recommended. If not overridden, input ports are named as [code]"in" + str(port)[/code]. </description> </method> <method name="_get_input_port_type" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="port" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="port" type="int" /> <description> Override this method to define the returned type of each input port of the associated custom node (see [enum VisualShaderNode.PortType] for possible types). Defining this method is [b]optional[/b], but recommended. If not overridden, input ports will return the [constant VisualShaderNode.PORT_TYPE_SCALAR] type. </description> </method> <method name="_get_name" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Override this method to define the name of the associated custom node in the Visual Shader Editor's members dialog and graph. Defining this method is [b]optional[/b], but recommended. If not overridden, the node will be named as "Unnamed". </description> </method> <method name="_get_output_port_count" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> Override this method to define the amount of output ports of the associated custom node. Defining this method is [b]required[/b]. If not overridden, the node has no output ports. </description> </method> <method name="_get_output_port_name" qualifiers="virtual"> - <return type="StringName"> - </return> - <argument index="0" name="port" type="int"> - </argument> + <return type="StringName" /> + <argument index="0" name="port" type="int" /> <description> Override this method to define the names of output ports of the associated custom node. The names are used both for the output slots in the editor and as identifiers in the shader code, and are passed in the [code]output_vars[/code] array in [method _get_code]. Defining this method is [b]optional[/b], but recommended. If not overridden, output ports are named as [code]"out" + str(port)[/code]. </description> </method> <method name="_get_output_port_type" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="port" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="port" type="int" /> <description> Override this method to define the returned type of each output port of the associated custom node (see [enum VisualShaderNode.PortType] for possible types). Defining this method is [b]optional[/b], but recommended. If not overridden, output ports will return the [constant VisualShaderNode.PORT_TYPE_SCALAR] type. </description> </method> <method name="_get_return_icon_type" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> Override this method to define the return icon of the associated custom node in the Visual Shader Editor's members dialog. Defining this method is [b]optional[/b]. If not overridden, no return icon is shown. </description> </method> <method name="_is_highend" qualifiers="virtual"> - <return type="bool"> - </return> + <return type="bool" /> <description> Override this method to enable high-end mark in the Visual Shader Editor's members dialog. Defining this method is [b]optional[/b]. If not overridden, it's false. diff --git a/doc/classes/VisualShaderNodeGroupBase.xml b/doc/classes/VisualShaderNodeGroupBase.xml index be3f7f173d..a692d47638 100644 --- a/doc/classes/VisualShaderNodeGroupBase.xml +++ b/doc/classes/VisualShaderNodeGroupBase.xml @@ -10,190 +10,148 @@ </tutorials> <methods> <method name="add_input_port"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="type" type="int"> - </argument> - <argument index="2" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="type" type="int" /> + <argument index="2" name="name" type="String" /> <description> Adds an input port with the specified [code]type[/code] (see [enum VisualShaderNode.PortType]) and [code]name[/code]. </description> </method> <method name="add_output_port"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="type" type="int"> - </argument> - <argument index="2" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="type" type="int" /> + <argument index="2" name="name" type="String" /> <description> Adds an output port with the specified [code]type[/code] (see [enum VisualShaderNode.PortType]) and [code]name[/code]. </description> </method> <method name="clear_input_ports"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all previously specified input ports. </description> </method> <method name="clear_output_ports"> - <return type="void"> - </return> + <return type="void" /> <description> Removes all previously specified output ports. </description> </method> <method name="get_free_input_port_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns a free input port ID which can be used in [method add_input_port]. </description> </method> <method name="get_free_output_port_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns a free output port ID which can be used in [method add_output_port]. </description> </method> <method name="get_input_port_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of input ports in use. Alternative for [method get_free_input_port_id]. </description> </method> <method name="get_inputs" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a [String] description of the input ports as a colon-separated list using the format [code]id,type,name;[/code] (see [method add_input_port]). </description> </method> <method name="get_output_port_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of output ports in use. Alternative for [method get_free_output_port_id]. </description> </method> <method name="get_outputs" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a [String] description of the output ports as a colon-separated list using the format [code]id,type,name;[/code] (see [method add_output_port]). </description> </method> <method name="has_input_port" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> Returns [code]true[/code] if the specified input port exists. </description> </method> <method name="has_output_port" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> Returns [code]true[/code] if the specified output port exists. </description> </method> <method name="is_valid_port_name" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="String" /> <description> Returns [code]true[/code] if the specified port name does not override an existed port name and is valid within the shader. </description> </method> <method name="remove_input_port"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> Removes the specified input port. </description> </method> <method name="remove_output_port"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> Removes the specified output port. </description> </method> <method name="set_input_port_name"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="name" type="String" /> <description> Renames the specified input port. </description> </method> <method name="set_input_port_type"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="type" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="type" type="int" /> <description> Sets the specified input port's type (see [enum VisualShaderNode.PortType]). </description> </method> <method name="set_inputs"> - <return type="void"> - </return> - <argument index="0" name="inputs" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="inputs" type="String" /> <description> Defines all input ports using a [String] formatted as a colon-separated list: [code]id,type,name;[/code] (see [method add_input_port]). </description> </method> <method name="set_output_port_name"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="name" type="String" /> <description> Renames the specified output port. </description> </method> <method name="set_output_port_type"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="type" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="type" type="int" /> <description> Sets the specified output port's type (see [enum VisualShaderNode.PortType]). </description> </method> <method name="set_outputs"> - <return type="void"> - </return> - <argument index="0" name="outputs" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="outputs" type="String" /> <description> Defines all output ports using a [String] formatted as a colon-separated list: [code]id,type,name;[/code] (see [method add_output_port]). </description> diff --git a/doc/classes/VisualShaderNodeInput.xml b/doc/classes/VisualShaderNodeInput.xml index 067f78dffe..dd62d668eb 100644 --- a/doc/classes/VisualShaderNodeInput.xml +++ b/doc/classes/VisualShaderNodeInput.xml @@ -11,8 +11,7 @@ </tutorials> <methods> <method name="get_input_real_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns a translated name of the current constant in the Godot Shader Language. E.g. [code]"ALBEDO"[/code] if the [member input_name] equal to [code]"albedo"[/code]. </description> diff --git a/doc/classes/VoxelGI.xml b/doc/classes/VoxelGI.xml index 5b395becb7..eceb651d5e 100644 --- a/doc/classes/VoxelGI.xml +++ b/doc/classes/VoxelGI.xml @@ -14,19 +14,15 @@ </tutorials> <methods> <method name="bake"> - <return type="void"> - </return> - <argument index="0" name="from_node" type="Node" default="null"> - </argument> - <argument index="1" name="create_visual_debug" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="from_node" type="Node" default="null" /> + <argument index="1" name="create_visual_debug" type="bool" default="false" /> <description> Bakes the effect from all [GeometryInstance3D]s marked with [constant GeometryInstance3D.GI_MODE_BAKED] and [Light3D]s marked with either [constant Light3D.BAKE_DYNAMIC] or [constant Light3D.BAKE_STATIC]. If [code]create_visual_debug[/code] is [code]true[/code], after baking the light, this will generate a [MultiMesh] that has a cube representing each solid cell with each cube colored to the cell's albedo color. This can be used to visualize the [VoxelGI]'s data and debug any issues that may be occurring. </description> </method> <method name="debug_bake"> - <return type="void"> - </return> + <return type="void" /> <description> Calls [method bake] with [code]create_visual_debug[/code] enabled. </description> diff --git a/doc/classes/VoxelGIData.xml b/doc/classes/VoxelGIData.xml index f613002233..5c2c7f9dc6 100644 --- a/doc/classes/VoxelGIData.xml +++ b/doc/classes/VoxelGIData.xml @@ -9,58 +9,44 @@ </tutorials> <methods> <method name="allocate"> - <return type="void"> - </return> - <argument index="0" name="to_cell_xform" type="Transform3D"> - </argument> - <argument index="1" name="aabb" type="AABB"> - </argument> - <argument index="2" name="octree_size" type="Vector3"> - </argument> - <argument index="3" name="octree_cells" type="PackedByteArray"> - </argument> - <argument index="4" name="data_cells" type="PackedByteArray"> - </argument> - <argument index="5" name="distance_field" type="PackedByteArray"> - </argument> - <argument index="6" name="level_counts" type="PackedInt32Array"> - </argument> + <return type="void" /> + <argument index="0" name="to_cell_xform" type="Transform3D" /> + <argument index="1" name="aabb" type="AABB" /> + <argument index="2" name="octree_size" type="Vector3" /> + <argument index="3" name="octree_cells" type="PackedByteArray" /> + <argument index="4" name="data_cells" type="PackedByteArray" /> + <argument index="5" name="distance_field" type="PackedByteArray" /> + <argument index="6" name="level_counts" type="PackedInt32Array" /> <description> </description> </method> <method name="get_bounds" qualifiers="const"> - <return type="AABB"> - </return> + <return type="AABB" /> <description> </description> </method> <method name="get_data_cells" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> </description> </method> <method name="get_level_counts" qualifiers="const"> - <return type="PackedInt32Array"> - </return> + <return type="PackedInt32Array" /> <description> </description> </method> <method name="get_octree_cells" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> </description> </method> <method name="get_octree_size" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> </description> </method> <method name="get_to_cell_xform" qualifiers="const"> - <return type="Transform3D"> - </return> + <return type="Transform3D" /> <description> </description> </method> diff --git a/doc/classes/WeakRef.xml b/doc/classes/WeakRef.xml index 6c9a7de67f..339c1620bf 100644 --- a/doc/classes/WeakRef.xml +++ b/doc/classes/WeakRef.xml @@ -10,8 +10,7 @@ </tutorials> <methods> <method name="get_ref" qualifiers="const"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns the [Object] this weakref is referring to. </description> diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml index 7b21d99d10..bc76118a56 100644 --- a/doc/classes/Window.xml +++ b/doc/classes/Window.xml @@ -8,314 +8,239 @@ </tutorials> <methods> <method name="can_draw" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="child_controls_changed"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="get_contents_minimum_size" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the combined minimum size from the child [Control] nodes of the window. </description> </method> <method name="get_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="flag" type="int" enum="Window.Flags"> - </argument> + <return type="bool" /> + <argument index="0" name="flag" type="int" enum="Window.Flags" /> <description> </description> </method> <method name="get_layout_direction" qualifiers="const"> - <return type="int" enum="Window.LayoutDirection"> - </return> + <return type="int" enum="Window.LayoutDirection" /> <description> Returns layout direction and text writing direction. </description> </method> <method name="get_real_size" qualifiers="const"> - <return type="Vector2i"> - </return> + <return type="Vector2i" /> <description> </description> </method> <method name="get_theme_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="Color" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> </description> </method> <method name="get_theme_constant" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="int" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> </description> </method> <method name="get_theme_font" qualifiers="const"> - <return type="Font"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="Font" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns the [Font] at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="get_theme_font_size" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="int" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns the font size at [code]name[/code] if the theme has [code]theme_type[/code]. </description> </method> <method name="get_theme_icon" qualifiers="const"> - <return type="Texture2D"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="Texture2D" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> </description> </method> <method name="get_theme_stylebox" qualifiers="const"> - <return type="StyleBox"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="StyleBox" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> </description> </method> <method name="grab_focus"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="has_focus" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="has_theme_color" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> </description> </method> <method name="has_theme_constant" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> </description> </method> <method name="has_theme_font" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns [code]true[/code] if [Font] with [code]name[/code] is in [code]theme_type[/code]. Returns [code]false[/code] if the theme does not have [code]theme_type[/code]. </description> </method> <method name="has_theme_font_size" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> Returns [code]true[/code] if font size with [code]name[/code] is in [code]theme_type[/code]. Returns [code]false[/code] if the theme does not have [code]theme_type[/code]. </description> </method> <method name="has_theme_icon" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> </description> </method> <method name="has_theme_stylebox" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="theme_type" type="StringName" default=""""> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="theme_type" type="StringName" default="""" /> <description> </description> </method> <method name="hide"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="is_embedded" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="is_layout_rtl" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if layout is right-to-left. </description> </method> <method name="is_maximize_allowed" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="is_using_font_oversampling" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="move_to_foreground"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="popup"> - <return type="void"> - </return> - <argument index="0" name="rect" type="Rect2i" default="Rect2i(0, 0, 0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="rect" type="Rect2i" default="Rect2i(0, 0, 0, 0)" /> <description> </description> </method> <method name="popup_centered"> - <return type="void"> - </return> - <argument index="0" name="minsize" type="Vector2i" default="Vector2i(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="minsize" type="Vector2i" default="Vector2i(0, 0)" /> <description> </description> </method> <method name="popup_centered_clamped"> - <return type="void"> - </return> - <argument index="0" name="minsize" type="Vector2i" default="Vector2i(0, 0)"> - </argument> - <argument index="1" name="fallback_ratio" type="float" default="0.75"> - </argument> + <return type="void" /> + <argument index="0" name="minsize" type="Vector2i" default="Vector2i(0, 0)" /> + <argument index="1" name="fallback_ratio" type="float" default="0.75" /> <description> </description> </method> <method name="popup_centered_ratio"> - <return type="void"> - </return> - <argument index="0" name="ratio" type="float" default="0.8"> - </argument> + <return type="void" /> + <argument index="0" name="ratio" type="float" default="0.8" /> <description> </description> </method> <method name="popup_on_parent"> - <return type="void"> - </return> - <argument index="0" name="parent_rect" type="Rect2i"> - </argument> + <return type="void" /> + <argument index="0" name="parent_rect" type="Rect2i" /> <description> </description> </method> <method name="request_attention"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="set_flag"> - <return type="void"> - </return> - <argument index="0" name="flag" type="int" enum="Window.Flags"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="flag" type="int" enum="Window.Flags" /> + <argument index="1" name="enabled" type="bool" /> <description> </description> </method> <method name="set_ime_active"> - <return type="void"> - </return> - <argument index="0" name="active" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="active" type="bool" /> <description> </description> </method> <method name="set_ime_position"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector2i"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector2i" /> <description> </description> </method> <method name="set_layout_direction"> - <return type="void"> - </return> - <argument index="0" name="direction" type="int" enum="Window.LayoutDirection"> - </argument> + <return type="void" /> + <argument index="0" name="direction" type="int" enum="Window.LayoutDirection" /> <description> Sets layout direction and text writing direction. Right-to-left layouts are necessary for certain languages (e.g. Arabic and Hebrew). </description> </method> <method name="set_use_font_oversampling"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enable" type="bool" /> <description> </description> </method> <method name="show"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> @@ -377,8 +302,7 @@ </description> </signal> <signal name="files_dropped"> - <argument index="0" name="files" type="PackedStringArray"> - </argument> + <argument index="0" name="files" type="PackedStringArray" /> <description> </description> </signal> @@ -407,8 +331,7 @@ </description> </signal> <signal name="window_input"> - <argument index="0" name="event" type="InputEvent"> - </argument> + <argument index="0" name="event" type="InputEvent" /> <description> </description> </signal> diff --git a/doc/classes/X509Certificate.xml b/doc/classes/X509Certificate.xml index d2b7b20cd6..5900e68339 100644 --- a/doc/classes/X509Certificate.xml +++ b/doc/classes/X509Certificate.xml @@ -12,19 +12,15 @@ </tutorials> <methods> <method name="load"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Loads a certificate from [code]path[/code] ("*.crt" file). </description> </method> <method name="save"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="path" type="String" /> <description> Saves a certificate to the given [code]path[/code] (should be a "*.crt" file). </description> diff --git a/doc/classes/XMLParser.xml b/doc/classes/XMLParser.xml index ab5c58c51c..4af3de8dfd 100644 --- a/doc/classes/XMLParser.xml +++ b/doc/classes/XMLParser.xml @@ -10,136 +10,111 @@ </tutorials> <methods> <method name="get_attribute_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Gets the amount of attributes in the current element. </description> </method> <method name="get_attribute_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Gets the name of the attribute specified by the index in [code]idx[/code] argument. </description> </method> <method name="get_attribute_value" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Gets the value of the attribute specified by the index in [code]idx[/code] argument. </description> </method> <method name="get_current_line" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Gets the current line in the parsed file (currently not implemented). </description> </method> <method name="get_named_attribute_value" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="name" type="String" /> <description> Gets the value of a certain attribute of the current element by name. This will raise an error if the element has no such attribute. </description> </method> <method name="get_named_attribute_value_safe" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="String" /> + <argument index="0" name="name" type="String" /> <description> Gets the value of a certain attribute of the current element by name. This will return an empty [String] if the attribute is not found. </description> </method> <method name="get_node_data" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Gets the contents of a text node. This will raise an error in any other type of node. </description> </method> <method name="get_node_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Gets the name of the current element node. This will raise an error if the current node type is neither [constant NODE_ELEMENT] nor [constant NODE_ELEMENT_END]. </description> </method> <method name="get_node_offset" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Gets the byte offset of the current node since the beginning of the file or buffer. </description> </method> <method name="get_node_type"> - <return type="int" enum="XMLParser.NodeType"> - </return> + <return type="int" enum="XMLParser.NodeType" /> <description> Gets the type of the current node. Compare with [enum NodeType] constants. </description> </method> <method name="has_attribute" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="String" /> <description> Check whether the current element has a certain attribute. </description> </method> <method name="is_empty" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Check whether the current element is empty (this only works for completely empty tags, e.g. [code]<element \>[/code]). </description> </method> <method name="open"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="file" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="file" type="String" /> <description> Opens an XML file for parsing. This returns an error code. </description> </method> <method name="open_buffer"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="buffer" type="PackedByteArray"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="buffer" type="PackedByteArray" /> <description> Opens an XML raw buffer for parsing. This returns an error code. </description> </method> <method name="read"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Reads the next node of the file. This returns an error code. </description> </method> <method name="seek"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="position" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="position" type="int" /> <description> Moves the buffer cursor to a certain offset (since the beginning) and read the next node there. This returns an error code. </description> </method> <method name="skip_section"> - <return type="void"> - </return> + <return type="void" /> <description> Skips the current section. If the node contains other elements, they will be ignored and the cursor will go to the closing of the current element. </description> diff --git a/doc/classes/XRAnchor3D.xml b/doc/classes/XRAnchor3D.xml index a409c79230..ccbfab1273 100644 --- a/doc/classes/XRAnchor3D.xml +++ b/doc/classes/XRAnchor3D.xml @@ -12,36 +12,31 @@ </tutorials> <methods> <method name="get_anchor_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the name given to this anchor. </description> </method> <method name="get_is_active" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the anchor is being tracked and [code]false[/code] if no anchor with this ID is currently known. </description> </method> <method name="get_mesh" qualifiers="const"> - <return type="Mesh"> - </return> + <return type="Mesh" /> <description> If provided by the [XRInterface], this returns a mesh object for the anchor. For an anchor, this can be a shape related to the object being tracked or it can be a mesh that provides topology related to the anchor and can be used to create shadows/reflections on surfaces or for generating collision shapes. </description> </method> <method name="get_plane" qualifiers="const"> - <return type="Plane"> - </return> + <return type="Plane" /> <description> Returns a plane aligned with our anchor; handy for intersection testing. </description> </method> <method name="get_size" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the estimated size of the plane that was detected. Say when the anchor relates to a table in the real world, this is the estimated size of the surface of that table. </description> @@ -54,8 +49,7 @@ </members> <signals> <signal name="mesh_updated"> - <argument index="0" name="mesh" type="Mesh"> - </argument> + <argument index="0" name="mesh" type="Mesh" /> <description> Emitted when the mesh associated with the anchor changes or when one becomes available. This is especially important for topology that is constantly being [code]mesh_updated[/code]. </description> diff --git a/doc/classes/XRController3D.xml b/doc/classes/XRController3D.xml index 5d8c23bd6f..47ddc22823 100644 --- a/doc/classes/XRController3D.xml +++ b/doc/classes/XRController3D.xml @@ -13,54 +13,45 @@ </tutorials> <methods> <method name="get_controller_name" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> If active, returns the name of the associated controller if provided by the AR/VR SDK used. </description> </method> <method name="get_is_active" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the bound controller is active. XR systems attempt to track active controllers. </description> </method> <method name="get_joystick_axis" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="axis" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="axis" type="int" /> <description> Returns the value of the given axis for things like triggers, touchpads, etc. that are embedded into the controller. </description> </method> <method name="get_joystick_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the ID of the joystick object bound to this. Every controller tracked by the [XRServer] that has buttons and axis will also be registered as a joystick within Godot. This means that all the normal joystick tracking and input mapping will work for buttons and axis found on the AR/VR controllers. This ID is purely offered as information so you can link up the controller with its joystick entry. </description> </method> <method name="get_mesh" qualifiers="const"> - <return type="Mesh"> - </return> + <return type="Mesh" /> <description> If provided by the [XRInterface], this returns a mesh associated with the controller. This can be used to visualize the controller. </description> </method> <method name="get_tracker_hand" qualifiers="const"> - <return type="int" enum="XRPositionalTracker.TrackerHand"> - </return> + <return type="int" enum="XRPositionalTracker.TrackerHand" /> <description> Returns the hand holding this controller, if known. See [enum XRPositionalTracker.TrackerHand]. </description> </method> <method name="is_button_pressed" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="button" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="button" type="int" /> <description> Returns [code]true[/code] if the button at index [code]button[/code] is pressed. See [enum JoyButton]. </description> @@ -80,22 +71,19 @@ </members> <signals> <signal name="button_pressed"> - <argument index="0" name="button" type="int"> - </argument> + <argument index="0" name="button" type="int" /> <description> Emitted when a button on this controller is pressed. </description> </signal> <signal name="button_released"> - <argument index="0" name="button" type="int"> - </argument> + <argument index="0" name="button" type="int" /> <description> Emitted when a button on this controller is released. </description> </signal> <signal name="mesh_updated"> - <argument index="0" name="mesh" type="Mesh"> - </argument> + <argument index="0" name="mesh" type="Mesh" /> <description> Emitted when the mesh associated with the controller changes or when one becomes available. Generally speaking this will be a static mesh after becoming available. </description> diff --git a/doc/classes/XRInterface.xml b/doc/classes/XRInterface.xml index fec98007c3..1fb73e59b4 100644 --- a/doc/classes/XRInterface.xml +++ b/doc/classes/XRInterface.xml @@ -12,50 +12,43 @@ </tutorials> <methods> <method name="get_camera_feed_id"> - <return type="int"> - </return> + <return type="int" /> <description> If this is an AR interface that requires displaying a camera feed as the background, this method returns the feed ID in the [CameraServer] for this interface. </description> </method> <method name="get_capabilities" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns a combination of [enum Capabilities] flags providing information about the capabilities of this interface. </description> </method> <method name="get_name" qualifiers="const"> - <return type="StringName"> - </return> + <return type="StringName" /> <description> Returns the name of this interface (OpenVR, OpenHMD, ARKit, etc). </description> </method> <method name="get_render_targetsize"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the resolution at which we should render our intermediate results before things like lens distortion are applied by the VR platform. </description> </method> <method name="get_tracking_status" qualifiers="const"> - <return type="int" enum="XRInterface.Tracking_status"> - </return> + <return type="int" enum="XRInterface.Tracking_status" /> <description> If supported, returns the status of our tracking. This will allow you to provide feedback to the user whether there are issues with positional tracking. </description> </method> <method name="get_view_count"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of views that need to be rendered for this device. 1 for Monoscopic, 2 for Stereoscopic. </description> </method> <method name="initialize"> - <return type="bool"> - </return> + <return type="bool" /> <description> Call this to initialize this interface. The first interface that is initialized is identified as the primary interface and it will be used for rendering output. After initializing the interface you want to use you then need to enable the AR/VR mode of a viewport and rendering should commence. @@ -65,8 +58,7 @@ </description> </method> <method name="uninitialize"> - <return type="void"> - </return> + <return type="void" /> <description> Turns the interface off. </description> diff --git a/doc/classes/XRPositionalTracker.xml b/doc/classes/XRPositionalTracker.xml index cd8cb71cd9..8cc7c872b6 100644 --- a/doc/classes/XRPositionalTracker.xml +++ b/doc/classes/XRPositionalTracker.xml @@ -13,80 +13,68 @@ </tutorials> <methods> <method name="get_joy_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> If this is a controller that is being tracked, the controller will also be represented by a joystick entry with this ID. </description> </method> <method name="get_mesh" qualifiers="const"> - <return type="Mesh"> - </return> + <return type="Mesh" /> <description> Returns the mesh related to a controller or anchor point if one is available. </description> </method> <method name="get_orientation" qualifiers="const"> - <return type="Basis"> - </return> + <return type="Basis" /> <description> Returns the controller's orientation matrix. </description> </method> <method name="get_position" qualifiers="const"> - <return type="Vector3"> - </return> + <return type="Vector3" /> <description> Returns the world-space controller position. </description> </method> <method name="get_tracker_hand" qualifiers="const"> - <return type="int" enum="XRPositionalTracker.TrackerHand"> - </return> + <return type="int" enum="XRPositionalTracker.TrackerHand" /> <description> Returns the hand holding this tracker, if known. See [enum TrackerHand] constants. </description> </method> <method name="get_tracker_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the internal tracker ID. This uniquely identifies the tracker per tracker type and matches the ID you need to specify for nodes such as the [XRController3D] and [XRAnchor3D] nodes. </description> </method> <method name="get_tracker_name" qualifiers="const"> - <return type="StringName"> - </return> + <return type="StringName" /> <description> Returns the controller or anchor point's name, if applicable. </description> </method> <method name="get_tracker_type" qualifiers="const"> - <return type="int" enum="XRServer.TrackerType"> - </return> + <return type="int" enum="XRServer.TrackerType" /> <description> Returns the tracker's type, which will be one of the values from the [enum XRServer.TrackerType] enum. </description> </method> <method name="get_transform" qualifiers="const"> - <return type="Transform3D"> - </return> - <argument index="0" name="adjust_by_reference_frame" type="bool"> - </argument> + <return type="Transform3D" /> + <argument index="0" name="adjust_by_reference_frame" type="bool" /> <description> Returns the transform combining this device's orientation and position. </description> </method> <method name="is_tracking_orientation" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this device is tracking orientation. </description> </method> <method name="is_tracking_position" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this device is tracking position. </description> diff --git a/doc/classes/XRServer.xml b/doc/classes/XRServer.xml index 149e177700..5dd9b75ad2 100644 --- a/doc/classes/XRServer.xml +++ b/doc/classes/XRServer.xml @@ -11,30 +11,23 @@ </tutorials> <methods> <method name="add_interface"> - <return type="void"> - </return> - <argument index="0" name="interface" type="XRInterface"> - </argument> + <return type="void" /> + <argument index="0" name="interface" type="XRInterface" /> <description> Registers an [XRInterface] object. </description> </method> <method name="add_tracker"> - <return type="void"> - </return> - <argument index="0" name="tracker" type="XRPositionalTracker"> - </argument> + <return type="void" /> + <argument index="0" name="tracker" type="XRPositionalTracker" /> <description> Registers a new [XRPositionalTracker] that tracks a spatial location in real space. </description> </method> <method name="center_on_hmd"> - <return type="void"> - </return> - <argument index="0" name="rotation_mode" type="int" enum="XRServer.RotationMode"> - </argument> - <argument index="1" name="keep_height" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="rotation_mode" type="int" enum="XRServer.RotationMode" /> + <argument index="1" name="keep_height" type="bool" /> <description> This is an important function to understand correctly. AR and VR platforms all handle positioning slightly differently. For platforms that do not offer spatial tracking, our origin point (0,0,0) is the location of our HMD, but you have little control over the direction the player is facing in the real world. @@ -45,111 +38,91 @@ </description> </method> <method name="clear_primary_interface_if"> - <return type="void"> - </return> - <argument index="0" name="interface" type="XRInterface"> - </argument> + <return type="void" /> + <argument index="0" name="interface" type="XRInterface" /> <description> Clears our current primary interface if it is set to the provided interface. </description> </method> <method name="find_interface" qualifiers="const"> - <return type="XRInterface"> - </return> - <argument index="0" name="name" type="String"> - </argument> + <return type="XRInterface" /> + <argument index="0" name="name" type="String" /> <description> Finds an interface by its name. For instance, if your project uses capabilities of an AR/VR platform, you can find the interface for that platform by name and initialize it. </description> </method> <method name="get_hmd_transform"> - <return type="Transform3D"> - </return> + <return type="Transform3D" /> <description> Returns the primary interface's transformation. </description> </method> <method name="get_interface" qualifiers="const"> - <return type="XRInterface"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="XRInterface" /> + <argument index="0" name="idx" type="int" /> <description> Returns the interface registered at a given index in our list of interfaces. </description> </method> <method name="get_interface_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of interfaces currently registered with the AR/VR server. If your project supports multiple AR/VR platforms, you can look through the available interface, and either present the user with a selection or simply try to initialize each interface and use the first one that returns [code]true[/code]. </description> </method> <method name="get_interfaces" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns a list of available interfaces the ID and name of each interface. </description> </method> <method name="get_last_commit_usec"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the absolute timestamp (in μs) of the last [XRServer] commit of the AR/VR eyes to [RenderingServer]. The value comes from an internal call to [method Time.get_ticks_usec]. </description> </method> <method name="get_last_frame_usec"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the duration (in μs) of the last frame. This is computed as the difference between [method get_last_commit_usec] and [method get_last_process_usec] when committing. </description> </method> <method name="get_last_process_usec"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the absolute timestamp (in μs) of the last [XRServer] process callback. The value comes from an internal call to [method Time.get_ticks_usec]. </description> </method> <method name="get_reference_frame" qualifiers="const"> - <return type="Transform3D"> - </return> + <return type="Transform3D" /> <description> Returns the reference frame transform. Mostly used internally and exposed for GDNative build interfaces. </description> </method> <method name="get_tracker" qualifiers="const"> - <return type="XRPositionalTracker"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="XRPositionalTracker" /> + <argument index="0" name="idx" type="int" /> <description> Returns the positional tracker at the given ID. </description> </method> <method name="get_tracker_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of trackers currently registered. </description> </method> <method name="remove_interface"> - <return type="void"> - </return> - <argument index="0" name="interface" type="XRInterface"> - </argument> + <return type="void" /> + <argument index="0" name="interface" type="XRInterface" /> <description> Removes this interface. </description> </method> <method name="remove_tracker"> - <return type="void"> - </return> - <argument index="0" name="tracker" type="XRPositionalTracker"> - </argument> + <return type="void" /> + <argument index="0" name="tracker" type="XRPositionalTracker" /> <description> Removes this positional tracker. </description> @@ -165,37 +138,29 @@ </members> <signals> <signal name="interface_added"> - <argument index="0" name="interface_name" type="StringName"> - </argument> + <argument index="0" name="interface_name" type="StringName" /> <description> Emitted when a new interface has been added. </description> </signal> <signal name="interface_removed"> - <argument index="0" name="interface_name" type="StringName"> - </argument> + <argument index="0" name="interface_name" type="StringName" /> <description> Emitted when an interface is removed. </description> </signal> <signal name="tracker_added"> - <argument index="0" name="tracker_name" type="StringName"> - </argument> - <argument index="1" name="type" type="int"> - </argument> - <argument index="2" name="id" type="int"> - </argument> + <argument index="0" name="tracker_name" type="StringName" /> + <argument index="1" name="type" type="int" /> + <argument index="2" name="id" type="int" /> <description> Emitted when a new tracker has been added. If you don't use a fixed number of controllers or if you're using [XRAnchor3D]s for an AR solution, it is important to react to this signal to add the appropriate [XRController3D] or [XRAnchor3D] nodes related to this new tracker. </description> </signal> <signal name="tracker_removed"> - <argument index="0" name="tracker_name" type="StringName"> - </argument> - <argument index="1" name="type" type="int"> - </argument> - <argument index="2" name="id" type="int"> - </argument> + <argument index="0" name="tracker_name" type="StringName" /> + <argument index="1" name="type" type="int" /> + <argument index="2" name="id" type="int" /> <description> Emitted when a tracker is removed. You should remove any [XRController3D] or [XRAnchor3D] points if applicable. This is not mandatory, the nodes simply become inactive and will be made active again when a new tracker becomes available (i.e. a new controller is switched on that takes the place of the previous one). </description> diff --git a/doc/classes/bool.xml b/doc/classes/bool.xml index 48f336d58c..f3b16217e5 100644 --- a/doc/classes/bool.xml +++ b/doc/classes/bool.xml @@ -93,71 +93,56 @@ </tutorials> <methods> <method name="bool" qualifiers="constructor"> - <return type="bool"> - </return> + <return type="bool" /> <description> Constructs a default-initialized [bool] set to [code]false[/code]. </description> </method> <method name="bool" qualifiers="constructor"> - <return type="bool"> - </return> - <argument index="0" name="from" type="bool"> - </argument> + <return type="bool" /> + <argument index="0" name="from" type="bool" /> <description> Constructs a [bool] as a copy of the given [bool]. </description> </method> <method name="bool" qualifiers="constructor"> - <return type="bool"> - </return> - <argument index="0" name="from" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="from" type="float" /> <description> Cast a [float] value to a boolean value, this method will return [code]false[/code] if [code]0.0[/code] is passed in, and [code]true[/code] for all other floats. </description> </method> <method name="bool" qualifiers="constructor"> - <return type="bool"> - </return> - <argument index="0" name="from" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="from" type="int" /> <description> Cast an [int] value to a boolean value, this method will return [code]false[/code] if [code]0[/code] is passed in, and [code]true[/code] for all other ints. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="bool"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="bool" /> <description> Returns [code]true[/code] if two bools are different, i.e. one is [code]true[/code] and the other is [code]false[/code]. </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="bool"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="bool" /> <description> Returns [code]true[/code] if left operand is [code]false[/code] and right operand is [code]true[/code]. </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="bool"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="bool" /> <description> Returns [code]true[/code] if two bools are equal, i.e. both are [code]true[/code] or both are [code]false[/code]. </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="bool"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="bool" /> <description> Returns [code]true[/code] if left operand is [code]true[/code] and right operand is [code]false[/code]. </description> diff --git a/doc/classes/float.xml b/doc/classes/float.xml index 585c847d22..60878eb0bd 100644 --- a/doc/classes/float.xml +++ b/doc/classes/float.xml @@ -10,71 +10,56 @@ </tutorials> <methods> <method name="float" qualifiers="constructor"> - <return type="float"> - </return> + <return type="float" /> <description> Constructs a default-initialized [float] set to [code]0.0[/code]. </description> </method> <method name="float" qualifiers="constructor"> - <return type="float"> - </return> - <argument index="0" name="from" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="from" type="float" /> <description> Constructs a [float] as a copy of the given [float]. </description> </method> <method name="float" qualifiers="constructor"> - <return type="float"> - </return> - <argument index="0" name="from" type="bool"> - </argument> + <return type="float" /> + <argument index="0" name="from" type="bool" /> <description> Cast a [bool] value to a floating-point value, [code]float(true)[/code] will be equal to 1.0 and [code]float(false)[/code] will be equal to 0.0. </description> </method> <method name="float" qualifiers="constructor"> - <return type="float"> - </return> - <argument index="0" name="from" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="from" type="int" /> <description> Cast an [int] value to a floating-point value, [code]float(1)[/code] will be equal to [code]1.0[/code]. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] if two floats are different from each other. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] if the integer has different value than the float. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="float" /> <description> Multiplies two [float]s. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="Vector2" /> <description> Multiplies each component of the [Vector2] by the given [float]. [codeblock] @@ -83,10 +68,8 @@ </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="Vector2i" /> <description> Multiplies each component of the [Vector2i] by the given [float]. [codeblock] @@ -95,37 +78,29 @@ </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Vector3" /> <description> Multiplies each component of the [Vector3] by the given [float]. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="Vector3i" /> <description> Multiplies each component of the [Vector3i] by the given [float]. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Quaternion"> - </return> - <argument index="0" name="right" type="Quaternion"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="right" type="Quaternion" /> <description> Multiplies each component of the [Quaternion] by the given [float]. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="right" type="Color"> - </argument> + <return type="Color" /> + <argument index="0" name="right" type="Color" /> <description> Multiplies each component of the [Color] by the given [float]. [codeblock] @@ -134,168 +109,132 @@ </description> </method> <method name="operator *" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="int" /> <description> Multiplies a [float] and an [int]. The result is a [float]. </description> </method> <method name="operator +" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="float" /> <description> Adds two floats. </description> </method> <method name="operator +" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="int" /> <description> Adds a [float] and an [int]. The result is a [float]. </description> </method> <method name="operator -" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="float" /> <description> Subtracts a float from a float. </description> </method> <method name="operator -" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="int" /> <description> Subtracts an [int] from a [float]. The result is a [float]. </description> </method> <method name="operator /" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="float" /> <description> Divides two floats. </description> </method> <method name="operator /" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="int" /> <description> Divides a [float] by an [int]. The result is a [float]. </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] the left float is less than the right one. </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] if this [float] is less than the given [int]. </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] the left integer is less than or equal to the right one. </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] if this [float] is less than or equal to the given [int]. </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] if both floats are exactly equal. [b]Note:[/b] Due to floating-point precision errors, consider using [method @GlobalScope.is_equal_approx] or [method @GlobalScope.is_zero_approx] instead, which are more reliable. </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] if the [float] and the given [int] are equal. </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] the left float is greater than the right one. </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] if this [float] is greater than the given [int]. </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] the left float is greater than or equal to the right one. </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] if this [float] is greater than or equal to the given [int]. </description> </method> <method name="operator unary+" qualifiers="operator"> - <return type="float"> - </return> + <return type="float" /> <description> </description> </method> <method name="operator unary-" qualifiers="operator"> - <return type="float"> - </return> + <return type="float" /> <description> </description> </method> diff --git a/doc/classes/int.xml b/doc/classes/int.xml index 95918c9007..84a01aa0d0 100644 --- a/doc/classes/int.xml +++ b/doc/classes/int.xml @@ -40,62 +40,49 @@ </tutorials> <methods> <method name="int" qualifiers="constructor"> - <return type="int"> - </return> + <return type="int" /> <description> Constructs a default-initialized [int] set to [code]0[/code]. </description> </method> <method name="int" qualifiers="constructor"> - <return type="int"> - </return> - <argument index="0" name="from" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="from" type="int" /> <description> Constructs an [int] as a copy of the given [int]. </description> </method> <method name="int" qualifiers="constructor"> - <return type="int"> - </return> - <argument index="0" name="from" type="bool"> - </argument> + <return type="int" /> + <argument index="0" name="from" type="bool" /> <description> Cast a [bool] value to an integer value, [code]int(true)[/code] will be equals to 1 and [code]int(false)[/code] will be equals to 0. </description> </method> <method name="int" qualifiers="constructor"> - <return type="int"> - </return> - <argument index="0" name="from" type="float"> - </argument> + <return type="int" /> + <argument index="0" name="from" type="float" /> <description> Cast a float value to an integer value, this method simply removes the number fractions (i.e. rounds [code]from[/code] towards zero), so for example [code]int(2.7)[/code] will be equals to 2, [code]int(0.1)[/code] will be equals to 0 and [code]int(-2.7)[/code] will be equals to -2. This operation is also called truncation. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] if operands are different from each other. </description> </method> <method name="operator !=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] if operands are different from each other. </description> </method> <method name="operator %" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="right" type="int" /> <description> Returns the result of the modulo operator for two integers, i.e. the remainder after dividing both numbers. [codeblock] @@ -106,10 +93,8 @@ </description> </method> <method name="operator &" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="right" type="int" /> <description> Returns the result of bitwise [code]AND[/code] operation for two integers. [codeblock] @@ -126,28 +111,22 @@ </description> </method> <method name="operator *" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="right" type="int" /> <description> Multiplies two [int]s. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="float" /> <description> Multiplies an [int] and a [float]. The result is a [float]. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2"> - </return> - <argument index="0" name="right" type="Vector2"> - </argument> + <return type="Vector2" /> + <argument index="0" name="right" type="Vector2" /> <description> Multiplies each component of the vector by the given integer. [codeblock] @@ -156,46 +135,36 @@ </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector2i"> - </return> - <argument index="0" name="right" type="Vector2i"> - </argument> + <return type="Vector2i" /> + <argument index="0" name="right" type="Vector2i" /> <description> Multiplies each component of the integer vector by the given integer. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3"> - </return> - <argument index="0" name="right" type="Vector3"> - </argument> + <return type="Vector3" /> + <argument index="0" name="right" type="Vector3" /> <description> Multiplies each component of the vector by the given integer. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Vector3i"> - </return> - <argument index="0" name="right" type="Vector3i"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="right" type="Vector3i" /> <description> Multiplies each component of the integer vector by the given integer. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Quaternion"> - </return> - <argument index="0" name="right" type="Quaternion"> - </argument> + <return type="Quaternion" /> + <argument index="0" name="right" type="Quaternion" /> <description> Multiplies each component of the quaternion by the given integer. </description> </method> <method name="operator *" qualifiers="operator"> - <return type="Color"> - </return> - <argument index="0" name="right" type="Color"> - </argument> + <return type="Color" /> + <argument index="0" name="right" type="Color" /> <description> Multiplies each component of the color by the given integer. [codeblock] @@ -204,46 +173,36 @@ </description> </method> <method name="operator +" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="float" /> <description> Adds an [int] to a [float]. The result is a [float]. </description> </method> <method name="operator +" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="right" type="int" /> <description> Adds two integers. </description> </method> <method name="operator -" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="float" /> <description> Subtracts a [float] from an [int]. The result is a [float]. </description> </method> <method name="operator -" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="right" type="int" /> <description> Subtracts two integers. </description> </method> <method name="operator /" qualifiers="operator"> - <return type="float"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="right" type="float" /> <description> Divides an [int] by a [float]. The result is a [float]. [codeblock] @@ -252,10 +211,8 @@ </description> </method> <method name="operator /" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="right" type="int" /> <description> Divides two integers. The decimal part of the result is discarded (truncated). [codeblock] @@ -265,28 +222,22 @@ </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] if this [int] is less than the given [float]. </description> </method> <method name="operator <" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] the left integer is less than the right one. </description> </method> <method name="operator <<" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="right" type="int" /> <description> Performs bitwise shift left operation on the integer. Effectively the same as multiplying by a power of 2. [codeblock] @@ -296,82 +247,64 @@ </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] if this [int] is less than or equal to the given [float]. </description> </method> <method name="operator <=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] the left integer is less than or equal to the right one. </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] if the integer is equal to the given [float]. </description> </method> <method name="operator ==" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] if both integers are equal. </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] if this [int] is greater than the given [float]. </description> </method> <method name="operator >" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] the left integer is greater than the right one. </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="float"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="float" /> <description> Returns [code]true[/code] if this [int] is greater than or equal to the given [float]. </description> </method> <method name="operator >=" qualifiers="operator"> - <return type="bool"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="right" type="int" /> <description> Returns [code]true[/code] the left integer is greater than or equal to the right one. </description> </method> <method name="operator >>" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="right" type="int" /> <description> Performs bitwise shift right operation on the integer. Effectively the same as dividing by a power of 2. [codeblock] @@ -381,10 +314,8 @@ </description> </method> <method name="operator ^" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="right" type="int" /> <description> Returns the result of bitwise [code]XOR[/code] operation for two integers. [codeblock] @@ -394,22 +325,18 @@ </description> </method> <method name="operator unary+" qualifiers="operator"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="operator unary-" qualifiers="operator"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="operator |" qualifiers="operator"> - <return type="int"> - </return> - <argument index="0" name="right" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="right" type="int" /> <description> Returns the result of bitwise [code]OR[/code] operation for two integers. [codeblock] @@ -426,8 +353,7 @@ </description> </method> <method name="operator ~" qualifiers="operator"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the result of bitwise [code]NOT[/code] operation for the integer. It's effectively equal to [code]-int + 1[/code]. [codeblock] diff --git a/editor/doc_tools.cpp b/editor/doc_tools.cpp index cbd4a1b916..c752d0d4fd 100644 --- a/editor/doc_tools.cpp +++ b/editor/doc_tools.cpp @@ -1208,8 +1208,7 @@ Error DocTools::save_classes(const String &p_default_path, const Map<String, Str if (m.return_enum != String()) { enum_text = " enum=\"" + m.return_enum + "\""; } - _write_string(f, 3, "<return type=\"" + m.return_type + "\"" + enum_text + ">"); - _write_string(f, 3, "</return>"); + _write_string(f, 3, "<return type=\"" + m.return_type + "\"" + enum_text + " />"); } for (int j = 0; j < m.arguments.size(); j++) { @@ -1221,12 +1220,10 @@ Error DocTools::save_classes(const String &p_default_path, const Map<String, Str } if (a.default_value != "") { - _write_string(f, 3, "<argument index=\"" + itos(j) + "\" name=\"" + a.name.xml_escape() + "\" type=\"" + a.type.xml_escape() + "\"" + enum_text + " default=\"" + a.default_value.xml_escape(true) + "\">"); + _write_string(f, 3, "<argument index=\"" + itos(j) + "\" name=\"" + a.name.xml_escape() + "\" type=\"" + a.type.xml_escape() + "\"" + enum_text + " default=\"" + a.default_value.xml_escape(true) + "\" />"); } else { - _write_string(f, 3, "<argument index=\"" + itos(j) + "\" name=\"" + a.name.xml_escape() + "\" type=\"" + a.type.xml_escape() + "\"" + enum_text + ">"); + _write_string(f, 3, "<argument index=\"" + itos(j) + "\" name=\"" + a.name.xml_escape() + "\" type=\"" + a.type.xml_escape() + "\"" + enum_text + " />"); } - - _write_string(f, 3, "</argument>"); } _write_string(f, 3, "<description>"); @@ -1274,8 +1271,7 @@ Error DocTools::save_classes(const String &p_default_path, const Map<String, Str _write_string(f, 2, "<signal name=\"" + m.name + "\">"); for (int j = 0; j < m.arguments.size(); j++) { const DocData::ArgumentDoc &a = m.arguments[j]; - _write_string(f, 3, "<argument index=\"" + itos(j) + "\" name=\"" + a.name.xml_escape() + "\" type=\"" + a.type.xml_escape() + "\">"); - _write_string(f, 3, "</argument>"); + _write_string(f, 3, "<argument index=\"" + itos(j) + "\" name=\"" + a.name.xml_escape() + "\" type=\"" + a.type.xml_escape() + "\" />"); } _write_string(f, 3, "<description>"); diff --git a/modules/csg/doc_classes/CSGShape3D.xml b/modules/csg/doc_classes/CSGShape3D.xml index 01ec46e707..f42ce8c379 100644 --- a/modules/csg/doc_classes/CSGShape3D.xml +++ b/modules/csg/doc_classes/CSGShape3D.xml @@ -10,55 +10,43 @@ </tutorials> <methods> <method name="get_collision_layer_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns an individual bit on the collision mask. </description> </method> <method name="get_collision_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns an individual bit on the collision mask. </description> </method> <method name="get_meshes" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an [Array] with two elements, the first is the [Transform3D] of this node and the second is the root [Mesh] of this node. Only works when this node is the root shape. </description> </method> <method name="is_root_shape" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this is a root shape and is thus the object that is rendered. </description> </method> <method name="set_collision_layer_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> Sets individual bits on the layer mask. Use this if you only need to change one layer's value. </description> </method> <method name="set_collision_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> Sets individual bits on the collision mask. Use this if you only need to change one layer's value. </description> diff --git a/modules/enet/doc_classes/ENetConnection.xml b/modules/enet/doc_classes/ENetConnection.xml index 523f2ad165..c2a85ffdf8 100644 --- a/modules/enet/doc_classes/ENetConnection.xml +++ b/modules/enet/doc_classes/ENetConnection.xml @@ -11,182 +11,136 @@ </tutorials> <methods> <method name="bandwidth_limit"> - <return type="void"> - </return> - <argument index="0" name="in_bandwidth" type="int" default="0"> - </argument> - <argument index="1" name="out_bandwidth" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="in_bandwidth" type="int" default="0" /> + <argument index="1" name="out_bandwidth" type="int" default="0" /> <description> Adjusts the bandwidth limits of a host. </description> </method> <method name="broadcast"> - <return type="void"> - </return> - <argument index="0" name="channel" type="int"> - </argument> - <argument index="1" name="packet" type="PackedByteArray"> - </argument> - <argument index="2" name="flags" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="channel" type="int" /> + <argument index="1" name="packet" type="PackedByteArray" /> + <argument index="2" name="flags" type="int" /> <description> Queues a [code]packet[/code] to be sent to all peers associated with the host over the specified [code]channel[/code]. See [ENetPacketPeer] [code]FLAG_*[/code] constants for available packet flags. </description> </method> <method name="channel_limit"> - <return type="void"> - </return> - <argument index="0" name="limit" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="limit" type="int" /> <description> Limits the maximum allowed channels of future incoming connections. </description> </method> <method name="compress"> - <return type="void"> - </return> - <argument index="0" name="mode" type="int" enum="ENetConnection.CompressionMode"> - </argument> + <return type="void" /> + <argument index="0" name="mode" type="int" enum="ENetConnection.CompressionMode" /> <description> Sets the compression method used for network packets. These have different tradeoffs of compression speed versus bandwidth, you may need to test which one works best for your use case if you use compression at all. [b]Note:[/b] Most games' network design involve sending many small packets frequently (smaller than 4 KB each). If in doubt, it is recommended to keep the default compression algorithm as it works best on these small packets. </description> </method> <method name="connect_to_host"> - <return type="ENetPacketPeer"> - </return> - <argument index="0" name="address" type="String"> - </argument> - <argument index="1" name="port" type="int"> - </argument> - <argument index="2" name="channels" type="int" default="0"> - </argument> - <argument index="3" name="data" type="int" default="0"> - </argument> + <return type="ENetPacketPeer" /> + <argument index="0" name="address" type="String" /> + <argument index="1" name="port" type="int" /> + <argument index="2" name="channels" type="int" default="0" /> + <argument index="3" name="data" type="int" default="0" /> <description> Initiates a connection to a foreign [code]address[/code] using the specified [code]port[/code] and allocting the requested [code]channels[/code]. Optional [code]data[/code] can be passed during connection in the form of a 32 bit integer. Note: You must call either [method create_host] or [method create_host_bound] before calling this method. </description> </method> <method name="create_host"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="max_peers" type="int" default="32"> - </argument> - <argument index="1" name="max_channels" type="int" default="0"> - </argument> - <argument index="2" name="in_bandwidth" type="int" default="0"> - </argument> - <argument index="3" name="out_bandwidth" type="int" default="0"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="max_peers" type="int" default="32" /> + <argument index="1" name="max_channels" type="int" default="0" /> + <argument index="2" name="in_bandwidth" type="int" default="0" /> + <argument index="3" name="out_bandwidth" type="int" default="0" /> <description> Create an ENetHost that will allow up to [code]max_peers[/code] connected peers, each allocating up to [code]max_channels[/code] channels, optionally limiting bandwith to [code]in_bandwidth[/code] and [code]out_bandwidth[/code]. </description> </method> <method name="create_host_bound"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="bind_address" type="String"> - </argument> - <argument index="1" name="bind_port" type="int"> - </argument> - <argument index="2" name="max_peers" type="int" default="32"> - </argument> - <argument index="3" name="max_channels" type="int" default="0"> - </argument> - <argument index="4" name="in_bandwidth" type="int" default="0"> - </argument> - <argument index="5" name="out_bandwidth" type="int" default="0"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="bind_address" type="String" /> + <argument index="1" name="bind_port" type="int" /> + <argument index="2" name="max_peers" type="int" default="32" /> + <argument index="3" name="max_channels" type="int" default="0" /> + <argument index="4" name="in_bandwidth" type="int" default="0" /> + <argument index="5" name="out_bandwidth" type="int" default="0" /> <description> Create an ENetHost like [method create_host] which is also bound to the given [code]bind_address[/code] and [code]bind_port[/code]. </description> </method> <method name="destroy"> - <return type="void"> - </return> + <return type="void" /> <description> Destroys the host and all resources associated with it. </description> </method> <method name="dtls_client_setup"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="certificate" type="X509Certificate"> - </argument> - <argument index="1" name="hostname" type="String"> - </argument> - <argument index="2" name="verify" type="bool" default="true"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="certificate" type="X509Certificate" /> + <argument index="1" name="hostname" type="String" /> + <argument index="2" name="verify" type="bool" default="true" /> <description> Configure this ENetHost to use the custom Godot extension allowing DTLS encryption for ENet clients. Call this before [method connect_to_host] to have ENet connect using DTLS with [code]certificate[/code] and [code]hostname[/code] verification. Verification can be optionally turned off via the [code]verify[/code] parameter. </description> </method> <method name="dtls_server_setup"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="key" type="CryptoKey"> - </argument> - <argument index="1" name="certificate" type="X509Certificate"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="key" type="CryptoKey" /> + <argument index="1" name="certificate" type="X509Certificate" /> <description> Configure this ENetHost to use the custom Godot extension allowing DTLS encryption for ENet servers. Call this right after [method create_host_bound] to have ENet expect peers to connect using DTLS. </description> </method> <method name="flush"> - <return type="void"> - </return> + <return type="void" /> <description> Sends any queued packets on the host specified to its designated peers. </description> </method> <method name="get_local_port" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the local port to which this peer is bound. </description> </method> <method name="get_max_channels" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the maximum number of channels allowed for connected peers. </description> </method> <method name="get_peers"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns the list of peers associated with this host. Note: This list might include some peers that are not fully connected or are still being disconnected. </description> </method> <method name="pop_statistic"> - <return type="float"> - </return> - <argument index="0" name="statistic" type="int" enum="ENetConnection.HostStatistic"> - </argument> + <return type="float" /> + <argument index="0" name="statistic" type="int" enum="ENetConnection.HostStatistic" /> <description> Returns and resets host statistics. See [enum HostStatistic] for more info. </description> </method> <method name="refuse_new_connections"> - <return type="void"> - </return> - <argument index="0" name="refuse" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="refuse" type="bool" /> <description> Configures the DTLS server to automatically drop new connections. Note: This method is only relevant after calling [method dtls_server_setup]. </description> </method> <method name="service"> - <return type="Array"> - </return> - <argument index="0" name="timeout" type="int" default="0"> - </argument> + <return type="Array" /> + <argument index="0" name="timeout" type="int" default="0" /> <description> Waits for events on the host specified and shuttles packets between the host and its peers. The returned [Array] will have 4 elements. An [enum EventType], the [ENetPacketPeer] which generated the event, the event associated data (if any), the event associated channel (if any). If the generated event is [constant EVENT_RECEIVE], the received packet will be queued to the associated [ENetPacketPeer]. Call this function regularly to handle connections, disconnections, and to receive new packets. diff --git a/modules/enet/doc_classes/ENetMultiplayerPeer.xml b/modules/enet/doc_classes/ENetMultiplayerPeer.xml index 574010a4a2..3a37b396a4 100644 --- a/modules/enet/doc_classes/ENetMultiplayerPeer.xml +++ b/modules/enet/doc_classes/ENetMultiplayerPeer.xml @@ -13,85 +13,61 @@ </tutorials> <methods> <method name="add_mesh_peer"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="peer_id" type="int"> - </argument> - <argument index="1" name="host" type="ENetConnection"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="peer_id" type="int" /> + <argument index="1" name="host" type="ENetConnection" /> <description> Add a new remote peer with the given [code]peer_id[/code] connected to the given [code]host[/code]. Note: The [code]host[/code] must have exactly one peer in the [constant ENetPacketPeer.STATE_CONNECTED] state. </description> </method> <method name="close_connection"> - <return type="void"> - </return> - <argument index="0" name="wait_usec" type="int" default="100"> - </argument> + <return type="void" /> + <argument index="0" name="wait_usec" type="int" default="100" /> <description> Closes the connection. Ignored if no connection is currently established. If this is a server it tries to notify all clients before forcibly disconnecting them. If this is a client it simply closes the connection to the server. </description> </method> <method name="create_client"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="address" type="String"> - </argument> - <argument index="1" name="port" type="int"> - </argument> - <argument index="2" name="channel_count" type="int" default="0"> - </argument> - <argument index="3" name="in_bandwidth" type="int" default="0"> - </argument> - <argument index="4" name="out_bandwidth" type="int" default="0"> - </argument> - <argument index="5" name="local_port" type="int" default="0"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="address" type="String" /> + <argument index="1" name="port" type="int" /> + <argument index="2" name="channel_count" type="int" default="0" /> + <argument index="3" name="in_bandwidth" type="int" default="0" /> + <argument index="4" name="out_bandwidth" type="int" default="0" /> + <argument index="5" name="local_port" type="int" default="0" /> <description> Create client that connects to a server at [code]address[/code] using specified [code]port[/code]. The given address needs to be either a fully qualified domain name (e.g. [code]"www.example.com"[/code]) or an IP address in IPv4 or IPv6 format (e.g. [code]"192.168.1.1"[/code]). The [code]port[/code] is the port the server is listening on. The [code]channel_count[/code] parameter can be used to specify the number of ENet channels allocated for the connection. The [code]in_bandwidth[/code] and [code]out_bandwidth[/code] parameters can be used to limit the incoming and outgoing bandwidth to the given number of bytes per second. The default of 0 means unlimited bandwidth. Note that ENet will strategically drop packets on specific sides of a connection between peers to ensure the peer's bandwidth is not overwhelmed. The bandwidth parameters also determine the window size of a connection which limits the amount of reliable packets that may be in transit at any given time. Returns [constant OK] if a client was created, [constant ERR_ALREADY_IN_USE] if this ENetMultiplayerPeer instance already has an open connection (in which case you need to call [method close_connection] first) or [constant ERR_CANT_CREATE] if the client could not be created. If [code]local_port[/code] is specified, the client will also listen to the given port; this is useful for some NAT traversal techniques. </description> </method> <method name="create_mesh"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="unique_id" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="unique_id" type="int" /> <description> Initialize this [MultiplayerPeer] in mesh mode. The provided [code]unique_id[/code] will be used as the local peer network unique ID once assigned as the [member MultiplayerAPI.network_peer]. In the mesh configuration you will need to set up each new peer manually using [ENetConnection] before calling [method add_mesh_peer]. While this technique is more advanced, it allows for better control over the connection process (e.g. when dealing with NAT punch-through) and for better distribution of the network load (which would otherwise be more taxing on the server). </description> </method> <method name="create_server"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="max_clients" type="int" default="32"> - </argument> - <argument index="2" name="max_channels" type="int" default="0"> - </argument> - <argument index="3" name="in_bandwidth" type="int" default="0"> - </argument> - <argument index="4" name="out_bandwidth" type="int" default="0"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="max_clients" type="int" default="32" /> + <argument index="2" name="max_channels" type="int" default="0" /> + <argument index="3" name="in_bandwidth" type="int" default="0" /> + <argument index="4" name="out_bandwidth" type="int" default="0" /> <description> Create server that listens to connections via [code]port[/code]. The port needs to be an available, unused port between 0 and 65535. Note that ports below 1024 are privileged and may require elevated permissions depending on the platform. To change the interface the server listens on, use [method set_bind_ip]. The default IP is the wildcard [code]"*"[/code], which listens on all available interfaces. [code]max_clients[/code] is the maximum number of clients that are allowed at once, any number up to 4095 may be used, although the achievable number of simultaneous clients may be far lower and depends on the application. For additional details on the bandwidth parameters, see [method create_client]. Returns [constant OK] if a server was created, [constant ERR_ALREADY_IN_USE] if this ENetMultiplayerPeer instance already has an open connection (in which case you need to call [method close_connection] first) or [constant ERR_CANT_CREATE] if the server could not be created. </description> </method> <method name="get_peer" qualifiers="const"> - <return type="ENetPacketPeer"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="ENetPacketPeer" /> + <argument index="0" name="id" type="int" /> <description> Return the [ENetPacketPeer] associated to the given [code]id[/code]. </description> </method> <method name="set_bind_ip"> - <return type="void"> - </return> - <argument index="0" name="ip" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="ip" type="String" /> <description> The IP used when creating a server. This is set to the wildcard [code]"*"[/code] by default, which binds to all available interfaces. The given IP needs to be in IPv4 or IPv6 address format, for example: [code]"192.168.1.1"[/code]. </description> diff --git a/modules/enet/doc_classes/ENetPacketPeer.xml b/modules/enet/doc_classes/ENetPacketPeer.xml index 5c9f692974..8f0693fb01 100644 --- a/modules/enet/doc_classes/ENetPacketPeer.xml +++ b/modules/enet/doc_classes/ENetPacketPeer.xml @@ -12,121 +12,94 @@ </tutorials> <methods> <method name="get_channels" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of channels allocated for communication with peer. </description> </method> <method name="get_state" qualifiers="const"> - <return type="int" enum="ENetPacketPeer.PeerState"> - </return> + <return type="int" enum="ENetPacketPeer.PeerState" /> <description> Returns the current peer state. See [enum PeerState]. </description> </method> <method name="get_statistic"> - <return type="float"> - </return> - <argument index="0" name="statistic" type="int" enum="ENetPacketPeer.PeerStatistic"> - </argument> + <return type="float" /> + <argument index="0" name="statistic" type="int" enum="ENetPacketPeer.PeerStatistic" /> <description> Returns the requested [code]statistic[/code] for this peer. See [enum PeerStatistic]. </description> </method> <method name="is_active" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the peer is currently active (i.e. the associated [ENetConnection] is still valid). </description> </method> <method name="peer_disconnect"> - <return type="void"> - </return> - <argument index="0" name="data" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="data" type="int" default="0" /> <description> Request a disconnection from a peer. An [constant ENetConnection.EVENT_DISCONNECT] will be generated during [method ENetConnection.service] once the disconnection is complete. </description> </method> <method name="peer_disconnect_later"> - <return type="void"> - </return> - <argument index="0" name="data" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="data" type="int" default="0" /> <description> Request a disconnection from a peer, but only after all queued outgoing packets are sent. An [constant ENetConnection.EVENT_DISCONNECT] will be generated during [method ENetConnection.service] once the disconnection is complete. </description> </method> <method name="peer_disconnect_now"> - <return type="void"> - </return> - <argument index="0" name="data" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="data" type="int" default="0" /> <description> Force an immediate disconnection from a peer. No [constant ENetConnection.EVENT_DISCONNECT] will be generated. The foreign peer is not guaranteed to receive the disconnect notification, and is reset immediately upon return from this function. </description> </method> <method name="ping"> - <return type="void"> - </return> + <return type="void" /> <description> Sends a ping request to a peer. ENet automatically pings all connected peers at regular intervals, however, this function may be called to ensure more frequent ping requests. </description> </method> <method name="ping_interval"> - <return type="void"> - </return> - <argument index="0" name="ping_interval" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="ping_interval" type="int" /> <description> Sets the [code]ping_interval[/code] in milliseconds at which pings will be sent to a peer. Pings are used both to monitor the liveness of the connection and also to dynamically adjust the throttle during periods of low traffic so that the throttle has reasonable responsiveness during traffic spikes. </description> </method> <method name="reset"> - <return type="void"> - </return> + <return type="void" /> <description> Forcefully disconnects a peer. The foreign host represented by the peer is not notified of the disconnection and will timeout on its connection to the local host. </description> </method> <method name="send"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="channel" type="int"> - </argument> - <argument index="1" name="packet" type="PackedByteArray"> - </argument> - <argument index="2" name="flags" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="channel" type="int" /> + <argument index="1" name="packet" type="PackedByteArray" /> + <argument index="2" name="flags" type="int" /> <description> Queues a [code]packet[/code] to be sent over the specified [code]channel[/code]. See [code]FLAG_*[/code] constants for available packet flags. </description> </method> <method name="set_timeout"> - <return type="void"> - </return> - <argument index="0" name="timeout" type="int"> - </argument> - <argument index="1" name="timeout_min" type="int"> - </argument> - <argument index="2" name="timeout_max" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="timeout" type="int" /> + <argument index="1" name="timeout_min" type="int" /> + <argument index="2" name="timeout_max" type="int" /> <description> Sets the timeout parameters for a peer. The timeout parameters control how and when a peer will timeout from a failure to acknowledge reliable traffic. Timeout values are expressed in milliseconds. The [code]timeout_limit[/code] is a factor that, multiplied by a value based on the average round trip time, will determine the timeout limit for a reliable packet. When that limit is reached, the timeout will be doubled, and the peer will be disconnected if that limit has reached [code]timeout_min[/code]. The [code]timeout_max[/code] parameter, on the other hand, defines a fixed timeout for which any packet must be acknowledged or the peer will be dropped. </description> </method> <method name="throttle_configure"> - <return type="void"> - </return> - <argument index="0" name="interval" type="int"> - </argument> - <argument index="1" name="acceleration" type="int"> - </argument> - <argument index="2" name="deceleration" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="interval" type="int" /> + <argument index="1" name="acceleration" type="int" /> + <argument index="2" name="deceleration" type="int" /> <description> Configures throttle parameter for a peer. Unreliable packets are dropped by ENet in response to the varying conditions of the Internet connection to the peer. The throttle represents a probability that an unreliable packet should not be dropped and thus sent by ENet to the peer. By measuring fluctuations in round trip times of reliable packets over the specified [code]interval[/code], ENet will either increase the probably by the amount specified in the [code]acceleration[/code] parameter, or decrease it by the amount specified in the [code]deceleration[/code] parameter (both are ratios to [constant PACKET_THROTTLE_SCALE]). diff --git a/modules/gdnative/doc_classes/GDNative.xml b/modules/gdnative/doc_classes/GDNative.xml index 4f1530598c..e4c5d34a2c 100644 --- a/modules/gdnative/doc_classes/GDNative.xml +++ b/modules/gdnative/doc_classes/GDNative.xml @@ -8,26 +8,20 @@ </tutorials> <methods> <method name="call_native"> - <return type="Variant"> - </return> - <argument index="0" name="calling_type" type="StringName"> - </argument> - <argument index="1" name="procedure_name" type="StringName"> - </argument> - <argument index="2" name="arguments" type="Array"> - </argument> + <return type="Variant" /> + <argument index="0" name="calling_type" type="StringName" /> + <argument index="1" name="procedure_name" type="StringName" /> + <argument index="2" name="arguments" type="Array" /> <description> </description> </method> <method name="initialize"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> <method name="terminate"> - <return type="bool"> - </return> + <return type="bool" /> <description> </description> </method> diff --git a/modules/gdnative/doc_classes/GDNativeLibrary.xml b/modules/gdnative/doc_classes/GDNativeLibrary.xml index 05cda05f9f..f84d4e60f3 100644 --- a/modules/gdnative/doc_classes/GDNativeLibrary.xml +++ b/modules/gdnative/doc_classes/GDNativeLibrary.xml @@ -12,15 +12,13 @@ </tutorials> <methods> <method name="get_current_dependencies" qualifiers="const"> - <return type="PackedStringArray"> - </return> + <return type="PackedStringArray" /> <description> Returns paths to all dependency libraries for the current platform and architecture. </description> </method> <method name="get_current_library_path" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the path to the dynamic library file for the current platform and architecture. </description> diff --git a/modules/gdnative/doc_classes/NativeScript.xml b/modules/gdnative/doc_classes/NativeScript.xml index f2e9cac6dc..397d12a3a9 100644 --- a/modules/gdnative/doc_classes/NativeScript.xml +++ b/modules/gdnative/doc_classes/NativeScript.xml @@ -8,42 +8,34 @@ </tutorials> <methods> <method name="get_class_documentation" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the documentation string that was previously set with [code]godot_nativescript_set_class_documentation[/code]. </description> </method> <method name="get_method_documentation" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="method" type="StringName"> - </argument> + <return type="String" /> + <argument index="0" name="method" type="StringName" /> <description> Returns the documentation string that was previously set with [code]godot_nativescript_set_method_documentation[/code]. </description> </method> <method name="get_property_documentation" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="StringName"> - </argument> + <return type="String" /> + <argument index="0" name="path" type="StringName" /> <description> Returns the documentation string that was previously set with [code]godot_nativescript_set_property_documentation[/code]. </description> </method> <method name="get_signal_documentation" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="signal_name" type="StringName"> - </argument> + <return type="String" /> + <argument index="0" name="signal_name" type="StringName" /> <description> Returns the documentation string that was previously set with [code]godot_nativescript_set_signal_documentation[/code]. </description> </method> <method name="new" qualifiers="vararg"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Constructs a new object of the base type with a script of this type already attached. [i]Note[/i]: Any arguments passed to this function will be ignored and not passed to the native constructor function. This will change with in a future API extension. diff --git a/modules/gdnative/doc_classes/PluginScript.xml b/modules/gdnative/doc_classes/PluginScript.xml index 9616101090..8e28187482 100644 --- a/modules/gdnative/doc_classes/PluginScript.xml +++ b/modules/gdnative/doc_classes/PluginScript.xml @@ -8,8 +8,7 @@ </tutorials> <methods> <method name="new" qualifiers="vararg"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns a new instance of the script. </description> diff --git a/modules/gdnative/doc_classes/VideoStreamGDNative.xml b/modules/gdnative/doc_classes/VideoStreamGDNative.xml index 153988bad8..8b1a3210df 100644 --- a/modules/gdnative/doc_classes/VideoStreamGDNative.xml +++ b/modules/gdnative/doc_classes/VideoStreamGDNative.xml @@ -11,17 +11,14 @@ </tutorials> <methods> <method name="get_file"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the video file handled by this [VideoStreamGDNative]. </description> </method> <method name="set_file"> - <return type="void"> - </return> - <argument index="0" name="file" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="file" type="String" /> <description> Sets the video file that this [VideoStreamGDNative] resource handles. The supported extensions depend on the GDNative plugins used to expose video formats. </description> diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index e68deb070d..51b3452a3a 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -11,16 +11,11 @@ </tutorials> <methods> <method name="Color8"> - <return type="Color"> - </return> - <argument index="0" name="r8" type="int"> - </argument> - <argument index="1" name="g8" type="int"> - </argument> - <argument index="2" name="b8" type="int"> - </argument> - <argument index="3" name="a8" type="int" default="255"> - </argument> + <return type="Color" /> + <argument index="0" name="r8" type="int" /> + <argument index="1" name="g8" type="int" /> + <argument index="2" name="b8" type="int" /> + <argument index="3" name="a8" type="int" default="255" /> <description> Returns a color constructed from integer red, green, blue, and alpha channels. Each channel should have 8 bits of information ranging from 0 to 255. [code]r8[/code] red channel @@ -33,12 +28,9 @@ </description> </method> <method name="assert"> - <return type="void"> - </return> - <argument index="0" name="condition" type="bool"> - </argument> - <argument index="1" name="message" type="String" default=""""> - </argument> + <return type="void" /> + <argument index="0" name="condition" type="bool" /> + <argument index="1" name="message" type="String" default="""" /> <description> Asserts that the [code]condition[/code] is [code]true[/code]. If the [code]condition[/code] is [code]false[/code], an error is generated. When running from the editor, the running project will also be paused until you resume it. This can be used as a stronger form of [method @GlobalScope.push_error] for reporting errors to project developers or add-on users. [b]Note:[/b] For performance reasons, the code inside [method assert] is only executed in debug builds or when running the project from the editor. Don't include code that has side effects in an [method assert] call. Otherwise, the project will behave differently when exported in release mode. @@ -54,10 +46,8 @@ </description> </method> <method name="char"> - <return type="String"> - </return> - <argument index="0" name="char" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="char" type="int" /> <description> Returns a character as a String of the given Unicode code point (which is compatible with ASCII code). [codeblock] @@ -68,12 +58,9 @@ </description> </method> <method name="convert"> - <return type="Variant"> - </return> - <argument index="0" name="what" type="Variant"> - </argument> - <argument index="1" name="type" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="what" type="Variant" /> + <argument index="1" name="type" type="int" /> <description> Converts from a type to another in the best way possible. The [code]type[/code] parameter uses the [enum Variant.Type] values. [codeblock] @@ -87,17 +74,14 @@ </description> </method> <method name="dict2inst"> - <return type="Object"> - </return> - <argument index="0" name="dictionary" type="Dictionary"> - </argument> + <return type="Object" /> + <argument index="0" name="dictionary" type="Dictionary" /> <description> Converts a dictionary (previously created with [method inst2dict]) back to an instance. Useful for deserializing. </description> </method> <method name="get_stack"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of dictionaries representing the current call stack. [codeblock] @@ -117,10 +101,8 @@ </description> </method> <method name="inst2dict"> - <return type="Dictionary"> - </return> - <argument index="0" name="instance" type="Object"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="instance" type="Object" /> <description> Returns the passed instance converted to a dictionary (useful for serializing). [codeblock] @@ -138,10 +120,8 @@ </description> </method> <method name="len"> - <return type="int"> - </return> - <argument index="0" name="var" type="Variant"> - </argument> + <return type="int" /> + <argument index="0" name="var" type="Variant" /> <description> Returns length of Variant [code]var[/code]. Length is the character count of String, element count of Array, size of Dictionary, etc. [b]Note:[/b] Generates a fatal error if Variant can not provide a length. @@ -152,10 +132,8 @@ </description> </method> <method name="load"> - <return type="Resource"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="Resource" /> + <argument index="0" name="path" type="String" /> <description> Loads a resource from the filesystem located at [code]path[/code]. The resource is loaded on the method call (unless it's referenced already elsewhere, e.g. in another script or in the scene), which might cause slight delay, especially when loading scenes. To avoid unnecessary delays when loading something multiple times, either store the resource in a variable or use [method preload]. [b]Note:[/b] Resource paths can be obtained by right-clicking on a resource in the FileSystem dock and choosing "Copy Path" or by dragging the file from the FileSystem dock into the script. @@ -168,10 +146,8 @@ </description> </method> <method name="preload"> - <return type="Resource"> - </return> - <argument index="0" name="path" type="String"> - </argument> + <return type="Resource" /> + <argument index="0" name="path" type="String" /> <description> Returns a [Resource] from the filesystem located at [code]path[/code]. The resource is loaded during script parsing, i.e. is loaded with the script and [method preload] effectively acts as a reference to that resource. Note that the method requires a constant path. If you want to load a resource from a dynamic/variable path, use [method load]. [b]Note:[/b] Resource paths can be obtained by right clicking on a resource in the Assets Panel and choosing "Copy Path" or by dragging the file from the FileSystem dock into the script. @@ -182,15 +158,13 @@ </description> </method> <method name="print_debug" qualifiers="vararg"> - <return type="void"> - </return> + <return type="void" /> <description> Like [method @GlobalScope.print], but prints only when used in debug mode. </description> </method> <method name="print_stack"> - <return type="void"> - </return> + <return type="void" /> <description> Prints a stack track at code location, only works when running with debugger turned on. Output in the console would look something like this: @@ -200,8 +174,7 @@ </description> </method> <method name="range" qualifiers="vararg"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array with the given range. Range can be 1 argument N (0 to N-1), two arguments (initial, final-1) or three arguments (initial, final-1, increment). [codeblock] @@ -218,8 +191,7 @@ </description> </method> <method name="str" qualifiers="vararg"> - <return type="String"> - </return> + <return type="String" /> <description> Converts one or more arguments to string in the best way possible. [codeblock] @@ -231,10 +203,8 @@ </description> </method> <method name="type_exists"> - <return type="bool"> - </return> - <argument index="0" name="type" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="type" type="StringName" /> <description> </description> </method> diff --git a/modules/gdscript/doc_classes/GDScript.xml b/modules/gdscript/doc_classes/GDScript.xml index 631a102130..72738f027a 100644 --- a/modules/gdscript/doc_classes/GDScript.xml +++ b/modules/gdscript/doc_classes/GDScript.xml @@ -12,15 +12,13 @@ </tutorials> <methods> <method name="get_as_byte_code" qualifiers="const"> - <return type="PackedByteArray"> - </return> + <return type="PackedByteArray" /> <description> Returns byte code for the script source code. </description> </method> <method name="new" qualifiers="vararg"> - <return type="Variant"> - </return> + <return type="Variant" /> <description> Returns a new instance of the script. For example: diff --git a/modules/gltf/doc_classes/GLTFSkeleton.xml b/modules/gltf/doc_classes/GLTFSkeleton.xml index 40563c9ac6..6e83cec252 100644 --- a/modules/gltf/doc_classes/GLTFSkeleton.xml +++ b/modules/gltf/doc_classes/GLTFSkeleton.xml @@ -8,50 +8,40 @@ </tutorials> <methods> <method name="get_bone_attachment"> - <return type="BoneAttachment3D"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="BoneAttachment3D" /> + <argument index="0" name="idx" type="int" /> <description> </description> </method> <method name="get_bone_attachment_count"> - <return type="int"> - </return> + <return type="int" /> <description> </description> </method> <method name="get_godot_bone_node"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> </description> </method> <method name="get_godot_skeleton"> - <return type="Skeleton3D"> - </return> + <return type="Skeleton3D" /> <description> </description> </method> <method name="get_unique_names"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="set_godot_bone_node"> - <return type="void"> - </return> - <argument index="0" name="godot_bone_node" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="godot_bone_node" type="Dictionary" /> <description> </description> </method> <method name="set_unique_names"> - <return type="void"> - </return> - <argument index="0" name="unique_names" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="unique_names" type="Array" /> <description> </description> </method> diff --git a/modules/gltf/doc_classes/GLTFSkin.xml b/modules/gltf/doc_classes/GLTFSkin.xml index e20e127e52..107ca960cd 100644 --- a/modules/gltf/doc_classes/GLTFSkin.xml +++ b/modules/gltf/doc_classes/GLTFSkin.xml @@ -8,44 +8,35 @@ </tutorials> <methods> <method name="get_inverse_binds"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_joint_i_to_bone_i"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> </description> </method> <method name="get_joint_i_to_name"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> </description> </method> <method name="set_inverse_binds"> - <return type="void"> - </return> - <argument index="0" name="inverse_binds" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="inverse_binds" type="Array" /> <description> </description> </method> <method name="set_joint_i_to_bone_i"> - <return type="void"> - </return> - <argument index="0" name="joint_i_to_bone_i" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="joint_i_to_bone_i" type="Dictionary" /> <description> </description> </method> <method name="set_joint_i_to_name"> - <return type="void"> - </return> - <argument index="0" name="joint_i_to_name" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="joint_i_to_name" type="Dictionary" /> <description> </description> </method> diff --git a/modules/gltf/doc_classes/GLTFState.xml b/modules/gltf/doc_classes/GLTFState.xml index a7b5b7b43e..ae976fc04c 100644 --- a/modules/gltf/doc_classes/GLTFState.xml +++ b/modules/gltf/doc_classes/GLTFState.xml @@ -8,236 +8,185 @@ </tutorials> <methods> <method name="get_accessors"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_animation_player"> - <return type="AnimationPlayer"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="AnimationPlayer" /> + <argument index="0" name="idx" type="int" /> <description> </description> </method> <method name="get_animation_players_count"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> </description> </method> <method name="get_animations"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_buffer_views"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_cameras"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_images"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_lights"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_materials"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_meshes"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_nodes"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_scene_node"> - <return type="Node"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="Node" /> + <argument index="0" name="idx" type="int" /> <description> </description> </method> <method name="get_skeleton_to_node"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> </description> </method> <method name="get_skeletons"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_skins"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_textures"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_unique_animation_names"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="get_unique_names"> - <return type="Array"> - </return> + <return type="Array" /> <description> </description> </method> <method name="set_accessors"> - <return type="void"> - </return> - <argument index="0" name="accessors" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="accessors" type="Array" /> <description> </description> </method> <method name="set_animations"> - <return type="void"> - </return> - <argument index="0" name="animations" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="animations" type="Array" /> <description> </description> </method> <method name="set_buffer_views"> - <return type="void"> - </return> - <argument index="0" name="buffer_views" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="buffer_views" type="Array" /> <description> </description> </method> <method name="set_cameras"> - <return type="void"> - </return> - <argument index="0" name="cameras" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="cameras" type="Array" /> <description> </description> </method> <method name="set_images"> - <return type="void"> - </return> - <argument index="0" name="images" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="images" type="Array" /> <description> </description> </method> <method name="set_lights"> - <return type="void"> - </return> - <argument index="0" name="lights" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="lights" type="Array" /> <description> </description> </method> <method name="set_materials"> - <return type="void"> - </return> - <argument index="0" name="materials" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="materials" type="Array" /> <description> </description> </method> <method name="set_meshes"> - <return type="void"> - </return> - <argument index="0" name="meshes" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="meshes" type="Array" /> <description> </description> </method> <method name="set_nodes"> - <return type="void"> - </return> - <argument index="0" name="nodes" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="nodes" type="Array" /> <description> </description> </method> <method name="set_skeleton_to_node"> - <return type="void"> - </return> - <argument index="0" name="skeleton_to_node" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="skeleton_to_node" type="Dictionary" /> <description> </description> </method> <method name="set_skeletons"> - <return type="void"> - </return> - <argument index="0" name="skeletons" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="skeletons" type="Array" /> <description> </description> </method> <method name="set_skins"> - <return type="void"> - </return> - <argument index="0" name="skins" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="skins" type="Array" /> <description> </description> </method> <method name="set_textures"> - <return type="void"> - </return> - <argument index="0" name="textures" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="textures" type="Array" /> <description> </description> </method> <method name="set_unique_animation_names"> - <return type="void"> - </return> - <argument index="0" name="unique_animation_names" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="unique_animation_names" type="Array" /> <description> </description> </method> <method name="set_unique_names"> - <return type="void"> - </return> - <argument index="0" name="unique_names" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="unique_names" type="Array" /> <description> </description> </method> diff --git a/modules/gltf/doc_classes/PackedSceneGLTF.xml b/modules/gltf/doc_classes/PackedSceneGLTF.xml index a22111e9b7..d0136c6402 100644 --- a/modules/gltf/doc_classes/PackedSceneGLTF.xml +++ b/modules/gltf/doc_classes/PackedSceneGLTF.xml @@ -8,44 +8,29 @@ </tutorials> <methods> <method name="export_gltf"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="node" type="Node"> - </argument> - <argument index="1" name="path" type="String"> - </argument> - <argument index="2" name="flags" type="int" default="0"> - </argument> - <argument index="3" name="bake_fps" type="float" default="1000.0"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="node" type="Node" /> + <argument index="1" name="path" type="String" /> + <argument index="2" name="flags" type="int" default="0" /> + <argument index="3" name="bake_fps" type="float" default="1000.0" /> <description> </description> </method> <method name="import_gltf_scene"> - <return type="Node"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="flags" type="int" default="0"> - </argument> - <argument index="2" name="bake_fps" type="float" default="1000.0"> - </argument> - <argument index="3" name="state" type="GLTFState" default="null"> - </argument> + <return type="Node" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="flags" type="int" default="0" /> + <argument index="2" name="bake_fps" type="float" default="1000.0" /> + <argument index="3" name="state" type="GLTFState" default="null" /> <description> </description> </method> <method name="pack_gltf"> - <return type="void"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="flags" type="int" default="0"> - </argument> - <argument index="2" name="bake_fps" type="float" default="1000.0"> - </argument> - <argument index="3" name="state" type="GLTFState" default="null"> - </argument> + <return type="void" /> + <argument index="0" name="path" type="String" /> + <argument index="1" name="flags" type="int" default="0" /> + <argument index="2" name="bake_fps" type="float" default="1000.0" /> + <argument index="3" name="state" type="GLTFState" default="null" /> <description> </description> </method> diff --git a/modules/gridmap/doc_classes/GridMap.xml b/modules/gridmap/doc_classes/GridMap.xml index a2c8e8eabf..8ea7384658 100644 --- a/modules/gridmap/doc_classes/GridMap.xml +++ b/modules/gridmap/doc_classes/GridMap.xml @@ -17,119 +17,93 @@ </tutorials> <methods> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> Clear all cells. </description> </method> <method name="clear_baked_meshes"> - <return type="void"> - </return> + <return type="void" /> <description> </description> </method> <method name="get_bake_mesh_instance"> - <return type="RID"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="RID" /> + <argument index="0" name="idx" type="int" /> <description> </description> </method> <method name="get_bake_meshes"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of [ArrayMesh]es and [Transform3D] references of all bake meshes that exist within the current GridMap. </description> </method> <method name="get_cell_item" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="position" type="Vector3i"> - </argument> + <return type="int" /> + <argument index="0" name="position" type="Vector3i" /> <description> The [MeshLibrary] item index located at the given grid coordinates. If the cell is empty, [constant INVALID_CELL_ITEM] will be returned. </description> </method> <method name="get_cell_item_orientation" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="position" type="Vector3i"> - </argument> + <return type="int" /> + <argument index="0" name="position" type="Vector3i" /> <description> The orientation of the cell at the given grid coordinates. [code]-1[/code] is returned if the cell is empty. </description> </method> <method name="get_collision_layer_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns an individual bit on the [member collision_layer]. </description> </method> <method name="get_collision_mask_bit" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="bit" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="bit" type="int" /> <description> Returns an individual bit on the [member collision_mask]. </description> </method> <method name="get_meshes"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of [Transform3D] and [Mesh] references corresponding to the non-empty cells in the grid. The transforms are specified in world space. </description> </method> <method name="get_used_cells" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of [Vector3] with the non-empty cell coordinates in the grid map. </description> </method> <method name="make_baked_meshes"> - <return type="void"> - </return> - <argument index="0" name="gen_lightmap_uv" type="bool" default="false"> - </argument> - <argument index="1" name="lightmap_uv_texel_size" type="float" default="0.1"> - </argument> + <return type="void" /> + <argument index="0" name="gen_lightmap_uv" type="bool" default="false" /> + <argument index="1" name="lightmap_uv_texel_size" type="float" default="0.1" /> <description> </description> </method> <method name="map_to_world" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="map_position" type="Vector3i"> - </argument> + <return type="Vector3" /> + <argument index="0" name="map_position" type="Vector3i" /> <description> Returns the position of a grid cell in the GridMap's local coordinate space. </description> </method> <method name="resource_changed"> - <return type="void"> - </return> - <argument index="0" name="resource" type="Resource"> - </argument> + <return type="void" /> + <argument index="0" name="resource" type="Resource" /> <description> </description> </method> <method name="set_cell_item"> - <return type="void"> - </return> - <argument index="0" name="position" type="Vector3i"> - </argument> - <argument index="1" name="item" type="int"> - </argument> - <argument index="2" name="orientation" type="int" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="position" type="Vector3i" /> + <argument index="1" name="item" type="int" /> + <argument index="2" name="orientation" type="int" default="0" /> <description> Sets the mesh index for the cell referenced by its grid coordinates. A negative item index such as [constant INVALID_CELL_ITEM] will clear the cell. @@ -137,46 +111,33 @@ </description> </method> <method name="set_clip"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> - </argument> - <argument index="1" name="clipabove" type="bool" default="true"> - </argument> - <argument index="2" name="floor" type="int" default="0"> - </argument> - <argument index="3" name="axis" type="int" enum="Vector3.Axis" default="0"> - </argument> + <return type="void" /> + <argument index="0" name="enabled" type="bool" /> + <argument index="1" name="clipabove" type="bool" default="true" /> + <argument index="2" name="floor" type="int" default="0" /> + <argument index="3" name="axis" type="int" enum="Vector3.Axis" default="0" /> <description> </description> </method> <method name="set_collision_layer_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> Sets an individual bit on the [member collision_layer]. </description> </method> <method name="set_collision_mask_bit"> - <return type="void"> - </return> - <argument index="0" name="bit" type="int"> - </argument> - <argument index="1" name="value" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="bit" type="int" /> + <argument index="1" name="value" type="bool" /> <description> Sets an individual bit on the [member collision_mask]. </description> </method> <method name="world_to_map" qualifiers="const"> - <return type="Vector3i"> - </return> - <argument index="0" name="world_position" type="Vector3"> - </argument> + <return type="Vector3i" /> + <argument index="0" name="world_position" type="Vector3" /> <description> Returns the coordinates of the grid cell containing the given point. [code]pos[/code] should be in the GridMap's local coordinate space. @@ -223,8 +184,7 @@ </members> <signals> <signal name="cell_size_changed"> - <argument index="0" name="cell_size" type="Vector3"> - </argument> + <argument index="0" name="cell_size" type="Vector3" /> <description> Emitted when [member cell_size] changes. </description> diff --git a/modules/opensimplex/doc_classes/OpenSimplexNoise.xml b/modules/opensimplex/doc_classes/OpenSimplexNoise.xml index 4d45e41cc3..c470f3e1ab 100644 --- a/modules/opensimplex/doc_classes/OpenSimplexNoise.xml +++ b/modules/opensimplex/doc_classes/OpenSimplexNoise.xml @@ -25,90 +25,66 @@ </tutorials> <methods> <method name="get_image" qualifiers="const"> - <return type="Image"> - </return> - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> - <argument index="2" name="noise_offset" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="Image" /> + <argument index="0" name="width" type="int" /> + <argument index="1" name="height" type="int" /> + <argument index="2" name="noise_offset" type="Vector2" default="Vector2(0, 0)" /> <description> Generate a noise image in [constant Image.FORMAT_L8] format with the requested [code]width[/code] and [code]height[/code], based on the current noise parameters. If [code]noise_offset[/code] is specified, then the offset value is used as the coordinates of the top-left corner of the generated noise. </description> </method> <method name="get_noise_1d" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> <description> Returns the 1D noise value [code][-1,1][/code] at the given x-coordinate. [b]Note:[/b] This method actually returns the 2D noise value [code][-1,1][/code] with fixed y-coordinate value 0.0. </description> </method> <method name="get_noise_2d" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="y" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="y" type="float" /> <description> Returns the 2D noise value [code][-1,1][/code] at the given position. </description> </method> <method name="get_noise_2dv" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="pos" type="Vector2"> - </argument> + <return type="float" /> + <argument index="0" name="pos" type="Vector2" /> <description> Returns the 2D noise value [code][-1,1][/code] at the given position. </description> </method> <method name="get_noise_3d" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="y" type="float"> - </argument> - <argument index="2" name="z" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="y" type="float" /> + <argument index="2" name="z" type="float" /> <description> Returns the 3D noise value [code][-1,1][/code] at the given position. </description> </method> <method name="get_noise_3dv" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="pos" type="Vector3"> - </argument> + <return type="float" /> + <argument index="0" name="pos" type="Vector3" /> <description> Returns the 3D noise value [code][-1,1][/code] at the given position. </description> </method> <method name="get_noise_4d" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="x" type="float"> - </argument> - <argument index="1" name="y" type="float"> - </argument> - <argument index="2" name="z" type="float"> - </argument> - <argument index="3" name="w" type="float"> - </argument> + <return type="float" /> + <argument index="0" name="x" type="float" /> + <argument index="1" name="y" type="float" /> + <argument index="2" name="z" type="float" /> + <argument index="3" name="w" type="float" /> <description> Returns the 4D noise value [code][-1,1][/code] at the given position. </description> </method> <method name="get_seamless_image" qualifiers="const"> - <return type="Image"> - </return> - <argument index="0" name="size" type="int"> - </argument> + <return type="Image" /> + <argument index="0" name="size" type="int" /> <description> Generate a tileable noise image in [constant Image.FORMAT_L8] format, based on the current noise parameters. Generated seamless images are always square ([code]size[/code] × [code]size[/code]). [b]Note:[/b] Seamless noise has a lower contrast compared to non-seamless noise. This is due to the way noise uses higher dimensions for generating seamless noise. diff --git a/modules/regex/doc_classes/RegEx.xml b/modules/regex/doc_classes/RegEx.xml index 7f5a0dfecb..9c84974ff6 100644 --- a/modules/regex/doc_classes/RegEx.xml +++ b/modules/regex/doc_classes/RegEx.xml @@ -50,88 +50,67 @@ </tutorials> <methods> <method name="clear"> - <return type="void"> - </return> + <return type="void" /> <description> This method resets the state of the object, as if it was freshly created. Namely, it unassigns the regular expression of this object. </description> </method> <method name="compile"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="pattern" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="pattern" type="String" /> <description> Compiles and assign the search pattern to use. Returns [constant OK] if the compilation is successful. If an error is encountered, details are printed to standard output and an error is returned. </description> </method> <method name="get_group_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of capturing groups in compiled pattern. </description> </method> <method name="get_names" qualifiers="const"> - <return type="Array"> - </return> + <return type="Array" /> <description> Returns an array of names of named capturing groups in the compiled pattern. They are ordered by appearance. </description> </method> <method name="get_pattern" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the original search pattern that was compiled. </description> </method> <method name="is_valid" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether this object has a valid search pattern assigned. </description> </method> <method name="search" qualifiers="const"> - <return type="RegExMatch"> - </return> - <argument index="0" name="subject" type="String"> - </argument> - <argument index="1" name="offset" type="int" default="0"> - </argument> - <argument index="2" name="end" type="int" default="-1"> - </argument> + <return type="RegExMatch" /> + <argument index="0" name="subject" type="String" /> + <argument index="1" name="offset" type="int" default="0" /> + <argument index="2" name="end" type="int" default="-1" /> <description> Searches the text for the compiled pattern. Returns a [RegExMatch] container of the first matching result if found, otherwise [code]null[/code]. The region to search within can be specified without modifying where the start and end anchor would be. </description> </method> <method name="search_all" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="subject" type="String"> - </argument> - <argument index="1" name="offset" type="int" default="0"> - </argument> - <argument index="2" name="end" type="int" default="-1"> - </argument> + <return type="Array" /> + <argument index="0" name="subject" type="String" /> + <argument index="1" name="offset" type="int" default="0" /> + <argument index="2" name="end" type="int" default="-1" /> <description> Searches the text for the compiled pattern. Returns an array of [RegExMatch] containers for each non-overlapping result. If no results were found, an empty array is returned instead. The region to search within can be specified without modifying where the start and end anchor would be. </description> </method> <method name="sub" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="subject" type="String"> - </argument> - <argument index="1" name="replacement" type="String"> - </argument> - <argument index="2" name="all" type="bool" default="false"> - </argument> - <argument index="3" name="offset" type="int" default="0"> - </argument> - <argument index="4" name="end" type="int" default="-1"> - </argument> + <return type="String" /> + <argument index="0" name="subject" type="String" /> + <argument index="1" name="replacement" type="String" /> + <argument index="2" name="all" type="bool" default="false" /> + <argument index="3" name="offset" type="int" default="0" /> + <argument index="4" name="end" type="int" default="-1" /> <description> Searches the text for the compiled pattern and replaces it with the specified string. Escapes and backreferences such as [code]$1[/code] and [code]$name[/code] are expanded and resolved. By default, only the first instance is replaced, but it can be changed for all instances (global replacement). The region to search within can be specified without modifying where the start and end anchor would be. </description> diff --git a/modules/regex/doc_classes/RegExMatch.xml b/modules/regex/doc_classes/RegExMatch.xml index 492519d3d9..3cde2836cc 100644 --- a/modules/regex/doc_classes/RegExMatch.xml +++ b/modules/regex/doc_classes/RegExMatch.xml @@ -10,37 +10,30 @@ </tutorials> <methods> <method name="get_end" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="Variant" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="Variant" default="0" /> <description> Returns the end position of the match within the source string. The end position of capturing groups can be retrieved by providing its group number as an integer or its string name (if it's a named group). The default value of 0 refers to the whole pattern. Returns -1 if the group did not match or doesn't exist. </description> </method> <method name="get_group_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of capturing groups. </description> </method> <method name="get_start" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="Variant" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="Variant" default="0" /> <description> Returns the starting position of the match within the source string. The starting position of capturing groups can be retrieved by providing its group number as an integer or its string name (if it's a named group). The default value of 0 refers to the whole pattern. Returns -1 if the group did not match or doesn't exist. </description> </method> <method name="get_string" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="name" type="Variant" default="0"> - </argument> + <return type="String" /> + <argument index="0" name="name" type="Variant" default="0" /> <description> Returns the substring of the match from the source string. Capturing groups can be retrieved by providing its group number as an integer or its string name (if it's a named group). The default value of 0 refers to the whole pattern. Returns an empty string if the group did not match or doesn't exist. diff --git a/modules/theora/doc_classes/VideoStreamTheora.xml b/modules/theora/doc_classes/VideoStreamTheora.xml index cb8852d5ef..e7bf9b202d 100644 --- a/modules/theora/doc_classes/VideoStreamTheora.xml +++ b/modules/theora/doc_classes/VideoStreamTheora.xml @@ -11,17 +11,14 @@ </tutorials> <methods> <method name="get_file"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the Ogg Theora video file handled by this [VideoStreamTheora]. </description> </method> <method name="set_file"> - <return type="void"> - </return> - <argument index="0" name="file" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="file" type="String" /> <description> Sets the Ogg Theora video file that this [VideoStreamTheora] resource handles. The [code]file[/code] name should have the [code].ogv[/code] extension. </description> diff --git a/modules/upnp/doc_classes/UPNP.xml b/modules/upnp/doc_classes/UPNP.xml index 09a2c8a88c..5b1d9dbfd1 100644 --- a/modules/upnp/doc_classes/UPNP.xml +++ b/modules/upnp/doc_classes/UPNP.xml @@ -21,27 +21,19 @@ </tutorials> <methods> <method name="add_device"> - <return type="void"> - </return> - <argument index="0" name="device" type="UPNPDevice"> - </argument> + <return type="void" /> + <argument index="0" name="device" type="UPNPDevice" /> <description> Adds the given [UPNPDevice] to the list of discovered devices. </description> </method> <method name="add_port_mapping" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="port_internal" type="int" default="0"> - </argument> - <argument index="2" name="desc" type="String" default=""""> - </argument> - <argument index="3" name="proto" type="String" default=""UDP""> - </argument> - <argument index="4" name="duration" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="port_internal" type="int" default="0" /> + <argument index="2" name="desc" type="String" default="""" /> + <argument index="3" name="proto" type="String" default=""UDP"" /> + <argument index="4" name="duration" type="int" default="0" /> <description> Adds a mapping to forward the external [code]port[/code] (between 1 and 65535) on the default gateway (see [method get_gateway]) to the [code]internal_port[/code] on the local machine for the given protocol [code]proto[/code] (either [code]TCP[/code] or [code]UDP[/code], with UDP being the default). If a port mapping for the given port and protocol combination already exists on that gateway device, this method tries to overwrite it. If that is not desired, you can retrieve the gateway manually with [method get_gateway] and call [method add_port_mapping] on it, if any. If [code]internal_port[/code] is [code]0[/code] (the default), the same port number is used for both the external and the internal port (the [code]port[/code] value). @@ -50,32 +42,24 @@ </description> </method> <method name="clear_devices"> - <return type="void"> - </return> + <return type="void" /> <description> Clears the list of discovered devices. </description> </method> <method name="delete_port_mapping" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="proto" type="String" default=""UDP""> - </argument> + <return type="int" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="proto" type="String" default=""UDP"" /> <description> Deletes the port mapping for the given port and protocol combination on the default gateway (see [method get_gateway]) if one exists. [code]port[/code] must be a valid port between 1 and 65535, [code]proto[/code] can be either [code]TCP[/code] or [code]UDP[/code]. See [enum UPNPResult] for possible return values. </description> </method> <method name="discover"> - <return type="int"> - </return> - <argument index="0" name="timeout" type="int" default="2000"> - </argument> - <argument index="1" name="ttl" type="int" default="2"> - </argument> - <argument index="2" name="device_filter" type="String" default=""InternetGatewayDevice""> - </argument> + <return type="int" /> + <argument index="0" name="timeout" type="int" default="2000" /> + <argument index="1" name="ttl" type="int" default="2" /> + <argument index="2" name="device_filter" type="String" default=""InternetGatewayDevice"" /> <description> Discovers local [UPNPDevice]s. Clears the list of previously discovered devices. Filters for IGD (InternetGatewayDevice) type devices by default, as those manage port forwarding. [code]timeout[/code] is the time to wait for responses in milliseconds. [code]ttl[/code] is the time-to-live; only touch this if you know what you're doing. @@ -83,51 +67,41 @@ </description> </method> <method name="get_device" qualifiers="const"> - <return type="UPNPDevice"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="UPNPDevice" /> + <argument index="0" name="index" type="int" /> <description> Returns the [UPNPDevice] at the given [code]index[/code]. </description> </method> <method name="get_device_count" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of discovered [UPNPDevice]s. </description> </method> <method name="get_gateway" qualifiers="const"> - <return type="UPNPDevice"> - </return> + <return type="UPNPDevice" /> <description> Returns the default gateway. That is the first discovered [UPNPDevice] that is also a valid IGD (InternetGatewayDevice). </description> </method> <method name="query_external_address" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the external [IP] address of the default gateway (see [method get_gateway]) as string. Returns an empty string on error. </description> </method> <method name="remove_device"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes the device at [code]index[/code] from the list of discovered devices. </description> </method> <method name="set_device"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="device" type="UPNPDevice"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="device" type="UPNPDevice" /> <description> Sets the device at [code]index[/code] from the list of discovered devices to [code]device[/code]. </description> diff --git a/modules/upnp/doc_classes/UPNPDevice.xml b/modules/upnp/doc_classes/UPNPDevice.xml index f7b5386d86..b7c2ff7dd7 100644 --- a/modules/upnp/doc_classes/UPNPDevice.xml +++ b/modules/upnp/doc_classes/UPNPDevice.xml @@ -10,43 +10,32 @@ </tutorials> <methods> <method name="add_port_mapping" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="port_internal" type="int" default="0"> - </argument> - <argument index="2" name="desc" type="String" default=""""> - </argument> - <argument index="3" name="proto" type="String" default=""UDP""> - </argument> - <argument index="4" name="duration" type="int" default="0"> - </argument> + <return type="int" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="port_internal" type="int" default="0" /> + <argument index="2" name="desc" type="String" default="""" /> + <argument index="3" name="proto" type="String" default=""UDP"" /> + <argument index="4" name="duration" type="int" default="0" /> <description> Adds a port mapping to forward the given external port on this [UPNPDevice] for the given protocol to the local machine. See [method UPNP.add_port_mapping]. </description> </method> <method name="delete_port_mapping" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="proto" type="String" default=""UDP""> - </argument> + <return type="int" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="proto" type="String" default=""UDP"" /> <description> Deletes the port mapping identified by the given port and protocol combination on this device. See [method UPNP.delete_port_mapping]. </description> </method> <method name="is_valid_gateway" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this is a valid IGD (InternetGatewayDevice) which potentially supports port forwarding. </description> </method> <method name="query_external_address" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the external IP address of this [UPNPDevice] or an empty string. </description> diff --git a/modules/visual_script/doc_classes/VisualScript.xml b/modules/visual_script/doc_classes/VisualScript.xml index 9d51bd86a2..2327fc0009 100644 --- a/modules/visual_script/doc_classes/VisualScript.xml +++ b/modules/visual_script/doc_classes/VisualScript.xml @@ -13,456 +13,334 @@ </tutorials> <methods> <method name="add_custom_signal"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Add a custom signal with the specified name to the VisualScript. </description> </method> <method name="add_function"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="func_node_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="func_node_id" type="int" /> <description> Add a function with the specified name to the VisualScript, and assign the root [VisualScriptFunction] node's id as [code]func_node_id[/code]. </description> </method> <method name="add_node"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="node" type="VisualScriptNode"> - </argument> - <argument index="2" name="position" type="Vector2" default="Vector2(0, 0)"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="node" type="VisualScriptNode" /> + <argument index="2" name="position" type="Vector2" default="Vector2(0, 0)" /> <description> Add a node to the VisualScript. </description> </method> <method name="add_variable"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="default_value" type="Variant" default="null"> - </argument> - <argument index="2" name="export" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="default_value" type="Variant" default="null" /> + <argument index="2" name="export" type="bool" default="false" /> <description> Add a variable to the VisualScript, optionally giving it a default value or marking it as exported. </description> </method> <method name="custom_signal_add_argument"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="type" type="int" enum="Variant.Type"> - </argument> - <argument index="2" name="argname" type="String"> - </argument> - <argument index="3" name="index" type="int" default="-1"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="type" type="int" enum="Variant.Type" /> + <argument index="2" name="argname" type="String" /> + <argument index="3" name="index" type="int" default="-1" /> <description> Add an argument to a custom signal added with [method add_custom_signal]. </description> </method> <method name="custom_signal_get_argument_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="StringName" /> <description> Get the count of a custom signal's arguments. </description> </method> <method name="custom_signal_get_argument_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="argidx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="argidx" type="int" /> <description> Get the name of a custom signal's argument. </description> </method> <method name="custom_signal_get_argument_type" qualifiers="const"> - <return type="int" enum="Variant.Type"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="argidx" type="int"> - </argument> + <return type="int" enum="Variant.Type" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="argidx" type="int" /> <description> Get the type of a custom signal's argument. </description> </method> <method name="custom_signal_remove_argument"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="argidx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="argidx" type="int" /> <description> Remove a specific custom signal's argument. </description> </method> <method name="custom_signal_set_argument_name"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="argidx" type="int"> - </argument> - <argument index="2" name="argname" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="argidx" type="int" /> + <argument index="2" name="argname" type="String" /> <description> Rename a custom signal's argument. </description> </method> <method name="custom_signal_set_argument_type"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="argidx" type="int"> - </argument> - <argument index="2" name="type" type="int" enum="Variant.Type"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="argidx" type="int" /> + <argument index="2" name="type" type="int" enum="Variant.Type" /> <description> Change the type of a custom signal's argument. </description> </method> <method name="custom_signal_swap_argument"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="argidx" type="int"> - </argument> - <argument index="2" name="withidx" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="argidx" type="int" /> + <argument index="2" name="withidx" type="int" /> <description> Swap two of the arguments of a custom signal. </description> </method> <method name="data_connect"> - <return type="void"> - </return> - <argument index="0" name="from_node" type="int"> - </argument> - <argument index="1" name="from_port" type="int"> - </argument> - <argument index="2" name="to_node" type="int"> - </argument> - <argument index="3" name="to_port" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from_node" type="int" /> + <argument index="1" name="from_port" type="int" /> + <argument index="2" name="to_node" type="int" /> + <argument index="3" name="to_port" type="int" /> <description> Connect two data ports. The value of [code]from_node[/code]'s [code]from_port[/code] would be fed into [code]to_node[/code]'s [code]to_port[/code]. </description> </method> <method name="data_disconnect"> - <return type="void"> - </return> - <argument index="0" name="from_node" type="int"> - </argument> - <argument index="1" name="from_port" type="int"> - </argument> - <argument index="2" name="to_node" type="int"> - </argument> - <argument index="3" name="to_port" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from_node" type="int" /> + <argument index="1" name="from_port" type="int" /> + <argument index="2" name="to_node" type="int" /> + <argument index="3" name="to_port" type="int" /> <description> Disconnect two data ports previously connected with [method data_connect]. </description> </method> <method name="get_function_node_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="int" /> + <argument index="0" name="name" type="StringName" /> <description> Returns the id of a function's entry point node. </description> </method> <method name="get_node" qualifiers="const"> - <return type="VisualScriptNode"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="VisualScriptNode" /> + <argument index="0" name="id" type="int" /> <description> Returns a node given its id. </description> </method> <method name="get_node_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="Vector2" /> + <argument index="0" name="id" type="int" /> <description> Returns a node's position in pixels. </description> </method> <method name="get_scroll" qualifiers="const"> - <return type="Vector2"> - </return> + <return type="Vector2" /> <description> Returns the current position of the center of the screen. </description> </method> <method name="get_variable_default_value" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="Variant" /> + <argument index="0" name="name" type="StringName" /> <description> Returns the default (initial) value of a variable. </description> </method> <method name="get_variable_export" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns whether a variable is exported. </description> </method> <method name="get_variable_info" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="name" type="StringName" /> <description> 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"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns whether a signal exists with the specified name. </description> </method> <method name="has_data_connection" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="from_node" type="int"> - </argument> - <argument index="1" name="from_port" type="int"> - </argument> - <argument index="2" name="to_node" type="int"> - </argument> - <argument index="3" name="to_port" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="from_node" type="int" /> + <argument index="1" name="from_port" type="int" /> + <argument index="2" name="to_node" type="int" /> + <argument index="3" name="to_port" type="int" /> <description> Returns whether the specified data ports are connected. </description> </method> <method name="has_function" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns whether a function exists with the specified name. </description> </method> <method name="has_node" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> Returns whether a node exists with the given id. </description> </method> <method name="has_sequence_connection" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="from_node" type="int"> - </argument> - <argument index="1" name="from_output" type="int"> - </argument> - <argument index="2" name="to_node" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="from_node" type="int" /> + <argument index="1" name="from_output" type="int" /> + <argument index="2" name="to_node" type="int" /> <description> Returns whether the specified sequence ports are connected. </description> </method> <method name="has_variable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="bool" /> + <argument index="0" name="name" type="StringName" /> <description> Returns whether a variable exists with the specified name. </description> </method> <method name="remove_custom_signal"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Remove a custom signal with the given name. </description> </method> <method name="remove_function"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Remove a specific function and its nodes from the script. </description> </method> <method name="remove_node"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> <description> Remove the node with the specified id. </description> </method> <method name="remove_variable"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> <description> Remove a variable with the given name. </description> </method> <method name="rename_custom_signal"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="new_name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="new_name" type="StringName" /> <description> Change the name of a custom signal. </description> </method> <method name="rename_function"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="new_name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="new_name" type="StringName" /> <description> Change the name of a function. </description> </method> <method name="rename_variable"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="new_name" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="new_name" type="StringName" /> <description> Change the name of a variable. </description> </method> <method name="sequence_connect"> - <return type="void"> - </return> - <argument index="0" name="from_node" type="int"> - </argument> - <argument index="1" name="from_output" type="int"> - </argument> - <argument index="2" name="to_node" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from_node" type="int" /> + <argument index="1" name="from_output" type="int" /> + <argument index="2" name="to_node" type="int" /> <description> Connect two sequence ports. The execution will flow from of [code]from_node[/code]'s [code]from_output[/code] into [code]to_node[/code]. Unlike [method data_connect], there isn't a [code]to_port[/code], since the target node can have only one sequence port. </description> </method> <method name="sequence_disconnect"> - <return type="void"> - </return> - <argument index="0" name="from_node" type="int"> - </argument> - <argument index="1" name="from_output" type="int"> - </argument> - <argument index="2" name="to_node" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="from_node" type="int" /> + <argument index="1" name="from_output" type="int" /> + <argument index="2" name="to_node" type="int" /> <description> Disconnect two sequence ports previously connected with [method sequence_connect]. </description> </method> <method name="set_instance_base_type"> - <return type="void"> - </return> - <argument index="0" name="type" type="StringName"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="StringName" /> <description> Set the base type of the script. </description> </method> <method name="set_node_position"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="position" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="position" type="Vector2" /> <description> Set the node position in the VisualScript graph. </description> </method> <method name="set_scroll"> - <return type="void"> - </return> - <argument index="0" name="ofs" type="Vector2"> - </argument> + <return type="void" /> + <argument index="0" name="ofs" type="Vector2" /> <description> Set the screen center to the given position. </description> </method> <method name="set_variable_default_value"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="value" type="Variant" /> <description> Change the default (initial) value of a variable. </description> </method> <method name="set_variable_export"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="enable" type="bool" /> <description> Change whether a variable is exported. </description> </method> <method name="set_variable_info"> - <return type="void"> - </return> - <argument index="0" name="name" type="StringName"> - </argument> - <argument index="1" name="value" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="StringName" /> + <argument index="1" name="value" type="Dictionary" /> <description> Set a variable's info, using the same format as [method get_variable_info]. </description> @@ -470,8 +348,7 @@ </methods> <signals> <signal name="node_ports_changed"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted when the ports of a node are changed. </description> diff --git a/modules/visual_script/doc_classes/VisualScriptConstructor.xml b/modules/visual_script/doc_classes/VisualScriptConstructor.xml index 2f162e78b6..4743594ec3 100644 --- a/modules/visual_script/doc_classes/VisualScriptConstructor.xml +++ b/modules/visual_script/doc_classes/VisualScriptConstructor.xml @@ -10,30 +10,24 @@ </tutorials> <methods> <method name="get_constructor" qualifiers="const"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> </description> </method> <method name="get_constructor_type" qualifiers="const"> - <return type="int" enum="Variant.Type"> - </return> + <return type="int" enum="Variant.Type" /> <description> </description> </method> <method name="set_constructor"> - <return type="void"> - </return> - <argument index="0" name="constructor" type="Dictionary"> - </argument> + <return type="void" /> + <argument index="0" name="constructor" type="Dictionary" /> <description> </description> </method> <method name="set_constructor_type"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="Variant.Type"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="Variant.Type" /> <description> </description> </method> diff --git a/modules/visual_script/doc_classes/VisualScriptCustomNode.xml b/modules/visual_script/doc_classes/VisualScriptCustomNode.xml index ba4eba26fd..8aa34f8cae 100644 --- a/modules/visual_script/doc_classes/VisualScriptCustomNode.xml +++ b/modules/visual_script/doc_classes/VisualScriptCustomNode.xml @@ -10,153 +10,122 @@ </tutorials> <methods> <method name="_get_caption" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Return the node's title. </description> </method> <method name="_get_category" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Return the node's category. </description> </method> <method name="_get_input_value_port_count" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> Return the count of input value ports. </description> </method> <method name="_get_input_value_port_hint" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Return the specified input port's hint. See the [enum @GlobalScope.PropertyHint] hints. </description> </method> <method name="_get_input_value_port_hint_string" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Return the specified input port's hint string. </description> </method> <method name="_get_input_value_port_name" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Return the specified input port's name. </description> </method> <method name="_get_input_value_port_type" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Return the specified input port's type. See the [enum Variant.Type] values. </description> </method> <method name="_get_output_sequence_port_count" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> Return the amount of output [b]sequence[/b] ports. </description> </method> <method name="_get_output_sequence_port_text" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Return the specified [b]sequence[/b] output's name. </description> </method> <method name="_get_output_value_port_count" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> Return the amount of output value ports. </description> </method> <method name="_get_output_value_port_hint" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Return the specified output port's hint. See the [enum @GlobalScope.PropertyHint] hints. </description> </method> <method name="_get_output_value_port_hint_string" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Return the specified output port's hint string. </description> </method> <method name="_get_output_value_port_name" qualifiers="virtual"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="idx" type="int" /> <description> Return the specified output port's name. </description> </method> <method name="_get_output_value_port_type" qualifiers="virtual"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="idx" type="int" /> <description> Return the specified output port's type. See the [enum Variant.Type] values. </description> </method> <method name="_get_text" qualifiers="virtual"> - <return type="String"> - </return> + <return type="String" /> <description> Return the custom node's text, which is shown right next to the input [b]sequence[/b] port (if there is none, on the place that is usually taken by it). </description> </method> <method name="_get_working_memory_size" qualifiers="virtual"> - <return type="int"> - </return> + <return type="int" /> <description> Return the size of the custom node's working memory. See [method _step] for more details. </description> </method> <method name="_has_input_sequence_port" qualifiers="virtual"> - <return type="bool"> - </return> + <return type="bool" /> <description> Return whether the custom node has an input [b]sequence[/b] port. </description> </method> <method name="_step" qualifiers="virtual"> - <return type="Variant"> - </return> - <argument index="0" name="inputs" type="Array"> - </argument> - <argument index="1" name="outputs" type="Array"> - </argument> - <argument index="2" name="start_mode" type="int"> - </argument> - <argument index="3" name="working_mem" type="Array"> - </argument> + <return type="Variant" /> + <argument index="0" name="inputs" type="Array" /> + <argument index="1" name="outputs" type="Array" /> + <argument index="2" name="start_mode" type="int" /> + <argument index="3" name="working_mem" type="Array" /> <description> 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. diff --git a/modules/visual_script/doc_classes/VisualScriptEditor.xml b/modules/visual_script/doc_classes/VisualScriptEditor.xml index 186cd21239..9ea889c77b 100644 --- a/modules/visual_script/doc_classes/VisualScriptEditor.xml +++ b/modules/visual_script/doc_classes/VisualScriptEditor.xml @@ -8,25 +8,18 @@ </tutorials> <methods> <method name="add_custom_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="category" type="String"> - </argument> - <argument index="2" name="script" type="Script"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="category" type="String" /> + <argument index="2" name="script" type="Script" /> <description> Add a custom Visual Script node to the editor. It'll be placed under "Custom Nodes" with the [code]category[/code] as the parameter. </description> </method> <method name="remove_custom_node"> - <return type="void"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="category" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="name" type="String" /> + <argument index="1" name="category" type="String" /> <description> Remove a custom Visual Script node from the editor. Custom nodes already placed on scripts won't be removed. </description> diff --git a/modules/visual_script/doc_classes/VisualScriptFunctionState.xml b/modules/visual_script/doc_classes/VisualScriptFunctionState.xml index 54a02bf270..18c3826df8 100644 --- a/modules/visual_script/doc_classes/VisualScriptFunctionState.xml +++ b/modules/visual_script/doc_classes/VisualScriptFunctionState.xml @@ -10,30 +10,23 @@ </tutorials> <methods> <method name="connect_to_signal"> - <return type="void"> - </return> - <argument index="0" name="obj" type="Object"> - </argument> - <argument index="1" name="signals" type="String"> - </argument> - <argument index="2" name="args" type="Array"> - </argument> + <return type="void" /> + <argument index="0" name="obj" type="Object" /> + <argument index="1" name="signals" type="String" /> + <argument index="2" name="args" type="Array" /> <description> Connects this [VisualScriptFunctionState] to a signal in the given object to automatically resume when it's emitted. </description> </method> <method name="is_valid" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns whether the function state is valid. </description> </method> <method name="resume"> - <return type="Variant"> - </return> - <argument index="0" name="args" type="Array" default="[]"> - </argument> + <return type="Variant" /> + <argument index="0" name="args" type="Array" default="[]" /> <description> Resumes the function to run from the point it was yielded. </description> diff --git a/modules/visual_script/doc_classes/VisualScriptLists.xml b/modules/visual_script/doc_classes/VisualScriptLists.xml index 671c427228..d5bff1341a 100644 --- a/modules/visual_script/doc_classes/VisualScriptLists.xml +++ b/modules/visual_script/doc_classes/VisualScriptLists.xml @@ -10,89 +10,65 @@ </tutorials> <methods> <method name="add_input_data_port"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="Variant.Type"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <argument index="2" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="Variant.Type" /> + <argument index="1" name="name" type="String" /> + <argument index="2" name="index" type="int" /> <description> Adds an input port to the Visual Script node. </description> </method> <method name="add_output_data_port"> - <return type="void"> - </return> - <argument index="0" name="type" type="int" enum="Variant.Type"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <argument index="2" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="type" type="int" enum="Variant.Type" /> + <argument index="1" name="name" type="String" /> + <argument index="2" name="index" type="int" /> <description> Adds an output port to the Visual Script node. </description> </method> <method name="remove_input_data_port"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an input port from the Visual Script node. </description> </method> <method name="remove_output_data_port"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> <description> Removes an output port from the Visual Script node. </description> </method> <method name="set_input_data_port_name"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="name" type="String" /> <description> Sets the name of an input port. </description> </method> <method name="set_input_data_port_type"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="type" type="int" enum="Variant.Type"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="type" type="int" enum="Variant.Type" /> <description> Sets the type of an input port. </description> </method> <method name="set_output_data_port_name"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="name" type="String" /> <description> Sets the name of an output port. </description> </method> <method name="set_output_data_port_type"> - <return type="void"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <argument index="1" name="type" type="int" enum="Variant.Type"> - </argument> + <return type="void" /> + <argument index="0" name="index" type="int" /> + <argument index="1" name="type" type="int" enum="Variant.Type" /> <description> Sets the type of an output port. </description> diff --git a/modules/visual_script/doc_classes/VisualScriptNode.xml b/modules/visual_script/doc_classes/VisualScriptNode.xml index 82a023f3e4..23574a5ea8 100644 --- a/modules/visual_script/doc_classes/VisualScriptNode.xml +++ b/modules/visual_script/doc_classes/VisualScriptNode.xml @@ -10,35 +10,28 @@ </tutorials> <methods> <method name="get_default_input_value" qualifiers="const"> - <return type="Variant"> - </return> - <argument index="0" name="port_idx" type="int"> - </argument> + <return type="Variant" /> + <argument index="0" name="port_idx" type="int" /> <description> Returns the default value of a given port. The default value is used when nothing is connected to the port. </description> </method> <method name="get_visual_script" qualifiers="const"> - <return type="VisualScript"> - </return> + <return type="VisualScript" /> <description> Returns the [VisualScript] instance the node is bound to. </description> </method> <method name="ports_changed_notify"> - <return type="void"> - </return> + <return type="void" /> <description> Notify that the node's ports have changed. Usually used in conjunction with [VisualScriptCustomNode] . </description> </method> <method name="set_default_input_value"> - <return type="void"> - </return> - <argument index="0" name="port_idx" type="int"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> + <return type="void" /> + <argument index="0" name="port_idx" type="int" /> + <argument index="1" name="value" type="Variant" /> <description> Change the default value of a given port. </description> diff --git a/modules/visual_script/doc_classes/VisualScriptSubCall.xml b/modules/visual_script/doc_classes/VisualScriptSubCall.xml index 89a10edde4..374e7d0f35 100644 --- a/modules/visual_script/doc_classes/VisualScriptSubCall.xml +++ b/modules/visual_script/doc_classes/VisualScriptSubCall.xml @@ -10,10 +10,8 @@ </tutorials> <methods> <method name="_subcall" qualifiers="virtual"> - <return type="Variant"> - </return> - <argument index="0" name="arguments" type="Variant"> - </argument> + <return type="Variant" /> + <argument index="0" name="arguments" type="Variant" /> <description> Called by this node. </description> diff --git a/modules/webm/doc_classes/VideoStreamWebm.xml b/modules/webm/doc_classes/VideoStreamWebm.xml index f3e13ba31a..3b9acfd873 100644 --- a/modules/webm/doc_classes/VideoStreamWebm.xml +++ b/modules/webm/doc_classes/VideoStreamWebm.xml @@ -12,17 +12,14 @@ </tutorials> <methods> <method name="get_file"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the WebM video file handled by this [VideoStreamWebm]. </description> </method> <method name="set_file"> - <return type="void"> - </return> - <argument index="0" name="file" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="file" type="String" /> <description> Sets the WebM video file that this [VideoStreamWebm] resource handles. The [code]file[/code] name should have the [code].webm[/code] extension. </description> diff --git a/modules/webrtc/doc_classes/WebRTCDataChannel.xml b/modules/webrtc/doc_classes/WebRTCDataChannel.xml index 3435dda982..cf5735bab5 100644 --- a/modules/webrtc/doc_classes/WebRTCDataChannel.xml +++ b/modules/webrtc/doc_classes/WebRTCDataChannel.xml @@ -8,88 +8,76 @@ </tutorials> <methods> <method name="close"> - <return type="void"> - </return> + <return type="void" /> <description> Closes this data channel, notifying the other peer. </description> </method> <method name="get_buffered_amount" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the number of bytes currently queued to be sent over this channel. </description> </method> <method name="get_id" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the id assigned to this channel during creation (or auto-assigned during negotiation). If the channel is not negotiated out-of-band the id will only be available after the connection is established (will return [code]65535[/code] until then). </description> </method> <method name="get_label" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the label assigned to this channel during creation. </description> </method> <method name="get_max_packet_life_time" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the [code]maxPacketLifeTime[/code] value assigned to this channel during creation. Will be [code]65535[/code] if not specified. </description> </method> <method name="get_max_retransmits" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the [code]maxRetransmits[/code] value assigned to this channel during creation. Will be [code]65535[/code] if not specified. </description> </method> <method name="get_protocol" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the sub-protocol assigned to this channel during creation. An empty string if not specified. </description> </method> <method name="get_ready_state" qualifiers="const"> - <return type="int" enum="WebRTCDataChannel.ChannelState"> - </return> + <return type="int" enum="WebRTCDataChannel.ChannelState" /> <description> Returns the current state of this channel, see [enum ChannelState]. </description> </method> <method name="is_negotiated" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this channel was created with out-of-band configuration. </description> </method> <method name="is_ordered" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this channel was created with ordering enabled (default). </description> </method> <method name="poll"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Reserved, but not used for now. </description> </method> <method name="was_string_packet" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the last received packet was transferred as text. See [member write_mode]. </description> diff --git a/modules/webrtc/doc_classes/WebRTCMultiplayerPeer.xml b/modules/webrtc/doc_classes/WebRTCMultiplayerPeer.xml index 26c5bfa6ce..0c4a0d4ea0 100644 --- a/modules/webrtc/doc_classes/WebRTCMultiplayerPeer.xml +++ b/modules/webrtc/doc_classes/WebRTCMultiplayerPeer.xml @@ -12,58 +12,45 @@ </tutorials> <methods> <method name="add_peer"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="peer" type="WebRTCPeerConnection"> - </argument> - <argument index="1" name="peer_id" type="int"> - </argument> - <argument index="2" name="unreliable_lifetime" type="int" default="1"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="peer" type="WebRTCPeerConnection" /> + <argument index="1" name="peer_id" type="int" /> + <argument index="2" name="unreliable_lifetime" type="int" default="1" /> <description> Add a new peer to the mesh with the given [code]peer_id[/code]. The [WebRTCPeerConnection] must be in state [constant WebRTCPeerConnection.STATE_NEW]. Three channels will be created for reliable, unreliable, and ordered transport. The value of [code]unreliable_lifetime[/code] will be passed to the [code]maxPacketLifetime[/code] option when creating unreliable and ordered channels (see [method WebRTCPeerConnection.create_data_channel]). </description> </method> <method name="close"> - <return type="void"> - </return> + <return type="void" /> <description> Close all the add peer connections and channels, freeing all resources. </description> </method> <method name="get_peer"> - <return type="Dictionary"> - </return> - <argument index="0" name="peer_id" type="int"> - </argument> + <return type="Dictionary" /> + <argument index="0" name="peer_id" type="int" /> <description> Return a dictionary representation of the peer with given [code]peer_id[/code] with three keys. [code]connection[/code] containing the [WebRTCPeerConnection] to this peer, [code]channels[/code] an array of three [WebRTCDataChannel], and [code]connected[/code] a boolean representing if the peer connection is currently connected (all three channels are open). </description> </method> <method name="get_peers"> - <return type="Dictionary"> - </return> + <return type="Dictionary" /> <description> Returns a dictionary which keys are the peer ids and values the peer representation as in [method get_peer]. </description> </method> <method name="has_peer"> - <return type="bool"> - </return> - <argument index="0" name="peer_id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="peer_id" type="int" /> <description> Returns [code]true[/code] if the given [code]peer_id[/code] is in the peers map (it might not be connected though). </description> </method> <method name="initialize"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="peer_id" type="int"> - </argument> - <argument index="1" name="server_compatibility" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="peer_id" type="int" /> + <argument index="1" name="server_compatibility" type="bool" default="false" /> <description> Initialize the multiplayer peer with the given [code]peer_id[/code] (must be between 1 and 2147483647). If [code]server_compatibilty[/code] is [code]false[/code] (default), the multiplayer peer will be immediately in state [constant MultiplayerPeer.CONNECTION_CONNECTED] and [signal MultiplayerPeer.connection_succeeded] will not be emitted. @@ -71,10 +58,8 @@ </description> </method> <method name="remove_peer"> - <return type="void"> - </return> - <argument index="0" name="peer_id" type="int"> - </argument> + <return type="void" /> + <argument index="0" name="peer_id" type="int" /> <description> Remove the peer with given [code]peer_id[/code] from the mesh. If the peer was connected, and [signal MultiplayerPeer.peer_connected] was emitted for it, then [signal MultiplayerPeer.peer_disconnected] will be emitted. </description> diff --git a/modules/webrtc/doc_classes/WebRTCPeerConnection.xml b/modules/webrtc/doc_classes/WebRTCPeerConnection.xml index 62e524825d..f6f360503f 100644 --- a/modules/webrtc/doc_classes/WebRTCPeerConnection.xml +++ b/modules/webrtc/doc_classes/WebRTCPeerConnection.xml @@ -15,33 +15,25 @@ </tutorials> <methods> <method name="add_ice_candidate"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="media" type="String"> - </argument> - <argument index="1" name="index" type="int"> - </argument> - <argument index="2" name="name" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="media" type="String" /> + <argument index="1" name="index" type="int" /> + <argument index="2" name="name" type="String" /> <description> Add an ice candidate generated by a remote peer (and received over the signaling server). See [signal ice_candidate_created]. </description> </method> <method name="close"> - <return type="void"> - </return> + <return type="void" /> <description> Close the peer connection and all data channels associated with it. Note, you cannot reuse this object for a new connection unless you call [method initialize]. </description> </method> <method name="create_data_channel"> - <return type="WebRTCDataChannel"> - </return> - <argument index="0" name="label" type="String"> - </argument> + <return type="WebRTCDataChannel" /> + <argument index="0" name="label" type="String" /> <argument index="1" name="options" type="Dictionary" default="{ -}"> - </argument> +}" /> <description> Returns a new [WebRTCDataChannel] (or [code]null[/code] on failure) with given [code]label[/code] and optionally configured via the [code]options[/code] dictionary. This method can only be called when the connection is in state [constant STATE_NEW]. There are two ways to create a working data channel: either call [method create_data_channel] on only one of the peer and listen to [signal data_channel_received] on the other, or call [method create_data_channel] on both peers, with the same values, and the [code]negotiated[/code] option set to [code]true[/code]. @@ -63,26 +55,22 @@ </description> </method> <method name="create_offer"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Creates a new SDP offer to start a WebRTC connection with a remote peer. At least one [WebRTCDataChannel] must have been created before calling this method. If this functions returns [constant OK], [signal session_description_created] will be called when the session is ready to be sent. </description> </method> <method name="get_connection_state" qualifiers="const"> - <return type="int" enum="WebRTCPeerConnection.ConnectionState"> - </return> + <return type="int" enum="WebRTCPeerConnection.ConnectionState" /> <description> Returns the connection state. See [enum ConnectionState]. </description> </method> <method name="initialize"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <argument index="0" name="configuration" type="Dictionary" default="{ -}"> - </argument> +}" /> <description> Re-initialize this peer connection, closing any previously active connection, and going back to state [constant STATE_NEW]. A dictionary of [code]options[/code] can be passed to configure the peer connection. Valid [code]options[/code] are: @@ -103,31 +91,24 @@ </description> </method> <method name="poll"> - <return type="int" enum="Error"> - </return> + <return type="int" enum="Error" /> <description> Call this method frequently (e.g. in [method Node._process] or [method Node._physics_process]) to properly receive signals. </description> </method> <method name="set_local_description"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="type" type="String"> - </argument> - <argument index="1" name="sdp" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="type" type="String" /> + <argument index="1" name="sdp" type="String" /> <description> Sets the SDP description of the local peer. This should be called in response to [signal session_description_created]. After calling this function the peer will start emitting [signal ice_candidate_created] (unless an [enum Error] different from [constant OK] is returned). </description> </method> <method name="set_remote_description"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="type" type="String"> - </argument> - <argument index="1" name="sdp" type="String"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="type" type="String" /> + <argument index="1" name="sdp" type="String" /> <description> Sets the SDP description of the remote peer. This should be called with the values generated by a remote peer and received over the signaling server. If [code]type[/code] is [code]offer[/code] the peer will emit [signal session_description_created] with the appropriate answer. @@ -137,29 +118,23 @@ </methods> <signals> <signal name="data_channel_received"> - <argument index="0" name="channel" type="Object"> - </argument> + <argument index="0" name="channel" type="Object" /> <description> Emitted when a new in-band channel is received, i.e. when the channel was created with [code]negotiated: false[/code] (default). The object will be an instance of [WebRTCDataChannel]. You must keep a reference of it or it will be closed automatically. See [method create_data_channel]. </description> </signal> <signal name="ice_candidate_created"> - <argument index="0" name="media" type="String"> - </argument> - <argument index="1" name="index" type="int"> - </argument> - <argument index="2" name="name" type="String"> - </argument> + <argument index="0" name="media" type="String" /> + <argument index="1" name="index" type="int" /> + <argument index="2" name="name" type="String" /> <description> Emitted when a new ICE candidate has been created. The three parameters are meant to be passed to the remote peer over the signaling server. </description> </signal> <signal name="session_description_created"> - <argument index="0" name="type" type="String"> - </argument> - <argument index="1" name="sdp" type="String"> - </argument> + <argument index="0" name="type" type="String" /> + <argument index="1" name="sdp" type="String" /> <description> Emitted after a successful call to [method create_offer] or [method set_remote_description] (when it generates an answer). The parameters are meant to be passed to [method set_local_description] on this object, and sent to the remote peer over the signaling server. </description> diff --git a/modules/websocket/doc_classes/WebSocketClient.xml b/modules/websocket/doc_classes/WebSocketClient.xml index 40c0ad17ad..1549a907b4 100644 --- a/modules/websocket/doc_classes/WebSocketClient.xml +++ b/modules/websocket/doc_classes/WebSocketClient.xml @@ -13,16 +13,11 @@ </tutorials> <methods> <method name="connect_to_url"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="url" type="String"> - </argument> - <argument index="1" name="protocols" type="PackedStringArray" default="PackedStringArray()"> - </argument> - <argument index="2" name="gd_mp_api" type="bool" default="false"> - </argument> - <argument index="3" name="custom_headers" type="PackedStringArray" default="PackedStringArray()"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="url" type="String" /> + <argument index="1" name="protocols" type="PackedStringArray" default="PackedStringArray()" /> + <argument index="2" name="gd_mp_api" type="bool" default="false" /> + <argument index="3" name="custom_headers" type="PackedStringArray" default="PackedStringArray()" /> <description> Connects to the given URL requesting one of the given [code]protocols[/code] as sub-protocol. If the list empty (default), no sub-protocol will be requested. If [code]true[/code] is passed as [code]gd_mp_api[/code], the client will behave like a network peer for the [MultiplayerAPI], connections to non-Godot servers will not work, and [signal data_received] will not be emitted. @@ -33,26 +28,21 @@ </description> </method> <method name="disconnect_from_host"> - <return type="void"> - </return> - <argument index="0" name="code" type="int" default="1000"> - </argument> - <argument index="1" name="reason" type="String" default=""""> - </argument> + <return type="void" /> + <argument index="0" name="code" type="int" default="1000" /> + <argument index="1" name="reason" type="String" default="""" /> <description> Disconnects this client from the connected host. See [method WebSocketPeer.close] for more information. </description> </method> <method name="get_connected_host" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Return the IP address of the currently connected host. </description> </method> <method name="get_connected_port" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Return the IP port of the currently connected host. </description> @@ -70,8 +60,7 @@ </members> <signals> <signal name="connection_closed"> - <argument index="0" name="was_clean_close" type="bool"> - </argument> + <argument index="0" name="was_clean_close" type="bool" /> <description> Emitted when the connection to the server is closed. [code]was_clean_close[/code] will be [code]true[/code] if the connection was shutdown cleanly. </description> @@ -82,8 +71,7 @@ </description> </signal> <signal name="connection_established"> - <argument index="0" name="protocol" type="String"> - </argument> + <argument index="0" name="protocol" type="String" /> <description> Emitted when a connection with the server is established, [code]protocol[/code] will contain the sub-protocol agreed with the server. </description> @@ -95,10 +83,8 @@ </description> </signal> <signal name="server_close_request"> - <argument index="0" name="code" type="int"> - </argument> - <argument index="1" name="reason" type="String"> - </argument> + <argument index="0" name="code" type="int" /> + <argument index="1" name="reason" type="String" /> <description> Emitted when the server requests a clean close. You should keep polling until you get a [signal connection_closed] signal to achieve the clean close. See [method WebSocketPeer.close] for more details. </description> diff --git a/modules/websocket/doc_classes/WebSocketMultiplayerPeer.xml b/modules/websocket/doc_classes/WebSocketMultiplayerPeer.xml index ee1b60f739..cd41e9a1fb 100644 --- a/modules/websocket/doc_classes/WebSocketMultiplayerPeer.xml +++ b/modules/websocket/doc_classes/WebSocketMultiplayerPeer.xml @@ -10,25 +10,18 @@ </tutorials> <methods> <method name="get_peer" qualifiers="const"> - <return type="WebSocketPeer"> - </return> - <argument index="0" name="peer_id" type="int"> - </argument> + <return type="WebSocketPeer" /> + <argument index="0" name="peer_id" type="int" /> <description> Returns the [WebSocketPeer] associated to the given [code]peer_id[/code]. </description> </method> <method name="set_buffers"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="input_buffer_size_kb" type="int"> - </argument> - <argument index="1" name="input_max_packets" type="int"> - </argument> - <argument index="2" name="output_buffer_size_kb" type="int"> - </argument> - <argument index="3" name="output_max_packets" type="int"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="input_buffer_size_kb" type="int" /> + <argument index="1" name="input_max_packets" type="int" /> + <argument index="2" name="output_buffer_size_kb" type="int" /> + <argument index="3" name="output_max_packets" type="int" /> <description> Configures the buffer sizes for this WebSocket peer. Default values can be specified in the Project Settings under [code]network/limits[/code]. For server, values are meant per connected peer. The first two parameters define the size and queued packets limits of the input buffer, the last two of the output buffer. @@ -43,8 +36,7 @@ </members> <signals> <signal name="peer_packet"> - <argument index="0" name="peer_source" type="int"> - </argument> + <argument index="0" name="peer_source" type="int" /> <description> Emitted when a packet is received from a peer. [b]Note:[/b] This signal is only emitted when the client or server is configured to use Godot multiplayer API. diff --git a/modules/websocket/doc_classes/WebSocketPeer.xml b/modules/websocket/doc_classes/WebSocketPeer.xml index 5125956416..0e4cc7cfb6 100644 --- a/modules/websocket/doc_classes/WebSocketPeer.xml +++ b/modules/websocket/doc_classes/WebSocketPeer.xml @@ -11,12 +11,9 @@ </tutorials> <methods> <method name="close"> - <return type="void"> - </return> - <argument index="0" name="code" type="int" default="1000"> - </argument> - <argument index="1" name="reason" type="String" default=""""> - </argument> + <return type="void" /> + <argument index="0" name="code" type="int" default="1000" /> + <argument index="1" name="reason" type="String" default="""" /> <description> Closes this WebSocket connection. [code]code[/code] is the status code for the closure (see RFC 6455 section 7.4 for a list of valid status codes). [code]reason[/code] is the human readable reason for closing the connection (can be any UTF-8 string that's smaller than 123 bytes). [b]Note:[/b] To achieve a clean close, you will need to keep polling until either [signal WebSocketClient.connection_closed] or [signal WebSocketServer.client_disconnected] is received. @@ -24,57 +21,48 @@ </description> </method> <method name="get_connected_host" qualifiers="const"> - <return type="String"> - </return> + <return type="String" /> <description> Returns the IP address of the connected peer. [b]Note:[/b] Not available in the HTML5 export. </description> </method> <method name="get_connected_port" qualifiers="const"> - <return type="int"> - </return> + <return type="int" /> <description> Returns the remote port of the connected peer. [b]Note:[/b] Not available in the HTML5 export. </description> </method> <method name="get_write_mode" qualifiers="const"> - <return type="int" enum="WebSocketPeer.WriteMode"> - </return> + <return type="int" enum="WebSocketPeer.WriteMode" /> <description> Gets the current selected write mode. See [enum WriteMode]. </description> </method> <method name="is_connected_to_host" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if this peer is currently connected. </description> </method> <method name="set_no_delay"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> - </argument> + <return type="void" /> + <argument index="0" name="enabled" type="bool" /> <description> Disable Nagle's algorithm on the underling TCP socket (default). See [method StreamPeerTCP.set_no_delay] for more information. [b]Note:[/b] Not available in the HTML5 export. </description> </method> <method name="set_write_mode"> - <return type="void"> - </return> - <argument index="0" name="mode" type="int" enum="WebSocketPeer.WriteMode"> - </argument> + <return type="void" /> + <argument index="0" name="mode" type="int" enum="WebSocketPeer.WriteMode" /> <description> Sets the socket to use the given [enum WriteMode]. </description> </method> <method name="was_string_packet" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the last received packet was sent as a text payload. See [enum WriteMode]. </description> diff --git a/modules/websocket/doc_classes/WebSocketServer.xml b/modules/websocket/doc_classes/WebSocketServer.xml index 5491f7de15..90182de4c2 100644 --- a/modules/websocket/doc_classes/WebSocketServer.xml +++ b/modules/websocket/doc_classes/WebSocketServer.xml @@ -12,61 +12,46 @@ </tutorials> <methods> <method name="disconnect_peer"> - <return type="void"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="code" type="int" default="1000"> - </argument> - <argument index="2" name="reason" type="String" default=""""> - </argument> + <return type="void" /> + <argument index="0" name="id" type="int" /> + <argument index="1" name="code" type="int" default="1000" /> + <argument index="2" name="reason" type="String" default="""" /> <description> Disconnects the peer identified by [code]id[/code] from the server. See [method WebSocketPeer.close] for more information. </description> </method> <method name="get_peer_address" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="String" /> + <argument index="0" name="id" type="int" /> <description> Returns the IP address of the given peer. </description> </method> <method name="get_peer_port" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="int" /> + <argument index="0" name="id" type="int" /> <description> Returns the remote port of the given peer. </description> </method> <method name="has_peer" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> + <return type="bool" /> + <argument index="0" name="id" type="int" /> <description> Returns [code]true[/code] if a peer with the given ID is connected. </description> </method> <method name="is_listening" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if the server is actively listening on a port. </description> </method> <method name="listen"> - <return type="int" enum="Error"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="protocols" type="PackedStringArray" default="PackedStringArray()"> - </argument> - <argument index="2" name="gd_mp_api" type="bool" default="false"> - </argument> + <return type="int" enum="Error" /> + <argument index="0" name="port" type="int" /> + <argument index="1" name="protocols" type="PackedStringArray" default="PackedStringArray()" /> + <argument index="2" name="gd_mp_api" type="bool" default="false" /> <description> Starts listening on the given port. You can specify the desired subprotocols via the "protocols" array. If the list empty (default), no sub-protocol will be requested. @@ -75,8 +60,7 @@ </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the server and clear its state. </description> @@ -101,40 +85,31 @@ </members> <signals> <signal name="client_close_request"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="code" type="int"> - </argument> - <argument index="2" name="reason" type="String"> - </argument> + <argument index="0" name="id" type="int" /> + <argument index="1" name="code" type="int" /> + <argument index="2" name="reason" type="String" /> <description> Emitted when a client requests a clean close. You should keep polling until you get a [signal client_disconnected] signal with the same [code]id[/code] to achieve the clean close. See [method WebSocketPeer.close] for more details. </description> </signal> <signal name="client_connected"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="protocol" type="String"> - </argument> - <argument index="2" name="resource_name" type="String"> - </argument> + <argument index="0" name="id" type="int" /> + <argument index="1" name="protocol" type="String" /> + <argument index="2" name="resource_name" type="String" /> <description> Emitted when a new client connects. "protocol" will be the sub-protocol agreed with the client, and "resource_name" will be the resource name of the URI the peer used. "resource_name" is a path (at the very least a single forward slash) and potentially a query string. </description> </signal> <signal name="client_disconnected"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="was_clean_close" type="bool"> - </argument> + <argument index="0" name="id" type="int" /> + <argument index="1" name="was_clean_close" type="bool" /> <description> Emitted when a client disconnects. [code]was_clean_close[/code] will be [code]true[/code] if the connection was shutdown cleanly. </description> </signal> <signal name="data_received"> - <argument index="0" name="id" type="int"> - </argument> + <argument index="0" name="id" type="int" /> <description> Emitted when a new message is received. [b]Note:[/b] This signal is [i]not[/i] emitted when used as high-level multiplayer peer. diff --git a/modules/webxr/doc_classes/WebXRInterface.xml b/modules/webxr/doc_classes/WebXRInterface.xml index 67b2b866f3..ff7c46bbae 100644 --- a/modules/webxr/doc_classes/WebXRInterface.xml +++ b/modules/webxr/doc_classes/WebXRInterface.xml @@ -95,10 +95,8 @@ </tutorials> <methods> <method name="get_controller" qualifiers="const"> - <return type="XRPositionalTracker"> - </return> - <argument index="0" name="controller_id" type="int"> - </argument> + <return type="XRPositionalTracker" /> + <argument index="0" name="controller_id" type="int" /> <description> Gets an [XRPositionalTracker] for the given [code]controller_id[/code]. In the context of WebXR, a "controller" can be an advanced VR controller like the Oculus Touch or Index controllers, or even a tap on the screen, a spoken voice command or a button press on the device itself. When a non-traditional controller is used, interpret the position and orientation of the [XRPositionalTracker] as a ray pointing at the object the user wishes to interact with. @@ -112,10 +110,8 @@ </description> </method> <method name="is_session_supported"> - <return type="void"> - </return> - <argument index="0" name="session_mode" type="String"> - </argument> + <return type="void" /> + <argument index="0" name="session_mode" type="String" /> <description> Checks if the given [code]session_mode[/code] is supported by the user's browser. Possible values come from [url=https://developer.mozilla.org/en-US/docs/Web/API/XRSessionMode]WebXR's XRSessionMode[/url], including: [code]"immersive-vr"[/code], [code]"immersive-ar"[/code], and [code]"inline"[/code]. @@ -170,24 +166,21 @@ </description> </signal> <signal name="select"> - <argument index="0" name="controller_id" type="int"> - </argument> + <argument index="0" name="controller_id" type="int" /> <description> Emitted after one of the "controllers" has finished its "primary action". Use [method get_controller] to get more information about the controller. </description> </signal> <signal name="selectend"> - <argument index="0" name="controller_id" type="int"> - </argument> + <argument index="0" name="controller_id" type="int" /> <description> Emitted when one of the "controllers" has finished its "primary action". Use [method get_controller] to get more information about the controller. </description> </signal> <signal name="selectstart"> - <argument index="0" name="controller_id" type="int"> - </argument> + <argument index="0" name="controller_id" type="int" /> <description> Emitted when one of the "controllers" has started its "primary action". Use [method get_controller] to get more information about the controller. @@ -200,8 +193,7 @@ </description> </signal> <signal name="session_failed"> - <argument index="0" name="message" type="String"> - </argument> + <argument index="0" name="message" type="String" /> <description> Emitted by [method XRInterface.initialize] if the session fails to start. [code]message[/code] may optionally contain an error message from WebXR, or an empty string if no message is available. @@ -214,33 +206,28 @@ </description> </signal> <signal name="session_supported"> - <argument index="0" name="session_mode" type="String"> - </argument> - <argument index="1" name="supported" type="bool"> - </argument> + <argument index="0" name="session_mode" type="String" /> + <argument index="1" name="supported" type="bool" /> <description> Emitted by [method is_session_supported] to indicate if the given [code]session_mode[/code] is supported or not. </description> </signal> <signal name="squeeze"> - <argument index="0" name="controller_id" type="int"> - </argument> + <argument index="0" name="controller_id" type="int" /> <description> Emitted after one of the "controllers" has finished its "primary squeeze action". Use [method get_controller] to get more information about the controller. </description> </signal> <signal name="squeezeend"> - <argument index="0" name="controller_id" type="int"> - </argument> + <argument index="0" name="controller_id" type="int" /> <description> Emitted when one of the "controllers" has finished its "primary squeeze action". Use [method get_controller] to get more information about the controller. </description> </signal> <signal name="squeezestart"> - <argument index="0" name="controller_id" type="int"> - </argument> + <argument index="0" name="controller_id" type="int" /> <description> Emitted when one of the "controllers" has started its "primary squeeze action". Use [method get_controller] to get more information about the controller. |