Browse Source

Merge pull request #35000 from cbscribe/kcc_minor_docs

[DOCS] Corrections and clarifications to classref
Rémi Verschelde 5 năm trước cách đây
mục cha
commit
8c24a42ea0

+ 1 - 0
doc/classes/CanvasItem.xml

@@ -42,6 +42,7 @@
 			<argument index="7" name="antialiased" type="bool" default="false">
 			<argument index="7" name="antialiased" type="bool" default="false">
 			</argument>
 			</argument>
 			<description>
 			<description>
+				Draws an arc between the given angles. The larger the value of [code]point_count[/code], the smoother the curve.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="draw_char">
 		<method name="draw_char">

+ 1 - 1
doc/classes/Control.xml

@@ -504,7 +504,7 @@
 			<description>
 			<description>
 				Virtual method to be implemented by the user. Returns whether the given [code]point[/code] is inside this control.
 				Virtual method to be implemented by the user. Returns whether the given [code]point[/code] is inside this control.
 				If not overridden, default behavior is checking if the point is within control's Rect.
 				If not overridden, default behavior is checking if the point is within control's Rect.
-				[b]Node:[/b] If you want to check if a point is inside the control, you can use [code]get_rect().has_point(point)[/code].
+				[b]Note:[/b] If you want to check if a point is inside the control, you can use [code]get_rect().has_point(point)[/code].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="has_shader_override" qualifiers="const">
 		<method name="has_shader_override" qualifiers="const">

+ 1 - 0
doc/classes/Font.xml

@@ -91,6 +91,7 @@
 			<return type="bool">
 			<return type="bool">
 			</return>
 			</return>
 			<description>
 			<description>
+				Returns [code]true[/code] if the font has an outline.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="is_distance_field_hint" qualifiers="const">
 		<method name="is_distance_field_hint" qualifiers="const">

+ 1 - 0
doc/classes/InputMap.xml

@@ -60,6 +60,7 @@
 			<argument index="1" name="deadzone" type="float">
 			<argument index="1" name="deadzone" type="float">
 			</argument>
 			</argument>
 			<description>
 			<description>
+				Sets a deadzone value for the action.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="add_action">
 		<method name="add_action">

+ 1 - 1
doc/classes/MainLoop.xml

@@ -174,7 +174,7 @@
 			<argument index="1" name="granted" type="bool">
 			<argument index="1" name="granted" type="bool">
 			</argument>
 			</argument>
 			<description>
 			<description>
-				Emitted when an user responds to permission request.
+				Emitted when a user responds to a permission request.
 			</description>
 			</description>
 		</signal>
 		</signal>
 	</signals>
 	</signals>

+ 1 - 1
doc/classes/NinePatchRect.xml

@@ -61,7 +61,7 @@
 	<signals>
 	<signals>
 		<signal name="texture_changed">
 		<signal name="texture_changed">
 			<description>
 			<description>
-				Fired when the node's texture changes.
+				Emitted when the node's texture changes.
 			</description>
 			</description>
 		</signal>
 		</signal>
 	</signals>
 	</signals>