doc: Sync classref with current source

This commit is contained in:
Rémi Verschelde 2020-01-12 14:30:21 +01:00
parent 478ab8b45b
commit 7f9bf5472c
10 changed files with 44 additions and 27 deletions

View File

@ -21,6 +21,13 @@
Returns [code]true[/code] if the specified [code]axis[/code] is locked. See also [member move_lock_x], [member move_lock_y] and [member move_lock_z].
</description>
</method>
<method name="get_floor_normal" qualifiers="const">
<return type="Vector3">
</return>
<description>
Returns the normal vector of the floor.
</description>
</method>
<method name="get_floor_velocity" qualifiers="const">
<return type="Vector3">
</return>
@ -86,7 +93,7 @@
</return>
<argument index="0" name="linear_velocity" type="Vector3">
</argument>
<argument index="1" name="floor_normal" type="Vector3" default="Vector3( 0, 0, 0 )">
<argument index="1" name="up_direction" type="Vector3" default="Vector3( 0, 0, 0 )">
</argument>
<argument index="2" name="stop_on_slope" type="bool" default="false">
</argument>

View File

@ -13,6 +13,13 @@
<link>https://docs.godotengine.org/en/latest/tutorials/physics/using_kinematic_body_2d.html</link>
</tutorials>
<methods>
<method name="get_floor_normal" qualifiers="const">
<return type="Vector2">
</return>
<description>
Returns the normal vector of the floor.
</description>
</method>
<method name="get_floor_velocity" qualifiers="const">
<return type="Vector2">
</return>

View File

@ -138,6 +138,11 @@
</member>
</members>
<signals>
<signal name="text_change_rejected">
<description>
Emitted when trying to append text that would overflow the [member max_length].
</description>
</signal>
<signal name="text_changed">
<argument index="0" name="new_text" type="String">
</argument>
@ -145,11 +150,6 @@
Emitted when the text changes.
</description>
</signal>
<signal name="text_change_rejected">
<description>
Emitted when trying to append text that would overflow the [member max_length].
</description>
</signal>
<signal name="text_entered">
<argument index="0" name="new_text" type="String">
</argument>

View File

@ -321,6 +321,9 @@
<member name="debug/gdscript/warnings/standalone_expression" type="bool" setter="" getter="" default="true">
If [code]true[/code], enables warnings when calling an expression that has no effect on the surrounding code, such as writing [code]2 + 2[/code] as a statement.
</member>
<member name="debug/gdscript/warnings/standalone_ternary" type="bool" setter="" getter="" default="true">
If [code]true[/code], enables warnings when calling a ternary expression that has no effect on the surrounding code, such as writing [code]42 if active else 0[/code] as a statement.
</member>
<member name="debug/gdscript/warnings/treat_warnings_as_errors" type="bool" setter="" getter="" default="false">
If [code]true[/code], all warnings will be reported as if they were errors.
</member>

View File

@ -19,13 +19,6 @@
<tutorials>
</tutorials>
<methods>
<method name="get_line_edit">
<return type="LineEdit">
</return>
<description>
Returns the [LineEdit] instance from this [SpinBox]. You can use it to access properties and methods of [LineEdit].
</description>
</method>
<method name="apply">
<return type="void">
</return>
@ -33,6 +26,13 @@
Applies the current value of this [SpinBox].
</description>
</method>
<method name="get_line_edit">
<return type="LineEdit">
</return>
<description>
Returns the [LineEdit] instance from this [SpinBox]. You can use it to access properties and methods of [LineEdit].
</description>
</method>
</methods>
<members>
<member name="align" type="int" setter="set_align" getter="get_align" enum="LineEdit.Align" default="0">

View File

@ -437,6 +437,12 @@
<member name="readonly" type="bool" setter="set_readonly" getter="is_readonly" default="false">
If [code]true[/code], read-only mode is enabled. Existing text cannot be modified and new text cannot be added.
</member>
<member name="scroll_horizontal" type="int" setter="set_h_scroll" getter="get_h_scroll" default="0">
The current horizontal scroll value.
</member>
<member name="scroll_vertical" type="float" setter="set_v_scroll" getter="get_v_scroll" default="0.0">
The current vertical scroll value.
</member>
<member name="selecting_enabled" type="bool" setter="set_selecting_enabled" getter="is_selecting_enabled" default="true">
</member>
<member name="shortcut_keys_enabled" type="bool" setter="set_shortcut_keys_enabled" getter="is_shortcut_keys_enabled" default="true">
@ -459,12 +465,6 @@
<member name="wrap_enabled" type="bool" setter="set_wrap_enabled" getter="is_wrap_enabled" default="false">
If [code]true[/code], enables text wrapping when it goes beyond the edge of what is visible.
</member>
<member name="scroll_vertical" type="float" setter="set_v_scroll" getter="get_v_scroll" default="0.0">
The current vertical scroll value.
</member>
<member name="scroll_horizontal" type="int" setter="set_h_scroll" getter="get_h_scroll" default="0">
The current horizontal scroll value.
</member>
</members>
<signals>
<signal name="breakpoint_toggled">

View File

@ -9,7 +9,7 @@
<methods>
</methods>
<members>
<member name="default_input_values" type="Array" setter="_set_default_input_values" getter="_get_default_input_values" override="true" default="[ 0, Vector3( 0, 0, 0 ), 1, Vector3( 0, 0, 0 ), 2, false, 3, 1.0 ]" />
<member name="default_input_values" type="Array" setter="_set_default_input_values" getter="_get_default_input_values" override="true" default="[ 2, false, 3, 1.0 ]" />
</members>
<constants>
</constants>