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]. 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> </description>
</method> </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"> <method name="get_floor_velocity" qualifiers="const">
<return type="Vector3"> <return type="Vector3">
</return> </return>
@ -86,7 +93,7 @@
</return> </return>
<argument index="0" name="linear_velocity" type="Vector3"> <argument index="0" name="linear_velocity" type="Vector3">
</argument> </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>
<argument index="2" name="stop_on_slope" type="bool" default="false"> <argument index="2" name="stop_on_slope" type="bool" default="false">
</argument> </argument>

View file

@ -13,6 +13,13 @@
<link>https://docs.godotengine.org/en/latest/tutorials/physics/using_kinematic_body_2d.html</link> <link>https://docs.godotengine.org/en/latest/tutorials/physics/using_kinematic_body_2d.html</link>
</tutorials> </tutorials>
<methods> <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"> <method name="get_floor_velocity" qualifiers="const">
<return type="Vector2"> <return type="Vector2">
</return> </return>

View file

@ -138,6 +138,11 @@
</member> </member>
</members> </members>
<signals> <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"> <signal name="text_changed">
<argument index="0" name="new_text" type="String"> <argument index="0" name="new_text" type="String">
</argument> </argument>
@ -145,11 +150,6 @@
Emitted when the text changes. Emitted when the text changes.
</description> </description>
</signal> </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"> <signal name="text_entered">
<argument index="0" name="new_text" type="String"> <argument index="0" name="new_text" type="String">
</argument> </argument>

View file

@ -321,6 +321,9 @@
<member name="debug/gdscript/warnings/standalone_expression" type="bool" setter="" getter="" default="true"> <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. 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>
<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"> <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. If [code]true[/code], all warnings will be reported as if they were errors.
</member> </member>

View file

@ -19,13 +19,6 @@
<tutorials> <tutorials>
</tutorials> </tutorials>
<methods> <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"> <method name="apply">
<return type="void"> <return type="void">
</return> </return>
@ -33,6 +26,13 @@
Applies the current value of this [SpinBox]. Applies the current value of this [SpinBox].
</description> </description>
</method> </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> </methods>
<members> <members>
<member name="align" type="int" setter="set_align" getter="get_align" enum="LineEdit.Align" default="0"> <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"> <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. If [code]true[/code], read-only mode is enabled. Existing text cannot be modified and new text cannot be added.
</member> </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 name="selecting_enabled" type="bool" setter="set_selecting_enabled" getter="is_selecting_enabled" default="true">
</member> </member>
<member name="shortcut_keys_enabled" type="bool" setter="set_shortcut_keys_enabled" getter="is_shortcut_keys_enabled" default="true"> <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"> <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. If [code]true[/code], enables text wrapping when it goes beyond the edge of what is visible.
</member> </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> </members>
<signals> <signals>
<signal name="breakpoint_toggled"> <signal name="breakpoint_toggled">

View file

@ -9,7 +9,7 @@
<methods> <methods>
</methods> </methods>
<members> <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> </members>
<constants> <constants>
</constants> </constants>