From 77573a76d1320f51473ec7fa81be4fbad43e75f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 12 May 2016 09:16:37 +0200 Subject: [PATCH] classref: Sync with current source --- doc/base/classes.xml | 257 ++++++++++++++++++++++++++++--------------- 1 file changed, 166 insertions(+), 91 deletions(-) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index eed5037586..9911e714d3 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -1,5 +1,5 @@ - + Built-in GDScript functions. @@ -2678,6 +2678,22 @@ Get the list of names of the animations stored in the player. + + + + + + + + + + + + + + + + @@ -2733,14 +2749,14 @@ - Play a given animation by the animation name in reverse. + Play a given animation by the animation name in reverse. - Stop the currently playing animation. + Stop the currently playing animation. @@ -2900,7 +2916,7 @@ - Used to skip ahead or skip back in an animation. Delta is the time in seconds to skip. + Used to skip ahead or skip back in an animation. Delta is the time in seconds to skip. @@ -6531,9 +6547,9 @@ - + - + @@ -6546,9 +6562,9 @@ - + - + Draw a polygon of any amount of points, convex or concave. @@ -6559,9 +6575,9 @@ - + - + Draw a colored polygon of any amount of points, convex or concave. @@ -6883,7 +6899,7 @@ - + Set the base rotation for this layer (helper). @@ -6896,6 +6912,18 @@ Return the base rotation for this layer (helper). + + + + + + + + + + + + @@ -6911,7 +6939,7 @@ - + Return the [World2D] used by this layer. @@ -8057,10 +8085,10 @@ - Color interpolator node + Color interpolator node - Given a set of colors, this node will interpolate them in order, meaning, that if you have color 1, color 2 and color3, the ramp will interpolate (generate the colors between two colors) from color 1 to color 2 and from color 2 to color 3. Initially the ramp will have 2 colors (black and white), one (black) at ramp lower offset offset 0 and the other (white) at the ramp higher offset 1. + Given a set of colors, this node will interpolate them in order, meaning, that if you have color 1, color 2 and color3, the ramp will interpolate (generate the colors between two colors) from color 1 to color 2 and from color 2 to color 3. Initially the ramp will have 2 colors (black and white), one (black) at ramp lower offset offset 0 and the other (white) at the ramp higher offset 1. @@ -8069,14 +8097,14 @@ - Adds the specified color to the end of the ramp, with the specified offset + Adds the specified color to the end of the ramp, with the specified offset - Removes the color at the index [i]offset[/i] + Removes the color at the index [i]offset[/i] @@ -8085,7 +8113,7 @@ - Sets the offset for the ramp color at index [i]point[/i] + Sets the offset for the ramp color at index [i]point[/i] @@ -8094,7 +8122,7 @@ - Returns the offset of the ramp color at index [i]point[/i] + Returns the offset of the ramp color at index [i]point[/i] @@ -8103,7 +8131,7 @@ - Sets the color of the ramp color at index [i]point[/i] + Sets the color of the ramp color at index [i]point[/i] @@ -8112,7 +8140,7 @@ - Returns the color of the ramp color at index [i]point[/i] + Returns the color of the ramp color at index [i]point[/i] @@ -8121,42 +8149,42 @@ - Returns the interpolated color specified by [i]offset[/i] + Returns the interpolated color specified by [i]offset[/i] - Returns the number of colors in the ramp + Returns the number of colors in the ramp - Sets the offset for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements, all new colors will be black by default. + Sets the offset for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements, all new colors will be black by default. - Returns the offsets for the colors in this ramp + Returns the offsets for the colors in this ramp - Sets the colors for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements. + Sets the colors for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements. - Returns the colors in the ramp + Returns the colors in the ramp @@ -8566,7 +8594,13 @@ - + + + + + + + @@ -8619,6 +8653,12 @@ + + + + + + @@ -13734,6 +13774,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + @@ -14254,13 +14298,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Makes the mouse cursor visible if it is hidden. + Makes the mouse cursor visible if it is hidden. - Makes the mouse cursor hidden if it is visible. + Makes the mouse cursor hidden if it is visible. - Captures the mouse. The mouse will be hidden and unable to leave the game window. But it will still register movement and mouse button presses. + Captures the mouse. The mouse will be hidden and unable to leave the game window. But it will still register movement and mouse button presses. @@ -15353,7 +15397,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + @@ -19132,7 +19176,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + Return the parent [Node] of the current [Node], or an empty Object if the node lacks a parent. @@ -19525,12 +19569,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + Set the rotation of the 2D node. + + + + + + @@ -19552,6 +19602,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the rotation of the 2D node. + + + + + + @@ -19915,7 +19971,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Sets the window size to the specified size. + Sets the window size to the specified size. @@ -19981,7 +20037,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class. + Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class. @@ -21939,66 +21995,66 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - 2D Particle emitter + 2D Particle emitter - Particles2D is a particle system 2D [Node] that is used to simulate several types of particle effects, such as explosions, rain, snow, fireflies, or other magical-like shinny sparkles. Particles are drawn using impostors, and given their dynamic behavior, the user must provide a visibility AABB (although helpers to create one automatically exist). + Particles2D is a particle system 2D [Node] that is used to simulate several types of particle effects, such as explosions, rain, snow, fireflies, or other magical-like shinny sparkles. Particles are drawn using impostors, and given their dynamic behavior, the user must provide a visibility AABB (although helpers to create one automatically exist). - If this is set to true then the particle emitter will emit particles, if its false it will not. + If this is set to true then the particle emitter will emit particles, if its false it will not. - Returns whether this emitter is currently emitting or not + Returns whether this emitter is currently emitting or not - Sets the amount of particles spawned at each emission + Sets the amount of particles spawned at each emission - Returns the amount of particles spawned at each emission + Returns the amount of particles spawned at each emission - Sets the amount of seconds that each particle will be visible. + Sets the amount of seconds that each particle will be visible. - Gets the amount of seconds that each particle will be visible. + Gets the amount of seconds that each particle will be visible. - Sets the increment or decrement for the particle lifetime. for example: if the time scale is set to 2, the particles will die and move twice as fast. + Sets the increment or decrement for the particle lifetime. for example: if the time scale is set to 2, the particles will die and move twice as fast. - Returns the emitter time scale + Returns the emitter time scale @@ -22017,14 +22073,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Sets the amount of seconds during which the emitter will spawn particles, after the specified seconds the emitter state will be set to non emitting, so calling [method is_emitting] will return false. If the timeout is 0 the emitter will spawn forever. + Sets the amount of seconds during which the emitter will spawn particles, after the specified seconds the emitter state will be set to non emitting, so calling [method is_emitting] will return false. If the timeout is 0 the emitter will spawn forever. - Returns the amount of seconds during which the emitter will spawn particles + Returns the amount of seconds during which the emitter will spawn particles @@ -22033,7 +22089,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Sets the value of the specified emitter parameter (see the constants secction for the list of parameters) + Sets the value of the specified emitter parameter (see the constants secction for the list of parameters) @@ -22042,7 +22098,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Returns the value of the specified emitter parameter + Returns the value of the specified emitter parameter @@ -22051,7 +22107,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Sets the randomness value of the specified emitter parameter (see the constants secction for the list of parameters), 0 means no randomness, so every particle will have the parameters specified, 1 means that the parameter will be choosen at random, the closer the randomness value gets to 0 the more conservative the variation of the parameter will be. + Sets the randomness value of the specified emitter parameter (see the constants secction for the list of parameters), 0 means no randomness, so every particle will have the parameters specified, 1 means that the parameter will be choosen at random, the closer the randomness value gets to 0 the more conservative the variation of the parameter will be. @@ -22060,7 +22116,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Returns the randomness value of the specified emitter parameter + Returns the randomness value of the specified emitter parameter @@ -22069,28 +22125,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Sets the texture for each particle + Sets the texture for each particle - Returns the texture for emitted particles + Returns the texture for emitted particles - Set the tint color for each particle. + Set the tint color for each particle. - Returns the tint color for each particle. + Returns the tint color for each particle. @@ -22099,28 +22155,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Sets the [ColorRamp] used to tint each particle. Particle will be tinted according to their lifetimes. + Sets the [ColorRamp] used to tint each particle. Particle will be tinted according to their lifetimes. - Returns the [ColorRamp] used to tint each particle + Returns the [ColorRamp] used to tint each particle - Sets the particle spawn origin position relative to the emitter center. for example if this value is set to (50, 50), the particle will spawn 50 units to the right and 50 units to the bottom of the emitter center. + Sets the particle spawn origin position relative to the emitter center. for example if this value is set to (50, 50), the particle will spawn 50 units to the right and 50 units to the bottom of the emitter center. - Returns the particle spawn origin position relative to the emitter. + Returns the particle spawn origin position relative to the emitter. @@ -22175,14 +22231,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Sets the half extents of the emission box, particles will be spawned at random inside this box. + Sets the half extents of the emission box, particles will be spawned at random inside this box. - Returns the half extents of the emission box. + Returns the half extents of the emission box. @@ -22290,7 +22346,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Direction in degrees at which the particles will be launched, Notice that when the direction is set to 0 the particles will be launched to the negative + Direction in degrees at which the particles will be launched, Notice that when the direction is set to 0 the particles will be launched to the negative @@ -23864,7 +23920,7 @@ This method controls whether the position between two cached points is interpola - + @@ -32451,7 +32507,7 @@ This method controls whether the position between two cached points is interpola - + @@ -32462,6 +32518,18 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + @@ -32837,13 +32905,13 @@ This method controls whether the position between two cached points is interpola - + - + @@ -34630,8 +34698,11 @@ This method controls whether the position between two cached points is interpola + + + + - Return a copy of the string stripped of any non-printable character at the beginning and the end. @@ -35143,7 +35214,7 @@ This method controls whether the position between two cached points is interpola - + @@ -35625,7 +35696,7 @@ This method controls whether the position between two cached points is interpola - + Gets whether the text editor caret is blinking. @@ -37767,7 +37838,7 @@ This method controls whether the position between two cached points is interpola - + @@ -38438,11 +38509,9 @@ This method controls whether the position between two cached points is interpola - + - - - + @@ -39866,13 +39935,13 @@ This method controls whether the position between two cached points is interpola - + - + @@ -40689,6 +40758,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -42579,24 +42654,24 @@ This method controls whether the position between two cached points is interpola - Sort all child nodes based on their Y positions. + Sort all child nodes based on their Y positions. - Sort all child nodes based on their Y positions. The child node must inherit from [CanvasItem] for it to be sorted. Nodes that have a higher Y position will be drawn later, so they will appear on top of nodes that have a lower Y position. + Sort all child nodes based on their Y positions. The child node must inherit from [CanvasItem] for it to be sorted. Nodes that have a higher Y position will be drawn later, so they will appear on top of nodes that have a lower Y position. - Set whether the children nodes are sorted or not. (default true) + Set whether the children nodes are sorted or not. (default true) - Returns true if the children nodes are being sorted. + Returns true if the children nodes are being sorted. @@ -42617,7 +42692,7 @@ This method controls whether the position between two cached points is interpola - Cast an [int] value to a boolean value, this method will return true if called with an integer value different to 0 and false in other case. + Cast an [int] value to a boolean value, this method will return true if called with an integer value different to 0 and false in other case. @@ -42626,7 +42701,7 @@ This method controls whether the position between two cached points is interpola - Cast a [float] value to a boolean value, this method will return true if called with a floating point value different to 0 and false in other case. + Cast a [float] value to a boolean value, this method will return true if called with a floating point value different to 0 and false in other case. @@ -42635,7 +42710,7 @@ This method controls whether the position between two cached points is interpola - Cast a [String] value to a boolean value, this method will return true if called with a non empty string and false in other case. Examples: [code]bool('False')[/code] returns true, [code]bool('')[/code]. returns false + Cast a [String] value to a boolean value, this method will return true if called with a non empty string and false in other case. Examples: [code]bool('False')[/code] returns true, [code]bool('')[/code]. returns false @@ -42644,10 +42719,10 @@ This method controls whether the position between two cached points is interpola - Float built-in type + Float built-in type - Float built-in type. + Float built-in type. @@ -42656,7 +42731,7 @@ This method controls whether the position between two cached points is interpola - Cast a [bool] value to a floating point value, [code]float(true)[/code] will be equals to 1.0 and [code]float(false)[/code] will be equals to 0.0. + Cast a [bool] value to a floating point value, [code]float(true)[/code] will be equals to 1.0 and [code]float(false)[/code] will be equals to 0.0. @@ -42665,7 +42740,7 @@ This method controls whether the position between two cached points is interpola - Cast an [int] value to a floating point value, [code]float(1)[/code] will be equals to 1.0. + Cast an [int] value to a floating point value, [code]float(1)[/code] will be equals to 1.0. @@ -42674,7 +42749,7 @@ This method controls whether the position between two cached points is interpola - Cast a [String] value to a floating point value. This method accepts float value strings like [code] '1.23' [/code] and exponential notation strings for its parameter so calling [code] float('1e3') [/code] will return 1000.0 and calling [code] float('1e-3') [/code] will return -0.001. + Cast a [String] value to a floating point value. This method accepts float value strings like [code] '1.23' [/code] and exponential notation strings for its parameter so calling [code] float('1e3') [/code] will return 1000.0 and calling [code] float('1e-3') [/code] will return -0.001. @@ -42695,7 +42770,7 @@ This method controls whether the position between two cached points is interpola - 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. + 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. @@ -42704,7 +42779,7 @@ This method controls whether the position between two cached points is interpola - Cast a float value to an integer value, this method simply removes the number fractions, so for example [code]int(2.7)[/code] will be equals to 2, [code]int(.1)[/code] will be equals to 0 and [code]int(-2.7)[/code] will be equals to -2. + Cast a float value to an integer value, this method simply removes the number fractions, so for example [code]int(2.7)[/code] will be equals to 2, [code]int(.1)[/code] will be equals to 0 and [code]int(-2.7)[/code] will be equals to -2. @@ -42713,7 +42788,7 @@ This method controls whether the position between two cached points is interpola - Cast a [String] value to an integer value, this method is an integer parser from a string, so calling this method with an invalid integer string will return 0, a valid string will be something like [code]'1.7'[/code]. This method will ignore all non-number characters, so calling [code]int('1e3')[/code] will return 13. + Cast a [String] value to an integer value, this method is an integer parser from a string, so calling this method with an invalid integer string will return 0, a valid string will be something like [code]'1.7'[/code]. This method will ignore all non-number characters, so calling [code]int('1e3')[/code] will return 13.