typescript-to-gdscript 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/README.md +229 -103
  2. package/dist/converter/common/index.d.ts +17 -1
  3. package/dist/converter/common/index.d.ts.map +1 -1
  4. package/dist/converter/common/index.js +69 -19
  5. package/dist/converter/common/index.js.map +1 -1
  6. package/dist/converter/ts-to-gd/class-members.d.ts.map +1 -1
  7. package/dist/converter/ts-to-gd/class-members.js +5 -5
  8. package/dist/converter/ts-to-gd/class-members.js.map +1 -1
  9. package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -1
  10. package/dist/converter/ts-to-gd/expressions.js +1 -1
  11. package/dist/converter/ts-to-gd/expressions.js.map +1 -1
  12. package/dist/converter/ts-to-gd/file-scope.d.ts.map +1 -1
  13. package/dist/converter/ts-to-gd/file-scope.js +1 -1
  14. package/dist/converter/ts-to-gd/file-scope.js.map +1 -1
  15. package/dist/converter/ts-to-gd/gd-getset.js +2 -2
  16. package/dist/converter/ts-to-gd/gd-getset.js.map +1 -1
  17. package/dist/converter/ts-to-gd/index.d.ts.map +1 -1
  18. package/dist/converter/ts-to-gd/index.js +1 -0
  19. package/dist/converter/ts-to-gd/index.js.map +1 -1
  20. package/dist/converter/ts-to-gd/parameters.d.ts.map +1 -1
  21. package/dist/converter/ts-to-gd/parameters.js +2 -2
  22. package/dist/converter/ts-to-gd/parameters.js.map +1 -1
  23. package/dist/converter/ts-to-gd/statements.d.ts.map +1 -1
  24. package/dist/converter/ts-to-gd/statements.js +1 -1
  25. package/dist/converter/ts-to-gd/statements.js.map +1 -1
  26. package/dist/typings/override-system.d.ts.map +1 -1
  27. package/dist/typings/override-system.js +6 -0
  28. package/dist/typings/override-system.js.map +1 -1
  29. package/package.json +6 -1
  30. package/typings/classes/AnimationNodeBlendSpace1D.d.ts +2 -17
  31. package/typings/classes/AnimationNodeBlendSpace2D.d.ts +2 -17
  32. package/typings/classes/Area3D.d.ts +7 -14
  33. package/typings/classes/ArrayMesh.d.ts +0 -15
  34. package/typings/classes/AudioEffectAmplify.d.ts +2 -2
  35. package/typings/classes/AudioEffectBandLimitFilter.d.ts +1 -1
  36. package/typings/classes/AudioEffectBandPassFilter.d.ts +1 -1
  37. package/typings/classes/AudioEffectCapture.d.ts +9 -10
  38. package/typings/classes/AudioEffectChorus.d.ts +28 -57
  39. package/typings/classes/AudioEffectCompressor.d.ts +9 -11
  40. package/typings/classes/AudioEffectDelay.d.ts +15 -21
  41. package/typings/classes/AudioEffectDistortion.d.ts +10 -19
  42. package/typings/classes/AudioEffectEQ.d.ts +2 -2
  43. package/typings/classes/AudioEffectEQ10.d.ts +2 -2
  44. package/typings/classes/AudioEffectEQ21.d.ts +2 -2
  45. package/typings/classes/AudioEffectEQ6.d.ts +2 -2
  46. package/typings/classes/AudioEffectFilter.d.ts +9 -25
  47. package/typings/classes/AudioEffectHardLimiter.d.ts +5 -8
  48. package/typings/classes/AudioEffectHighPassFilter.d.ts +1 -1
  49. package/typings/classes/AudioEffectHighShelfFilter.d.ts +1 -1
  50. package/typings/classes/AudioEffectLimiter.d.ts +4 -9
  51. package/typings/classes/AudioEffectLowPassFilter.d.ts +1 -1
  52. package/typings/classes/AudioEffectLowShelfFilter.d.ts +1 -1
  53. package/typings/classes/AudioEffectNotchFilter.d.ts +1 -1
  54. package/typings/classes/AudioEffectPanner.d.ts +2 -7
  55. package/typings/classes/AudioEffectPhaser.d.ts +7 -9
  56. package/typings/classes/AudioEffectPitchShift.d.ts +3 -3
  57. package/typings/classes/AudioEffectReverb.d.ts +8 -17
  58. package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +5 -4
  59. package/typings/classes/AudioEffectStereoEnhance.d.ts +4 -7
  60. package/typings/classes/AudioServer.d.ts +2 -2
  61. package/typings/classes/AudioStreamPlaybackResampled.d.ts +0 -8
  62. package/typings/classes/BaseButton.d.ts +1 -1
  63. package/typings/classes/Basis.d.ts +0 -4
  64. package/typings/classes/Camera3D.d.ts +1 -1
  65. package/typings/classes/CameraAttributes.d.ts +0 -1
  66. package/typings/classes/CameraFeed.d.ts +0 -4
  67. package/typings/classes/CanvasItem.d.ts +1 -1
  68. package/typings/classes/CodeEdit.d.ts +0 -4
  69. package/typings/classes/CollisionObject2D.d.ts +0 -6
  70. package/typings/classes/CollisionPolygon2D.d.ts +0 -5
  71. package/typings/classes/CollisionShape2D.d.ts +0 -5
  72. package/typings/classes/Container.d.ts +0 -6
  73. package/typings/classes/Control.d.ts +0 -59
  74. package/typings/classes/DPITexture.d.ts +0 -14
  75. package/typings/classes/Decal.d.ts +0 -1
  76. package/typings/classes/Dictionary.d.ts +0 -1
  77. package/typings/classes/DisplayServer.d.ts +1 -128
  78. package/typings/classes/EditorDock.d.ts +2 -8
  79. package/typings/classes/EditorExportPlugin.d.ts +0 -5
  80. package/typings/classes/EditorFileSystem.d.ts +0 -2
  81. package/typings/classes/EditorInterface.d.ts +2 -4
  82. package/typings/classes/EditorSettings.d.ts +133 -197
  83. package/typings/classes/EditorSpinSlider.d.ts +0 -6
  84. package/typings/classes/Environment.d.ts +2 -7
  85. package/typings/classes/FileAccess.d.ts +1 -1
  86. package/typings/classes/FileDialog.d.ts +1 -1
  87. package/typings/classes/FoldableContainer.d.ts +1 -1
  88. package/typings/classes/Font.d.ts +2 -2
  89. package/typings/classes/GPUParticles3D.d.ts +0 -4
  90. package/typings/classes/GeometryInstance3D.d.ts +1 -1
  91. package/typings/classes/GradientTexture2D.d.ts +0 -2
  92. package/typings/classes/Image.d.ts +0 -1
  93. package/typings/classes/ImageTexture.d.ts +2 -0
  94. package/typings/classes/ImporterMesh.d.ts +0 -6
  95. package/typings/classes/Input.d.ts +13 -148
  96. package/typings/classes/InputEvent.d.ts +0 -8
  97. package/typings/classes/InputEventGesture.d.ts +3 -2
  98. package/typings/classes/InputEventMouse.d.ts +3 -2
  99. package/typings/classes/InputEventWithModifiers.d.ts +3 -2
  100. package/typings/classes/InputMap.d.ts +0 -3
  101. package/typings/classes/ItemList.d.ts +2 -9
  102. package/typings/classes/Joint3D.d.ts +0 -1
  103. package/typings/classes/LookAtModifier3D.d.ts +1 -2
  104. package/typings/classes/MainLoop.d.ts +0 -4
  105. package/typings/classes/NativeMenu.d.ts +3 -10
  106. package/typings/classes/Node.d.ts +5 -9
  107. package/typings/classes/OS.d.ts +2 -2
  108. package/typings/classes/Object.d.ts +2 -5
  109. package/typings/classes/OptionButton.d.ts +0 -6
  110. package/typings/classes/PCKPacker.d.ts +0 -4
  111. package/typings/classes/ParticleProcessMaterial.d.ts +0 -5
  112. package/typings/classes/PhysicsDirectBodyState2D.d.ts +1 -2
  113. package/typings/classes/PhysicsDirectBodyState3D.d.ts +1 -2
  114. package/typings/classes/PhysicsServer2D.d.ts +2 -2
  115. package/typings/classes/PhysicsServer2DExtension.d.ts +1 -1
  116. package/typings/classes/PhysicsServer3D.d.ts +42 -145
  117. package/typings/classes/PopupMenu.d.ts +8 -22
  118. package/typings/classes/PopupPanel.d.ts +0 -2
  119. package/typings/classes/PortableCompressedTexture2D.d.ts +2 -0
  120. package/typings/classes/ProjectSettings.d.ts +60 -44
  121. package/typings/classes/RDShaderSPIRV.d.ts +0 -30
  122. package/typings/classes/RDShaderSource.d.ts +0 -10
  123. package/typings/classes/RenderingDevice.d.ts +0 -104
  124. package/typings/classes/RenderingServer.d.ts +11 -213
  125. package/typings/classes/Resource.d.ts +2 -2
  126. package/typings/classes/ResourceImporterDynamicFont.d.ts +1 -3
  127. package/typings/classes/ResourceImporterSVG.d.ts +0 -10
  128. package/typings/classes/ResourceImporterTexture.d.ts +2 -2
  129. package/typings/classes/SceneTree.d.ts +29 -5
  130. package/typings/classes/ScriptEditor.d.ts +0 -6
  131. package/typings/classes/Shader.d.ts +0 -2
  132. package/typings/classes/Shape3D.d.ts +0 -1
  133. package/typings/classes/SplitContainer.d.ts +0 -6
  134. package/typings/classes/String.d.ts +1 -1
  135. package/typings/classes/SubViewport.d.ts +0 -4
  136. package/typings/classes/TextEdit.d.ts +0 -3
  137. package/typings/classes/TextServer.d.ts +0 -2
  138. package/typings/classes/TextServerExtension.d.ts +0 -2
  139. package/typings/classes/Texture2D.d.ts +0 -14
  140. package/typings/classes/TextureRect.d.ts +1 -4
  141. package/typings/classes/Tree.d.ts +2 -9
  142. package/typings/classes/TreeItem.d.ts +0 -8
  143. package/typings/classes/Tween.d.ts +0 -13
  144. package/typings/classes/Viewport.d.ts +0 -10
  145. package/typings/classes/VisualShader.d.ts +0 -2
  146. package/typings/classes/VisualShaderNodeColorFunc.d.ts +2 -2
  147. package/typings/classes/VoxelGIData.d.ts +0 -10
  148. package/typings/classes/Window.d.ts +0 -23
  149. package/typings/classes/XRCamera3D.d.ts +1 -1
  150. package/typings/classes/XRServer.d.ts +0 -2
  151. package/typings/classes/_globals.d.ts +86 -45
  152. package/typings/classes/index.d.ts +0 -5
  153. package/typings/godot-class-registry.json +108 -1254
  154. package/typings/classes/AccessibilityServer.d.ts +0 -405
  155. package/typings/classes/AwaitTweener.d.ts +0 -10
  156. package/typings/classes/BlitMaterial.d.ts +0 -22
  157. package/typings/classes/DrawableTexture2D.d.ts +0 -47
  158. package/typings/classes/VirtualJoystick.d.ts +0 -94
@@ -93,8 +93,18 @@ declare class SceneTree extends MainLoop {
93
93
  * Calls the given `method` on each node inside this tree added to the given `group`. Use `flags` to customize this method's behavior (see {@link GroupCallFlags}). Additional arguments for `method` can be passed at the end of this method. Nodes that cannot call `method` (either because the method doesn't exist or the arguments do not match) are ignored.
94
94
  * **Note:** In C#, `method` must be in snake_case when referring to built-in Godot methods. Prefer using the names exposed in the `MethodName` class to avoid allocating a new {@link StringName} on each call.
95
95
  */
96
- call_group_flags(flags: int, group: GodotGroupNames, method: string, ...args: any[]): void;
97
- call_group_flags(flags: int, group: string, method: string, ...args: any[]): void;
96
+ call_group_flags(
97
+ flags: int,
98
+ group: GodotGroupNames,
99
+ method: string,
100
+ ...args: any[]
101
+ ): void;
102
+ call_group_flags(
103
+ flags: int,
104
+ group: string,
105
+ method: string,
106
+ ...args: any[]
107
+ ): void;
98
108
  /**
99
109
  * Changes the running scene to the one at the given `path`, after loading it into a {@link PackedScene} and creating a new instance.
100
110
  * Returns {@link OK} on success, {@link ERR_CANT_OPEN} if the `path` cannot be loaded into a {@link PackedScene}, or {@link ERR_CANT_CREATE} if that scene cannot be instantiated.
@@ -174,7 +184,11 @@ declare class SceneTree extends MainLoop {
174
184
  /**
175
185
  * Calls {@link Object.notification} with the given `notification` to all nodes inside this tree added to the `group`. Use `call_flags` to customize this method's behavior (see {@link GroupCallFlags}).
176
186
  */
177
- notify_group_flags(call_flags: int, group: GodotGroupNames, notification: int): void;
187
+ notify_group_flags(
188
+ call_flags: int,
189
+ group: GodotGroupNames,
190
+ notification: int,
191
+ ): void;
178
192
  notify_group_flags(call_flags: int, group: string, notification: int): void;
179
193
  /**
180
194
  * Queues the given `obj` to be deleted, calling its {@link Object.free} at the end of the current frame. This method is similar to {@link Node.queue_free}.
@@ -202,8 +216,18 @@ declare class SceneTree extends MainLoop {
202
216
  * Sets the given `property` to `value` on all nodes inside this tree added to the given `group`. Nodes that do not have the `property` are ignored. Use `call_flags` to customize this method's behavior (see {@link GroupCallFlags}).
203
217
  * **Note:** In C#, `property` must be in snake_case when referring to built-in Godot properties. Prefer using the names exposed in the `PropertyName` class to avoid allocating a new {@link StringName} on each call.
204
218
  */
205
- set_group_flags(call_flags: int, group: GodotGroupNames, property: string, value: unknown): void;
206
- set_group_flags(call_flags: int, group: string, property: string, value: unknown): void;
219
+ set_group_flags(
220
+ call_flags: int,
221
+ group: GodotGroupNames,
222
+ property: string,
223
+ value: unknown,
224
+ ): void;
225
+ set_group_flags(
226
+ call_flags: int,
227
+ group: string,
228
+ property: string,
229
+ value: unknown,
230
+ ): void;
207
231
  /**
208
232
  * Sets a custom {@link MultiplayerAPI} with the given `root_path` (controlling also the relative subpaths), or override the default one if `root_path` is empty.
209
233
  * **Note:** No {@link MultiplayerAPI} must be configured for the subpath containing `root_path`, nested custom multiplayers are not allowed. I.e. if one is configured for `"/root/Foo"` setting one for `"/root/Foo/Bar"` will cause an error.
@@ -34,12 +34,6 @@ declare class ScriptEditor extends PanelContainer {
34
34
  * **Note:** Does not apply to scripts that are already opened.
35
35
  */
36
36
  register_syntax_highlighter(syntax_highlighter: EditorSyntaxHighlighter): void;
37
- /**
38
- * Reloads all currently opened files. This should be used when opened files are changed outside of the script editor. The user may be prompted to resolve file conflicts, see {@link EditorSettings.text_editor/behavior/files/auto_reload_scripts_on_external_change}.
39
- */
40
- reload_open_files(): void;
41
- /** Saves all open scripts. */
42
- save_all_scripts(): void;
43
37
  /**
44
38
  * Unregisters the {@link EditorSyntaxHighlighter} from the editor.
45
39
  * **Note:** The {@link EditorSyntaxHighlighter} will still be applied to scripts that are already opened.
@@ -43,6 +43,4 @@ declare class Shader extends Resource {
43
43
  static readonly MODE_SKY: int;
44
44
  /** Mode used for setting the color and density of volumetric fog effect. */
45
45
  static readonly MODE_FOG: int;
46
- /** Mode used for drawing to DrawableTexture resources via blit calls. */
47
- static readonly MODE_TEXTURE_BLIT: int;
48
46
  }
@@ -6,7 +6,6 @@ declare class Shape3D extends Resource {
6
6
  /**
7
7
  * The shape's custom solver bias. Defines how much bodies react to enforce contact separation when this shape is involved.
8
8
  * When set to `0`, the default value from {@link ProjectSettings.physics/3d/solver/default_contact_bias} is used.
9
- * **Note:** {@link custom_solver_bias} is only effective when using GodotPhysics3D. It has no effect when using Jolt Physics.
10
9
  */
11
10
  custom_solver_bias: float;
12
11
  /**
@@ -21,10 +21,6 @@ declare class SplitContainer extends Container {
21
21
  * Shifts the drag area in the axis of the container to prevent the drag area from overlapping the {@link ScrollBar} or other selectable {@link Control} of a child node.
22
22
  */
23
23
  drag_area_offset: int;
24
- /**
25
- * Adds extra draggers at the intersection of the draggers of two SplitContainers to allow dragging both at once. This must be set to `true` for both SplitContainers, and one needs to be a descendant of the other. They also must be orthogonal (their {@link vertical} are different) and the descendant must be next to at least one of the ancestor's draggers (within ).
26
- */
27
- drag_nested_intersections: boolean;
28
24
  /**
29
25
  * Determines the dragger's visibility. This property does not determine whether dragging is enabled or not. Use {@link dragging_enabled} for that.
30
26
  */
@@ -58,8 +54,6 @@ declare class SplitContainer extends Container {
58
54
  get_drag_area_margin_end(): int;
59
55
  set_drag_area_offset(value: int): void;
60
56
  get_drag_area_offset(): int;
61
- set_drag_nested_intersections(value: boolean): void;
62
- is_dragging_nested_intersections(): boolean;
63
57
  set_dragger_visibility(value: int): void;
64
58
  get_dragger_visibility(): int;
65
59
  set_dragging_enabled(value: boolean): void;
@@ -19,7 +19,7 @@ declare interface String {
19
19
  */
20
20
  c_unescape(): string;
21
21
  /**
22
- * Returns a copy of the string with changed appearance. Replaces underscores (`_`) and hyphens (`-`) with spaces, adds spaces before uppercase letters in the middle of a word, converts all letters to lowercase, then converts the first one and each one following a space to uppercase.
22
+ * Changes the appearance of the string: replaces underscores (`_`) with spaces, adds spaces before uppercase letters in the middle of a word, converts all letters to lowercase, then converts the first one and each one following a space to uppercase.
23
23
  */
24
24
  capitalize(): string;
25
25
  /**
@@ -21,8 +21,6 @@ declare class SubViewport extends Viewport {
21
21
  size_2d_override: Vector2i;
22
22
  /** If `true`, the 2D size override affects stretch as well. */
23
23
  size_2d_override_stretch: boolean;
24
- /** The number of view layers we are rendering to. Set this to `2` to enable stereo rendering. */
25
- view_count: int;
26
24
  set_clear_mode(value: int): void;
27
25
  get_clear_mode(): int;
28
26
  set_update_mode(value: int): void;
@@ -33,8 +31,6 @@ declare class SubViewport extends Viewport {
33
31
  get_size_2d_override(): Vector2i;
34
32
  set_size_2d_override_stretch(value: boolean): void;
35
33
  is_size_2d_override_stretch_enabled(): boolean;
36
- set_view_count(value: int): void;
37
- get_view_count(): int;
38
34
 
39
35
  // enum ClearMode
40
36
  /** Always clear the render target before drawing. */
@@ -538,7 +538,6 @@ declare class TextEdit extends Control {
538
538
  /**
539
539
  * Returns `true` if the caret is visible, `false` otherwise. A caret will be considered hidden if it is outside the scrollable area when scrolling is enabled.
540
540
  * **Note:** {@link is_caret_visible} does not account for a caret being off-screen if it is still within the scrollable area. It will return `true` even if the caret is off-screen as long as it meets {@link TextEdit}'s own conditions for being visible. This includes uses of {@link scroll_fit_content_width} and {@link scroll_fit_content_height} that cause the {@link TextEdit} to expand beyond the viewport's bounds.
541
- * **Note:** This method does *not* guarantee an accurate visibility check immediately after setting the caret position. The correct value may only be available in the next frame after the {@link TextEdit} has finished drawing. This also applies to any operation that causes the {@link TextEdit} to change in size.
542
541
  */
543
542
  is_caret_visible(caret_index?: int): boolean;
544
543
  /** Returns `true` if the user is dragging their mouse for scrolling, selecting, or text dragging. */
@@ -559,8 +558,6 @@ declare class TextEdit extends Control {
559
558
  * Returns `true` if the gutter at the given index on the given line is clickable. See {@link set_line_gutter_clickable}.
560
559
  */
561
560
  is_line_gutter_clickable(line: int, gutter: int): boolean;
562
- /** Returns `true` if the given line is within the scope of the scrollable area of the viewport. */
563
- is_line_in_viewport(line: int): boolean;
564
561
  /** Returns if the given line is wrapped. */
565
562
  is_line_wrapped(line: int): boolean;
566
563
  /**
@@ -451,8 +451,6 @@ declare class TextServer extends RefCounted {
451
451
  shaped_get_run_font_rid(shaped: RID, index: int): RID;
452
452
  /** Returns the font size of the `index` text run (in visual order). */
453
453
  shaped_get_run_font_size(shaped: RID, index: int): int;
454
- /** Returns the glyph range of the `index` text run (in visual order). */
455
- shaped_get_run_glyph_range(shaped: RID, index: int): Vector2i;
456
454
  /** Returns the language of the `index` text run (in visual order). */
457
455
  shaped_get_run_language(shaped: RID, index: int): string;
458
456
  /** Returns the embedded object of the `index` text run (in visual order). */
@@ -371,8 +371,6 @@ declare class TextServerExtension extends TextServer {
371
371
  _shaped_get_run_font_rid(shaped: RID, index: int): RID;
372
372
  /** Returns the font size of the `index` text run (in visual order). */
373
373
  _shaped_get_run_font_size(shaped: RID, index: int): int;
374
- /** Returns the glyph range of the `index` text run (in visual order). */
375
- _shaped_get_run_glyph_range(shaped: RID, index: int): Vector2i;
376
374
  /** Returns the language of the `index` text run (in visual order). */
377
375
  _shaped_get_run_language(shaped: RID, index: int): string;
378
376
  /** Returns the embedded object of the `index` text run (in visual order). */
@@ -18,20 +18,12 @@ declare class Texture2D extends Texture {
18
18
  * **Note:** This is only used in 2D rendering, not 3D.
19
19
  */
20
20
  _draw_rect_region(to_canvas_item: RID, rect: Rect2 | Rect2i, src_rect: Rect2 | Rect2i, modulate: Color, transpose: boolean, clip_uv: boolean): void;
21
- /** Called when {@link get_format} is called. */
22
- _get_format(): int;
23
21
  /** Called when the {@link Texture2D}'s height is queried. */
24
22
  _get_height(): int;
25
- /** Called when {@link get_image} is called. */
26
- _get_image(): Image | null;
27
- /** Called when {@link get_mipmap_count} is called. */
28
- _get_mipmap_count(): int;
29
23
  /** Called when the {@link Texture2D}'s width is queried. */
30
24
  _get_width(): int;
31
25
  /** Called when the presence of an alpha channel in the {@link Texture2D} is queried. */
32
26
  _has_alpha(): boolean;
33
- /** Called when {@link has_mipmaps} is called. */
34
- _has_mipmaps(): boolean;
35
27
  /**
36
28
  * Called when a pixel's opaque state in the {@link Texture2D} is queried at the specified `(x, y)` position.
37
29
  */
@@ -46,8 +38,6 @@ declare class Texture2D extends Texture {
46
38
  draw_rect(canvas_item: RID, rect: Rect2 | Rect2i, tile: boolean, modulate?: Color, transpose?: boolean): void;
47
39
  /** Draws a part of the texture using a {@link CanvasItem} with the {@link RenderingServer} API. */
48
40
  draw_rect_region(canvas_item: RID, rect: Rect2 | Rect2i, src_rect: Rect2 | Rect2i, modulate?: Color, transpose?: boolean, clip_uv?: boolean): void;
49
- /** Returns the image format of the texture. */
50
- get_format(): int;
51
41
  /** Returns the texture height in pixels. */
52
42
  get_height(): int;
53
43
  /**
@@ -56,14 +46,10 @@ declare class Texture2D extends Texture {
56
46
  * **Note:** This will fetch the texture data from the GPU, which might cause performance problems when overused. Avoid calling {@link get_image} every frame, especially on large textures.
57
47
  */
58
48
  get_image(): Image | null;
59
- /** Returns the number of mipmaps of the texture. */
60
- get_mipmap_count(): int;
61
49
  /** Returns the texture size in pixels. */
62
50
  get_size(): Vector2;
63
51
  /** Returns the texture width in pixels. */
64
52
  get_width(): int;
65
53
  /** Returns `true` if this {@link Texture2D} has an alpha channel. */
66
54
  has_alpha(): boolean;
67
- /** Returns `true` if the texture has mipmaps. */
68
- has_mipmaps(): boolean;
69
55
  }
@@ -49,10 +49,7 @@ declare class TextureRect extends Control {
49
49
  // enum StretchMode
50
50
  /** Scale to fit the node's bounding rectangle. */
51
51
  static readonly STRETCH_SCALE: int;
52
- /**
53
- * Tile inside the node's bounding rectangle.
54
- * **Note:** {@link STRETCH_TILE} mode is not supported for {@link texture} set to an {@link AtlasTexture} with non-zero {@link AtlasTexture.margin}.
55
- */
52
+ /** Tile inside the node's bounding rectangle. */
56
53
  static readonly STRETCH_TILE: int;
57
54
  /** The texture keeps its original size and stays in the bounding rectangle's top-left corner. */
58
55
  static readonly STRETCH_KEEP: int;
@@ -18,10 +18,7 @@ declare class Tree extends Control {
18
18
  * If `true`, column titles are visible.
19
19
  */
20
20
  clip_contents: boolean;
21
- /**
22
- * The number of columns.
23
- * Prints an error and does not allow setting the columns during mouse selection.
24
- */
21
+ /** The number of columns. */
25
22
  columns: int;
26
23
  /**
27
24
  * The drop mode as an OR combination of flags. See {@link DropModeFlags} constants. Once dropping is done, reverts to {@link DROP_MODE_DISABLED}. Setting this during {@link Control._can_drop_data} is recommended.
@@ -86,16 +83,12 @@ declare class Tree extends Control {
86
83
  set_tile_scroll_hint(value: boolean): void;
87
84
  is_scroll_hint_tiled(): boolean;
88
85
 
89
- /**
90
- * Clears the tree. This removes all items.
91
- * Prints an error and does not allow clearing the tree if called during mouse selection.
92
- */
86
+ /** Clears the tree. This removes all items. */
93
87
  clear(): void;
94
88
  /**
95
89
  * Creates an item in the tree and adds it as a child of `parent`, which can be either a valid {@link TreeItem} or `null`.
96
90
  * If `parent` is `null`, the root item will be the parent, or the new item will be the root itself if the tree is empty.
97
91
  * The new item will be the `index`-th child of parent, or it will be the last child if there are not enough siblings.
98
- * Prints an error and returns `null` if called during mouse selection, or if the `parent` does not belong to this tree.
99
92
  */
100
93
  create_item(parent?: TreeItem, index?: int): TreeItem | null;
101
94
  /**
@@ -56,10 +56,6 @@ declare class TreeItem extends GodotObject {
56
56
  * Returns the text autowrap mode in the given `column`. By default it is {@link TextServer.AUTOWRAP_OFF}.
57
57
  */
58
58
  get_autowrap_mode(column: int): int;
59
- /**
60
- * Returns the autowrap trim flags for the given `column`. By default, both {@link TextServer.BREAK_TRIM_START_EDGE_SPACES} and {@link TextServer.BREAK_TRIM_END_EDGE_SPACES} are enabled.
61
- */
62
- get_autowrap_trim_flags(column: int): int;
63
59
  /** Returns the {@link Texture2D} of the button at index `button_index` in column `column`. */
64
60
  get_button(column: int, button_index: int): Texture2D | null;
65
61
  /**
@@ -228,10 +224,6 @@ declare class TreeItem extends GodotObject {
228
224
  * Sets the autowrap mode in the given `column`. If set to something other than {@link TextServer.AUTOWRAP_OFF}, the text gets wrapped inside the cell's bounding rectangle.
229
225
  */
230
226
  set_autowrap_mode(column: int, autowrap_mode: int): void;
231
- /**
232
- * Sets the autowrap trim flags for the given `column`. These flags control whether leading and trailing spaces are trimmed on wrapped lines. Set to `0` to disable all trimming.
233
- */
234
- set_autowrap_trim_flags(column: int, flags: int): void;
235
227
  /** Sets the given column's button {@link Texture2D} at index `button_index` to `button`. */
236
228
  set_button(column: int, button_index: int, button: Texture2D): void;
237
229
  /** Sets the given column's button color at index `button_index` to `color`. */
@@ -24,10 +24,6 @@ declare class Tween extends RefCounted {
24
24
  * **Note:** As it results from accumulating frame deltas, the time returned after the {@link Tween} has finished animating will be slightly greater than the actual {@link Tween} duration.
25
25
  */
26
26
  get_total_elapsed_time(): float;
27
- /**
28
- * Returns `true` if any {@link Tweener} has been added to the {@link Tween} and the {@link Tween} is valid. Useful when tweeners are added dynamically and the tween can end up empty. Killing an empty tween before it starts will prevent errors.
29
- */
30
- has_tweeners(): boolean;
31
27
  /**
32
28
  * This method can be used for manual interpolation of a value, when you don't want {@link Tween} to do animating for you. It's similar to {@link @GlobalScope.lerp}, but with support for custom transition and easing.
33
29
  * `initial_value` is the starting value of the interpolation.
@@ -103,15 +99,6 @@ declare class Tween extends RefCounted {
103
99
  * **Note:** If a Tween is stopped and not bound to any node, it will exist indefinitely until manually started or invalidated. If you lose a reference to such Tween, you can retrieve it using {@link SceneTree.get_processed_tweens}.
104
100
  */
105
101
  stop(): void;
106
- /**
107
- * Creates and appends an {@link AwaitTweener}. This method can be used to await a signal to be emitted and create asynchronous animations or cutscenes.
108
- * The animation will not progress to the next step until the awaited signal is emitted or the connection becomes invalid (e.g. as a result of freeing the target object). If you know that the emission may not happen, use {@link AwaitTweener.set_timeout}.
109
- * **Note:** The awaited signal should be emitted during the step when {@link AwaitTweener} is active.
110
- * **Example:** An object launches itself and explodes upon collision or after 4 seconds.
111
- * **Example:** A character walks to a specific point, says some lines and walks back when the player closes the message box.
112
- * **Note:** If you are awaiting a signal from a callback called in the same {@link Tween}, make sure the signal is emitted *after* the await starts. If it can't be reasonably guaranteed, you can await and emit in the same step:
113
- */
114
- tween_await(signal: Signal): AwaitTweener;
115
102
  /**
116
103
  * Creates and appends a {@link CallbackTweener}. This method can be used to call an arbitrary method in any object. Use {@link Callable.bind} to bind additional arguments for the call.
117
104
  * **Example:** Object that keeps shooting every 1 second:
@@ -57,7 +57,6 @@ declare class Viewport extends Node {
57
57
  /**
58
58
  * The automatic LOD bias to use for meshes rendered within the {@link Viewport} (this is analogous to {@link ReflectionProbe.mesh_lod_threshold}). Higher values will use less detailed versions of meshes that have LOD variations generated. If set to `0.0`, automatic LOD is disabled. Increase {@link mesh_lod_threshold} to improve performance at the cost of geometry detail.
59
59
  * To control this property on the root viewport, set the {@link ProjectSettings.rendering/mesh_lod/lod_change/threshold_pixels} project setting.
60
- * **Note:** Depending on the mesh's attributes (vertex colors, blend shapes, ...), a mesh may have fewer levels of LOD generated to avoid visible distortion of the mesh once it is affected by vertex colors or blend shapes. Meshes with a very low vertex count will also not have any LODs generated, which means this setting will not affect them at all. In general, this setting makes the largest impact on static meshes with a high vertex count.
61
60
  * **Note:** {@link mesh_lod_threshold} does not affect {@link GeometryInstance3D} visibility ranges (also known as "manual" LOD or hierarchical LOD).
62
61
  */
63
62
  mesh_lod_threshold: float;
@@ -614,7 +613,6 @@ declare class Viewport extends Node {
614
613
  /**
615
614
  * Objects are displayed as wireframe models.
616
615
  * **Note:** {@link RenderingServer.set_debug_generate_wireframes} must be called before loading any meshes for wireframes to be visible when using the Compatibility renderer.
617
- * **Note:** In the Compatibility renderer, backfaces are always visible when using wireframe rendering. In the Forward+ and Mobile renderers, wireframes follow the material's backface culling properties instead.
618
616
  */
619
617
  static readonly DEBUG_DRAW_WIREFRAME: int;
620
618
  /**
@@ -747,10 +745,6 @@ declare class Viewport extends Node {
747
745
  * Use this for non-pixel art textures that may be viewed at a low scale (e.g. due to {@link Camera2D} zoom or sprite scaling), as mipmaps are important to smooth out pixels that are smaller than on-screen pixels.
748
746
  */
749
747
  static readonly DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS: int;
750
- /**
751
- * The {@link Viewport} will inherit the filter from its parent {@link CanvasItem} or {@link Viewport}.
752
- */
753
- static readonly DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_PARENT_NODE: int;
754
748
  /** Represents the size of the {@link DefaultCanvasItemTextureFilter} enum. */
755
749
  static readonly DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_MAX: int;
756
750
  // enum DefaultCanvasItemTextureRepeat
@@ -764,10 +758,6 @@ declare class Viewport extends Node {
764
758
  static readonly DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_ENABLED: int;
765
759
  /** Flip the texture when repeating so that the edge lines up instead of abruptly changing. */
766
760
  static readonly DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MIRROR: int;
767
- /**
768
- * The {@link Viewport} will inherit the repeat mode from its parent {@link CanvasItem} or {@link Viewport}.
769
- */
770
- static readonly DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_PARENT_NODE: int;
771
761
  /** Represents the size of the {@link DefaultCanvasItemTextureRepeat} enum. */
772
762
  static readonly DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MAX: int;
773
763
  // enum SDFOversize
@@ -74,8 +74,6 @@ declare class VisualShader extends Shader {
74
74
  static readonly TYPE_SKY: int;
75
75
  /** A compute shader that runs for each froxel of the volumetric fog map. */
76
76
  static readonly TYPE_FOG: int;
77
- /** A shader used to process blit calls to a DrawableTexture. */
78
- static readonly TYPE_TEXTURE_BLIT: int;
79
77
  /** Represents the size of the {@link Type} enum. */
80
78
  static readonly TYPE_MAX: int;
81
79
  // enum VaryingMode
@@ -19,12 +19,12 @@ declare class VisualShaderNodeColorFunc extends VisualShaderNode {
19
19
  static readonly FUNC_SEPIA: int;
20
20
  /**
21
21
  * Converts color from linear encoding to nonlinear sRGB encoding using the following formula:
22
- * The Compatibility renderer uses a simpler formula that may produce undefined behavior with negative input values:
22
+ * The Compatibility renderer uses a simpler formula:
23
23
  */
24
24
  static readonly FUNC_LINEAR_TO_SRGB: int;
25
25
  /**
26
26
  * Converts color from nonlinear sRGB encoding to linear encoding using the following formula:
27
- * The Compatibility renderer uses a simpler formula that behaves poorly with negative input values:
27
+ * The Compatibility renderer uses a simpler formula:
28
28
  */
29
29
  static readonly FUNC_SRGB_TO_LINEAR: int;
30
30
  /** Represents the size of the {@link Function} enum. */
@@ -46,25 +46,15 @@ declare class VoxelGIData extends Resource {
46
46
  set_use_two_bounces(value: boolean): void;
47
47
  is_using_two_bounces(): boolean;
48
48
 
49
- /**
50
- * Initializes this {@link VoxelGIData} with the specified data. `octree_cells` must be a multiple of 32. `octree_cells` must be double the size of `data_cells`. The allocated data can be retrieved later using the various getter methods.
51
- */
52
49
  allocate(to_cell_xform: Transform3D | Projection, aabb: AABB, octree_size: Vector3 | Vector3i, octree_cells: PackedByteArray | Array<unknown>, data_cells: PackedByteArray | Array<unknown>, distance_field: PackedByteArray | Array<unknown>, level_counts: PackedInt32Array | Array<unknown>): void;
53
50
  /**
54
51
  * Returns the bounds of the baked voxel data as an {@link AABB}, which should match {@link VoxelGI.size} after being baked (which only contains the size as a {@link Vector3}).
55
52
  * **Note:** If the size was modified without baking the VoxelGI data, then the value of {@link get_bounds} and {@link VoxelGI.size} will not match.
56
53
  */
57
54
  get_bounds(): AABB;
58
- /** Returns the baked cell data for this {@link VoxelGIData}. */
59
55
  get_data_cells(): PackedByteArray;
60
- /** Returns the baked level counts for this {@link VoxelGIData}. */
61
56
  get_level_counts(): PackedInt32Array;
62
- /** Returns the baked octree cell data for this {@link VoxelGIData}. */
63
57
  get_octree_cells(): PackedByteArray;
64
- /**
65
- * Returns the baked octree size for this {@link VoxelGIData}, which corresponds to the number of subdivisions per axis. This can be viewed in the editor by hovering the **Bake VoxelGI** button at the top of the 3D editor viewport when a {@link VoxelGI} node is selected and looking at the **Subdivisions** field in the tooltip.
66
- */
67
58
  get_octree_size(): Vector3;
68
- /** Returns the baked cell transform for this {@link VoxelGIData}. */
69
59
  get_to_cell_xform(): Transform3D;
70
60
  }
@@ -58,10 +58,6 @@ declare class Window extends Viewport {
58
58
  extend_to_title: boolean;
59
59
  /** If `true`, native window will be used regardless of parent viewport and project settings. */
60
60
  force_native: boolean;
61
- /**
62
- * If `true`, requests HDR output for the {@link Window}, falling back to SDR if not supported, and automatically switching between HDR and SDR as the window moves between screens, screen capabilities change, or system settings are modified. This will internally force {@link Viewport.use_hdr_2d} to be enabled on the main {@link Viewport}. All other {@link SubViewport} of this {@link Window} must have their {@link Viewport.use_hdr_2d} property enabled to produce HDR output.
63
- */
64
- hdr_output_requested: boolean;
65
61
  /** Specifies the initial type of position for the {@link Window}. */
66
62
  initial_position: int;
67
63
  /** If `true`, the {@link Window} width is expanded to keep the title bar text fully visible. */
@@ -197,8 +193,6 @@ declare class Window extends Viewport {
197
193
  is_exclusive(): boolean;
198
194
  set_force_native(value: boolean): void;
199
195
  get_force_native(): boolean;
200
- set_hdr_output_requested(value: boolean): void;
201
- is_hdr_output_requested(): boolean;
202
196
  set_initial_position(value: int): void;
203
197
  get_initial_position(): int;
204
198
  set_keep_title_visible(value: boolean): void;
@@ -287,12 +281,6 @@ declare class Window extends Viewport {
287
281
  static get_focused_window(): Window | null;
288
282
  /** Returns layout direction and text writing direction. */
289
283
  get_layout_direction(): int;
290
- /**
291
- * Returns the maximum value for linear color components that can be displayed in this window, regardless of SDR or HDR output. Returns `1.0` if HDR is not enabled or not supported. This value is used by tonemapping and other {@link Environment} effects to ensure that bright colors are presented in the range that can be displayed by this window.
292
- * When using the Linear tonemapper without {@link Environment} effects or no {@link WorldEnvironment}, use the returned value to scale content to maximize the screen's brightness, such as for lasers or other bright effects. The following is an example that produces the brightest purple color that the screen can produce:
293
- * **Note:** You will need to convert sRGB colors to linear before multiplying by this value to get correct results.
294
- */
295
- get_output_max_linear_value(): float;
296
284
  /**
297
285
  * Returns the window's position including its border.
298
286
  * **Note:** If {@link visible} is `false`, this method returns the same value as {@link position}.
@@ -525,17 +513,6 @@ declare class Window extends Viewport {
525
513
  * Sets layout direction and text writing direction. Right-to-left layouts are necessary for certain languages (e.g. Arabic and Hebrew).
526
514
  */
527
515
  set_layout_direction(direction: int): void;
528
- /**
529
- * Sets the type and state of the progress bar on the taskbar/dock icon of the {@link Window}. See {@link DisplayServer.ProgressState} for possible values and how each mode behaves.
530
- * **Note:** This method is implemented only on Windows and macOS.
531
- */
532
- set_taskbar_progress_state(state: int): void;
533
- /**
534
- * Creates a progress bar on the taskbar/dock icon of the {@link Window} if it does not exist, sets the progress of the icon.
535
- * `value` acts as a relative percentage value, ranges from `0.0` (lowest) to `1.0` (highest).
536
- * **Note:** This method is implemented only on Windows and macOS.
537
- */
538
- set_taskbar_progress_value(value: float): void;
539
516
  /**
540
517
  * If `unparent` is `true`, the window is automatically unparented when going invisible.
541
518
  * **Note:** Make sure to keep a reference to the node, otherwise it will be orphaned. You also need to manually call {@link Node.queue_free} to free the window if it's not parented.
@@ -1,7 +1,7 @@
1
1
  // AUTO-GENERATED from Godot class documentation.
2
2
  // Manual overrides applied from typings-overrides/*.d.ts
3
3
 
4
- /** A camera node which automatically positions itself based on XR tracking data. */
4
+ /** A camera node with a few overrules for AR/VR applied, such as location tracking. */
5
5
  declare class XRCamera3D extends Camera3D {
6
6
  physics_interpolation_mode: int;
7
7
  }
@@ -88,8 +88,6 @@ declare interface XRServer extends GodotObject {
88
88
  * Emitted when an existing tracker has been updated. This can happen if the user switches controllers.
89
89
  */
90
90
  tracker_updated: Signal<[string, int]>;
91
- /** Emitted when the world origin transform changes. */
92
- world_origin_changed: Signal<[]>;
93
91
 
94
92
  // enum TrackerType
95
93
  /**