From ec4ef2d2e794819548d731f93728266d31261d71 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 14 Apr 2014 22:43:44 -0300 Subject: -Added google play services (needed for some stuff) -Added new screen resizing options, stretch_2d is removed, new much more flexible ones. -Fixed bug in viewport (can create more instances in 3d-in-2d demo now) -Can set android permissions and screen sizes manually in the export settings -Changed export templates extension to .tpz (too many people unzipped the manually..) -File dialog now ensures that the proper extension is used (will not allow to save without it) -Fixed bug that made collision exceptions not work in 2D --- doc/base/classes.xml | 753 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 630 insertions(+), 123 deletions(-) (limited to 'doc/base') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 6e4d97c413..e5330925a9 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -50,6 +50,7 @@ + Hyperbolic cosine. @@ -281,13 +282,18 @@ + Reset the seed of the random number generator with a + new, different one. - + - Random value (integer). + Random 32 bits value (integer). To obtain a value + from 0 to N, you can use remainder, like (for random + from 0 to 19): randi() % + 20. @@ -305,7 +311,8 @@ - Random range. + Random range, any floating point value between + 'from' and 'to' @@ -314,7 +321,7 @@ - random from seed, pass a seed and an array with both number and new seed is returned. + Random from seed, pass a seed and an array with both number and new seed is returned. @@ -406,6 +413,16 @@ Return a weak reference to an object. + + + + + + + + + + @@ -491,12 +508,24 @@ Return 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). + + + + + + + Load a resource from the filesystem, pass a valid + path as argument. + + + Convert a script class instance to a dictionary + (useful for serializing). @@ -505,16 +534,24 @@ + Convert a previously converted instances to dictionary + back into an instance. Useful for deserializing. + Print a stack track at code location, only works when + running with debugger turned on. + + Constant that represents how many times the diameter of a + circumference fits around it's perimeter. + @@ -531,54 +568,79 @@ + The file engine.cfg is read into this singleton. + Global IP protocol functions (like hostname resolution). + Geometry helpers. + Singleton that loads resources (load() calls this) + Singleton that saves resources. + Uset to setup remaps for the filesystem. + Operating system functions. + Used to serialize and deserialize, helpers. + Server that takes care of translating between different + languages. + Short version for TranslationServer. + Global input variables and functions. + Deprecaed. + Server that handles anything visual at low level. + Short for VisualServer. + Server that handles anything audio at low level. + Short for AudioServer. + Server that handles anything 3D physics at low level. + Short for PhysicsServer. + Server that handles anything 2D physics at low level. + Short for Physics2DServer. + Server that handles spatial audio positioning in 3D at low + level. + Short for SpatialSoundServer. + Server that handles spatial audio positioning in 2D at low + level. - - + Short for SpatialSound2DServer. @@ -1493,16 +1555,6 @@ - - - - - - - - - - Axis-Aligned Bounding Box. @@ -1692,6 +1744,7 @@ + Same as pos+size. @@ -1794,92 +1847,114 @@ + Sprite node that can use multiple textures for animation. + Sprite node that can use multiple textures for animation. + Set the [SpriteFrames] resource, which contains all + frames. + Get the [SpriteFrames] resource, which contains all + frames. + When turned on, offset at (0,0) is the center of the + sprite, when off, the top-left corner is. + Return true when centered. See [set_centered]. + Set the offset of the sprite in the node origin. + Position varies depending on whether it is centered + or not. + Return the offset of the sprite in the node origin. + If true, sprite is flipped horizontally. + Return true if sprite is flipped horizontally. + If true, sprite is flipped vertically. + Return true if sprite is flipped vertically. + Set the visible sprite frame index (from the list of + frames inside the [SpriteFrames] resource). + Return the visible frame index. + Change the color modulation (multiplication) for this sprite. + Return the color modulation for this sprite. @@ -2361,22 +2436,27 @@ + Play a given animation by the animation name. Custom + speed and blend times can be set. If custom speed is + negative (-1), 'from_end' being true can play the + animation backwards. + Stop the currently played animation. - Stop playback on all animation channels. + Stop playback of animations (deprecated). - Return wether an animation chanel is playing (or channel 0 if none is provided). + Return wether an animation is playing. @@ -2390,7 +2470,7 @@ - Return the name of the animation being played in a channel (or channel 0 if none is provided). + Return the name of the animation being played. @@ -2402,13 +2482,15 @@ + If animations are queued to play, clear them. - Set the player as active (playing) + Set the player as active (playing). If false, it + will do nothing. @@ -2450,12 +2532,16 @@ + AnimationPlayer resolves animation track paths from + this node (which is relative to itself), by + default root is "..", but it can be changed.. + Return path to root node (see [set_root]). @@ -2464,7 +2550,10 @@ - Seek the animation in an animation channel (or channel 0 if none is provided) to a specific position (in seconds). + Seek the animation to a given position in time (in + seconds). If 'update' + is true, the animation will be updated too, + otherwise it will be updated at process time. @@ -2506,12 +2595,16 @@ + Get the position (in seconds) of the currently being + played animation. + Get the length (in seconds) of the currently being + played animation. @@ -2522,24 +2615,35 @@ + If the currently being played animation changes, + this signal will notify of such change. + Notifies when an animation finished playing. + Process animation on fixed process. This is specially useful + when animating kinematic bodies. + Process animation on idle process. + Animation Player that uses a node graph for the blending. + Animation Player that uses a node graph for the blending. This kind + of player is very useful when animating character or other skeleton + based rigs, because it can combine several animations to form a + desired pose. @@ -2548,6 +2652,8 @@ + Add a node of a given type in the graph with given + id. @@ -2556,6 +2662,7 @@ + Check if a node exists (by name). @@ -2566,6 +2673,7 @@ + Rename a node in the graph. @@ -2574,6 +2682,7 @@ + Get the node type, will return from NODE_* enum. @@ -2582,6 +2691,8 @@ + Return the input count for a given node. Different + types of nodes have different amount of inputs. @@ -2592,6 +2703,7 @@ + Return the input source for a given node input. @@ -2600,6 +2712,7 @@ + Set the animation for an animation node. @@ -4887,6 +5000,18 @@ Return true if the camera is at the center of the screen (default: true). + + + + + + + + + + + + Make this the current 2D camera for the scene (viewport and layer), in case there's many cameras in the scene. @@ -5168,18 +5293,16 @@ Set canvas item self-opacity. This does not affect the opacity of children items. - - + + - Set canvas item as drawing over the parent canvas item (default: true). - + - Return if the canvas item is drawing over the parent canvas item (default: true). @@ -8229,6 +8352,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -8809,6 +8958,18 @@ + + + + + + + + + + + + @@ -9124,38 +9285,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -9532,6 +9661,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10827,7 +11004,13 @@ - + + + + + + + @@ -11038,6 +11221,12 @@ + + + + + + @@ -11595,6 +11784,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -11651,6 +11860,16 @@ + + + + + + + + + + @@ -11847,6 +12066,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Control that displays formatted text. @@ -13580,16 +13923,6 @@ - - - - - - - - - - @@ -14433,13 +14766,6 @@ -Command Line - - - - - Return the mouse pos. - - @@ -14706,11 +15032,10 @@ Return true if the engine was executed with -v (verbose stdout). - - + + - Return the state of the mouse buttons (each button in each bit). @@ -14775,6 +15100,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -16804,6 +17155,20 @@ Intersect a given shape (RID or [Shape2D]) against the space, the intersected shapes are returned in a special result object. + + + + + + + + + + + + + + @@ -17006,19 +17371,21 @@ - + + + - - - + + + @@ -17103,8 +17470,6 @@ - - @@ -17216,16 +17581,16 @@ - + - + - - + + @@ -17252,14 +17617,6 @@ - - - - - - - - @@ -17532,6 +17889,12 @@ + + + + + + @@ -21032,18 +21395,16 @@ Return wether contact monitoring is enabled. - - + + - Enable continuos collision detection. This prevents very fast-moving bodies (such as bullets) to not go through objects. - - + + - Return true if continuous collision detection is in use. @@ -21157,6 +21518,12 @@ Character body, can move but not rotate. + + + + + + @@ -22610,6 +22977,54 @@ Return the custom solver bias. No need to change this unless you really know what you are doing. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -23694,20 +24109,6 @@ Alternatively, a constant linear or angular velocity can be set for the static body, so even if it doesn't move, it affects other bodies as if it was moving (this is useful for simulating conveyor belts or conveyor wheels). - - - - - Enable or disable simulated motion mode. - - - - - - - Return true if simulated motion mode is enabled. - - @@ -25881,6 +26282,18 @@ + + + + + + + + + + + + @@ -26133,22 +26546,36 @@ Return the texture of the tile. - + + + + + + + + + + + - + + + + + + + - Set the offset to draw the tile. - + - Return the offset to draw the tile. @@ -26231,6 +26658,12 @@ Find the first tile with the given name. + + + + + + @@ -27466,6 +27899,14 @@ Returns a normalized vector to unit length. + + + + + + + + @@ -27474,6 +27915,14 @@ + + + + + + + + @@ -28077,6 +28526,24 @@ + + + + + + + + + + + + + + + + + + @@ -28088,6 +28555,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -28096,6 +28587,14 @@ + + + + + + + + @@ -30133,7 +30632,15 @@ - + + + + + + + + + -- cgit v1.2.3