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,17 +93,17 @@ declare interface NativeMenu extends GodotObject {
93
93
  */
94
94
  create_menu(): RID;
95
95
  /**
96
- * Returns the index of the item with the submenu specified by `submenu_rid`. Indices are automatically assigned to each item by the engine.
96
+ * Returns the index of the item with the submenu specified by `submenu_rid`. Indices are automatically assigned to each item by the engine, and cannot be set manually.
97
97
  * **Note:** This method is implemented on macOS and Windows.
98
98
  */
99
99
  find_item_index_with_submenu(rid: RID, submenu_rid: RID): int;
100
100
  /**
101
- * Returns the index of the item with the specified `tag`. Indices are automatically assigned to each item by the engine.
101
+ * Returns the index of the item with the specified `tag`. Indices are automatically assigned to each item by the engine, and cannot be set manually.
102
102
  * **Note:** This method is implemented on macOS and Windows.
103
103
  */
104
104
  find_item_index_with_tag(rid: RID, tag: unknown): int;
105
105
  /**
106
- * Returns the index of the item with the specified `text`. Indices are automatically assigned to each item by the engine.
106
+ * Returns the index of the item with the specified `text`. Indices are automatically assigned to each item by the engine, and cannot be set manually.
107
107
  * **Note:** This method is implemented on macOS and Windows.
108
108
  */
109
109
  find_item_index_with_text(rid: RID, text: string | NodePath): int;
@@ -324,13 +324,6 @@ declare interface NativeMenu extends GodotObject {
324
324
  * **Note:** This method is implemented only on macOS.
325
325
  */
326
326
  set_item_indentation_level(rid: RID, idx: int, level: int): void;
327
- /**
328
- * Changes the index of the item at index `idx` to be at index `target_idx`. This can be used to move an item above other items.
329
- * Returns the new index of the moved item, it's not guaranteed to be the same as `target_idx`.
330
- * **Note:** The indices of any items between index `idx` and index `target_idx` will be shifted by one.
331
- * **Note:** This method is implemented on macOS and Windows.
332
- */
333
- set_item_index(rid: RID, idx: int, target_idx: int): int;
334
327
  /**
335
328
  * Sets the callback of the item at index `idx`. Callback is emitted when its accelerator is activated.
336
329
  * **Note:** The `key_callback` Callable needs to accept exactly one Variant parameter, the parameter passed to the Callable will be the value passed to the `tag` parameter when the menu item was created.
@@ -269,7 +269,7 @@ declare class Node extends GodotObject {
269
269
  find_child(pattern: string | NodePath, recursive?: boolean, owned?: boolean): Node | null;
270
270
  /**
271
271
  * Finds all descendants of this node whose names match `pattern`, returning an empty {@link Array} if no match is found. The matching is done against node names, *not* their paths, through {@link String.match}. As such, it is case-sensitive, `"*"` matches zero or more characters, and `"?"` matches any single character.
272
- * If `type` is not empty, only descendants inheriting from `type` are included (see {@link Object.is_class}).
272
+ * If `type` is not empty, only ancestors inheriting from `type` are included (see {@link Object.is_class}).
273
273
  * If `recursive` is `false`, only this node's direct children are checked. Nodes are checked in tree order, so this node's first direct child is checked first, then its own direct children, etc., before moving to the second direct child, and so on. Internal children are also included in the search (see `internal` parameter in {@link add_child}).
274
274
  * If `owned` is `true`, only descendants with a valid {@link owner} node are checked.
275
275
  * **Note:** This method can be very slow. Consider storing references to the found nodes in a variable.
@@ -725,19 +725,19 @@ declare class Node extends GodotObject {
725
725
  */
726
726
  static readonly PROCESS_MODE_INHERIT: int;
727
727
  /**
728
- * Processes when {@link SceneTree.paused} is `false`. This is the inverse of {@link PROCESS_MODE_WHEN_PAUSED}, and the default for the root node.
728
+ * Stops processing when {@link SceneTree.paused} is `true`. This is the inverse of {@link PROCESS_MODE_WHEN_PAUSED}, and the default for the root node.
729
729
  */
730
730
  static readonly PROCESS_MODE_PAUSABLE: int;
731
731
  /**
732
- * Processes **only** when {@link SceneTree.paused} is `true`. This is the inverse of {@link PROCESS_MODE_PAUSABLE}.
732
+ * Process **only** when {@link SceneTree.paused} is `true`. This is the inverse of {@link PROCESS_MODE_PAUSABLE}.
733
733
  */
734
734
  static readonly PROCESS_MODE_WHEN_PAUSED: int;
735
735
  /**
736
- * Always processes. Keeps processing, ignoring {@link SceneTree.paused}. This is the inverse of {@link PROCESS_MODE_DISABLED}.
736
+ * Always process. Keeps processing, ignoring {@link SceneTree.paused}. This is the inverse of {@link PROCESS_MODE_DISABLED}.
737
737
  */
738
738
  static readonly PROCESS_MODE_ALWAYS: int;
739
739
  /**
740
- * Never processes. Completely disables processing, ignoring {@link SceneTree.paused}. This is the inverse of {@link PROCESS_MODE_ALWAYS}.
740
+ * Never process. Completely disables processing, ignoring {@link SceneTree.paused}. This is the inverse of {@link PROCESS_MODE_ALWAYS}.
741
741
  */
742
742
  static readonly PROCESS_MODE_DISABLED: int;
743
743
  // enum ProcessThreadGroup
@@ -1008,10 +1008,6 @@ declare class Node extends GodotObject {
1008
1008
  static readonly NOTIFICATION_APPLICATION_FOCUS_OUT: int;
1009
1009
  /** Notification received when the {@link TextServer} is changed. */
1010
1010
  static readonly NOTIFICATION_TEXT_SERVER_CHANGED: int;
1011
- /** Notification received when the application enters picture-in-picture mode. */
1012
- static readonly NOTIFICATION_APPLICATION_PIP_MODE_ENTERED: int;
1013
- /** Notification received when the application exits picture-in-picture mode. */
1014
- static readonly NOTIFICATION_APPLICATION_PIP_MODE_EXITED: int;
1015
1011
  /** Notification received when an accessibility information update is required. */
1016
1012
  static readonly NOTIFICATION_ACCESSIBILITY_UPDATE: int;
1017
1013
  /**
@@ -506,14 +506,14 @@ declare interface OS extends GodotObject {
506
506
 
507
507
  // enum RenderingDriver
508
508
  /**
509
- * The Vulkan rendering driver. It requires Vulkan 1.0 support and automatically uses features from Vulkan 1.1, 1.2, and 1.3 if available.
509
+ * The Vulkan rendering driver. It requires Vulkan 1.0 support and automatically uses features from Vulkan 1.1 and 1.2 if available.
510
510
  */
511
511
  readonly RENDERING_DRIVER_VULKAN: int;
512
512
  /**
513
513
  * The OpenGL 3 rendering driver. It uses OpenGL 3.3 Core Profile on desktop platforms, OpenGL ES 3.0 on mobile devices, and WebGL 2.0 on Web.
514
514
  */
515
515
  readonly RENDERING_DRIVER_OPENGL3: int;
516
- /** The Direct3D 12 rendering driver. It requires the 12_0 feature level and Shader Model 6.0 support. */
516
+ /** The Direct3D 12 rendering driver. */
517
517
  readonly RENDERING_DRIVER_D3D12: int;
518
518
  /** The Metal rendering driver. */
519
519
  readonly RENDERING_DRIVER_METAL: int;
@@ -108,7 +108,7 @@ declare class GodotObject {
108
108
  callv<N extends string, A extends any[], R>(
109
109
  this: Record<N, (...args: A) => R>,
110
110
  method: N,
111
- args: A
111
+ args: A,
112
112
  ): R;
113
113
  callv(method: string, args: any[]): unknown;
114
114
  /**
@@ -141,10 +141,7 @@ declare class GodotObject {
141
141
  signal: N,
142
142
  ...args: A
143
143
  ): Error.OK | Error.ERR_UNAVAILABLE;
144
- emit_signal(
145
- signal: string,
146
- ...args: any[]
147
- ): Error.OK | Error.ERR_UNAVAILABLE;
144
+ emit_signal(signal: string, ...args: any[]): Error.OK | Error.ERR_UNAVAILABLE;
148
145
  /**
149
146
  * Deletes the object from memory. Pre-existing references to the object become invalid, and any attempt to access them will result in a runtime error. Checking the references with {@link @GlobalScope.is_instance_valid} will return `false`. This is equivalent to the `memdelete` function in GDExtension C++.
150
147
  */
@@ -9,8 +9,6 @@ declare class OptionButton extends Button {
9
9
  * If `true`, the currently selected item can be selected again.
10
10
  */
11
11
  action_mode: int;
12
- /** Enables the {@link PopupMenu} search bar if the item count is greater than `0`. */
13
- enable_search_bar_on_item_count: int;
14
12
  /**
15
13
  * If `true`, minimum size will be determined by the longest item's text, instead of the currently selected one's.
16
14
  * **Note:** For performance reasons, the minimum size doesn't update immediately when adding, removing or modifying items.
@@ -21,8 +19,6 @@ declare class OptionButton extends Button {
21
19
  /** The index of the currently selected item, or `-1` if no item is selected. */
22
20
  selected: int;
23
21
  toggle_mode: boolean;
24
- set_search_bar_enabled_on_item_count(value: int): void;
25
- get_search_bar_enabled_on_item_count(): int;
26
22
  set_fit_to_longest_item(value: boolean): void;
27
23
  is_fit_to_longest_item(): boolean;
28
24
  set_item_count(value: int): void;
@@ -86,8 +82,6 @@ declare class OptionButton extends Button {
86
82
  is_item_disabled(idx: int): boolean;
87
83
  /** Returns `true` if the item at index `idx` is marked as a separator. */
88
84
  is_item_separator(idx: int): boolean;
89
- /** Returns `true` if the search bar is enabled. */
90
- is_search_bar_enabled(): boolean;
91
85
  /** Removes the item at index `idx`. */
92
86
  remove_item(idx: int): void;
93
87
  /**
@@ -7,10 +7,6 @@ declare class PCKPacker extends RefCounted {
7
7
  * Adds the `source_path` file to the current PCK package at the `target_path` internal path. The `res://` prefix for `target_path` is optional and stripped internally. File content is immediately written to the PCK.
8
8
  */
9
9
  add_file(target_path: string | NodePath, source_path: string | NodePath, encrypt?: boolean): int;
10
- /**
11
- * Adds the `data` to the current PCK package at the `target_path` internal path. The `res://` prefix for `target_path` is optional and stripped internally. File content is immediately written to the PCK.
12
- */
13
- add_file_from_buffer(target_path: string | NodePath, data: PackedByteArray | Array<unknown>, encrypt?: boolean): int;
14
10
  /**
15
11
  * Registers a file removal of the `target_path` internal path to the PCK. This is mainly used for patches. If the file at this path has been loaded from a previous PCK, it will be removed. The `res://` prefix for `target_path` is optional and stripped internally.
16
12
  */
@@ -569,15 +569,10 @@ declare class ParticleProcessMaterial extends Material {
569
569
  /** Represents the size of the {@link EmissionShape} enum. */
570
570
  static readonly EMISSION_SHAPE_MAX: int;
571
571
  // enum SubEmitterMode
572
- /** The subemitter is disabled. */
573
572
  static readonly SUB_EMITTER_DISABLED: int;
574
- /** The submitter is emitted on the constant interval defined by {@link sub_emitter_frequency}. */
575
573
  static readonly SUB_EMITTER_CONSTANT: int;
576
- /** The subemitter is emitted at the end of the particle's lifetime. */
577
574
  static readonly SUB_EMITTER_AT_END: int;
578
- /** The subemitter is emitted when the particle collides. */
579
575
  static readonly SUB_EMITTER_AT_COLLISION: int;
580
- /** The subemitter is emitted when the particle spawns. */
581
576
  static readonly SUB_EMITTER_AT_START: int;
582
577
  /** Represents the size of the {@link SubEmitterMode} enum. */
583
578
  static readonly SUB_EMITTER_MAX: int;
@@ -141,8 +141,7 @@ declare class PhysicsDirectBodyState2D extends GodotObject {
141
141
  /** Returns the current state of the space, useful for queries. */
142
142
  get_space_state(): PhysicsDirectSpaceState2D | null;
143
143
  /**
144
- * Returns the body's velocity at the given relative position.
145
- * `local_position` is the offset from the body origin in global coordinates.
144
+ * Returns the body's velocity at the given relative position, including both translation and rotation.
146
145
  */
147
146
  get_velocity_at_local_position(local_position: Vector2 | Vector2i): Vector2;
148
147
  /**
@@ -144,8 +144,7 @@ declare class PhysicsDirectBodyState3D extends GodotObject {
144
144
  /** Returns the current state of the space, useful for queries. */
145
145
  get_space_state(): PhysicsDirectSpaceState3D | null;
146
146
  /**
147
- * Returns the body's velocity at the given relative position.
148
- * `local_position` is the offset from the body origin in global coordinates.
147
+ * Returns the body's velocity at the given relative position, including both translation and rotation.
149
148
  */
150
149
  get_velocity_at_local_position(local_position: Vector3 | Vector3i): Vector3;
151
150
  /**
@@ -293,9 +293,9 @@ declare interface PhysicsServer2D extends GodotObject {
293
293
  */
294
294
  body_set_shape(body: RID, shape_idx: int, shape: RID): void;
295
295
  /**
296
- * Sets the one-way collision properties of the body's shape with the given index. If `enable` is `true`, the one-way collision direction given by `direction` in the shape's local space (that is `body_get_shape_transform(body, shape_idx).basis_xform(direction).normalized()` in the body's local space) will be used to ignore collisions with the shape in the opposite direction, and to ensure depenetration of kinematic bodies happens in this direction.
296
+ * Sets the one-way collision properties of the body's shape with the given index. If `enable` is `true`, the one-way collision direction given by the shape's local upward axis `body_get_shape_transform(body, shape_idx).y` will be used to ignore collisions with the shape in the opposite direction, and to ensure depenetration of kinematic bodies happens in this direction.
297
297
  */
298
- body_set_shape_as_one_way_collision(body: RID, shape_idx: int, enable: boolean, margin: float, direction?: Vector2 | Vector2i): void;
298
+ body_set_shape_as_one_way_collision(body: RID, shape_idx: int, enable: boolean, margin: float): void;
299
299
  /**
300
300
  * Sets the disabled property of the body's shape with the given index. If `disabled` is `true`, then the shape will be ignored in all collision detection.
301
301
  */
@@ -188,7 +188,7 @@ declare class PhysicsServer2DExtension extends PhysicsServer2D {
188
188
  /** Overridable version of {@link PhysicsServer2D.body_set_shape}. */
189
189
  _body_set_shape(body: RID, shape_idx: int, shape: RID): void;
190
190
  /** Overridable version of {@link PhysicsServer2D.body_set_shape_as_one_way_collision}. */
191
- _body_set_shape_as_one_way_collision(body: RID, shape_idx: int, enable: boolean, margin: float, direction: Vector2 | Vector2i): void;
191
+ _body_set_shape_as_one_way_collision(body: RID, shape_idx: int, enable: boolean, margin: float): void;
192
192
  /** Overridable version of {@link PhysicsServer2D.body_set_shape_disabled}. */
193
193
  _body_set_shape_disabled(body: RID, shape_idx: int, disabled: boolean): void;
194
194
  /** Overridable version of {@link PhysicsServer2D.body_set_shape_transform}. */
@@ -329,10 +329,7 @@ declare interface PhysicsServer3D extends GodotObject {
329
329
  joint_create(): RID;
330
330
  /** Sets whether the bodies attached to the {@link Joint3D} will collide with each other. */
331
331
  joint_disable_collisions_between_bodies(joint: RID, disable: boolean): void;
332
- /**
333
- * Gets the priority value of the Joint3D.
334
- * **Note:** Only supported when using GodotPhysics3D. This method always returns `1` when using Jolt Physics, as it does not support joint solver priority.
335
- */
332
+ /** Gets the priority value of the Joint3D. */
336
333
  joint_get_solver_priority(joint: RID): int;
337
334
  /** Returns the type of the Joint3D. */
338
335
  joint_get_type(joint: RID): int;
@@ -346,10 +343,7 @@ declare interface PhysicsServer3D extends GodotObject {
346
343
  joint_make_hinge(joint: RID, body_A: RID, hinge_A: Transform3D | Projection, body_B: RID, hinge_B: Transform3D | Projection): void;
347
344
  joint_make_pin(joint: RID, body_A: RID, local_A: Vector3 | Vector3i, body_B: RID, local_B: Vector3 | Vector3i): void;
348
345
  joint_make_slider(joint: RID, body_A: RID, local_ref_A: Transform3D | Projection, body_B: RID, local_ref_B: Transform3D | Projection): void;
349
- /**
350
- * Sets the priority value of the Joint3D.
351
- * **Note:** Only supported when using GodotPhysics3D. This method has no effect when using Jolt Physics, as it does not support joint solver priority.
352
- */
346
+ /** Sets the priority value of the Joint3D. */
353
347
  joint_set_solver_priority(joint: RID, priority: int): void;
354
348
  /** Returns position of the joint in the local space of body a of the joint. */
355
349
  pin_joint_get_local_a(joint: RID): Vector3;
@@ -554,43 +548,28 @@ declare interface PhysicsServer3D extends GodotObject {
554
548
  readonly JOINT_TYPE_MAX: int;
555
549
  // enum PinJointParam
556
550
  /**
557
- * The strength with which the pinned objects try to stay in positional relation to each other. The higher, the stronger.
558
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
551
+ * The strength with which the pinned objects try to stay in positional relation to each other.
552
+ * The higher, the stronger.
559
553
  */
560
554
  readonly PIN_JOINT_BIAS: int;
561
555
  /**
562
- * The strength with which the pinned objects try to stay in velocity relation to each other. The higher, the stronger.
563
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
556
+ * The strength with which the pinned objects try to stay in velocity relation to each other.
557
+ * The higher, the stronger.
564
558
  */
565
559
  readonly PIN_JOINT_DAMPING: int;
566
- /**
567
- * If above 0, this value is the maximum value for an impulse that this Joint3D puts on its ends.
568
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
569
- */
560
+ /** If above 0, this value is the maximum value for an impulse that this Joint3D puts on its ends. */
570
561
  readonly PIN_JOINT_IMPULSE_CLAMP: int;
571
562
  // enum HingeJointParam
572
- /**
573
- * The speed with which the two bodies get pulled together when they move in different directions.
574
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
575
- */
563
+ /** The speed with which the two bodies get pulled together when they move in different directions. */
576
564
  readonly HINGE_JOINT_BIAS: int;
577
565
  /** The maximum rotation across the Hinge. */
578
566
  readonly HINGE_JOINT_LIMIT_UPPER: int;
579
567
  /** The minimum rotation across the Hinge. */
580
568
  readonly HINGE_JOINT_LIMIT_LOWER: int;
581
- /**
582
- * The speed with which the rotation across the axis perpendicular to the hinge gets corrected.
583
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
584
- */
569
+ /** The speed with which the rotation across the axis perpendicular to the hinge gets corrected. */
585
570
  readonly HINGE_JOINT_LIMIT_BIAS: int;
586
- /**
587
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
588
- */
589
571
  readonly HINGE_JOINT_LIMIT_SOFTNESS: int;
590
- /**
591
- * The lower this value, the more the rotation gets slowed down.
592
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
593
- */
572
+ /** The lower this value, the more the rotation gets slowed down. */
594
573
  readonly HINGE_JOINT_LIMIT_RELAXATION: int;
595
574
  /** Target speed for the motor. */
596
575
  readonly HINGE_JOINT_MOTOR_TARGET_VELOCITY: int;
@@ -608,103 +587,49 @@ declare interface PhysicsServer3D extends GodotObject {
608
587
  readonly SLIDER_JOINT_LINEAR_LIMIT_LOWER: int;
609
588
  /**
610
589
  * A factor applied to the movement across the slider axis once the limits get surpassed. The lower, the slower the movement.
611
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
612
590
  */
613
591
  readonly SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS: int;
614
592
  /**
615
593
  * The amount of restitution once the limits are surpassed. The lower, the more velocity-energy gets lost.
616
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
617
594
  */
618
595
  readonly SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION: int;
619
- /**
620
- * The amount of damping once the slider limits are surpassed.
621
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
622
- */
596
+ /** The amount of damping once the slider limits are surpassed. */
623
597
  readonly SLIDER_JOINT_LINEAR_LIMIT_DAMPING: int;
624
598
  /**
625
599
  * A factor applied to the movement across the slider axis as long as the slider is in the limits. The lower, the slower the movement.
626
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
627
600
  */
628
601
  readonly SLIDER_JOINT_LINEAR_MOTION_SOFTNESS: int;
629
- /**
630
- * The amount of restitution inside the slider limits.
631
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
632
- */
602
+ /** The amount of restitution inside the slider limits. */
633
603
  readonly SLIDER_JOINT_LINEAR_MOTION_RESTITUTION: int;
634
- /**
635
- * The amount of damping inside the slider limits.
636
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
637
- */
604
+ /** The amount of damping inside the slider limits. */
638
605
  readonly SLIDER_JOINT_LINEAR_MOTION_DAMPING: int;
639
- /**
640
- * A factor applied to the movement across axes orthogonal to the slider.
641
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
642
- */
606
+ /** A factor applied to the movement across axes orthogonal to the slider. */
643
607
  readonly SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS: int;
644
- /**
645
- * The amount of restitution when movement is across axes orthogonal to the slider.
646
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
647
- */
608
+ /** The amount of restitution when movement is across axes orthogonal to the slider. */
648
609
  readonly SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION: int;
649
- /**
650
- * The amount of damping when movement is across axes orthogonal to the slider.
651
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
652
- */
610
+ /** The amount of damping when movement is across axes orthogonal to the slider. */
653
611
  readonly SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING: int;
654
- /**
655
- * The upper limit of rotation in the slider.
656
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
657
- */
612
+ /** The upper limit of rotation in the slider. */
658
613
  readonly SLIDER_JOINT_ANGULAR_LIMIT_UPPER: int;
659
- /**
660
- * The lower limit of rotation in the slider.
661
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
662
- */
614
+ /** The lower limit of rotation in the slider. */
663
615
  readonly SLIDER_JOINT_ANGULAR_LIMIT_LOWER: int;
664
- /**
665
- * A factor applied to the all rotation once the limit is surpassed.
666
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
667
- */
616
+ /** A factor applied to the all rotation once the limit is surpassed. */
668
617
  readonly SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS: int;
669
- /**
670
- * The amount of restitution of the rotation when the limit is surpassed.
671
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
672
- */
618
+ /** The amount of restitution of the rotation when the limit is surpassed. */
673
619
  readonly SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION: int;
674
- /**
675
- * The amount of damping of the rotation when the limit is surpassed.
676
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
677
- */
620
+ /** The amount of damping of the rotation when the limit is surpassed. */
678
621
  readonly SLIDER_JOINT_ANGULAR_LIMIT_DAMPING: int;
679
- /**
680
- * A factor that gets applied to the all rotation in the limits.
681
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
682
- */
622
+ /** A factor that gets applied to the all rotation in the limits. */
683
623
  readonly SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS: int;
684
- /**
685
- * The amount of restitution of the rotation in the limits.
686
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
687
- */
624
+ /** The amount of restitution of the rotation in the limits. */
688
625
  readonly SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION: int;
689
- /**
690
- * The amount of damping of the rotation in the limits.
691
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
692
- */
626
+ /** The amount of damping of the rotation in the limits. */
693
627
  readonly SLIDER_JOINT_ANGULAR_MOTION_DAMPING: int;
694
- /**
695
- * A factor that gets applied to the all rotation across axes orthogonal to the slider.
696
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
697
- */
628
+ /** A factor that gets applied to the all rotation across axes orthogonal to the slider. */
698
629
  readonly SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS: int;
699
- /**
700
- * The amount of restitution of the rotation across axes orthogonal to the slider.
701
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
702
- */
630
+ /** The amount of restitution of the rotation across axes orthogonal to the slider. */
703
631
  readonly SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION: int;
704
- /**
705
- * The amount of damping of the rotation across axes orthogonal to the slider.
706
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
707
- */
632
+ /** The amount of damping of the rotation across axes orthogonal to the slider. */
708
633
  readonly SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING: int;
709
634
  /** Represents the size of the {@link SliderJointParam} enum. */
710
635
  readonly SLIDER_JOINT_MAX: int;
@@ -712,47 +637,34 @@ declare interface PhysicsServer3D extends GodotObject {
712
637
  /**
713
638
  * Swing is rotation from side to side, around the axis perpendicular to the twist axis.
714
639
  * The swing span defines, how much rotation will not get corrected along the swing axis.
715
- * Could be defined as looseness in the {@link ConeTwistJoint3D}. If below 0.05, this behavior is locked.
640
+ * Could be defined as looseness in the {@link ConeTwistJoint3D}.
641
+ * If below 0.05, this behavior is locked.
716
642
  */
717
643
  readonly CONE_TWIST_JOINT_SWING_SPAN: int;
718
644
  /**
719
- * Twist is the rotation around the twist axis, this value defined how far the joint can twist. Twist is locked if below 0.05.
645
+ * Twist is the rotation around the twist axis, this value defined how far the joint can twist.
646
+ * Twist is locked if below 0.05.
720
647
  */
721
648
  readonly CONE_TWIST_JOINT_TWIST_SPAN: int;
722
649
  /**
723
- * The speed with which the swing or twist will take place. The higher, the faster.
724
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
650
+ * The speed with which the swing or twist will take place.
651
+ * The higher, the faster.
725
652
  */
726
653
  readonly CONE_TWIST_JOINT_BIAS: int;
727
- /**
728
- * The ease with which the Joint3D twists, if it's too low, it takes more force to twist the joint.
729
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
730
- */
654
+ /** The ease with which the Joint3D twists, if it's too low, it takes more force to twist the joint. */
731
655
  readonly CONE_TWIST_JOINT_SOFTNESS: int;
732
- /**
733
- * Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
734
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
735
- */
656
+ /** Defines, how fast the swing- and twist-speed-difference on both sides gets synced. */
736
657
  readonly CONE_TWIST_JOINT_RELAXATION: int;
737
658
  // enum G6DOFJointAxisParam
738
659
  /** The minimum difference between the pivot points' axes. */
739
660
  readonly G6DOF_JOINT_LINEAR_LOWER_LIMIT: int;
740
661
  /** The maximum difference between the pivot points' axes. */
741
662
  readonly G6DOF_JOINT_LINEAR_UPPER_LIMIT: int;
742
- /**
743
- * A factor that gets applied to the movement across the axes. The lower, the slower the movement.
744
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
745
- */
663
+ /** A factor that gets applied to the movement across the axes. The lower, the slower the movement. */
746
664
  readonly G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS: int;
747
- /**
748
- * The amount of restitution on the axes movement. The lower, the more velocity-energy gets lost.
749
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
750
- */
665
+ /** The amount of restitution on the axes movement. The lower, the more velocity-energy gets lost. */
751
666
  readonly G6DOF_JOINT_LINEAR_RESTITUTION: int;
752
- /**
753
- * The amount of damping that happens at the linear motion across the axes.
754
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
755
- */
667
+ /** The amount of damping that happens at the linear motion across the axes. */
756
668
  readonly G6DOF_JOINT_LINEAR_DAMPING: int;
757
669
  /** The velocity that the joint's linear motor will attempt to reach. */
758
670
  readonly G6DOF_JOINT_LINEAR_MOTOR_TARGET_VELOCITY: int;
@@ -765,29 +677,16 @@ declare interface PhysicsServer3D extends GodotObject {
765
677
  readonly G6DOF_JOINT_ANGULAR_LOWER_LIMIT: int;
766
678
  /** The minimum rotation in positive direction to break loose and rotate around the axes. */
767
679
  readonly G6DOF_JOINT_ANGULAR_UPPER_LIMIT: int;
768
- /**
769
- * A factor that gets multiplied onto all rotations across the axes.
770
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
771
- */
680
+ /** A factor that gets multiplied onto all rotations across the axes. */
772
681
  readonly G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS: int;
773
- /**
774
- * The amount of rotational damping across the axes. The lower, the more damping occurs.
775
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
776
- */
682
+ /** The amount of rotational damping across the axes. The lower, the more damping occurs. */
777
683
  readonly G6DOF_JOINT_ANGULAR_DAMPING: int;
778
- /**
779
- * The amount of rotational restitution across the axes. The lower, the more restitution occurs.
780
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
781
- */
684
+ /** The amount of rotational restitution across the axes. The lower, the more restitution occurs. */
782
685
  readonly G6DOF_JOINT_ANGULAR_RESTITUTION: int;
783
- /**
784
- * The maximum amount of force that can occur, when rotating around the axes.
785
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
786
- */
686
+ /** The maximum amount of force that can occur, when rotating around the axes. */
787
687
  readonly G6DOF_JOINT_ANGULAR_FORCE_LIMIT: int;
788
688
  /**
789
689
  * When correcting the crossing of limits in rotation across the axes, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
790
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
791
690
  */
792
691
  readonly G6DOF_JOINT_ANGULAR_ERP: int;
793
692
  /** Target speed for the motor at the axes. */
@@ -997,12 +896,10 @@ declare interface PhysicsServer3D extends GodotObject {
997
896
  readonly SPACE_PARAM_CONTACT_DEFAULT_BIAS: int;
998
897
  /**
999
898
  * Constant to set/get the threshold linear velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given.
1000
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
1001
899
  */
1002
900
  readonly SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD: int;
1003
901
  /**
1004
902
  * Constant to set/get the threshold angular velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given.
1005
- * **Note:** Only supported when using GodotPhysics3D. This parameter is ignored when using Jolt Physics.
1006
903
  */
1007
904
  readonly SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD: int;
1008
905
  /**
@@ -5,12 +5,8 @@
5
5
  declare class PopupMenu extends Popup {
6
6
  /** If `true`, allows navigating {@link PopupMenu} with letter keys. */
7
7
  allow_search: boolean;
8
- /**
9
- * <member name="canvas_item_default_texture_repeat" type="int" setter="set_default_canvas_item_texture_repeat" getter="get_default_canvas_item_texture_repeat" overrides="Viewport" enum="Viewport.DefaultCanvasItemTextureRepeat" default="3" />
10
- * <member name="hide_on_checkable_item_selection" type="bool" setter="set_hide_on_checkable_item_selection" getter="is_hide_on_checkable_item_selection" default="true">
11
- * If `true`, hides the {@link PopupMenu} when a checkbox or radio button is selected.
12
- */
13
- canvas_item_default_texture_filter: int;
8
+ /** If `true`, hides the {@link PopupMenu} when a checkbox or radio button is selected. */
9
+ hide_on_checkable_item_selection: boolean;
14
10
  /** If `true`, hides the {@link PopupMenu} when an item is selected. */
15
11
  hide_on_item_selection: boolean;
16
12
  /** If `true`, hides the {@link PopupMenu} when a state item is selected. */
@@ -22,11 +18,6 @@ declare class PopupMenu extends Popup {
22
18
  * **Note:** If {@link PopupMenu} is linked to {@link StatusIndicator}, {@link MenuBar}, or another {@link PopupMenu} item it can use native menu regardless of this property, use {@link is_native_menu} to check it.
23
19
  */
24
20
  prefer_native_menu: boolean;
25
- /**
26
- * Enables the {@link PopupMenu} search bar if the item count is greater than `0`.
27
- * **Note:** When enabled, {@link allow_search} is ignored.
28
- */
29
- search_bar_enabled_on_item_count: int;
30
21
  /** If `true`, shrinks {@link PopupMenu} to minimum height when it's shown. */
31
22
  shrink_height: boolean;
32
23
  /** If `true`, shrinks {@link PopupMenu} to minimum width when it's shown. */
@@ -44,6 +35,8 @@ declare class PopupMenu extends Popup {
44
35
  transparent_bg: boolean;
45
36
  set_allow_search(value: boolean): void;
46
37
  get_allow_search(): boolean;
38
+ set_hide_on_checkable_item_selection(value: boolean): void;
39
+ is_hide_on_checkable_item_selection(): boolean;
47
40
  set_hide_on_item_selection(value: boolean): void;
48
41
  is_hide_on_item_selection(): boolean;
49
42
  set_hide_on_state_item_selection(value: boolean): void;
@@ -52,8 +45,6 @@ declare class PopupMenu extends Popup {
52
45
  get_item_count(): int;
53
46
  set_prefer_native_menu(value: boolean): void;
54
47
  is_prefer_native_menu(): boolean;
55
- set_search_bar_enabled_on_item_count(value: int): void;
56
- get_search_bar_enabled_on_item_count(): int;
57
48
  set_shrink_height(value: boolean): void;
58
49
  get_shrink_height(): boolean;
59
50
  set_shrink_width(value: boolean): void;
@@ -173,12 +164,14 @@ declare class PopupMenu extends Popup {
173
164
  get_item_icon_max_width(index: int): int;
174
165
  /** Returns a {@link Color} modulating the item's icon at the given `index`. */
175
166
  get_item_icon_modulate(index: int): Color;
176
- /** Returns the ID of the item at the given `index`. */
167
+ /**
168
+ * Returns the ID of the item at the given `index`. `id` can be manually assigned, while index can not.
169
+ */
177
170
  get_item_id(index: int): int;
178
171
  /** Returns the horizontal offset of the item at the given `index`. */
179
172
  get_item_indent(index: int): int;
180
173
  /**
181
- * Returns the index of the item containing the specified `id`. The index is automatically assigned to each item by the engine when added and represents the order items will be displayed.
174
+ * Returns the index of the item containing the specified `id`. Index is automatically assigned to each item by the engine and can not be set manually.
182
175
  */
183
176
  get_item_index(id: int): int;
184
177
  /** Returns item's text language code. */
@@ -232,8 +225,6 @@ declare class PopupMenu extends Popup {
232
225
  is_item_shortcut_disabled(index: int): boolean;
233
226
  /** Returns `true` if the system native menu is supported and currently used by this {@link PopupMenu}. */
234
227
  is_native_menu(): boolean;
235
- /** Returns `true` if search bar is currently enabled. */
236
- is_search_bar_enabled(): boolean;
237
228
  /** Returns `true` if the menu is bound to the special system menu. */
238
229
  is_system_menu(): boolean;
239
230
  /**
@@ -291,11 +282,6 @@ declare class PopupMenu extends Popup {
291
282
  set_item_id(index: int, id: int): void;
292
283
  /** Sets the horizontal offset of the item at the given `index`. */
293
284
  set_item_indent(index: int, indent: int): void;
294
- /**
295
- * Changes the index of the item at index `index` to be at index `target_index`. This can be used to move an item above other items. The moved item will keep the same ID, even if it was generated from the original index.
296
- * **Note:** The indices of any items between index `index` and index `target_index` will be shifted by one.
297
- */
298
- set_item_index(index: int, target_index: int): void;
299
285
  /**
300
286
  * Sets the language code of the text for the item at the given index to `language`. This is used for line-breaking and text shaping algorithms. If `language` is empty, the current locale is used.
301
287
  */
@@ -3,8 +3,6 @@
3
3
 
4
4
  /** A popup with a panel background. */
5
5
  declare class PopupPanel extends Popup {
6
- canvas_item_default_texture_filter: int;
7
- canvas_item_default_texture_repeat: int;
8
6
  transparent: boolean;
9
7
  transparent_bg: boolean;
10
8
  }
@@ -24,6 +24,8 @@ declare class PortableCompressedTexture2D extends Texture2D {
24
24
  create_from_image(image: Image, compression_mode: int, normal_map?: boolean, lossy_quality?: float): void;
25
25
  /** Return the compression mode used (valid after initialized). */
26
26
  get_compression_mode(): int;
27
+ /** Return the image format used (valid after initialized). */
28
+ get_format(): int;
27
29
  /** Returns `true` if the flag is overridden for all textures of this type. */
28
30
  static is_keeping_all_compressed_buffers(): boolean;
29
31
  /**