Przeglądaj źródła

Merge pull request #35000 from cbscribe/kcc_minor_docs

[DOCS] Corrections and clarifications to classref
Rémi Verschelde 5 lat temu
rodzic
commit
8c24a42ea0

+ 1 - 0
doc/classes/CanvasItem.xml

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

+ 1 - 1
doc/classes/Control.xml

@@ -504,7 +504,7 @@
 			<description>
 				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.
-				[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>
 		</method>
 		<method name="has_shader_override" qualifiers="const">

+ 1 - 0
doc/classes/Font.xml

@@ -91,6 +91,7 @@
 			<return type="bool">
 			</return>
 			<description>
+				Returns [code]true[/code] if the font has an outline.
 			</description>
 		</method>
 		<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>
 			<description>
+				Sets a deadzone value for the action.
 			</description>
 		</method>
 		<method name="add_action">

+ 1 - 1
doc/classes/MainLoop.xml

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

+ 1 - 1
doc/classes/NinePatchRect.xml

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