classref: Sync with current source

[ci skip]
This commit is contained in:
Rémi Verschelde 2017-11-13 09:24:36 +01:00
parent dc4be4350a
commit 2fce0010f0
22 changed files with 377 additions and 125 deletions

View file

@ -1119,7 +1119,7 @@
<constant name="PI" value="3.141593" enum=""> <constant name="PI" value="3.141593" enum="">
Constant that represents how many times the diameter of a circle fits around its perimeter. Constant that represents how many times the diameter of a circle fits around its perimeter.
</constant> </constant>
<constant name="TAU" value="6.2831853" enum=""> <constant name="TAU" value="6.283185" enum="">
The circle constant, the circumference of the unit circle. The circle constant, the circumference of the unit circle.
</constant> </constant>
<constant name="INF" value="inf" enum=""> <constant name="INF" value="inf" enum="">

View file

@ -1038,7 +1038,11 @@
<constant name="JOY_AXIS_7" value="7"> <constant name="JOY_AXIS_7" value="7">
Joypad Right Trigger Analog Axis Joypad Right Trigger Analog Axis
</constant> </constant>
<constant name="JOY_AXIS_MAX" value="8"> <constant name="JOY_AXIS_8" value="8">
</constant>
<constant name="JOY_AXIS_9" value="9">
</constant>
<constant name="JOY_AXIS_MAX" value="10">
</constant> </constant>
<constant name="JOY_ANALOG_LX" value="0"> <constant name="JOY_ANALOG_LX" value="0">
Joypad Left Stick Horizontal Axis Joypad Left Stick Horizontal Axis

View file

@ -57,6 +57,12 @@
Returns the ID of the joystick object bound to this. Every controller tracked by the ARVR Server 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. Returns the ID of the joystick object bound to this. Every controller tracked by the ARVR Server 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> </description>
</method> </method>
<method name="get_rumble" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="is_button_pressed" qualifiers="const"> <method name="is_button_pressed" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
@ -75,11 +81,21 @@
Changes the id that identifies the controller bound to this node. The first controller that the ARVR Server detects will have id 1, the second id 2, the third id 3, etc. When a controller is turned off that slot is freed ensuring that controllers will keep the same id while it is turned on even when controllers with lower ids are turned off. Changes the id that identifies the controller bound to this node. The first controller that the ARVR Server detects will have id 1, the second id 2, the third id 3, etc. When a controller is turned off that slot is freed ensuring that controllers will keep the same id while it is turned on even when controllers with lower ids are turned off.
</description> </description>
</method> </method>
<method name="set_rumble">
<return type="void">
</return>
<argument index="0" name="rumble" type="float">
</argument>
<description>
</description>
</method>
</methods> </methods>
<members> <members>
<member name="controller_id" type="int" setter="set_controller_id" getter="get_controller_id"> <member name="controller_id" type="int" setter="set_controller_id" getter="get_controller_id">
The controller's id. The first controller that the [ARVRServer] detects will have id 1, the second id 2, the third id 3, etc. When a controller is turned off, it's slot is freed. This ensures controllers will keep the same id even when controllers with lower ids are turned off. The controller's id. The first controller that the [ARVRServer] detects will have id 1, the second id 2, the third id 3, etc. When a controller is turned off, it's slot is freed. This ensures controllers will keep the same id even when controllers with lower ids are turned off.
</member> </member>
<member name="rumble" type="float" setter="set_rumble" getter="get_rumble">
</member>
</members> </members>
<signals> <signals>
<signal name="button_pressed"> <signal name="button_pressed">

View file

@ -48,6 +48,12 @@
Returns the position of the controller adjusted by world scale. Returns the position of the controller adjusted by world scale.
</description> </description>
</method> </method>
<method name="get_rumble" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_tracks_orientation" qualifiers="const"> <method name="get_tracks_orientation" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
@ -78,7 +84,19 @@
Type of tracker. Type of tracker.
</description> </description>
</method> </method>
<method name="set_rumble">
<return type="void">
</return>
<argument index="0" name="rumble" type="float">
</argument>
<description>
</description>
</method>
</methods> </methods>
<members>
<member name="rumble" type="float" setter="set_rumble" getter="get_rumble">
</member>
</members>
<constants> <constants>
<constant name="TRACKER_HAND_UNKNOWN" value="0"> <constant name="TRACKER_HAND_UNKNOWN" value="0">
The hand this tracker is held in is unknown or not applicable. The hand this tracker is held in is unknown or not applicable.

View file

@ -168,6 +168,28 @@
If you change the 2nd point's weight to 3, then the result will be [code][1, 4, 3][/code] instead, because now even though the distance is longer, it's "easier" to get through point 4 than through point 2. If you change the 2nd point's weight to 3, then the result will be [code][1, 4, 3][/code] instead, because now even though the distance is longer, it's "easier" to get through point 4 than through point 2.
</description> </description>
</method> </method>
<method name="get_point_connections">
<return type="PoolIntArray">
</return>
<argument index="0" name="arg0" type="int">
</argument>
<description>
Returns an array with the ids of the points that form the connect with the given point.
[codeblock]
var as = AStar.new()
as.add_point(1, Vector3(0,0,0))
as.add_point(2, Vector3(0,1,0))
as.add_point(3, Vector3(1,1,0))
as.add_point(4, Vector3(2,0,0))
as.connect_points(1, 2, true)
as.connect_points(1, 3, true)
var neighbors = as.get_point_connections(1) # returns [2, 3]
[/codeblock]
</description>
</method>
<method name="get_point_path"> <method name="get_point_path">
<return type="PoolVector3Array"> <return type="PoolVector3Array">
</return> </return>
@ -243,28 +265,6 @@
Sets the [code]weight_scale[/code] for the point with the given id. Sets the [code]weight_scale[/code] for the point with the given id.
</description> </description>
</method> </method>
<method name="get_point_connections">
<return type="PoolIntArray">
</return>
<argument index="0" name="id" type="int">
</argument>
<description>
Returns an array with the ids of the points that form the connect with the given point.
[codeblock]
var as = AStar.new()
as.add_point(1, Vector3(0,0,0))
as.add_point(2, Vector3(0,1,0))
as.add_point(3, Vector3(1,1,0))
as.add_point(4, Vector3(2,0,0))
as.connect_points(1, 2, true)
as.connect_points(1, 3, true)
var neighbors = as.get_point_connections(1) # returns [2, 3]
[/codeblock]
</description>
</method>
</methods> </methods>
<constants> <constants>
</constants> </constants>

View file

@ -82,6 +82,8 @@
</description> </description>
</method> </method>
<method name="back"> <method name="back">
<return type="var">
</return>
<description> <description>
Returns the last element of the array if the array is not empty (size&gt;0). Returns the last element of the array if the array is not empty (size&gt;0).
</description> </description>
@ -142,6 +144,8 @@
</description> </description>
</method> </method>
<method name="front"> <method name="front">
<return type="var">
</return>
<description> <description>
Returns the first element of the array if the array is not empty (size&gt;0). Returns the first element of the array if the array is not empty (size&gt;0).
</description> </description>
@ -183,11 +187,15 @@
</description> </description>
</method> </method>
<method name="pop_back"> <method name="pop_back">
<return type="var">
</return>
<description> <description>
Remove the last element of the array. Remove the last element of the array.
</description> </description>
</method> </method>
<method name="pop_front"> <method name="pop_front">
<return type="var">
</return>
<description> <description>
Remove the first element of the array. Remove the first element of the array.
</description> </description>

View file

@ -30,6 +30,12 @@
<description> <description>
</description> </description>
</method> </method>
<method name="has_filter_clip" qualifiers="const">
<return type="bool">
</return>
<description>
</description>
</method>
<method name="set_atlas"> <method name="set_atlas">
<return type="void"> <return type="void">
</return> </return>
@ -38,6 +44,14 @@
<description> <description>
</description> </description>
</method> </method>
<method name="set_filter_clip">
<return type="void">
</return>
<argument index="0" name="enable" type="bool">
</argument>
<description>
</description>
</method>
<method name="set_margin"> <method name="set_margin">
<return type="void"> <return type="void">
</return> </return>
@ -59,6 +73,8 @@
<member name="atlas" type="Texture" setter="set_atlas" getter="get_atlas"> <member name="atlas" type="Texture" setter="set_atlas" getter="get_atlas">
The texture that contains the atlas. Can be any [Texture] subtype. The texture that contains the atlas. Can be any [Texture] subtype.
</member> </member>
<member name="filter_clip" type="bool" setter="set_filter_clip" getter="has_filter_clip">
</member>
<member name="margin" type="Rect2" setter="set_margin" getter="get_margin"> <member name="margin" type="Rect2" setter="set_margin" getter="get_margin">
The margin around the region. The [Rect2]'s 'size' parameter ('w' and 'h' in the editor) resizes the texture so it fits within the margin. The margin around the region. The [Rect2]'s 'size' parameter ('w' and 'h' in the editor) resizes the texture so it fits within the margin.
</member> </member>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="BulletPhysicsDirectBodyState" inherits="PhysicsDirectBodyState" category="Core" version="3.0.alpha.custom_build">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
</methods>
<constants>
</constants>
</class>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<class name="PhysicsDirectBodyStateSW" inherits="PhysicsDirectBodyState" category="Core" version="3.0.alpha.custom_build"> <class name="BulletPhysicsServer" inherits="PhysicsServer" category="Core" version="3.0.alpha.custom_build">
<brief_description> <brief_description>
</brief_description> </brief_description>
<description> <description>

View file

@ -50,6 +50,26 @@
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). 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> </description>
</method> </method>
<method name="clip_polygon">
<return type="PoolVector3Array">
</return>
<argument index="0" name="points" type="PoolVector3Array">
</argument>
<argument index="1" name="plane" type="Plane">
</argument>
<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="convex_hull_2d">
<return type="PoolVector2Array">
</return>
<argument index="0" name="points" type="PoolVector2Array">
</argument>
<description>
Given an array of [Vector2]s, returns the convex hull as a list of points in counter-clockwise order. The last point is the same as the first one.
</description>
</method>
<method name="get_closest_point_to_segment"> <method name="get_closest_point_to_segment">
<return type="Vector3"> <return type="Vector3">
</return> </return>
@ -280,26 +300,6 @@
Triangulates the polygon specified by the points in [code]polygon[/code]. Returns a [PoolIntArray] 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 [PoolIntArray] is returned. Triangulates the polygon specified by the points in [code]polygon[/code]. Returns a [PoolIntArray] 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 [PoolIntArray] is returned.
</description> </description>
</method> </method>
<method name="convex_hull_2d">
<return type="PoolVector2Array">
</return>
<argument index="0" name="points" type="PoolVector2Array">
</argument>
<description>
Given an array of [Vector2]s, returns the convex hull as a list of points in counter-clockwise order. The last point is the same as the first one.
</description>
</method>
<method name="clip_polygon">
<return type="PoolVector3Array">
</return>
<argument index="0" name="points" type="PoolVector3Array">
</argument>
<argument index="1" name="plane" type="Plane">
</argument>
<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>
</methods> </methods>
<constants> <constants>
</constants> </constants>

View file

@ -114,7 +114,7 @@
Return the text in the [code]LineEdit[/code]. Return the text in the [code]LineEdit[/code].
</description> </description>
</method> </method>
<method name="is_context_menu_enabled" qualifiers="const"> <method name="is_context_menu_enabled">
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
@ -180,7 +180,7 @@
<method name="set_context_menu_enabled"> <method name="set_context_menu_enabled">
<return type="void"> <return type="void">
</return> </return>
<argument index="0" name="enabled" type="bool"> <argument index="0" name="enable" type="bool">
</argument> </argument>
<description> <description>
Set the status of the context menu. When enabled, the context menu will appear when the [code]LineEdit[/code] is right clicked. Set the status of the context menu. When enabled, the context menu will appear when the [code]LineEdit[/code] is right clicked.
@ -268,6 +268,9 @@
<member name="caret_blink_speed" type="float" setter="cursor_set_blink_speed" getter="cursor_get_blink_speed"> <member name="caret_blink_speed" type="float" setter="cursor_set_blink_speed" getter="cursor_get_blink_speed">
Duration (in seconds) of a caret's blinking cycle. Duration (in seconds) of a caret's blinking cycle.
</member> </member>
<member name="context_menu_enabled" type="bool" setter="set_context_menu_enabled" getter="is_context_menu_enabled">
If [code]true[/code] the context menu will appear when right clicked.
</member>
<member name="editable" type="bool" setter="set_editable" getter="is_editable"> <member name="editable" type="bool" setter="set_editable" getter="is_editable">
If [code]false[/code] existing text cannot be modified and new text cannot be added. If [code]false[/code] existing text cannot be modified and new text cannot be added.
</member> </member>
@ -292,9 +295,6 @@
<member name="text" type="String" setter="set_text" getter="get_text"> <member name="text" type="String" setter="set_text" getter="get_text">
String value of the [LineEdit]. String value of the [LineEdit].
</member> </member>
<member name="context_menu_enabled" type="bool" setter="set_context_menu_enabled" getter="is_context_menu_enabled">
If [code]true[/code] the context menu will appear when right clicked.
</member>
</members> </members>
<signals> <signals>
<signal name="text_changed"> <signal name="text_changed">
@ -343,7 +343,9 @@
<constant name="MENU_UNDO" value="5"> <constant name="MENU_UNDO" value="5">
Undoes the previous action. Undoes the previous action.
</constant> </constant>
<constant name="MENU_MAX" value="6"> <constant name="MENU_REDO" value="6">
</constant>
<constant name="MENU_MAX" value="7">
</constant> </constant>
</constants> </constants>
<theme_items> <theme_items>

View file

@ -338,10 +338,6 @@
<method name="body_create"> <method name="body_create">
<return type="RID"> <return type="RID">
</return> </return>
<argument index="0" name="mode" type="int" enum="Physics2DServer.BodyMode" default="2">
</argument>
<argument index="1" name="init_sleeping" type="bool" default="false">
</argument>
<description> <description>
Creates a physics body. The first parameter can be any value from constants BODY_MODE*, for the type of body created. Additionally, the body can be created in sleeping state to save processing time. Creates a physics body. The first parameter can be any value from constants BODY_MODE*, for the type of body created. Additionally, the body can be created in sleeping state to save processing time.
</description> </description>
@ -725,6 +721,30 @@
Returns whether a body can move from a given point in a given direction. Apart from the boolean return value, a [Physics2DTestMotionResult] can be passed to return additional information in. Returns whether a body can move from a given point in a given direction. Apart from the boolean return value, a [Physics2DTestMotionResult] can be passed to return additional information in.
</description> </description>
</method> </method>
<method name="capsule_shape_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="circle_shape_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="concave_polygon_shape_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="convex_polygon_shape_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="damped_spring_joint_create"> <method name="damped_spring_joint_create">
<return type="RID"> <return type="RID">
</return> </return>
@ -832,6 +852,12 @@
Sets a joint parameter. Parameters are explained in the JOINT_PARAM* constants. Sets a joint parameter. Parameters are explained in the JOINT_PARAM* constants.
</description> </description>
</method> </method>
<method name="line_shape_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="pin_joint_create"> <method name="pin_joint_create">
<return type="RID"> <return type="RID">
</return> </return>
@ -845,6 +871,24 @@
Creates a pin joint between two bodies. If not specified, the second body is assumed to be the joint itself. Creates a pin joint between two bodies. If not specified, the second body is assumed to be the joint itself.
</description> </description>
</method> </method>
<method name="ray_shape_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="rectangle_shape_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="segment_shape_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="set_active"> <method name="set_active">
<return type="void"> <return type="void">
</return> </return>
@ -854,15 +898,6 @@
Activates or deactivates the 2D physics engine. Activates or deactivates the 2D physics engine.
</description> </description>
</method> </method>
<method name="shape_create">
<return type="RID">
</return>
<argument index="0" name="type" type="int" enum="Physics2DServer.ShapeType">
</argument>
<description>
Creates a shape of type SHAPE_*. Does not assign it to a body or an area. To do so, you must use [method area_set_shape] or [method body_set_shape].
</description>
</method>
<method name="shape_get_data" qualifiers="const"> <method name="shape_get_data" qualifiers="const">
<return type="Variant"> <return type="Variant">
</return> </return>

View file

@ -388,6 +388,14 @@
Returns the [PhysicsDirectBodyState] of the body. Returns the [PhysicsDirectBodyState] of the body.
</description> </description>
</method> </method>
<method name="body_get_kinematic_safe_margin" qualifiers="const">
<return type="float">
</return>
<argument index="0" name="body" type="RID">
</argument>
<description>
</description>
</method>
<method name="body_get_max_contacts_reported" qualifiers="const"> <method name="body_get_max_contacts_reported" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
@ -598,6 +606,16 @@
Sets the function used to calculate physics for an object, if that object allows it (see [method body_set_omit_force integration]). Sets the function used to calculate physics for an object, if that object allows it (see [method body_set_omit_force integration]).
</description> </description>
</method> </method>
<method name="body_set_kinematic_safe_margin">
<return type="void">
</return>
<argument index="0" name="body" type="RID">
</argument>
<argument index="1" name="margin" type="float">
</argument>
<description>
</description>
</method>
<method name="body_set_max_contacts_reported"> <method name="body_set_max_contacts_reported">
<return type="void"> <return type="void">
</return> </return>
@ -1422,7 +1440,9 @@
<constant name="BODY_MODE_RIGID" value="2"> <constant name="BODY_MODE_RIGID" value="2">
Constant for rigid bodies. Constant for rigid bodies.
</constant> </constant>
<constant name="BODY_MODE_CHARACTER" value="3"> <constant name="BODY_MODE_SOFT" value="3">
</constant>
<constant name="BODY_MODE_CHARACTER" value="4">
Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics. Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics.
</constant> </constant>
<constant name="BODY_PARAM_BOUNCE" value="0"> <constant name="BODY_PARAM_BOUNCE" value="0">

View file

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PhysicsServerSW" inherits="PhysicsServer" category="Core" version="3.0.alpha.custom_build">
<brief_description>
Software implementation of [PhysicsServer].
</brief_description>
<description>
This class exposes no new methods or properties and should not be used, as [PhysicsServer] automatically selects the best implementation available.
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
</methods>
<constants>
</constants>
</class>

View file

@ -73,6 +73,12 @@
Return the rotation in radians of the texture polygon. Return the rotation in radians of the texture polygon.
</description> </description>
</method> </method>
<method name="get_texture_rotation_degrees" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_texture_scale" qualifiers="const"> <method name="get_texture_scale" qualifiers="const">
<return type="Vector2"> <return type="Vector2">
</return> </return>
@ -173,6 +179,14 @@
Set the amount of rotation of the polygon texture, [code]texture_rotation[/code] is specified in radians and clockwise rotation. Set the amount of rotation of the polygon texture, [code]texture_rotation[/code] is specified in radians and clockwise rotation.
</description> </description>
</method> </method>
<method name="set_texture_rotation_degrees">
<return type="void">
</return>
<argument index="0" name="texture_rotation" type="float">
</argument>
<description>
</description>
</method>
<method name="set_texture_scale"> <method name="set_texture_scale">
<return type="void"> <return type="void">
</return> </return>

View file

@ -273,6 +273,12 @@
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. 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.
</description> </description>
</method> </method>
<method name="dedent">
<return type="String">
</return>
<description>
</description>
</method>
<method name="empty"> <method name="empty">
<return type="bool"> <return type="bool">
</return> </return>

View file

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="StyleBoxLine" inherits="StyleBox" category="Core" version="3.0.alpha.custom_build">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
<method name="get_color" qualifiers="const">
<return type="Color">
</return>
<description>
</description>
</method>
<method name="get_grow" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_thickness" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="is_vertical" qualifiers="const">
<return type="bool">
</return>
<description>
</description>
</method>
<method name="set_color">
<return type="void">
</return>
<argument index="0" name="color" type="Color">
</argument>
<description>
</description>
</method>
<method name="set_grow">
<return type="void">
</return>
<argument index="0" name="grow" type="float">
</argument>
<description>
</description>
</method>
<method name="set_thickness">
<return type="void">
</return>
<argument index="0" name="thickness" type="int">
</argument>
<description>
</description>
</method>
<method name="set_vertical">
<return type="void">
</return>
<argument index="0" name="vertical" type="bool">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="color" type="Color" setter="set_color" getter="get_color">
</member>
<member name="thickness" type="int" setter="set_thickness" getter="get_thickness">
</member>
<member name="vertical" type="bool" setter="set_vertical" getter="is_vertical">
</member>
</members>
<constants>
</constants>
</class>

View file

@ -232,6 +232,13 @@
Insert a given text at the cursor position. Insert a given text at the cursor position.
</description> </description>
</method> </method>
<method name="is_context_menu_enabled">
<return type="bool">
</return>
<description>
Returns true if the context menu is enabled.
</description>
</method>
<method name="is_highlight_all_occurrences_enabled" qualifiers="const"> <method name="is_highlight_all_occurrences_enabled" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
@ -239,14 +246,6 @@
Returns true if highlight all occurrences is enabled. Returns true if highlight all occurrences is enabled.
</description> </description>
</method> </method>
</method>
<method name="is_context_menu_enabled" qualifiers="const">
<return type="bool">
</return>
<description>
Returns true if the context menu is enabled.
</description>
</method>
<method name="is_highlight_current_line_enabled" qualifiers="const"> <method name="is_highlight_current_line_enabled" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
@ -260,12 +259,12 @@
</description> </description>
</method> </method>
<method name="is_readonly" qualifiers="const"> <method name="is_readonly" qualifiers="const">
+ <return type="bool"> <return type="bool">
+ </return> </return>
+ <description> <description>
+ Return true if the text editor is in read-only mode (see [method set_readonly]). Return true if the text editor is in read-only mode (see [method set_readonly]).
+ </description> </description>
+ </method> </method>
<method name="is_selection_active" qualifiers="const"> <method name="is_selection_active" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
@ -355,7 +354,7 @@
<method name="set_context_menu_enabled"> <method name="set_context_menu_enabled">
<return type="void"> <return type="void">
</return> </return>
<argument index="0" name="enabled" type="bool"> <argument index="0" name="enable" type="bool">
</argument> </argument>
<description> <description>
Set the status of the context menu. When enabled, the context menu will appear when the [code]TextEdit[/code] is right clicked. Set the status of the context menu. When enabled, the context menu will appear when the [code]TextEdit[/code] is right clicked.
@ -465,32 +464,32 @@
</method> </method>
</methods> </methods>
<members> <members>
<member name="text" type="String" setter="set_text" getter="get_text">
String value of the [TextEdit].
</member>
<member name="readonly" type="bool" setter="set_readonly" getter="is_readonly">
If [code]true[/code] read-only mode is enabled. Existing text cannot be modified and new text cannot be added.
</member>
<member name="caret_blink" type="bool" setter="cursor_set_blink_enabled" getter="cursor_get_blink_enabled"> <member name="caret_blink" type="bool" setter="cursor_set_blink_enabled" getter="cursor_get_blink_enabled">
</member> </member>
<member name="caret_blink_speed" type="float" setter="cursor_set_blink_speed" getter="cursor_get_blink_speed"> <member name="caret_blink_speed" type="float" setter="cursor_set_blink_speed" getter="cursor_get_blink_speed">
</member> </member>
<member name="caret_block_mode" type="bool" setter="cursor_set_block_mode" getter="cursor_is_block_mode"> <member name="caret_block_mode" type="bool" setter="cursor_set_block_mode" getter="cursor_is_block_mode">
</member> </member>
<member name="context_menu_enabled" type="bool" setter="set_context_menu_enabled" getter="is_context_menu_enabled">
</member>
<member name="highlight_all_occurrences" type="bool" setter="set_highlight_all_occurrences" getter="is_highlight_all_occurrences_enabled"> <member name="highlight_all_occurrences" type="bool" setter="set_highlight_all_occurrences" getter="is_highlight_all_occurrences_enabled">
</member> </member>
<member name="highlight_current_line" type="bool" setter="set_highlight_current_line" getter="is_highlight_current_line_enabled"> <member name="highlight_current_line" type="bool" setter="set_highlight_current_line" getter="is_highlight_current_line_enabled">
</member> </member>
<member name="override_selected_font_color" type="bool" setter="set_override_selected_font_color" getter="is_overriding_selected_font_color"> <member name="override_selected_font_color" type="bool" setter="set_override_selected_font_color" getter="is_overriding_selected_font_color">
</member> </member>
<member name="show_line_numbers" type="bool" setter="set_show_line_numbers" getter="is_show_line_numbers_enabled"> <member name="readonly" type="bool" setter="set_readonly" getter="is_readonly">
If [code]true[/code] read-only mode is enabled. Existing text cannot be modified and new text cannot be added.
</member> </member>
<member name="context_menu_enabled" type="bool" setter="set_context_menu_enabled" getter="is_context_menu_enabled"> <member name="show_line_numbers" type="bool" setter="set_show_line_numbers" getter="is_show_line_numbers_enabled">
</member> </member>
<member name="smooth_scrolling" type="bool" setter="set_smooth_scroll_enable" getter="is_smooth_scroll_enabled"> <member name="smooth_scrolling" type="bool" setter="set_smooth_scroll_enable" getter="is_smooth_scroll_enabled">
</member> </member>
<member name="syntax_highlighting" type="bool" setter="set_syntax_coloring" getter="is_syntax_coloring_enabled"> <member name="syntax_highlighting" type="bool" setter="set_syntax_coloring" getter="is_syntax_coloring_enabled">
</member> </member>
<member name="text" type="String" setter="set_text" getter="get_text">
String value of the [TextEdit].
</member>
<member name="v_scroll_speed" type="float" setter="set_v_scroll_speed" getter="get_v_scroll_speed"> <member name="v_scroll_speed" type="float" setter="set_v_scroll_speed" getter="get_v_scroll_speed">
</member> </member>
</members> </members>

View file

@ -59,6 +59,12 @@
Return true if tiles are to be centered in y coordinate (by default this is false and they are drawn from upper left cell corner). Return true if tiles are to be centered in y coordinate (by default this is false and they are drawn from upper left cell corner).
</description> </description>
</method> </method>
<method name="get_clip_uv" qualifiers="const">
<return type="bool">
</return>
<description>
</description>
</method>
<method name="get_collision_bounce" qualifiers="const"> <method name="get_collision_bounce" qualifiers="const">
<return type="float"> <return type="float">
</return> </return>
@ -298,6 +304,14 @@
Set tiles to be centered in y coordinate. (by default this is false and they are drawn from upper left cell corner). Set tiles to be centered in y coordinate. (by default this is false and they are drawn from upper left cell corner).
</description> </description>
</method> </method>
<method name="set_clip_uv">
<return type="void">
</return>
<argument index="0" name="enable" type="bool">
</argument>
<description>
</description>
</method>
<method name="set_collision_bounce"> <method name="set_collision_bounce">
<return type="void"> <return type="void">
</return> </return>
@ -450,6 +464,8 @@
</method> </method>
</methods> </methods>
<members> <members>
<member name="cell_clip_uv" type="bool" setter="set_clip_uv" getter="get_clip_uv">
</member>
<member name="cell_custom_transform" type="Transform2D" setter="set_custom_transform" getter="get_custom_transform"> <member name="cell_custom_transform" type="Transform2D" setter="set_custom_transform" getter="get_custom_transform">
The custom [Transform2D] to be applied to the TileMap's cells. The custom [Transform2D] to be applied to the TileMap's cells.
</member> </member>

View file

@ -9,6 +9,12 @@
<demos> <demos>
</demos> </demos>
<methods> <methods>
<method name="get_stretch_shrink" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="is_stretch_enabled" qualifiers="const"> <method name="is_stretch_enabled" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
@ -23,10 +29,20 @@
<description> <description>
</description> </description>
</method> </method>
<method name="set_stretch_shrink">
<return type="void">
</return>
<argument index="0" name="amount" type="int">
</argument>
<description>
</description>
</method>
</methods> </methods>
<members> <members>
<member name="stretch" type="bool" setter="set_stretch" getter="is_stretch_enabled"> <member name="stretch" type="bool" setter="set_stretch" getter="is_stretch_enabled">
</member> </member>
<member name="stretch_shrink" type="int" setter="set_stretch_shrink" getter="get_stretch_shrink">
</member>
</members> </members>
<constants> <constants>
</constants> </constants>

View file

@ -151,64 +151,68 @@
<constant name="MATH_DB2LINEAR" value="39"> <constant name="MATH_DB2LINEAR" value="39">
Convert the input from decibel volume to linear volume. Convert the input from decibel volume to linear volume.
</constant> </constant>
<constant name="LOGIC_MAX" value="40"> <constant name="MATH_WRAP" value="40">
</constant>
<constant name="MATH_WRAPF" value="41">
</constant>
<constant name="LOGIC_MAX" value="42">
Return the greater of the two numbers, also known as their maximum. Return the greater of the two numbers, also known as their maximum.
</constant> </constant>
<constant name="LOGIC_MIN" value="41"> <constant name="LOGIC_MIN" value="43">
Return the lesser of the two numbers, also known as their minimum. Return the lesser of the two numbers, also known as their minimum.
</constant> </constant>
<constant name="LOGIC_CLAMP" value="42"> <constant name="LOGIC_CLAMP" value="44">
Return the input clamped inside the given range, ensuring the result is never outside it. Equivalent to `min(max(input, range_low), range_high)` Return the input clamped inside the given range, ensuring the result is never outside it. Equivalent to `min(max(input, range_low), range_high)`
</constant> </constant>
<constant name="LOGIC_NEAREST_PO2" value="43"> <constant name="LOGIC_NEAREST_PO2" value="45">
Return the nearest power of 2 to the input. Return the nearest power of 2 to the input.
</constant> </constant>
<constant name="OBJ_WEAKREF" value="44"> <constant name="OBJ_WEAKREF" value="46">
Create a [WeakRef] from the input. Create a [WeakRef] from the input.
</constant> </constant>
<constant name="FUNC_FUNCREF" value="45"> <constant name="FUNC_FUNCREF" value="47">
Create a [FuncRef] from the input. Create a [FuncRef] from the input.
</constant> </constant>
<constant name="TYPE_CONVERT" value="46"> <constant name="TYPE_CONVERT" value="48">
Convert between types. Convert between types.
</constant> </constant>
<constant name="TYPE_OF" value="47"> <constant name="TYPE_OF" value="49">
Return the type of the input as an integer. Check [enum Variant.Type] for the integers that might be returned. Return the type of the input as an integer. Check [enum Variant.Type] for the integers that might be returned.
</constant> </constant>
<constant name="TYPE_EXISTS" value="48"> <constant name="TYPE_EXISTS" value="50">
Checks if a type is registered in the [ClassDB]. Checks if a type is registered in the [ClassDB].
</constant> </constant>
<constant name="TEXT_CHAR" value="49"> <constant name="TEXT_CHAR" value="51">
Return a character with the given ascii value. Return a character with the given ascii value.
</constant> </constant>
<constant name="TEXT_STR" value="50"> <constant name="TEXT_STR" value="52">
Convert the input to a string. Convert the input to a string.
</constant> </constant>
<constant name="TEXT_PRINT" value="51"> <constant name="TEXT_PRINT" value="53">
Print the given string to the output window. Print the given string to the output window.
</constant> </constant>
<constant name="TEXT_PRINTERR" value="52"> <constant name="TEXT_PRINTERR" value="54">
Print the given string to the standard error output. Print the given string to the standard error output.
</constant> </constant>
<constant name="TEXT_PRINTRAW" value="53"> <constant name="TEXT_PRINTRAW" value="55">
Print the given string to the standard output, without adding a newline. Print the given string to the standard output, without adding a newline.
</constant> </constant>
<constant name="VAR_TO_STR" value="54"> <constant name="VAR_TO_STR" value="56">
Serialize a [Variant] to a string. Serialize a [Variant] to a string.
</constant> </constant>
<constant name="STR_TO_VAR" value="55"> <constant name="STR_TO_VAR" value="57">
Deserialize a [Variant] from a string serialized using [VAR_TO_STR]. Deserialize a [Variant] from a string serialized using [VAR_TO_STR].
</constant> </constant>
<constant name="VAR_TO_BYTES" value="56"> <constant name="VAR_TO_BYTES" value="58">
Serialize a [Variant] to a [PoolByteArray]. Serialize a [Variant] to a [PoolByteArray].
</constant> </constant>
<constant name="BYTES_TO_VAR" value="57"> <constant name="BYTES_TO_VAR" value="59">
Deserialize a [Variant] from a [PoolByteArray] serialized using [VAR_TO_BYTES]. Deserialize a [Variant] from a [PoolByteArray] serialized using [VAR_TO_BYTES].
</constant> </constant>
<constant name="COLORN" value="58"> <constant name="COLORN" value="60">
Return the [Color] with the given name and alpha ranging from 0 to 1. Note: names are defined in color_names.inc. Return the [Color] with the given name and alpha ranging from 0 to 1. Note: names are defined in color_names.inc.
</constant> </constant>
<constant name="FUNC_MAX" value="59"> <constant name="FUNC_MAX" value="61">
The maximum value the [member function] property can have. The maximum value the [member function] property can have.
</constant> </constant>
</constants> </constants>

View file

@ -678,6 +678,7 @@ void PhysicsServer::_bind_methods() {
BIND_ENUM_CONSTANT(BODY_MODE_STATIC); BIND_ENUM_CONSTANT(BODY_MODE_STATIC);
BIND_ENUM_CONSTANT(BODY_MODE_KINEMATIC); BIND_ENUM_CONSTANT(BODY_MODE_KINEMATIC);
BIND_ENUM_CONSTANT(BODY_MODE_RIGID); BIND_ENUM_CONSTANT(BODY_MODE_RIGID);
BIND_ENUM_CONSTANT(BODY_MODE_SOFT);
BIND_ENUM_CONSTANT(BODY_MODE_CHARACTER); BIND_ENUM_CONSTANT(BODY_MODE_CHARACTER);
BIND_ENUM_CONSTANT(BODY_PARAM_BOUNCE); BIND_ENUM_CONSTANT(BODY_PARAM_BOUNCE);