Parcourir la source

doc: Sync classref with current source

Rémi Verschelde il y a 6 ans
Parent
commit
d030c17d5e

+ 1 - 1
doc/classes/CanvasItem.xml

@@ -135,7 +135,7 @@
 		<method name="draw_multimesh">
 			<return type="void">
 			</return>
-			<argument index="0" name="mesh" type="MultiMesh">
+			<argument index="0" name="multimesh" type="MultiMesh">
 			</argument>
 			<argument index="1" name="texture" type="Texture">
 			</argument>

+ 1 - 5
doc/classes/ColorPicker.xml

@@ -29,7 +29,7 @@
 				Remove the given color from the list of color presets of this color picker.
 			</description>
 		</method>
-		<method name="get_presets">
+		<method name="get_presets" qualifiers="const">
 			<return type="PoolColorArray">
 			</return>
 			<description>
@@ -59,8 +59,6 @@
 				Emitted when the color is changed.
 			</description>
 		</signal>
-	</signals>
-	<signals>
 		<signal name="preset_added">
 			<argument index="0" name="color" type="Color">
 			</argument>
@@ -68,8 +66,6 @@
 				Emitted when a preset is added.
 			</description>
 		</signal>
-	</signals>
-	<signals>
 		<signal name="preset_removed">
 			<argument index="0" name="color" type="Color">
 			</argument>

+ 6 - 6
doc/classes/OS.xml

@@ -210,18 +210,18 @@
 				Returns the path to the current engine executable.
 			</description>
 		</method>
-		<method name="get_ime_text" qualifiers="const">
-			<return type="String">
+		<method name="get_ime_selection" qualifiers="const">
+			<return type="Vector2">
 			</return>
 			<description>
-				Returns IME intermediate text.
+				Returns IME selection range.
 			</description>
 		</method>
-		<method name="get_ime_selection" qualifiers="const">
-			<return type="Vector2">
+		<method name="get_ime_text" qualifiers="const">
+			<return type="String">
 			</return>
 			<description>
-				Returns IME selection range.
+				Returns IME intermediate text.
 			</description>
 		</method>
 		<method name="get_latin_keyboard_variant" qualifiers="const">

+ 14 - 14
doc/classes/RandomNumberGenerator.xml

@@ -10,6 +10,13 @@
 	<demos>
 	</demos>
 	<methods>
+		<method name="randf">
+			<return type="float">
+			</return>
+			<description>
+				Generates pseudo-random float between '0.0' and '1.0'.
+			</description>
+		</method>
 		<method name="randf_range">
 			<return type="float">
 			</return>
@@ -21,6 +28,13 @@
 				Generates pseudo-random float between [code]from[/code] and [code]to[/code].
 			</description>
 		</method>
+		<method name="randi">
+			<return type="int">
+			</return>
+			<description>
+				Generates pseudo-random 32-bit unsigned integer between '0' and '4294967295'.
+			</description>
+		</method>
 		<method name="randi_range">
 			<return type="int">
 			</return>
@@ -32,20 +46,6 @@
 				Generates pseudo-random 32-bit signed integer between [code]from[/code] and [code]to[/code](inclusive).
 			</description>
 		</method>
-		<method name="randf">
-			<return type="float">
-			</return>
-			<description>
-				Generates pseudo-random float between '0.0' and '1.0'.
-			</description>
-		</method>
-		<method name="randi">
-			<return type="int">
-			</return>
-			<description>
-				Generates pseudo-random 32-bit unsigned integer between '0' and '4294967295'.
-			</description>
-		</method>
 		<method name="randomize">
 			<return type="void">
 			</return>