From 0e5b06c26d5d8b65559a27e1910dc6a28c6a251e Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Fri, 13 Jun 2025 11:38:14 +0800 Subject: [PATCH] Fix various errors in the class reference --- doc/classes/@GlobalScope.xml | 2 +- doc/classes/CPUParticles2D.xml | 2 +- doc/classes/Control.xml | 6 +++--- doc/classes/DisplayServer.xml | 6 +++--- doc/classes/FoldableContainer.xml | 4 ++-- doc/classes/LabelSettings.xml | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index 1991d877587..85ad035d4b6 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -2956,7 +2956,7 @@ Hints that a property will be changed on its own after setting, such as [member AudioStreamPlayer.playing] or [member GPUParticles3D.emitting]. - Hints that a boolean property will enable the feature associated with the group that it occurs in. Only works within a group or subgroup. Use the optional hint string [code]"feature"[/code] when the group only has variables that are meaningful when the feature is enabled. + Hints that a boolean property will enable the feature associated with the group that it occurs in. Only works within a group or subgroup. Use the optional hint string [code]"feature"[/code] when the group only has properties that are meaningful when the feature is enabled. [b]Note:[/b] The [code]"feature"[/code] hint string does not modify or reset any values. diff --git a/doc/classes/CPUParticles2D.xml b/doc/classes/CPUParticles2D.xml index 20819a80563..c6b39c9941d 100644 --- a/doc/classes/CPUParticles2D.xml +++ b/doc/classes/CPUParticles2D.xml @@ -91,7 +91,7 @@ - Enables or disables the given flag. + Enables or disables the given particle flag. diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 94a1e5f1e1e..fc4543a130d 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -37,7 +37,7 @@ Godot calls this method to test if [param data] from a control's [method _get_drag_data] can be dropped at [param at_position]. [param at_position] is local to this control. This method should only be used to test the data. Process the data in [method _drop_data]. - [b]Note:[/b] If drag was initiated by keyboard shortcut or [method accessibility_drag], [param at_position] is set to [code]Vector2(INFINITY, INFINITY)[/code] and the currently selected item/text position should be used as drop position. + [b]Note:[/b] If the drag was initiated by a keyboard shortcut or [method accessibility_drag], [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drop position. [codeblocks] [gdscript] func _can_drop_data(position, data): @@ -62,7 +62,7 @@ Godot calls this method to pass you the [param data] from a control's [method _get_drag_data] result. Godot first calls [method _can_drop_data] to test if [param data] is allowed to drop at [param at_position] where [param at_position] is local to this control. - [b]Note:[/b] If drag was initiated by keyboard shortcut or [method accessibility_drag], [param at_position] is set to [code]Vector2(INFINITY, INFINITY)[/code] and the currently selected item/text position should be used as drop position. + [b]Note:[/b] If the drag was initiated by a keyboard shortcut or [method accessibility_drag], [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drop position. [codeblocks] [gdscript] func _can_drop_data(position, data): @@ -98,7 +98,7 @@ Godot calls this method to get data that can be dragged and dropped onto controls that expect drop data. Returns [code]null[/code] if there is no data to drag. Controls that want to receive drop data should implement [method _can_drop_data] and [method _drop_data]. [param at_position] is local to this control. Drag may be forced with [method force_drag]. A preview that will follow the mouse that should represent the data can be set with [method set_drag_preview]. A good time to set the preview is in this method. - [b]Note:[/b] If drag was initiated by keyboard shortcut or [method accessibility_drag], [param at_position] is set to [code]Vector2(INFINITY, INFINITY)[/code] and the currently selected item/text position should be used as drop position. + [b]Note:[/b] If the drag was initiated by a keyboard shortcut or [method accessibility_drag], [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drag position. [codeblocks] [gdscript] func _get_drag_data(position): diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml index af17a38f8f3..375fc070684 100644 --- a/doc/classes/DisplayServer.xml +++ b/doc/classes/DisplayServer.xml @@ -2045,7 +2045,7 @@ Stops synthesis in progress and removes all utterances from the queue. - [b]Note:[/b] This method is implemented on Android, iOS, Web, Linux (X11/Linux), macOS, and Windows. + [b]Note:[/b] This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows. @@ -2856,13 +2856,13 @@ Set scroll offset action, callback argument is set to [Vector2] with the scroll offset. - Set value action action, callback argument is set to [String] or number with the new value. + Set value action, callback argument is set to [String] or number with the new value. Show context menu action, callback argument is not set. - Custom action, callback argument is set to the integer action id. + Custom action, callback argument is set to the integer action ID. Indicates that updates to the live region should not be presented. diff --git a/doc/classes/FoldableContainer.xml b/doc/classes/FoldableContainer.xml index 7b1509fa72b..ae200d8c5a9 100644 --- a/doc/classes/FoldableContainer.xml +++ b/doc/classes/FoldableContainer.xml @@ -57,10 +57,10 @@ The container's title text. - Title's horizontal text alignment as defined in the [enum HorizontalAlignment] enum. + Title's horizontal text alignment. - Title's position as defined in the [enum TitlePosition] enum. + Title's position. Title text writing direction. diff --git a/doc/classes/LabelSettings.xml b/doc/classes/LabelSettings.xml index 03d75066d6a..620a2563fb4 100644 --- a/doc/classes/LabelSettings.xml +++ b/doc/classes/LabelSettings.xml @@ -164,7 +164,7 @@ The number of stacked outlines. - Returns the stacked shadow count. + The number of stacked shadows.