classref: Sync with current source
[ci skip]
This commit is contained in:
parent
dc4be4350a
commit
2fce0010f0
22 changed files with 377 additions and 125 deletions
|
@ -1119,7 +1119,7 @@
|
|||
<constant name="PI" value="3.141593" enum="">
|
||||
Constant that represents how many times the diameter of a circle fits around its perimeter.
|
||||
</constant>
|
||||
<constant name="TAU" value="6.2831853" enum="">
|
||||
<constant name="TAU" value="6.283185" enum="">
|
||||
The circle constant, the circumference of the unit circle.
|
||||
</constant>
|
||||
<constant name="INF" value="inf" enum="">
|
||||
|
|
|
@ -1038,7 +1038,11 @@
|
|||
<constant name="JOY_AXIS_7" value="7">
|
||||
Joypad Right Trigger Analog Axis
|
||||
</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 name="JOY_ANALOG_LX" value="0">
|
||||
Joypad Left Stick Horizontal Axis
|
||||
|
|
|
@ -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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_rumble" qualifiers="const">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_button_pressed" qualifiers="const">
|
||||
<return type="int">
|
||||
</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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_rumble">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="rumble" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<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.
|
||||
</member>
|
||||
<member name="rumble" type="float" setter="set_rumble" getter="get_rumble">
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="button_pressed">
|
||||
|
|
|
@ -48,6 +48,12 @@
|
|||
Returns the position of the controller adjusted by world scale.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_rumble" qualifiers="const">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_tracks_orientation" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
|
@ -78,7 +84,19 @@
|
|||
Type of tracker.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_rumble">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="rumble" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="rumble" type="float" setter="set_rumble" getter="get_rumble">
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="TRACKER_HAND_UNKNOWN" value="0">
|
||||
The hand this tracker is held in is unknown or not applicable.
|
||||
|
|
|
@ -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.
|
||||
</description>
|
||||
</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">
|
||||
<return type="PoolVector3Array">
|
||||
</return>
|
||||
|
@ -243,28 +265,6 @@
|
|||
Sets the [code]weight_scale[/code] for the point with the given id.
|
||||
</description>
|
||||
</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>
|
||||
<constants>
|
||||
</constants>
|
||||
|
|
|
@ -82,6 +82,8 @@
|
|||
</description>
|
||||
</method>
|
||||
<method name="back">
|
||||
<return type="var">
|
||||
</return>
|
||||
<description>
|
||||
Returns the last element of the array if the array is not empty (size>0).
|
||||
</description>
|
||||
|
@ -142,6 +144,8 @@
|
|||
</description>
|
||||
</method>
|
||||
<method name="front">
|
||||
<return type="var">
|
||||
</return>
|
||||
<description>
|
||||
Returns the first element of the array if the array is not empty (size>0).
|
||||
</description>
|
||||
|
@ -183,11 +187,15 @@
|
|||
</description>
|
||||
</method>
|
||||
<method name="pop_back">
|
||||
<return type="var">
|
||||
</return>
|
||||
<description>
|
||||
Remove the last element of the array.
|
||||
</description>
|
||||
</method>
|
||||
<method name="pop_front">
|
||||
<return type="var">
|
||||
</return>
|
||||
<description>
|
||||
Remove the first element of the array.
|
||||
</description>
|
||||
|
|
|
@ -30,6 +30,12 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="has_filter_clip" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_atlas">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
@ -38,6 +44,14 @@
|
|||
<description>
|
||||
</description>
|
||||
</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">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
@ -59,6 +73,8 @@
|
|||
<member name="atlas" type="Texture" setter="set_atlas" getter="get_atlas">
|
||||
The texture that contains the atlas. Can be any [Texture] subtype.
|
||||
</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">
|
||||
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>
|
||||
|
|
15
doc/classes/BulletPhysicsDirectBodyState.xml
Normal file
15
doc/classes/BulletPhysicsDirectBodyState.xml
Normal 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>
|
|
@ -1,5 +1,5 @@
|
|||
<?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>
|
||||
<description>
|
|
@ -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).
|
||||
</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>
|
||||
<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">
|
||||
<return type="Vector3">
|
||||
</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.
|
||||
</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="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>
|
||||
<constants>
|
||||
</constants>
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
Return the text in the [code]LineEdit[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_context_menu_enabled" qualifiers="const">
|
||||
<method name="is_context_menu_enabled">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
|
@ -180,7 +180,7 @@
|
|||
<method name="set_context_menu_enabled">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="enabled" type="bool">
|
||||
<argument index="0" name="enable" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
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">
|
||||
Duration (in seconds) of a caret's blinking cycle.
|
||||
</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">
|
||||
If [code]false[/code] existing text cannot be modified and new text cannot be added.
|
||||
</member>
|
||||
|
@ -292,9 +295,6 @@
|
|||
<member name="text" type="String" setter="set_text" getter="get_text">
|
||||
String value of the [LineEdit].
|
||||
</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>
|
||||
<signals>
|
||||
<signal name="text_changed">
|
||||
|
@ -343,7 +343,9 @@
|
|||
<constant name="MENU_UNDO" value="5">
|
||||
Undoes the previous action.
|
||||
</constant>
|
||||
<constant name="MENU_MAX" value="6">
|
||||
<constant name="MENU_REDO" value="6">
|
||||
</constant>
|
||||
<constant name="MENU_MAX" value="7">
|
||||
</constant>
|
||||
</constants>
|
||||
<theme_items>
|
||||
|
|
|
@ -338,10 +338,6 @@
|
|||
<method name="body_create">
|
||||
<return type="RID">
|
||||
</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>
|
||||
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>
|
||||
|
@ -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.
|
||||
</description>
|
||||
</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">
|
||||
<return type="RID">
|
||||
</return>
|
||||
|
@ -832,6 +852,12 @@
|
|||
Sets a joint parameter. Parameters are explained in the JOINT_PARAM* constants.
|
||||
</description>
|
||||
</method>
|
||||
<method name="line_shape_create">
|
||||
<return type="RID">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="pin_joint_create">
|
||||
<return type="RID">
|
||||
</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.
|
||||
</description>
|
||||
</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">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
@ -854,15 +898,6 @@
|
|||
Activates or deactivates the 2D physics engine.
|
||||
</description>
|
||||
</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">
|
||||
<return type="Variant">
|
||||
</return>
|
||||
|
|
|
@ -388,6 +388,14 @@
|
|||
Returns the [PhysicsDirectBodyState] of the body.
|
||||
</description>
|
||||
</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">
|
||||
<return type="int">
|
||||
</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]).
|
||||
</description>
|
||||
</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">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
@ -1422,7 +1440,9 @@
|
|||
<constant name="BODY_MODE_RIGID" value="2">
|
||||
Constant for rigid bodies.
|
||||
</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>
|
||||
<constant name="BODY_PARAM_BOUNCE" value="0">
|
||||
|
|
|
@ -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>
|
|
@ -73,6 +73,12 @@
|
|||
Return the rotation in radians of the texture polygon.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_texture_rotation_degrees" qualifiers="const">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_texture_scale" qualifiers="const">
|
||||
<return type="Vector2">
|
||||
</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.
|
||||
</description>
|
||||
</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">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
|
|
@ -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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="dedent">
|
||||
<return type="String">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="empty">
|
||||
<return type="bool">
|
||||
</return>
|
||||
|
|
79
doc/classes/StyleBoxLine.xml
Normal file
79
doc/classes/StyleBoxLine.xml
Normal 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>
|
|
@ -232,6 +232,13 @@
|
|||
Insert a given text at the cursor position.
|
||||
</description>
|
||||
</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">
|
||||
<return type="bool">
|
||||
</return>
|
||||
|
@ -239,14 +246,6 @@
|
|||
Returns true if highlight all occurrences is enabled.
|
||||
</description>
|
||||
</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">
|
||||
<return type="bool">
|
||||
</return>
|
||||
|
@ -260,12 +259,12 @@
|
|||
</description>
|
||||
</method>
|
||||
<method name="is_readonly" qualifiers="const">
|
||||
+ <return type="bool">
|
||||
+ </return>
|
||||
+ <description>
|
||||
+ Return true if the text editor is in read-only mode (see [method set_readonly]).
|
||||
+ </description>
|
||||
+ </method>
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
Return true if the text editor is in read-only mode (see [method set_readonly]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_selection_active" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
|
@ -355,7 +354,7 @@
|
|||
<method name="set_context_menu_enabled">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="enabled" type="bool">
|
||||
<argument index="0" name="enable" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
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>
|
||||
</methods>
|
||||
<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>
|
||||
<member name="caret_blink_speed" type="float" setter="cursor_set_blink_speed" getter="cursor_get_blink_speed">
|
||||
</member>
|
||||
<member name="caret_block_mode" type="bool" setter="cursor_set_block_mode" getter="cursor_is_block_mode">
|
||||
</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>
|
||||
<member name="highlight_current_line" type="bool" setter="set_highlight_current_line" getter="is_highlight_current_line_enabled">
|
||||
</member>
|
||||
<member name="override_selected_font_color" type="bool" setter="set_override_selected_font_color" getter="is_overriding_selected_font_color">
|
||||
</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 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 name="smooth_scrolling" type="bool" setter="set_smooth_scroll_enable" getter="is_smooth_scroll_enabled">
|
||||
</member>
|
||||
<member name="syntax_highlighting" type="bool" setter="set_syntax_coloring" getter="is_syntax_coloring_enabled">
|
||||
</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>
|
||||
</members>
|
||||
|
|
|
@ -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).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_clip_uv" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_collision_bounce" qualifiers="const">
|
||||
<return type="float">
|
||||
</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).
|
||||
</description>
|
||||
</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">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
@ -450,6 +464,8 @@
|
|||
</method>
|
||||
</methods>
|
||||
<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">
|
||||
The custom [Transform2D] to be applied to the TileMap's cells.
|
||||
</member>
|
||||
|
|
|
@ -9,6 +9,12 @@
|
|||
<demos>
|
||||
</demos>
|
||||
<methods>
|
||||
<method name="get_stretch_shrink" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_stretch_enabled" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
|
@ -23,10 +29,20 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_stretch_shrink">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="amount" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="stretch" type="bool" setter="set_stretch" getter="is_stretch_enabled">
|
||||
</member>
|
||||
<member name="stretch_shrink" type="int" setter="set_stretch_shrink" getter="get_stretch_shrink">
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
</constants>
|
||||
|
|
|
@ -151,64 +151,68 @@
|
|||
<constant name="MATH_DB2LINEAR" value="39">
|
||||
Convert the input from decibel volume to linear volume.
|
||||
</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.
|
||||
</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.
|
||||
</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)`
|
||||
</constant>
|
||||
<constant name="LOGIC_NEAREST_PO2" value="43">
|
||||
<constant name="LOGIC_NEAREST_PO2" value="45">
|
||||
Return the nearest power of 2 to the input.
|
||||
</constant>
|
||||
<constant name="OBJ_WEAKREF" value="44">
|
||||
<constant name="OBJ_WEAKREF" value="46">
|
||||
Create a [WeakRef] from the input.
|
||||
</constant>
|
||||
<constant name="FUNC_FUNCREF" value="45">
|
||||
<constant name="FUNC_FUNCREF" value="47">
|
||||
Create a [FuncRef] from the input.
|
||||
</constant>
|
||||
<constant name="TYPE_CONVERT" value="46">
|
||||
<constant name="TYPE_CONVERT" value="48">
|
||||
Convert between types.
|
||||
</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.
|
||||
</constant>
|
||||
<constant name="TYPE_EXISTS" value="48">
|
||||
<constant name="TYPE_EXISTS" value="50">
|
||||
Checks if a type is registered in the [ClassDB].
|
||||
</constant>
|
||||
<constant name="TEXT_CHAR" value="49">
|
||||
<constant name="TEXT_CHAR" value="51">
|
||||
Return a character with the given ascii value.
|
||||
</constant>
|
||||
<constant name="TEXT_STR" value="50">
|
||||
<constant name="TEXT_STR" value="52">
|
||||
Convert the input to a string.
|
||||
</constant>
|
||||
<constant name="TEXT_PRINT" value="51">
|
||||
<constant name="TEXT_PRINT" value="53">
|
||||
Print the given string to the output window.
|
||||
</constant>
|
||||
<constant name="TEXT_PRINTERR" value="52">
|
||||
<constant name="TEXT_PRINTERR" value="54">
|
||||
Print the given string to the standard error output.
|
||||
</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.
|
||||
</constant>
|
||||
<constant name="VAR_TO_STR" value="54">
|
||||
<constant name="VAR_TO_STR" value="56">
|
||||
Serialize a [Variant] to a string.
|
||||
</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].
|
||||
</constant>
|
||||
<constant name="VAR_TO_BYTES" value="56">
|
||||
<constant name="VAR_TO_BYTES" value="58">
|
||||
Serialize a [Variant] to a [PoolByteArray].
|
||||
</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].
|
||||
</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.
|
||||
</constant>
|
||||
<constant name="FUNC_MAX" value="59">
|
||||
<constant name="FUNC_MAX" value="61">
|
||||
The maximum value the [member function] property can have.
|
||||
</constant>
|
||||
</constants>
|
||||
|
|
|
@ -678,6 +678,7 @@ void PhysicsServer::_bind_methods() {
|
|||
BIND_ENUM_CONSTANT(BODY_MODE_STATIC);
|
||||
BIND_ENUM_CONSTANT(BODY_MODE_KINEMATIC);
|
||||
BIND_ENUM_CONSTANT(BODY_MODE_RIGID);
|
||||
BIND_ENUM_CONSTANT(BODY_MODE_SOFT);
|
||||
BIND_ENUM_CONSTANT(BODY_MODE_CHARACTER);
|
||||
|
||||
BIND_ENUM_CONSTANT(BODY_PARAM_BOUNCE);
|
||||
|
|
Loading…
Reference in a new issue