Add missing descriptions to remaining signals.

This commit is contained in:
Micky 2024-01-10 17:31:17 +01:00
parent 3524346689
commit 8f10d7dd19
2 changed files with 15 additions and 7 deletions

View File

@ -301,7 +301,7 @@
<signals> <signals>
<signal name="begin_node_move"> <signal name="begin_node_move">
<description> <description>
Emitted at the beginning of a GraphNode movement. Emitted at the beginning of a [GraphElement]'s movement.
</description> </description>
</signal> </signal>
<signal name="connection_drag_ended"> <signal name="connection_drag_ended">
@ -344,13 +344,14 @@
</signal> </signal>
<signal name="copy_nodes_request"> <signal name="copy_nodes_request">
<description> <description>
Emitted when the user presses [kbd]Ctrl + C[/kbd]. Emitted when this [GraphEdit] captures a [code]ui_copy[/code] action ([kbd]Ctrl + C[/kbd] by default). In general, this signal indicates that the selected [GraphElement]s should be copied.
</description> </description>
</signal> </signal>
<signal name="delete_nodes_request"> <signal name="delete_nodes_request">
<param index="0" name="nodes" type="StringName[]" /> <param index="0" name="nodes" type="StringName[]" />
<description> <description>
Emitted when attempting to remove a GraphNode from the GraphEdit. Provides a list of node names to be removed (all selected nodes, excluding nodes without closing button). Emitted when this [GraphEdit] captures a [code]ui_graph_delete[/code] action ([kbd]Delete[/kbd] by default).
[param nodes] is an array of node names that should be removed. These usually include all selected nodes.
</description> </description>
</signal> </signal>
<signal name="disconnection_request"> <signal name="disconnection_request">
@ -364,28 +365,29 @@
</signal> </signal>
<signal name="duplicate_nodes_request"> <signal name="duplicate_nodes_request">
<description> <description>
Emitted when a GraphNode is attempted to be duplicated in the GraphEdit. Emitted when this [GraphEdit] captures a [code]ui_graph_duplicate[/code] action ([kbd]Ctrl + D[/kbd] by default). In general, this signal indicates that the selected [GraphElement]s should be duplicated.
</description> </description>
</signal> </signal>
<signal name="end_node_move"> <signal name="end_node_move">
<description> <description>
Emitted at the end of a GraphNode movement. Emitted at the end of a [GraphElement]'s movement.
</description> </description>
</signal> </signal>
<signal name="node_deselected"> <signal name="node_deselected">
<param index="0" name="node" type="Node" /> <param index="0" name="node" type="Node" />
<description> <description>
Emitted when the given [GraphElement] node is deselected.
</description> </description>
</signal> </signal>
<signal name="node_selected"> <signal name="node_selected">
<param index="0" name="node" type="Node" /> <param index="0" name="node" type="Node" />
<description> <description>
Emitted when a GraphNode is selected. Emitted when the given [GraphElement] node is selected.
</description> </description>
</signal> </signal>
<signal name="paste_nodes_request"> <signal name="paste_nodes_request">
<description> <description>
Emitted when the user presses [kbd]Ctrl + V[/kbd]. Emitted when this [GraphEdit] captures a [code]ui_paste[/code] action ([kbd]Ctrl + V[/kbd] by default). In general, this signal indicates that previously copied [GraphElement]s should be pasted.
</description> </description>
</signal> </signal>
<signal name="popup_request"> <signal name="popup_request">

View File

@ -310,12 +310,14 @@
[b]Note:[/b] Unless this value is [code]1.0[/code], the key value in animation will not match the actual position value. [b]Note:[/b] Unless this value is [code]1.0[/code], the key value in animation will not match the actual position value.
</member> </member>
<member name="show_rest_only" type="bool" setter="set_show_rest_only" getter="is_show_rest_only" default="false"> <member name="show_rest_only" type="bool" setter="set_show_rest_only" getter="is_show_rest_only" default="false">
If [code]true[/code], forces the bones in their default rest pose, regardless of their values. In the editor, this also prevents the bones from being edited.
</member> </member>
</members> </members>
<signals> <signals>
<signal name="bone_enabled_changed"> <signal name="bone_enabled_changed">
<param index="0" name="bone_idx" type="int" /> <param index="0" name="bone_idx" type="int" />
<description> <description>
Emitted when the bone at [param bone_idx] is toggled with [method set_bone_enabled]. Use [method is_bone_enabled] to check the new value.
</description> </description>
</signal> </signal>
<signal name="bone_pose_changed"> <signal name="bone_pose_changed">
@ -326,15 +328,19 @@
</signal> </signal>
<signal name="pose_updated"> <signal name="pose_updated">
<description> <description>
Emitted when the pose is updated, after [constant NOTIFICATION_UPDATE_SKELETON] is received.
</description> </description>
</signal> </signal>
<signal name="show_rest_only_changed"> <signal name="show_rest_only_changed">
<description> <description>
Emitted when the value of [member show_rest_only] changes.
</description> </description>
</signal> </signal>
</signals> </signals>
<constants> <constants>
<constant name="NOTIFICATION_UPDATE_SKELETON" value="50"> <constant name="NOTIFICATION_UPDATE_SKELETON" value="50">
Notification received when this skeleton's pose needs to be updated.
This notification is received [i]before[/i] the related [signal pose_updated] signal.
</constant> </constant>
</constants> </constants>
</class> </class>