瀏覽代碼

doc: Sync classref with current source

Rémi Verschelde 7 年之前
父節點
當前提交
83758a9004

+ 2 - 2
doc/classes/@GDScript.xml

@@ -120,9 +120,9 @@
 		<method name="atan2">
 		<method name="atan2">
 			<return type="float">
 			<return type="float">
 			</return>
 			</return>
-			<argument index="0" name="x" type="float">
+			<argument index="0" name="y" type="float">
 			</argument>
 			</argument>
-			<argument index="1" name="y" type="float">
+			<argument index="1" name="x" type="float">
 			</argument>
 			</argument>
 			<description>
 			<description>
 				Returns the arc tangent of [code]y/x[/code] in radians. Use to get the angle of tangent [code]y/x[/code]. To compute the value, the method takes into account the sign of both arguments in order to determine the quadrant.
 				Returns the arc tangent of [code]y/x[/code] in radians. Use to get the angle of tangent [code]y/x[/code]. To compute the value, the method takes into account the sign of both arguments in order to determine the quadrant.

+ 0 - 4
doc/classes/EditorFileSystem.xml

@@ -93,10 +93,6 @@
 				Remitted if a resource is reimported.
 				Remitted if a resource is reimported.
 			</description>
 			</description>
 		</signal>
 		</signal>
-		<signal name="script_classes_updated">
-			<description>
-			</description>
-		</signal>
 		<signal name="sources_changed">
 		<signal name="sources_changed">
 			<argument index="0" name="exist" type="bool">
 			<argument index="0" name="exist" type="bool">
 			</argument>
 			</argument>

+ 7 - 7
doc/classes/EditorPlugin.xml

@@ -165,15 +165,15 @@
 				This function is used for plugins that edit specific object types (nodes or resources). It requests the editor to edit the given object.
 				This function is used for plugins that edit specific object types (nodes or resources). It requests the editor to edit the given object.
 			</description>
 			</description>
 		</method>
 		</method>
-		<method name="forward_canvas_gui_input" qualifiers="virtual">
-			<return type="bool">
+		<method name="forward_canvas_draw_over_viewport" qualifiers="virtual">
+			<return type="void">
 			</return>
 			</return>
-			<argument index="0" name="event" type="InputEvent">
+			<argument index="0" name="overlay" type="Control">
 			</argument>
 			</argument>
 			<description>
 			<description>
 			</description>
 			</description>
 		</method>
 		</method>
-		<method name="forward_draw_over_viewport" qualifiers="virtual">
+		<method name="forward_canvas_force_draw_over_viewport" qualifiers="virtual">
 			<return type="void">
 			<return type="void">
 			</return>
 			</return>
 			<argument index="0" name="overlay" type="Control">
 			<argument index="0" name="overlay" type="Control">
@@ -181,10 +181,10 @@
 			<description>
 			<description>
 			</description>
 			</description>
 		</method>
 		</method>
-		<method name="forward_force_draw_over_viewport" qualifiers="virtual">
-			<return type="void">
+		<method name="forward_canvas_gui_input" qualifiers="virtual">
+			<return type="bool">
 			</return>
 			</return>
-			<argument index="0" name="overlay" type="Control">
+			<argument index="0" name="event" type="InputEvent">
 			</argument>
 			</argument>
 			<description>
 			<description>
 			</description>
 			</description>

+ 10 - 6
doc/classes/EditorResourcePreviewGenerator.xml

@@ -16,10 +16,12 @@
 			</return>
 			</return>
 			<argument index="0" name="from" type="Resource">
 			<argument index="0" name="from" type="Resource">
 			</argument>
 			</argument>
+			<argument index="1" name="size" type="Vector2">
+			</argument>
 			<description>
 			<description>
-				Generate a preview from a given resource. This must be always implemented.
-			Returning an empty texture is an OK way to fail and let another generator take care.
-			Care must be taken because this function is always called from a thread (not the main thread).
+				Generate a preview from a given resource with the specified size. This must always be implemented.
+				Returning an empty texture is an OK way to fail and let another generator take care.
+				Care must be taken because this function is always called from a thread (not the main thread).
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="generate_from_path" qualifiers="virtual">
 		<method name="generate_from_path" qualifiers="virtual">
@@ -27,10 +29,12 @@
 			</return>
 			</return>
 			<argument index="0" name="path" type="String">
 			<argument index="0" name="path" type="String">
 			</argument>
 			</argument>
+			<argument index="1" name="size" type="Vector2">
+			</argument>
 			<description>
 			<description>
-				Generate a preview directly from a path, implementing this is optional, as default code will load and call generate()
-			Returning an empty texture is an OK way to fail and let another generator take care.
-			Care must be taken because this function is always called from a thread (not the main thread).
+				Generate a preview directly from a path with the specified size. Implementing this is optional, as default code will load and call [method generate].
+				Returning an empty texture is an OK way to fail and let another generator take care.
+				Care must be taken because this function is always called from a thread (not the main thread).
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="handles" qualifiers="virtual">
 		<method name="handles" qualifiers="virtual">

+ 0 - 3
doc/classes/ProjectSettings.xml

@@ -609,9 +609,6 @@
 		<member name="network/remote_fs/page_size" type="int" setter="" getter="">
 		<member name="network/remote_fs/page_size" type="int" setter="" getter="">
 			Page size used by remote filesystem.
 			Page size used by remote filesystem.
 		</member>
 		</member>
-		<member name="network/ssl/certificates" type="String" setter="" getter="">
-			If your game or application uses HTTPS, a certificates file is needed. It must be set here.
-		</member>
 		<member name="node/name_casing" type="int" setter="" getter="">
 		<member name="node/name_casing" type="int" setter="" getter="">
 			When creating nodes names automatically, set the type of casing in this project. This is mostly an editor setting.
 			When creating nodes names automatically, set the type of casing in this project. This is mostly an editor setting.
 		</member>
 		</member>

+ 3 - 3
modules/opensimplex/doc_classes/SimplexNoise.xml

@@ -14,7 +14,7 @@
 		noise.seed = randi()
 		noise.seed = randi()
 		noise.octaves = 4
 		noise.octaves = 4
 		noise.period = 20.0
 		noise.period = 20.0
-		noise.persistance = 0.8
+		noise.persistence = 0.8
 
 
 		# Sample
 		# Sample
 		print("Values:")
 		print("Values:")
@@ -118,9 +118,9 @@
 			Period of the base octave.
 			Period of the base octave.
 			A lower period results in a higher-frequency noise (more value changes across the same distance).
 			A lower period results in a higher-frequency noise (more value changes across the same distance).
 		</member>
 		</member>
-		<member name="persistance" type="float" setter="set_persistance" getter="get_persistance">
+		<member name="persistence" type="float" setter="set_persistence" getter="get_persistence">
 			Contribution factor of the different octaves.
 			Contribution factor of the different octaves.
-			A [code]persistance[/code] value of 1 means all the octaves have the same contribution, a value of 0.5 means each octave contributes half as much as the previous one.
+			A [code]persistence[/code] value of 1 means all the octaves have the same contribution, a value of 0.5 means each octave contributes half as much as the previous one.
 		</member>
 		</member>
 		<member name="seed" type="int" setter="set_seed" getter="get_seed">
 		<member name="seed" type="int" setter="set_seed" getter="get_seed">
 			Seed used to generate random values, different seeds will generate different noise maps.
 			Seed used to generate random values, different seeds will generate different noise maps.