Skip to content

Commit f4304f2

Browse files
committed
Fix miscellaneous oddities around the class reference (part 5)
1 parent d599946 commit f4304f2

34 files changed

+90
-89
lines changed

doc/classes/Animation.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@
687687
[b]Note:[/b] Length is not delimited by the last key, as this one may be before or after the end to ensure correct interpolation and looping.
688688
</member>
689689
<member name="loop_mode" type="int" setter="set_loop_mode" getter="get_loop_mode" enum="Animation.LoopMode" default="0">
690-
Determines the behavior of both ends of the animation timeline during animation playback. This is used for correct interpolation of animation cycles, and for hinting the player that it must restart the animation.
690+
Determines the behavior of both ends of the animation timeline during animation playback. This indicates whether and how the animation should be restarted, and is also used to correctly interpolate animation cycles.
691691
</member>
692692
<member name="step" type="float" setter="set_step" getter="get_step" default="0.033333335">
693693
The animation step value.

doc/classes/Camera3D.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@
128128
<param index="1" name="z_near" type="float" />
129129
<param index="2" name="z_far" type="float" />
130130
<description>
131-
Sets the camera projection to orthogonal mode (see [constant PROJECTION_ORTHOGONAL]), by specifying a [param size], and the [param z_near] and [param z_far] clip planes in world space units. (As a hint, 2D games often use this projection, with values specified in pixels.)
131+
Sets the camera projection to orthogonal mode (see [constant PROJECTION_ORTHOGONAL]), by specifying a [param size], and the [param z_near] and [param z_far] clip planes in world space units.
132+
As a hint, 3D games that look 2D often use this projection, with [param size] specified in pixels.
132133
</description>
133134
</method>
134135
<method name="set_perspective">

doc/classes/CameraFeed.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767
<param index="0" name="index" type="int" />
6868
<param index="1" name="parameters" type="Dictionary" />
6969
<description>
70-
Sets the feed format parameters for the given index in the [member formats] array. Returns [code]true[/code] on success. By default YUYV encoded stream is transformed to FEED_RGB. YUYV encoded stream output format can be changed with [param parameters].output value:
71-
[code]separate[/code] will result in FEED_YCBCR_SEP
72-
[code]grayscale[/code] will result in desaturated FEED_RGB
73-
[code]copy[/code] will result in FEED_YCBCR
70+
Sets the feed format parameters for the given [param index] in the [member formats] array. Returns [code]true[/code] on success. By default, the YUYV encoded stream is transformed to [constant FEED_RGB]. The YUYV encoded stream output format can be changed by setting [param parameters]'s [code]output[/code] entry to one of the following:
71+
- [code]"separate"[/code] will result in [constant FEED_YCBCR_SEP];
72+
- [code]"grayscale"[/code] will result in desaturated [constant FEED_RGB];
73+
- [code]"copy"[/code] will result in [constant FEED_YCBCR].
7474
</description>
7575
</method>
7676
<method name="set_name">

doc/classes/CanvasItem.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
<param index="5" name="pixel_range" type="float" default="4.0" />
174174
<param index="6" name="scale" type="float" default="1.0" />
175175
<description>
176-
Draws a textured rectangle region of the multi-channel signed distance field texture at a given position, optionally modulated by a color. See [member FontFile.multichannel_signed_distance_field] for more information and caveats about MSDF font rendering.
176+
Draws a textured rectangle region of the multichannel signed distance field texture at a given position, optionally modulated by a color. See [member FontFile.multichannel_signed_distance_field] for more information and caveats about MSDF font rendering.
177177
If [param outline] is positive, each alpha channel value of pixel in region is set to maximum value of true distance in the [param outline] radius.
178178
Value of the [param pixel_range] should the same that was used during distance field texture generation.
179179
</description>

doc/classes/DampedSpringJoint2D.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
A physics joint that connects two 2D physics bodies with a spring-like force.
55
</brief_description>
66
<description>
7-
A physics joint that connects two 2D physics bodies with a spring-like force. This resembles a spring that always wants to stretch to a given length.
7+
A physics joint that connects two 2D physics bodies with a spring-like force. This behaves like a spring that always wants to stretch to a given length.
88
</description>
99
<tutorials>
1010
</tutorials>

doc/classes/EditorExportPlatform.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,19 +260,19 @@
260260
Message type for error messages that must be addressed and fail the export.
261261
</constant>
262262
<constant name="DEBUG_FLAG_DUMB_CLIENT" value="1" enum="DebugFlags" is_bitfield="true">
263-
Flag is set if remotely debugged project is expected to use remote file system. If set, [method gen_export_flags] will add [code]--remote-fs[/code] and [code]--remote-fs-password[/code] (if password is set in the editor settings) command line arguments to the list.
263+
Flag is set if the remotely debugged project is expected to use the remote file system. If set, [method gen_export_flags] will append [code]--remote-fs[/code] and [code]--remote-fs-password[/code] (if [member EditorSettings.filesystem/file_server/password] is defined) command line arguments to the returned list.
264264
</constant>
265265
<constant name="DEBUG_FLAG_REMOTE_DEBUG" value="2" enum="DebugFlags" is_bitfield="true">
266-
Flag is set if remote debug is enabled. If set, [method gen_export_flags] will add [code]--remote-debug[/code] and [code]--breakpoints[/code] (if breakpoints are selected in the script editor or added by the plugin) command line arguments to the list.
266+
Flag is set if remote debug is enabled. If set, [method gen_export_flags] will append [code]--remote-debug[/code] and [code]--breakpoints[/code] (if breakpoints are selected in the script editor or added by the plugin) command line arguments to the returned list.
267267
</constant>
268268
<constant name="DEBUG_FLAG_REMOTE_DEBUG_LOCALHOST" value="4" enum="DebugFlags" is_bitfield="true">
269269
Flag is set if remotely debugged project is running on the localhost. If set, [method gen_export_flags] will use [code]localhost[/code] instead of [member EditorSettings.network/debug/remote_host] as remote debugger host.
270270
</constant>
271271
<constant name="DEBUG_FLAG_VIEW_COLLISIONS" value="8" enum="DebugFlags" is_bitfield="true">
272-
Flag is set if "Visible Collision Shapes" remote debug option is enabled. If set, [method gen_export_flags] will add [code]--debug-collisions[/code] command line arguments to the list.
272+
Flag is set if the "Visible Collision Shapes" remote debug option is enabled. If set, [method gen_export_flags] will append the [code]--debug-collisions[/code] command line argument to the returned list.
273273
</constant>
274274
<constant name="DEBUG_FLAG_VIEW_NAVIGATION" value="16" enum="DebugFlags" is_bitfield="true">
275-
Flag is set if Visible Navigation" remote debug option is enabled. If set, [method gen_export_flags] will add [code]--debug-navigation[/code] command line arguments to the list.
275+
Flag is set if the "Visible Navigation" remote debug option is enabled. If set, [method gen_export_flags] will append the [code]--debug-navigation[/code] command line argument to the returned list.
276276
</constant>
277277
</constants>
278278
</class>

doc/classes/EditorExportPlatformExtension.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
<method name="_get_logo" qualifiers="virtual required const">
140140
<return type="Texture2D" />
141141
<description>
142-
Returns platform logo displayed in the export dialog, logo should be 32x32 adjusted to the current editor scale, see [method EditorInterface.get_editor_scale].
142+
Returns the platform logo displayed in the export dialog. The logo should be 32×32 pixels, adjusted for the current editor scale (see [method EditorInterface.get_editor_scale]).
143143
</description>
144144
</method>
145145
<method name="_get_name" qualifiers="virtual required const">
@@ -152,7 +152,7 @@
152152
<return type="ImageTexture" />
153153
<param index="0" name="device" type="int" />
154154
<description>
155-
Returns one-click deploy menu item icon for the specified [param device], icon should be 16x16 adjusted to the current editor scale, see [method EditorInterface.get_editor_scale].
155+
Returns the item icon for the specified [param device] in the one-click deploy menu. The icon should be 16×16 pixels, adjusted for the current editor scale (see [method EditorInterface.get_editor_scale]).
156156
</description>
157157
</method>
158158
<method name="_get_option_label" qualifiers="virtual const">
@@ -172,7 +172,7 @@
172172
<method name="_get_options_count" qualifiers="virtual const">
173173
<return type="int" />
174174
<description>
175-
Returns number one-click deploy devices (or other one-click option displayed in the menu).
175+
Returns the number of devices (or other options) available in the one-click deploy menu.
176176
</description>
177177
</method>
178178
<method name="_get_options_tooltip" qualifiers="virtual const">
@@ -203,7 +203,7 @@
203203
<method name="_get_run_icon" qualifiers="virtual const">
204204
<return type="Texture2D" />
205205
<description>
206-
Returns icon of the one-click deploy menu button, icon should be 16x16 adjusted to the current editor scale, see [method EditorInterface.get_editor_scale].
206+
Returns the icon of the one-click deploy menu button. The icon should be 16×16 pixels, adjusted for the current editor scale (see [method EditorInterface.get_editor_scale]).
207207
</description>
208208
</method>
209209
<method name="_has_valid_export_configuration" qualifiers="virtual required const">

doc/classes/EditorExportPlugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
<return type="bool" />
231231
<param index="0" name="platform" type="EditorExportPlatform" />
232232
<description>
233-
Return [code]true[/code], if the result of [method _get_export_options] has changed and the export options of preset corresponding to [param platform] should be updated.
233+
Return [code]true[/code] if the result of [method _get_export_options] has changed and the export options of the preset corresponding to [param platform] should be updated.
234234
</description>
235235
</method>
236236
<method name="_supports_platform" qualifiers="virtual const">

doc/classes/EditorExportPreset.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,33 @@
44
Export preset configuration.
55
</brief_description>
66
<description>
7-
Export preset configuration. Instances of [EditorExportPreset] by editor UI and intended to be used a read-only configuration passed to the [EditorExportPlatform] methods when exporting the project.
7+
Represents the configuration of an export preset, as created by the editor's export dialog. An [EditorExportPreset] instance is intended to be used a read-only configuration passed to the [EditorExportPlatform] methods when exporting the project.
88
</description>
99
<tutorials>
1010
</tutorials>
1111
<methods>
1212
<method name="are_advanced_options_enabled" qualifiers="const">
1313
<return type="bool" />
1414
<description>
15-
Returns [code]true[/code] if "Advanced" toggle is enabled in the export dialog.
15+
Returns [code]true[/code] if the "Advanced" toggle is enabled in the export dialog.
1616
</description>
1717
</method>
1818
<method name="get_custom_features" qualifiers="const">
1919
<return type="String" />
2020
<description>
21-
Returns string with a comma separated list of custom features.
21+
Returns a comma-separated list of custom features added to this preset, as a string. See [url=$DOCS_URL/tutorials/export/feature_tags.html]Feature tags[/url] in the documentation for more information.
2222
</description>
2323
</method>
2424
<method name="get_customized_files" qualifiers="const">
2525
<return type="Dictionary" />
2626
<description>
27-
Returns [Dictionary] of files selected in the "Resources" tab of the export dialog. Dictionary keys are file names and values are export mode - [code]"strip"[/code], [code]"keep"[/code], or [code]"remove"[/code]. See also [method get_file_export_mode].
27+
Returns a dictionary of files selected in the "Resources" tab of the export dialog. The dictionary's keys are file paths, and its values are the corresponding export modes: [code]"strip"[/code], [code]"keep"[/code], or [code]"remove"[/code]. See also [method get_file_export_mode].
2828
</description>
2929
</method>
3030
<method name="get_customized_files_count" qualifiers="const">
3131
<return type="int" />
3232
<description>
33-
Returns number of files selected in the "Resources" tab of the export dialog.
33+
Returns the number of files selected in the "Resources" tab of the export dialog.
3434
</description>
3535
</method>
3636
<method name="get_encrypt_directory" qualifiers="const">
@@ -118,7 +118,7 @@
118118
<method name="get_preset_name" qualifiers="const">
119119
<return type="String" />
120120
<description>
121-
Returns export preset name.
121+
Returns this export preset's name.
122122
</description>
123123
</method>
124124
<method name="get_project_setting">
@@ -131,7 +131,7 @@
131131
<method name="get_script_export_mode" qualifiers="const">
132132
<return type="int" />
133133
<description>
134-
Returns script export mode.
134+
Returns the export mode used by GDScript files. [code]0[/code] for "Text", [code]1[/code] for "Binary tokens", and [code]2[/code] for "Compressed binary tokens (smaller files)".
135135
</description>
136136
</method>
137137
<method name="get_version" qualifiers="const">
@@ -154,19 +154,19 @@
154154
<return type="bool" />
155155
<param index="0" name="path" type="String" />
156156
<description>
157-
Returns [code]true[/code] if specified file is exported.
157+
Returns [code]true[/code] if the file at the specified [param path] will be exported.
158158
</description>
159159
</method>
160160
<method name="is_dedicated_server" qualifiers="const">
161161
<return type="bool" />
162162
<description>
163-
Returns [code]true[/code] if dedicated server export mode is selected in the export dialog.
163+
Returns [code]true[/code] if the dedicated server export mode is selected in the export dialog.
164164
</description>
165165
</method>
166166
<method name="is_runnable" qualifiers="const">
167167
<return type="bool" />
168168
<description>
169-
Returns [code]true[/code] if "Runnable" toggle is enabled in the export dialog.
169+
Returns [code]true[/code] if the "Runnable" toggle is enabled in the export dialog.
170170
</description>
171171
</method>
172172
</methods>

doc/classes/EditorFileDialog.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<param index="0" name="filter" type="String" />
1616
<param index="1" name="description" type="String" default="&quot;&quot;" />
1717
<description>
18-
Adds a comma-delimited file name [param filter] option to the [EditorFileDialog] with an optional [param description], which restricts what files can be picked.
18+
Adds a comma-separated file name [param filter] option to the [EditorFileDialog] with an optional [param description], which restricts what files can be picked.
1919
A [param filter] should be of the form [code]"filename.extension"[/code], where filename and extension can be [code]*[/code] to match any string. Filters starting with [code].[/code] (i.e. empty filenames) are not allowed.
2020
For example, a [param filter] of [code]"*.tscn, *.scn"[/code] and a [param description] of [code]"Scenes"[/code] results in filter text "Scenes (*.tscn, *.scn)".
2121
</description>

0 commit comments

Comments
 (0)