瀏覽代碼

doc: Sync classref with current source

Rémi Verschelde 5 年之前
父節點
當前提交
e82e9588fd
共有 3 個文件被更改,包括 10 次插入12 次删除
  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>
 		</method>
 	</methods>
 	</methods>
 	<members>
 	<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>
 	</members>
 	<signals>
 	<signals>
 		<signal name="object_id_selected">
 		<signal name="object_id_selected">

+ 1 - 1
doc/classes/OS.xml

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

+ 8 - 8
doc/classes/RigidBody.xml

@@ -96,10 +96,17 @@
 			<return type="Array">
 			<return type="Array">
 			</return>
 			</return>
 			<description>
 			<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.
 				[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>
 			</description>
 		</method>
 		</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">
 		<method name="set_axis_lock">
 			<return type="void">
 			<return type="void">
 			</return>
 			</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.
 				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>
 			</description>
 		</method>
 		</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>
 	</methods>
 	<members>
 	<members>
 		<member name="angular_damp" type="float" setter="set_angular_damp" getter="get_angular_damp" default="-1.0">
 		<member name="angular_damp" type="float" setter="set_angular_damp" getter="get_angular_damp" default="-1.0">