Pārlūkot izejas kodu

doc: Sync classref with current source

Rémi Verschelde 5 gadi atpakaļ
vecāks
revīzija
e82e9588fd
3 mainītis faili ar 10 papildinājumiem un 12 dzēšanām
  1. 1 3
      doc/classes/EditorInspector.xml
  2. 1 1
      doc/classes/OS.xml
  3. 8 8
      doc/classes/RigidBody.xml

+ 1 - 3
doc/classes/EditorInspector.xml

@@ -20,9 +20,7 @@
 		</method>
 	</methods>
 	<members>
-		<member name="scroll_horizontal_enabled" type="bool" setter="set_enable_h_scroll" getter="is_h_scroll_enabled" override="true" default="false">
-			If [code]true[/code], horizontal scrolling is enabled. An horizontal scroll bar will display at the bottom of the inspector.
-		</member>
+		<member name="scroll_horizontal_enabled" type="bool" setter="set_enable_h_scroll" getter="is_h_scroll_enabled" override="true" default="false" />
 	</members>
 	<signals>
 		<signal name="object_id_selected">

+ 1 - 1
doc/classes/OS.xml

@@ -161,7 +161,7 @@
 				[codeblock]
 				var arguments = {}
 				for argument in OS.get_cmdline_args():
-				    if argument.find("=") > -1:
+				    if argument.find("=") &gt; -1:
 				        var key_value = argument.split("=")
 				        arguments[key_value[0].lstrip("--")] = key_value[1]
 				[/codeblock]

+ 8 - 8
doc/classes/RigidBody.xml

@@ -96,10 +96,17 @@
 			<return type="Array">
 			</return>
 			<description>
- 				Returns a list of the bodies colliding with this one. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions.
+				Returns a list of the bodies colliding with this one. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions.
 				[b]Note:[/b] The result of this test is not immediate after moving objects. For performance, list of collisions is updated once per frame and before the physics step. Consider using signals instead.
 			</description>
 		</method>
+		<method name="get_inverse_inertia_tensor">
+			<return type="Basis">
+			</return>
+			<description>
+				Returns the inverse inertia tensor basis. This is used to calculate the angular acceleration resulting from a torque applied to the RigidBody.
+			</description>
+		</method>
 		<method name="set_axis_lock">
 			<return type="void">
 			</return>
@@ -120,13 +127,6 @@
 				Sets an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior.
 			</description>
 		</method>
-		<method name="get_inverse_inertia_tensor">
-			<return type="Basis">
-			</return>
-			<description>
-				Returns the inverse inertia tensor basis. This is used to calculate the angular acceleration resulting from a torque applied to the RigidBody.
-			</description>
-		</method>
 	</methods>
 	<members>
 		<member name="angular_damp" type="float" setter="set_angular_damp" getter="get_angular_damp" default="-1.0">