diff options
Diffstat (limited to 'doc/classes')
| -rw-r--r-- | doc/classes/CollisionPolygon3D.xml | 3 | ||||
| -rw-r--r-- | doc/classes/Font.xml | 4 | ||||
| -rw-r--r-- | doc/classes/FontData.xml | 34 | ||||
| -rw-r--r-- | doc/classes/RichTextLabel.xml | 21 | ||||
| -rw-r--r-- | doc/classes/Shape3D.xml | 3 | ||||
| -rw-r--r-- | doc/classes/TextServer.xml | 40 | ||||
| -rw-r--r-- | doc/classes/TouchScreenButton.xml | 3 | ||||
| -rw-r--r-- | doc/classes/Vector3.xml | 13 | 
8 files changed, 116 insertions, 5 deletions
| diff --git a/doc/classes/CollisionPolygon3D.xml b/doc/classes/CollisionPolygon3D.xml index dd3c57d1d0..38f4c5fe5c 100644 --- a/doc/classes/CollisionPolygon3D.xml +++ b/doc/classes/CollisionPolygon3D.xml @@ -17,6 +17,9 @@  		<member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" default="false">  			If [code]true[/code], no collision will be produced.  		</member> +		<member name="margin" type="float" setter="set_margin" getter="get_margin" default="0.04"> +			The collision margin for the generated [Shape3D]. See [member Shape3D.margin] for more details. +		</member>  		<member name="polygon" type="PackedVector2Array" setter="set_polygon" getter="get_polygon" default="PackedVector2Array(  )">  			Array of vertices which define the polygon.  			[b]Note:[/b] The returned value is a copy of the original. Methods which mutate the size or properties of the return value will not impact the original polygon. To change properties of the polygon, assign it to a temporary variable and make changes before reassigning the [code]polygon[/code] member. diff --git a/doc/classes/Font.xml b/doc/classes/Font.xml index edd2bd137f..409e405551 100644 --- a/doc/classes/Font.xml +++ b/doc/classes/Font.xml @@ -329,10 +329,10 @@  	</methods>  	<members>  		<member name="extra_spacing_bottom" type="int" setter="set_spacing" getter="get_spacing" default="0"> -			Extra spacing at the bottom in pixels. +			Extra spacing at the bottom of the line in pixels.  		</member>  		<member name="extra_spacing_top" type="int" setter="set_spacing" getter="get_spacing" default="0"> -			Extra character spacing in pixels. +			Extra spacing at the top of the line in pixels.  		</member>  	</members>  	<constants> diff --git a/doc/classes/FontData.xml b/doc/classes/FontData.xml index e2c35f9ce7..7e99510124 100644 --- a/doc/classes/FontData.xml +++ b/doc/classes/FontData.xml @@ -154,6 +154,15 @@  				Returns list of script support overrides.  			</description>  		</method> +		<method name="get_spacing" qualifiers="const"> +			<return type="int"> +			</return> +			<argument index="0" name="type" type="int"> +			</argument> +			<description> +				Returns the spacing for the given [code]type[/code] (see [enum SpacingType]). +			</description> +		</method>  		<method name="get_supported_chars" qualifiers="const">  			<return type="String">  			</return> @@ -296,6 +305,17 @@  				Adds override for [method is_script_supported].  			</description>  		</method> +		<method name="set_spacing"> +			<return type="void"> +			</return> +			<argument index="0" name="type" type="int"> +			</argument> +			<argument index="1" name="value" type="int"> +			</argument> +			<description> +				Sets the spacing for [code]type[/code] (see [enum SpacingType]) to [code]value[/code] in pixels (not relative to the font size). +			</description> +		</method>  		<method name="set_variation">  			<return type="void">  			</return> @@ -318,6 +338,14 @@  		<member name="distance_field_hint" type="bool" setter="set_distance_field_hint" getter="get_distance_field_hint" default="false">  			If [code]true[/code], distance field hint is enabled.  		</member> +		<member name="extra_spacing_glyph" type="int" setter="set_spacing" getter="get_spacing" default="0"> +			Extra spacing for each glyphs in pixels. +			This can be a negative number to make the distance between glyphs smaller. +		</member> +		<member name="extra_spacing_space" type="int" setter="set_spacing" getter="get_spacing" default="0"> +			Extra spacing for the space character in pixels. +			This can be a negative number to make the distance between words smaller. +		</member>  		<member name="force_autohinter" type="bool" setter="set_force_autohinter" getter="get_force_autohinter" default="false">  			If [code]true[/code], default autohinter is used for font hinting.  		</member> @@ -326,5 +354,11 @@  		</member>  	</members>  	<constants> +		<constant name="SPACING_GLYPH" value="0" enum="SpacingType"> +			Spacing for each glyph. +		</constant> +		<constant name="SPACING_SPACE" value="1" enum="SpacingType"> +			Spacing for the space character. +		</constant>  	</constants>  </class> diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml index fd32e86d7e..7ca70f5a7a 100644 --- a/doc/classes/RichTextLabel.xml +++ b/doc/classes/RichTextLabel.xml @@ -80,6 +80,27 @@  				Returns the total number of paragraphs (newlines or [code]p[/code] tags in the tag stack's text tags). Considers wrapped text as one paragraph.  			</description>  		</method> +		<method name="get_selected_text" qualifiers="const"> +			<return type="String"> +			</return> +			<description> +				Returns the current selection text. Does not include BBCodes. +			</description> +		</method> +		<method name="get_selection_from" qualifiers="const"> +			<return type="int"> +			</return> +			<description> +				Returns the current selection first character index if a selection is active, [code]-1[/code] otherwise. Does not include BBCodes. +			</description> +		</method> +		<method name="get_selection_to" qualifiers="const"> +			<return type="int"> +			</return> +			<description> +				Returns the current selection last character index if a selection is active, [code]-1[/code] otherwise. Does not include BBCodes. +			</description> +		</method>  		<method name="get_total_character_count" qualifiers="const">  			<return type="int">  			</return> diff --git a/doc/classes/Shape3D.xml b/doc/classes/Shape3D.xml index 2d8bb5d051..f3e62175c6 100644 --- a/doc/classes/Shape3D.xml +++ b/doc/classes/Shape3D.xml @@ -13,7 +13,8 @@  	</methods>  	<members>  		<member name="margin" type="float" setter="set_margin" getter="get_margin" default="0.04"> -			The collision margin for the shape. +			The collision margin for the shape. Used in Bullet Physics only. +			Collision margins allows collision detection to be more efficient by adding an extra shell around shapes. Collision algorithms are more expensive when objects overlap by more than their margin, so a higher value for margins is better for performance, at the cost of accuracy around edges as it makes them less sharp.  		</member>  	</members>  	<constants> diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml index 791646000b..413a77a0e9 100644 --- a/doc/classes/TextServer.xml +++ b/doc/classes/TextServer.xml @@ -295,6 +295,24 @@  				Returns list of script support overrides.  			</description>  		</method> +		<method name="font_get_spacing_glyph" qualifiers="const"> +			<return type="int"> +			</return> +			<argument index="0" name="font" type="RID"> +			</argument> +			<description> +				Returns extra spacing for each glyphs in pixels. +			</description> +		</method> +		<method name="font_get_spacing_space" qualifiers="const"> +			<return type="int"> +			</return> +			<argument index="0" name="font" type="RID"> +			</argument> +			<description> +				Sets extra spacing for each glyphs in pixels. +			</description> +		</method>  		<method name="font_get_supported_chars" qualifiers="const">  			<return type="String">  			</return> @@ -490,6 +508,28 @@  				Adds override for [method font_is_script_supported].  			</description>  		</method> +		<method name="font_set_spacing_glyph"> +			<return type="void"> +			</return> +			<argument index="0" name="font" type="RID"> +			</argument> +			<argument index="1" name="value" type="int"> +			</argument> +			<description> +				Returns extra spacing for the space character in pixels. +			</description> +		</method> +		<method name="font_set_spacing_space"> +			<return type="void"> +			</return> +			<argument index="0" name="font" type="RID"> +			</argument> +			<argument index="1" name="value" type="int"> +			</argument> +			<description> +				Sets extra spacing for the space character in pixels. +			</description> +		</method>  		<method name="font_set_variation">  			<return type="void">  			</return> diff --git a/doc/classes/TouchScreenButton.xml b/doc/classes/TouchScreenButton.xml index 355804f2a3..9833f0dc23 100644 --- a/doc/classes/TouchScreenButton.xml +++ b/doc/classes/TouchScreenButton.xml @@ -30,7 +30,8 @@  			The button's texture for the normal state.  		</member>  		<member name="passby_press" type="bool" setter="set_passby_press" getter="is_passby_press_enabled" default="false"> -			If [code]true[/code], pass-by presses are enabled. +			If [code]true[/code], the [signal pressed] and [signal released] signals are emitted whenever a pressed finger goes in and out of the button, even if the pressure started outside the active area of the button. +			[b]Note:[/b] this is a "pass-by" (not "bypass") press mode.  		</member>  		<member name="pressed" type="Texture2D" setter="set_texture_pressed" getter="get_texture_pressed">  			The button's texture for the pressed state. diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml index 2d129a2c86..ea80b7c248 100644 --- a/doc/classes/Vector3.xml +++ b/doc/classes/Vector3.xml @@ -68,7 +68,7 @@  			<argument index="0" name="to" type="Vector3">  			</argument>  			<description> -				Returns the minimum angle to the given vector, in radians. +				Returns the unsigned minimum angle to the given vector, in radians.  			</description>  		</method>  		<method name="bounce"> @@ -465,6 +465,17 @@  				Returns a vector with each component set to one or negative one, depending on the signs of this vector's components, or zero if the component is zero, by calling [method @GlobalScope.sign] on each component.  			</description>  		</method> +		<method name="signed_angle_to"> +			<return type="float"> +			</return> +			<argument index="0" name="to" type="Vector3"> +			</argument> +			<argument index="1" name="axis" type="Vector3"> +			</argument> +			<description> +				Returns the signed angle to the given vector, in radians. The sign of the angle is positive in a counter-clockwise direction and negative in a clockwise direction when viewed from the side specified by the [code]axis[/code]. +			</description> +		</method>  		<method name="slerp">  			<return type="Vector3">  			</return> |