typescript-to-gdscript 0.1.1 → 0.1.2

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 (337) hide show
  1. package/README.md +4 -2
  2. package/dist/cli/convert.d.ts.map +1 -1
  3. package/dist/cli/convert.js +15 -5
  4. package/dist/cli/convert.js.map +1 -1
  5. package/dist/converter/ts-to-gd/access-rewrite.d.ts +40 -0
  6. package/dist/converter/ts-to-gd/access-rewrite.d.ts.map +1 -0
  7. package/dist/converter/ts-to-gd/access-rewrite.js +124 -0
  8. package/dist/converter/ts-to-gd/access-rewrite.js.map +1 -0
  9. package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -1
  10. package/dist/converter/ts-to-gd/expressions.js +31 -7
  11. package/dist/converter/ts-to-gd/expressions.js.map +1 -1
  12. package/dist/watcher/check.d.ts +87 -0
  13. package/dist/watcher/check.d.ts.map +1 -0
  14. package/dist/watcher/check.js +209 -0
  15. package/dist/watcher/check.js.map +1 -0
  16. package/dist/watcher/heal.d.ts +66 -0
  17. package/dist/watcher/heal.d.ts.map +1 -0
  18. package/dist/watcher/heal.js +132 -0
  19. package/dist/watcher/heal.js.map +1 -0
  20. package/dist/watcher/index.d.ts +1 -0
  21. package/dist/watcher/index.d.ts.map +1 -1
  22. package/dist/watcher/index.js +48 -52
  23. package/dist/watcher/index.js.map +1 -1
  24. package/package.json +1 -1
  25. package/typings/classes/AccessibilityServer.d.ts +405 -0
  26. package/typings/classes/AnimationLibrary.d.ts +4 -4
  27. package/typings/classes/AnimationNodeBlendSpace1D.d.ts +45 -4
  28. package/typings/classes/AnimationNodeBlendSpace2D.d.ts +45 -4
  29. package/typings/classes/Area3D.d.ts +14 -7
  30. package/typings/classes/AreaLight3D.d.ts +37 -0
  31. package/typings/classes/ArrayMesh.d.ts +15 -0
  32. package/typings/classes/AudioEffectAmplify.d.ts +2 -2
  33. package/typings/classes/AudioEffectBandLimitFilter.d.ts +1 -1
  34. package/typings/classes/AudioEffectBandPassFilter.d.ts +1 -1
  35. package/typings/classes/AudioEffectCapture.d.ts +10 -9
  36. package/typings/classes/AudioEffectChorus.d.ts +57 -28
  37. package/typings/classes/AudioEffectCompressor.d.ts +11 -9
  38. package/typings/classes/AudioEffectDelay.d.ts +21 -15
  39. package/typings/classes/AudioEffectDistortion.d.ts +19 -10
  40. package/typings/classes/AudioEffectEQ.d.ts +2 -2
  41. package/typings/classes/AudioEffectEQ10.d.ts +2 -2
  42. package/typings/classes/AudioEffectEQ21.d.ts +2 -2
  43. package/typings/classes/AudioEffectEQ6.d.ts +2 -2
  44. package/typings/classes/AudioEffectFilter.d.ts +25 -9
  45. package/typings/classes/AudioEffectHardLimiter.d.ts +8 -5
  46. package/typings/classes/AudioEffectHighPassFilter.d.ts +1 -1
  47. package/typings/classes/AudioEffectHighShelfFilter.d.ts +1 -1
  48. package/typings/classes/AudioEffectInstance.d.ts +1 -1
  49. package/typings/classes/AudioEffectLimiter.d.ts +9 -4
  50. package/typings/classes/AudioEffectLowPassFilter.d.ts +1 -1
  51. package/typings/classes/AudioEffectLowShelfFilter.d.ts +1 -1
  52. package/typings/classes/AudioEffectNotchFilter.d.ts +1 -1
  53. package/typings/classes/AudioEffectPanner.d.ts +7 -2
  54. package/typings/classes/AudioEffectPhaser.d.ts +9 -7
  55. package/typings/classes/AudioEffectPitchShift.d.ts +3 -3
  56. package/typings/classes/AudioEffectReverb.d.ts +17 -8
  57. package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +4 -5
  58. package/typings/classes/AudioEffectStereoEnhance.d.ts +7 -4
  59. package/typings/classes/AudioServer.d.ts +2 -2
  60. package/typings/classes/AudioStreamPlaybackResampled.d.ts +8 -0
  61. package/typings/classes/AudioStreamRandomizer.d.ts +10 -0
  62. package/typings/classes/AwaitTweener.d.ts +10 -0
  63. package/typings/classes/BaseButton.d.ts +1 -1
  64. package/typings/classes/Basis.d.ts +6 -2
  65. package/typings/classes/BlitMaterial.d.ts +22 -0
  66. package/typings/classes/CPUParticles2D.d.ts +2 -2
  67. package/typings/classes/CPUParticles3D.d.ts +2 -2
  68. package/typings/classes/Camera3D.d.ts +1 -1
  69. package/typings/classes/CameraAttributes.d.ts +1 -0
  70. package/typings/classes/CameraFeed.d.ts +4 -0
  71. package/typings/classes/CanvasItem.d.ts +16 -1
  72. package/typings/classes/CodeEdit.d.ts +6 -0
  73. package/typings/classes/CollisionObject2D.d.ts +6 -0
  74. package/typings/classes/CollisionPolygon2D.d.ts +5 -0
  75. package/typings/classes/CollisionShape2D.d.ts +5 -0
  76. package/typings/classes/Container.d.ts +7 -0
  77. package/typings/classes/Control.d.ts +127 -9
  78. package/typings/classes/Curve.d.ts +26 -1
  79. package/typings/classes/Curve2D.d.ts +15 -0
  80. package/typings/classes/Curve3D.d.ts +20 -0
  81. package/typings/classes/DPITexture.d.ts +14 -0
  82. package/typings/classes/Decal.d.ts +1 -0
  83. package/typings/classes/Dictionary.d.ts +1 -0
  84. package/typings/classes/DirAccess.d.ts +6 -1
  85. package/typings/classes/DisplayServer.d.ts +161 -9
  86. package/typings/classes/DrawableTexture2D.d.ts +43 -0
  87. package/typings/classes/EditorCommandPalette.d.ts +0 -2
  88. package/typings/classes/EditorContextMenuPlugin.d.ts +4 -0
  89. package/typings/classes/EditorDock.d.ts +10 -5
  90. package/typings/classes/EditorExportPlatform.d.ts +4 -2
  91. package/typings/classes/EditorExportPlugin.d.ts +7 -0
  92. package/typings/classes/EditorFeatureProfile.d.ts +1 -1
  93. package/typings/classes/EditorFileSystem.d.ts +2 -0
  94. package/typings/classes/EditorInspector.d.ts +10 -0
  95. package/typings/classes/EditorInterface.d.ts +6 -4
  96. package/typings/classes/EditorNode3DGizmoPlugin.d.ts +4 -0
  97. package/typings/classes/EditorPlugin.d.ts +4 -4
  98. package/typings/classes/EditorResourcePicker.d.ts +2 -1
  99. package/typings/classes/EditorSceneFormatImporter.d.ts +23 -0
  100. package/typings/classes/EditorSettings.d.ts +241 -140
  101. package/typings/classes/EditorSpinSlider.d.ts +6 -0
  102. package/typings/classes/EditorTranslationParserPlugin.d.ts +4 -0
  103. package/typings/classes/EditorVCSInterface.d.ts +6 -2
  104. package/typings/classes/Environment.d.ts +7 -2
  105. package/typings/classes/FileAccess.d.ts +1 -1
  106. package/typings/classes/FileDialog.d.ts +16 -1
  107. package/typings/classes/FoldableContainer.d.ts +1 -1
  108. package/typings/classes/Font.d.ts +15 -3
  109. package/typings/classes/FontVariation.d.ts +10 -0
  110. package/typings/classes/GDScript.d.ts +8 -0
  111. package/typings/classes/GDScriptLanguageProtocol.d.ts +25 -0
  112. package/typings/classes/GDScriptSyntaxHighlighter.d.ts +6 -0
  113. package/typings/classes/GDScriptTextDocument.d.ts +27 -0
  114. package/typings/classes/GDScriptWorkspace.d.ts +17 -0
  115. package/typings/classes/GPUParticles2D.d.ts +2 -2
  116. package/typings/classes/GPUParticles3D.d.ts +19 -2
  117. package/typings/classes/Geometry2D.d.ts +2 -2
  118. package/typings/classes/GeometryInstance3D.d.ts +1 -1
  119. package/typings/classes/GradientTexture2D.d.ts +2 -0
  120. package/typings/classes/Image.d.ts +7 -4
  121. package/typings/classes/ImageFormatLoader.d.ts +5 -0
  122. package/typings/classes/ImageTexture.d.ts +0 -2
  123. package/typings/classes/ImporterMesh.d.ts +6 -0
  124. package/typings/classes/Input.d.ts +159 -15
  125. package/typings/classes/InputEvent.d.ts +8 -0
  126. package/typings/classes/InputEventGesture.d.ts +2 -3
  127. package/typings/classes/InputEventMouse.d.ts +2 -3
  128. package/typings/classes/InputEventMouseMotion.d.ts +2 -2
  129. package/typings/classes/InputEventWithModifiers.d.ts +2 -3
  130. package/typings/classes/InputMap.d.ts +3 -0
  131. package/typings/classes/ItemList.d.ts +29 -2
  132. package/typings/classes/IterateIK3D.d.ts +6 -3
  133. package/typings/classes/JavaClassWrapper.d.ts +13 -0
  134. package/typings/classes/JavaScriptBridge.d.ts +1 -1
  135. package/typings/classes/Joint3D.d.ts +1 -0
  136. package/typings/classes/Label.d.ts +1 -0
  137. package/typings/classes/LabelSettings.d.ts +25 -0
  138. package/typings/classes/Light3D.d.ts +1 -1
  139. package/typings/classes/Logger.d.ts +1 -1
  140. package/typings/classes/LookAtModifier3D.d.ts +2 -1
  141. package/typings/classes/MainLoop.d.ts +4 -0
  142. package/typings/classes/MenuButton.d.ts +35 -0
  143. package/typings/classes/MeshLibrary.d.ts +2 -0
  144. package/typings/classes/MovieWriter.d.ts +2 -0
  145. package/typings/classes/MultiplayerPeerExtension.d.ts +9 -9
  146. package/typings/classes/NativeMenu.d.ts +10 -3
  147. package/typings/classes/Node.d.ts +15 -5
  148. package/typings/classes/Node3D.d.ts +6 -4
  149. package/typings/classes/OS.d.ts +3 -3
  150. package/typings/classes/Object.d.ts +9 -3
  151. package/typings/classes/OptimizedTranslation.d.ts +2 -2
  152. package/typings/classes/OptionButton.d.ts +51 -1
  153. package/typings/classes/PCKPacker.d.ts +4 -0
  154. package/typings/classes/PacketPeerExtension.d.ts +1 -1
  155. package/typings/classes/ParticleProcessMaterial.d.ts +63 -0
  156. package/typings/classes/PhysicsDirectBodyState2D.d.ts +2 -1
  157. package/typings/classes/PhysicsDirectBodyState3D.d.ts +2 -1
  158. package/typings/classes/PhysicsDirectSpaceState2DExtension.d.ts +6 -6
  159. package/typings/classes/PhysicsDirectSpaceState3DExtension.d.ts +6 -6
  160. package/typings/classes/PhysicsServer2D.d.ts +2 -2
  161. package/typings/classes/PhysicsServer2DExtension.d.ts +6 -6
  162. package/typings/classes/PhysicsServer3D.d.ts +145 -42
  163. package/typings/classes/PhysicsServer3DExtension.d.ts +1 -1
  164. package/typings/classes/PopupMenu.d.ts +74 -8
  165. package/typings/classes/PopupPanel.d.ts +2 -0
  166. package/typings/classes/PortableCompressedTexture2D.d.ts +0 -2
  167. package/typings/classes/ProjectSettings.d.ts +62 -10
  168. package/typings/classes/Quaternion.d.ts +2 -2
  169. package/typings/classes/RDAccelerationStructureGeometry.d.ts +42 -0
  170. package/typings/classes/RDAccelerationStructureInstance.d.ts +34 -0
  171. package/typings/classes/RDHitGroup.d.ts +20 -0
  172. package/typings/classes/RDPipelineShader.d.ts +14 -0
  173. package/typings/classes/RDShaderSPIRV.d.ts +30 -0
  174. package/typings/classes/RDShaderSource.d.ts +10 -0
  175. package/typings/classes/RandomNumberGenerator.d.ts +4 -2
  176. package/typings/classes/RenderSceneBuffersConfiguration.d.ts +4 -1
  177. package/typings/classes/RenderingDevice.d.ts +175 -1
  178. package/typings/classes/RenderingServer.d.ts +264 -14
  179. package/typings/classes/Resource.d.ts +4 -2
  180. package/typings/classes/ResourceImporterDynamicFont.d.ts +3 -1
  181. package/typings/classes/ResourceImporterOBJ.d.ts +1 -1
  182. package/typings/classes/ResourceImporterSVG.d.ts +10 -0
  183. package/typings/classes/ResourceImporterScene.d.ts +11 -3
  184. package/typings/classes/ResourceImporterTexture.d.ts +2 -2
  185. package/typings/classes/RichTextLabel.d.ts +14 -6
  186. package/typings/classes/Script.d.ts +2 -0
  187. package/typings/classes/ScriptEditor.d.ts +13 -0
  188. package/typings/classes/ScriptLanguageExtension.d.ts +7 -0
  189. package/typings/classes/ScrollContainer.d.ts +17 -5
  190. package/typings/classes/Shader.d.ts +2 -0
  191. package/typings/classes/Shape3D.d.ts +1 -0
  192. package/typings/classes/SkeletonModification2DJiggle.d.ts +4 -0
  193. package/typings/classes/SplitContainer.d.ts +6 -0
  194. package/typings/classes/SpringBoneSimulator3D.d.ts +4 -2
  195. package/typings/classes/SpriteFrames.d.ts +20 -4
  196. package/typings/classes/StreamPeerExtension.d.ts +2 -2
  197. package/typings/classes/String.d.ts +1 -1
  198. package/typings/classes/SubViewport.d.ts +4 -0
  199. package/typings/classes/TabBar.d.ts +20 -0
  200. package/typings/classes/TabContainer.d.ts +21 -3
  201. package/typings/classes/TextEdit.d.ts +5 -2
  202. package/typings/classes/TextServer.d.ts +25 -1
  203. package/typings/classes/TextServerExtension.d.ts +25 -1
  204. package/typings/classes/Texture2D.d.ts +14 -0
  205. package/typings/classes/TextureRect.d.ts +4 -1
  206. package/typings/classes/TileSet.d.ts +3 -1
  207. package/typings/classes/Tree.d.ts +25 -9
  208. package/typings/classes/TreeItem.d.ts +17 -2
  209. package/typings/classes/Tween.d.ts +13 -0
  210. package/typings/classes/UndoRedo.d.ts +2 -2
  211. package/typings/classes/Vector2.d.ts +4 -2
  212. package/typings/classes/Vector2i.d.ts +4 -2
  213. package/typings/classes/Vector3.d.ts +4 -2
  214. package/typings/classes/Vector3i.d.ts +4 -2
  215. package/typings/classes/Vector4.d.ts +4 -2
  216. package/typings/classes/Vector4i.d.ts +4 -2
  217. package/typings/classes/Viewport.d.ts +27 -1
  218. package/typings/classes/VirtualJoystick.d.ts +94 -0
  219. package/typings/classes/VoxelGIData.d.ts +10 -0
  220. package/typings/classes/Window.d.ts +41 -4
  221. package/typings/classes/XRCamera3D.d.ts +1 -1
  222. package/typings/classes/XRServer.d.ts +2 -0
  223. package/typings/classes/_globals.d.ts +55 -18
  224. package/typings/classes/index.d.ts +15 -112
  225. package/typings/godot-class-registry.json +2120 -3693
  226. package/typings/classes/VisualShader.d.ts +0 -110
  227. package/typings/classes/VisualShaderNode.d.ts +0 -63
  228. package/typings/classes/VisualShaderNodeBillboard.d.ts +0 -28
  229. package/typings/classes/VisualShaderNodeBooleanConstant.d.ts +0 -10
  230. package/typings/classes/VisualShaderNodeBooleanParameter.d.ts +0 -14
  231. package/typings/classes/VisualShaderNodeClamp.d.ts +0 -26
  232. package/typings/classes/VisualShaderNodeColorConstant.d.ts +0 -10
  233. package/typings/classes/VisualShaderNodeColorFunc.d.ts +0 -32
  234. package/typings/classes/VisualShaderNodeColorOp.d.ts +0 -32
  235. package/typings/classes/VisualShaderNodeColorParameter.d.ts +0 -14
  236. package/typings/classes/VisualShaderNodeComment.d.ts +0 -12
  237. package/typings/classes/VisualShaderNodeCompare.d.ts +0 -68
  238. package/typings/classes/VisualShaderNodeConstant.d.ts +0 -6
  239. package/typings/classes/VisualShaderNodeCubemap.d.ts +0 -43
  240. package/typings/classes/VisualShaderNodeCubemapParameter.d.ts +0 -6
  241. package/typings/classes/VisualShaderNodeCurveTexture.d.ts +0 -10
  242. package/typings/classes/VisualShaderNodeCurveXYZTexture.d.ts +0 -10
  243. package/typings/classes/VisualShaderNodeCustom.d.ts +0 -122
  244. package/typings/classes/VisualShaderNodeDerivativeFunc.d.ts +0 -56
  245. package/typings/classes/VisualShaderNodeDeterminant.d.ts +0 -6
  246. package/typings/classes/VisualShaderNodeDistanceFade.d.ts +0 -6
  247. package/typings/classes/VisualShaderNodeDotProduct.d.ts +0 -6
  248. package/typings/classes/VisualShaderNodeExpression.d.ts +0 -12
  249. package/typings/classes/VisualShaderNodeFaceForward.d.ts +0 -8
  250. package/typings/classes/VisualShaderNodeFloatConstant.d.ts +0 -10
  251. package/typings/classes/VisualShaderNodeFloatFunc.d.ts +0 -108
  252. package/typings/classes/VisualShaderNodeFloatOp.d.ts +0 -36
  253. package/typings/classes/VisualShaderNodeFloatParameter.d.ts +0 -52
  254. package/typings/classes/VisualShaderNodeFrame.d.ts +0 -35
  255. package/typings/classes/VisualShaderNodeFresnel.d.ts +0 -6
  256. package/typings/classes/VisualShaderNodeGlobalExpression.d.ts +0 -6
  257. package/typings/classes/VisualShaderNodeGroupBase.d.ts +0 -60
  258. package/typings/classes/VisualShaderNodeIf.d.ts +0 -8
  259. package/typings/classes/VisualShaderNodeInput.d.ts +0 -20
  260. package/typings/classes/VisualShaderNodeIntConstant.d.ts +0 -10
  261. package/typings/classes/VisualShaderNodeIntFunc.d.ts +0 -24
  262. package/typings/classes/VisualShaderNodeIntOp.d.ts +0 -48
  263. package/typings/classes/VisualShaderNodeIntParameter.d.ts +0 -58
  264. package/typings/classes/VisualShaderNodeIs.d.ts +0 -18
  265. package/typings/classes/VisualShaderNodeLinearSceneDepth.d.ts +0 -6
  266. package/typings/classes/VisualShaderNodeMix.d.ts +0 -28
  267. package/typings/classes/VisualShaderNodeMultiplyAdd.d.ts +0 -22
  268. package/typings/classes/VisualShaderNodeOuterProduct.d.ts +0 -6
  269. package/typings/classes/VisualShaderNodeOutput.d.ts +0 -6
  270. package/typings/classes/VisualShaderNodeParameter.d.ts +0 -32
  271. package/typings/classes/VisualShaderNodeParameterRef.d.ts +0 -10
  272. package/typings/classes/VisualShaderNodeParticleAccelerator.d.ts +0 -20
  273. package/typings/classes/VisualShaderNodeParticleBoxEmitter.d.ts +0 -6
  274. package/typings/classes/VisualShaderNodeParticleConeVelocity.d.ts +0 -6
  275. package/typings/classes/VisualShaderNodeParticleEmit.d.ts +0 -22
  276. package/typings/classes/VisualShaderNodeParticleEmitter.d.ts +0 -12
  277. package/typings/classes/VisualShaderNodeParticleMeshEmitter.d.ts +0 -20
  278. package/typings/classes/VisualShaderNodeParticleMultiplyByAxisAngle.d.ts +0 -10
  279. package/typings/classes/VisualShaderNodeParticleOutput.d.ts +0 -6
  280. package/typings/classes/VisualShaderNodeParticleRandomness.d.ts +0 -22
  281. package/typings/classes/VisualShaderNodeParticleRingEmitter.d.ts +0 -6
  282. package/typings/classes/VisualShaderNodeParticleSphereEmitter.d.ts +0 -6
  283. package/typings/classes/VisualShaderNodeProximityFade.d.ts +0 -6
  284. package/typings/classes/VisualShaderNodeRandomRange.d.ts +0 -6
  285. package/typings/classes/VisualShaderNodeRemap.d.ts +0 -33
  286. package/typings/classes/VisualShaderNodeReroute.d.ts +0 -8
  287. package/typings/classes/VisualShaderNodeResizableBase.d.ts +0 -10
  288. package/typings/classes/VisualShaderNodeRotationByAxis.d.ts +0 -6
  289. package/typings/classes/VisualShaderNodeSDFRaymarch.d.ts +0 -6
  290. package/typings/classes/VisualShaderNodeSDFToScreenUV.d.ts +0 -8
  291. package/typings/classes/VisualShaderNodeSample3D.d.ts +0 -18
  292. package/typings/classes/VisualShaderNodeScreenNormalWorldSpace.d.ts +0 -6
  293. package/typings/classes/VisualShaderNodeScreenUVToSDF.d.ts +0 -8
  294. package/typings/classes/VisualShaderNodeSmoothStep.d.ts +0 -28
  295. package/typings/classes/VisualShaderNodeStep.d.ts +0 -28
  296. package/typings/classes/VisualShaderNodeSwitch.d.ts +0 -30
  297. package/typings/classes/VisualShaderNodeTexture.d.ts +0 -57
  298. package/typings/classes/VisualShaderNodeTexture2DArray.d.ts +0 -12
  299. package/typings/classes/VisualShaderNodeTexture2DArrayParameter.d.ts +0 -6
  300. package/typings/classes/VisualShaderNodeTexture2DParameter.d.ts +0 -6
  301. package/typings/classes/VisualShaderNodeTexture3D.d.ts +0 -12
  302. package/typings/classes/VisualShaderNodeTexture3DParameter.d.ts +0 -6
  303. package/typings/classes/VisualShaderNodeTextureParameter.d.ts +0 -104
  304. package/typings/classes/VisualShaderNodeTextureParameterTriplanar.d.ts +0 -6
  305. package/typings/classes/VisualShaderNodeTextureSDF.d.ts +0 -6
  306. package/typings/classes/VisualShaderNodeTextureSDFNormal.d.ts +0 -6
  307. package/typings/classes/VisualShaderNodeTransformCompose.d.ts +0 -6
  308. package/typings/classes/VisualShaderNodeTransformConstant.d.ts +0 -10
  309. package/typings/classes/VisualShaderNodeTransformDecompose.d.ts +0 -6
  310. package/typings/classes/VisualShaderNodeTransformFunc.d.ts +0 -18
  311. package/typings/classes/VisualShaderNodeTransformOp.d.ts +0 -32
  312. package/typings/classes/VisualShaderNodeTransformParameter.d.ts +0 -14
  313. package/typings/classes/VisualShaderNodeTransformVecMult.d.ts +0 -22
  314. package/typings/classes/VisualShaderNodeUIntConstant.d.ts +0 -10
  315. package/typings/classes/VisualShaderNodeUIntFunc.d.ts +0 -20
  316. package/typings/classes/VisualShaderNodeUIntOp.d.ts +0 -48
  317. package/typings/classes/VisualShaderNodeUIntParameter.d.ts +0 -16
  318. package/typings/classes/VisualShaderNodeUVFunc.d.ts +0 -22
  319. package/typings/classes/VisualShaderNodeUVPolarCoord.d.ts +0 -6
  320. package/typings/classes/VisualShaderNodeVarying.d.ts +0 -14
  321. package/typings/classes/VisualShaderNodeVaryingGetter.d.ts +0 -6
  322. package/typings/classes/VisualShaderNodeVaryingSetter.d.ts +0 -6
  323. package/typings/classes/VisualShaderNodeVec2Constant.d.ts +0 -10
  324. package/typings/classes/VisualShaderNodeVec2Parameter.d.ts +0 -14
  325. package/typings/classes/VisualShaderNodeVec3Constant.d.ts +0 -10
  326. package/typings/classes/VisualShaderNodeVec3Parameter.d.ts +0 -14
  327. package/typings/classes/VisualShaderNodeVec4Constant.d.ts +0 -10
  328. package/typings/classes/VisualShaderNodeVec4Parameter.d.ts +0 -14
  329. package/typings/classes/VisualShaderNodeVectorBase.d.ts +0 -20
  330. package/typings/classes/VisualShaderNodeVectorCompose.d.ts +0 -8
  331. package/typings/classes/VisualShaderNodeVectorDecompose.d.ts +0 -8
  332. package/typings/classes/VisualShaderNodeVectorDistance.d.ts +0 -6
  333. package/typings/classes/VisualShaderNodeVectorFunc.d.ts +0 -84
  334. package/typings/classes/VisualShaderNodeVectorLen.d.ts +0 -6
  335. package/typings/classes/VisualShaderNodeVectorOp.d.ts +0 -42
  336. package/typings/classes/VisualShaderNodeVectorRefract.d.ts +0 -8
  337. package/typings/classes/VisualShaderNodeWorldPositionFromDepth.d.ts +0 -8
@@ -10,6 +10,41 @@ declare class MenuButton extends Button {
10
10
  * The number of items currently in the list.
11
11
  */
12
12
  action_mode: int;
13
+ /**
14
+ * The checkable item type of the item at `index`.
15
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
16
+ */
17
+ 'popup/item_{index}/checkable': int;
18
+ /**
19
+ * If `true`, the item at `index` is checked.
20
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
21
+ */
22
+ 'popup/item_{index}/checked': boolean;
23
+ /**
24
+ * If `true`, the item at `index` is disabled.
25
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
26
+ */
27
+ 'popup/item_{index}/disabled': boolean;
28
+ /**
29
+ * The icon of the item at `index`.
30
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
31
+ */
32
+ 'popup/item_{index}/icon': Texture2D | null;
33
+ /**
34
+ * The ID of the item at `index`.
35
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
36
+ */
37
+ 'popup/item_{index}/id': int;
38
+ /**
39
+ * If `true`, the item at `index` is a separator.
40
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
41
+ */
42
+ 'popup/item_{index}/separator': boolean;
43
+ /**
44
+ * The text of the item at `index`.
45
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
46
+ */
47
+ 'popup/item_{index}/text': string;
13
48
  /**
14
49
  * If `true`, when the cursor hovers above another {@link MenuButton} within the same parent which also has {@link switch_on_hover} enabled, it will close the current {@link MenuButton} and open the other one.
15
50
  */
@@ -12,6 +12,8 @@ declare class MeshLibrary extends Resource {
12
12
  create_item(id: int): void;
13
13
  /** Returns the first item with the given name, or `-1` if no item is found. */
14
14
  find_item_by_name(name: string | NodePath): int;
15
+ /** Returns the number of items present in the library. */
16
+ get_item_count(): int;
15
17
  /** Returns the list of item IDs in use. */
16
18
  get_item_list(): PackedInt32Array;
17
19
  /** Returns the item's mesh. */
@@ -11,6 +11,8 @@ declare class MovieWriter extends GodotObject {
11
11
  * Called when the audio speaker mode used for recording the audio is requested by the engine. This can affect the number of output channels in the resulting audio file/stream. Defaults to {@link AudioServer.SPEAKER_MODE_STEREO} if {@link _get_audio_speaker_mode} is not overridden.
12
12
  */
13
13
  _get_audio_speaker_mode(): int;
14
+ /** Returns the list of supported filename extensions for movies written with this {@link MovieWriter}. */
15
+ _get_supported_extensions(): PackedStringArray;
14
16
  /**
15
17
  * Called when the engine determines whether this {@link MovieWriter} is able to handle the file at `path`. Must return `true` if this {@link MovieWriter} is able to handle the given file path, `false` otherwise. Typically, {@link _handles_file} is overridden as follows to allow the user to record a file at any path with a given file extension:
16
18
  */
@@ -6,9 +6,9 @@ declare class MultiplayerPeerExtension extends MultiplayerPeer {
6
6
  /** Called when the multiplayer peer should be immediately closed (see {@link MultiplayerPeer.close}). */
7
7
  _close(): void;
8
8
  /**
9
- * Called when the connected `p_peer` should be forcibly disconnected (see {@link MultiplayerPeer.disconnect_peer}).
9
+ * Called when the connected `peer` should be forcibly disconnected (see {@link MultiplayerPeer.disconnect_peer}).
10
10
  */
11
- _disconnect_peer(p_peer: int, p_force: boolean): void;
11
+ _disconnect_peer(peer: int, force: boolean): void;
12
12
  /** Called when the available packet count is internally requested by the {@link MultiplayerAPI}. */
13
13
  _get_available_packet_count(): int;
14
14
  /**
@@ -64,27 +64,27 @@ declare class MultiplayerPeerExtension extends MultiplayerPeer {
64
64
  /** Called when the {@link MultiplayerAPI} is polled. See {@link MultiplayerAPI.poll}. */
65
65
  _poll(): void;
66
66
  /**
67
- * Called when a packet needs to be sent by the {@link MultiplayerAPI}, with `p_buffer_size` being the size of the binary `p_buffer` in bytes.
67
+ * Called when a packet needs to be sent by the {@link MultiplayerAPI}, with `buffer_size` being the size of the binary `buffer` in bytes.
68
68
  */
69
- _put_packet(p_buffer: int, p_buffer_size: int): int;
69
+ _put_packet(buffer: int, buffer_size: int): int;
70
70
  /**
71
71
  * Called when a packet needs to be sent by the {@link MultiplayerAPI}, if {@link _put_packet} isn't implemented. Use this when extending this class via GDScript.
72
72
  */
73
- _put_packet_script(p_buffer: PackedByteArray | Array<unknown>): int;
73
+ _put_packet_script(buffer: PackedByteArray | Array<unknown>): int;
74
74
  /**
75
75
  * Called when the "refuse new connections" status is set on this {@link MultiplayerPeer} (see {@link MultiplayerPeer.refuse_new_connections}).
76
76
  */
77
- _set_refuse_new_connections(p_enable: boolean): void;
77
+ _set_refuse_new_connections(enable: boolean): void;
78
78
  /**
79
79
  * Called when the target peer to use is set for this {@link MultiplayerPeer} (see {@link MultiplayerPeer.set_target_peer}).
80
80
  */
81
- _set_target_peer(p_peer: int): void;
81
+ _set_target_peer(peer: int): void;
82
82
  /**
83
83
  * Called when the channel to use is set for this {@link MultiplayerPeer} (see {@link MultiplayerPeer.transfer_channel}).
84
84
  */
85
- _set_transfer_channel(p_channel: int): void;
85
+ _set_transfer_channel(channel: int): void;
86
86
  /**
87
87
  * Called when the transfer mode is set on this {@link MultiplayerPeer} (see {@link MultiplayerPeer.transfer_mode}).
88
88
  */
89
- _set_transfer_mode(p_mode: int): void;
89
+ _set_transfer_mode(mode: int): void;
90
90
  }
@@ -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, and cannot be set manually.
96
+ * Returns the index of the item with the submenu specified by `submenu_rid`. Indices are automatically assigned to each item by the engine.
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, and cannot be set manually.
101
+ * Returns the index of the item with the specified `tag`. Indices are automatically assigned to each item by the engine.
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, and cannot be set manually.
106
+ * Returns the index of the item with the specified `text`. Indices are automatically assigned to each item by the engine.
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,6 +324,13 @@ 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;
327
334
  /**
328
335
  * Sets the callback of the item at index `idx`. Callback is emitted when its accelerator is activated.
329
336
  * **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 ancestors inheriting from `type` are included (see {@link Object.is_class}).
272
+ * If `type` is not empty, only descendants 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.
@@ -561,6 +561,7 @@ declare class Node extends GodotObject {
561
561
  /**
562
562
  * Changes the parent of this {@link Node} to the `new_parent`. The node needs to already have a parent. The node's {@link owner} is preserved if its owner is still reachable from the new location (i.e., the node is still a descendant of the new parent after the operation).
563
563
  * If `keep_global_transform` is `true`, the node's global transform will be preserved if supported. {@link Node2D}, {@link Node3D} and {@link Control} support this argument (but {@link Control} keeps only position).
564
+ * **Warning:** If {@link ProjectSettings.physics/common/physics_interpolation} is enabled and reparenting causes a large change in global transform, the object may appear to move from its old position to its new one over the next physics tick. To avoid this, call {@link reset_physics_interpolation} after reparenting.
564
565
  */
565
566
  reparent(new_parent: Node, keep_global_transform?: boolean): void;
566
567
  /**
@@ -725,19 +726,19 @@ declare class Node extends GodotObject {
725
726
  */
726
727
  static readonly PROCESS_MODE_INHERIT: int;
727
728
  /**
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
+ * Processes when {@link SceneTree.paused} is `false`. This is the inverse of {@link PROCESS_MODE_WHEN_PAUSED}, and the default for the root node.
729
730
  */
730
731
  static readonly PROCESS_MODE_PAUSABLE: int;
731
732
  /**
732
- * Process **only** when {@link SceneTree.paused} is `true`. This is the inverse of {@link PROCESS_MODE_PAUSABLE}.
733
+ * Processes **only** when {@link SceneTree.paused} is `true`. This is the inverse of {@link PROCESS_MODE_PAUSABLE}.
733
734
  */
734
735
  static readonly PROCESS_MODE_WHEN_PAUSED: int;
735
736
  /**
736
- * Always process. Keeps processing, ignoring {@link SceneTree.paused}. This is the inverse of {@link PROCESS_MODE_DISABLED}.
737
+ * Always processes. Keeps processing, ignoring {@link SceneTree.paused}. This is the inverse of {@link PROCESS_MODE_DISABLED}.
737
738
  */
738
739
  static readonly PROCESS_MODE_ALWAYS: int;
739
740
  /**
740
- * Never process. Completely disables processing, ignoring {@link SceneTree.paused}. This is the inverse of {@link PROCESS_MODE_ALWAYS}.
741
+ * Never processes. Completely disables processing, ignoring {@link SceneTree.paused}. This is the inverse of {@link PROCESS_MODE_ALWAYS}.
741
742
  */
742
743
  static readonly PROCESS_MODE_DISABLED: int;
743
744
  // enum ProcessThreadGroup
@@ -960,6 +961,11 @@ declare class Node extends GodotObject {
960
961
  static readonly NOTIFICATION_VP_MOUSE_EXIT: int;
961
962
  /** Notification received when the window is moved. */
962
963
  static readonly NOTIFICATION_WM_POSITION_CHANGED: int;
964
+ /**
965
+ * Notification received when the output max linear value returned by {@link Window.get_output_max_linear_value} has changed.
966
+ * This occurs when HDR output is enabled or disabled and when any HDR output luminance values of the window have changed, such as when the player adjusts their screen brightness setting or moves the window to a different screen.
967
+ */
968
+ static readonly NOTIFICATION_WM_OUTPUT_MAX_LINEAR_VALUE_CHANGED: int;
963
969
  /**
964
970
  * Notification received from the OS when the application is exceeding its allocated memory.
965
971
  * Implemented only on iOS.
@@ -1008,6 +1014,10 @@ declare class Node extends GodotObject {
1008
1014
  static readonly NOTIFICATION_APPLICATION_FOCUS_OUT: int;
1009
1015
  /** Notification received when the {@link TextServer} is changed. */
1010
1016
  static readonly NOTIFICATION_TEXT_SERVER_CHANGED: int;
1017
+ /** Notification received when the application enters picture-in-picture mode. */
1018
+ static readonly NOTIFICATION_APPLICATION_PIP_MODE_ENTERED: int;
1019
+ /** Notification received when the application exits picture-in-picture mode. */
1020
+ static readonly NOTIFICATION_APPLICATION_PIP_MODE_EXITED: int;
1011
1021
  /** Notification received when an accessibility information update is required. */
1012
1022
  static readonly NOTIFICATION_ACCESSIBILITY_UPDATE: int;
1013
1023
  /**
@@ -50,7 +50,7 @@ declare class Node3D extends Node {
50
50
  * - The {@link Vector3.x} is the angle around the local X axis (pitch);
51
51
  * - The {@link Vector3.y} is the angle around the local Y axis (yaw);
52
52
  * - The {@link Vector3.z} is the angle around the local Z axis (roll).
53
- * The order of each consecutive rotation can be changed with {@link rotation_order} (see {@link EulerOrder} constants). By default, the YXZ convention is used ({@link EULER_ORDER_YXZ}).
53
+ * The order of each consecutive rotation can be changed with {@link rotation_order} (see {@link EulerOrder} constants). In Godot, Euler angles always use intrinsic order. By default, the intrinsic YXZ convention is used ({@link EULER_ORDER_YXZ}).
54
54
  * **Note:** This property is edited in degrees in the inspector. If you want to use degrees in a script, use {@link rotation_degrees}.
55
55
  */
56
56
  rotation: Vector3;
@@ -62,7 +62,7 @@ declare class Node3D extends Node {
62
62
  /** How this node's rotation and scale are displayed in the Inspector dock. */
63
63
  rotation_edit_mode: int;
64
64
  /**
65
- * The axis rotation order of the {@link rotation} property. The final orientation is calculated by rotating around the local X, Y, and Z axis in this order.
65
+ * The axis rotation order of the {@link rotation} property. In Godot, Euler angles always use intrinsic order, meaning that the final orientation is calculated by rotating around the local axes in this order.
66
66
  */
67
67
  rotation_order: int;
68
68
  /**
@@ -293,10 +293,12 @@ declare class Node3D extends Node {
293
293
 
294
294
  // enum RotationEditMode
295
295
  /**
296
- * The rotation is edited using a {@link Vector3} in Euler angles (https://en.wikipedia.org/wiki/Euler_angles).
296
+ * The rotation is edited using a {@link Vector3} in Euler angles (https://en.wikipedia.org/wiki/Euler_angles). In Godot, Euler angles always use intrinsic order, meaning that rotation happens around the local axes of the object.
297
297
  */
298
298
  static readonly ROTATION_EDIT_MODE_EULER: int;
299
- /** The rotation is edited using a {@link Quaternion}. */
299
+ /**
300
+ * The rotation is edited using a {@link Quaternion}. Quaternions avoid gimbal lock ($DOCS_URL/tutorials/3d/using_transforms.html) and having to choose an order of rotation, but are less intuitive. Quaternion rotation is mostly the same as rotors in 3D geometric algebra, except that the numbers are labeled differently.
301
+ */
300
302
  static readonly ROTATION_EDIT_MODE_QUATERNION: int;
301
303
  /**
302
304
  * The rotation is edited using a {@link Basis}. In this mode, the raw {@link basis}'s axes can be freely modified, but the {@link scale} property is not available.
@@ -485,7 +485,7 @@ declare interface OS extends GodotObject {
485
485
  * - `OS.shell_open("C:\\Users\\name\\Downloads")` on Windows opens the file explorer at the user's Downloads folder.
486
486
  * - `OS.shell_open("C:/Users/name/Downloads")` also works on Windows and opens the file explorer at the user's Downloads folder.
487
487
  * - `OS.shell_open("https://godotengine.org")` opens the default web browser on the official Godot website.
488
- * - `OS.shell_open("mailto:example@example.com")` opens the default email client with the "To" field set to `example@example.com`. See RFC 2368 - The `mailto` URL scheme (https://datatracker.ietf.org/doc/html/rfc2368) for a list of fields that can be added.
488
+ * - `OS.shell_open("mailto:example@example.com")` opens the default email client with the "To" field set to `example@example.com`. See RFC 2368 - The mailto URL scheme (https://datatracker.ietf.org/doc/html/rfc2368) for a list of fields that can be added.
489
489
  * Use {@link ProjectSettings.globalize_path} to convert a `res://` or `user://` project path into a system path for use with this method.
490
490
  * **Note:** Use {@link String.uri_encode} to encode characters within URLs in a URL-safe, portable way. This is especially required for line breaks. Otherwise, {@link shell_open} may not work correctly in a project exported to the Web platform.
491
491
  * **Note:** This method is implemented on Android, iOS, Web, Linux, macOS and Windows.
@@ -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 and 1.2 if available.
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.
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. */
516
+ /** The Direct3D 12 rendering driver. It requires the 12_0 feature level and Shader Model 6.0 support. */
517
517
  readonly RENDERING_DRIVER_D3D12: int;
518
518
  /** The Metal rendering driver. */
519
519
  readonly RENDERING_DRIVER_METAL: int;
@@ -8,6 +8,7 @@ declare class GodotObject {
8
8
  * Combined with {@link _set} and {@link _get_property_list}, this method allows defining custom properties, which is particularly useful for editor plugins.
9
9
  * **Note:** This method is not called when getting built-in properties of an object, including properties defined with .
10
10
  * **Note:** Unlike other virtual methods, this method is called automatically for every script that overrides it. This means that the base implementation should not be called via `super` in GDScript or its equivalents in other languages. The bottom-most sub-class will be called first, with subsequent calls ascending the class hierarchy. The call chain will stop on the first class that returns a non-`null` value.
11
+ * **Warning:** This method must be thread-safe ($DOCS_URL/tutorials/performance/thread_safe_apis.html) if overridden. Otherwise, the engine may crash when trying to save a resource containing the object.
11
12
  */
12
13
  _get(property: string): unknown;
13
14
  /**
@@ -18,6 +19,7 @@ declare class GodotObject {
18
19
  * **Note:** This method is intended for advanced purposes. For most common use cases, the scripting languages offer easier ways to handle properties. See , , , etc. If you want to customize exported properties, use {@link _validate_property}.
19
20
  * **Note:** If the object's script is not , this method will not be called in the editor.
20
21
  * **Note:** Unlike other virtual methods, this method is called automatically for every script that overrides it. This means that the base implementation should not be called via `super` in GDScript or its equivalents in other languages. The bottom-most sub-class will be called first, with subsequent calls ascending the class hierarchy.
22
+ * **Warning:** This method must be thread-safe ($DOCS_URL/tutorials/performance/thread_safe_apis.html) if overridden. Otherwise, the engine may crash when trying to save a resource containing the object.
21
23
  */
22
24
  _get_property_list(): Array<Dictionary>;
23
25
  /**
@@ -32,7 +34,8 @@ declare class GodotObject {
32
34
  _iter_get(iter: unknown): unknown;
33
35
  /**
34
36
  * Initializes the iterator. `iter` stores the iteration state. Since GDScript does not support passing arguments by reference, a single-element array is used as a wrapper. Returns `true` so long as the iterator has not reached the end.
35
- * **Note:** Alternatively, you can ignore `iter` and use the object's state instead, see online docs ($DOCS_URL/tutorials/scripting/gdscript/gdscript_advanced.html#custom-iterators) for an example. Note that in this case you will not be able to reuse the same iterator instance in nested loops. Also, make sure you reset the iterator state in this method if you want to reuse the same instance multiple times.
37
+ * **Note:** Avoid storing iterator state in a member variable, use the `iter` parameter instead. Otherwise, you won't be able to reuse the same iterator instance in nested loops.
38
+ * See also online docs ($DOCS_URL/tutorials/scripting/gdscript/gdscript_advanced.html#custom-iterators).
36
39
  */
37
40
  _iter_init(iter: Array<unknown> | PackedByteArray | PackedColorArray | PackedFloat32Array | PackedFloat64Array | PackedInt32Array | PackedInt64Array | PackedStringArray | PackedVector2Array | PackedVector3Array | PackedVector4Array): boolean;
38
41
  /**
@@ -262,13 +265,16 @@ declare class GodotObject {
262
265
  * Returns `true` if the object inherits from the given `class`. See also {@link get_class}.
263
266
  * **Note:** This method ignores `class_name` declarations in the object's script.
264
267
  */
265
- is_class(class_: string | NodePath): boolean;
268
+ is_class(class_: string): boolean;
266
269
  /**
267
270
  * Returns `true` if a connection exists between the given `signal` name and `callable`.
268
271
  * **Note:** In C#, `signal` must be in snake_case when referring to built-in Godot signals. Prefer using the names exposed in the `SignalName` class to avoid allocating a new {@link StringName} on each call.
269
272
  */
270
273
  is_connected(signal: string, callable: Callable): boolean;
271
- /** Returns `true` if the {@link Node.queue_free} method was called for the object. */
274
+ /**
275
+ * Returns `true` if the methods {@link Node.queue_free} or {@link SceneTree.queue_delete} was called for the object.
276
+ * **Note:** This method does not return `true` on children of the node that {@link Node.queue_free} has been called on, even though they will be freed together with the parent.
277
+ */
272
278
  is_queued_for_deletion(): boolean;
273
279
  /**
274
280
  * Sends the given `what` notification to all classes inherited by the object, triggering calls to {@link _notification}, starting from the highest ancestor (the {@link Object} class) and going down to the object's script.
@@ -4,9 +4,9 @@
4
4
  /** An optimized translation. */
5
5
  declare class OptimizedTranslation extends Translation {
6
6
  /**
7
- * Generates and sets an optimized translation from the given {@link Translation} resource.
7
+ * Generates and sets an optimized translation from the given {@link Translation} resource. Returns `true` if successful.
8
8
  * **Note:** Messages in `from` should not use context or plural forms.
9
9
  * **Note:** This method is intended to be used in the editor. It does nothing when called from an exported project.
10
10
  */
11
- generate(from_: Translation): void;
11
+ generate(from_: Translation): boolean;
12
12
  }
@@ -16,6 +16,48 @@ declare class OptionButton extends Button {
16
16
  fit_to_longest_item: boolean;
17
17
  /** The number of items to select from. */
18
18
  item_count: int;
19
+ /**
20
+ * If `true`, the item at `index` is disabled.
21
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
22
+ */
23
+ 'popup/item_{index}/disabled': boolean;
24
+ /**
25
+ * The icon of the item at `index`.
26
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
27
+ */
28
+ 'popup/item_{index}/icon': Texture2D | null;
29
+ /**
30
+ * The ID of the item at `index`.
31
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
32
+ */
33
+ 'popup/item_{index}/id': int;
34
+ /**
35
+ * If `true`, the item at `index` is a separator.
36
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
37
+ */
38
+ 'popup/item_{index}/separator': boolean;
39
+ /**
40
+ * The text of the item at `index`.
41
+ * **Note:** `index` is a value in the `0 .. item_count - 1` range.
42
+ */
43
+ 'popup/item_{index}/text': string;
44
+ /**
45
+ * If `true`, shows a search bar at the top of the {@link PopupMenu} for filtering items. See {@link search_bar_min_item_count} for dynamically controlling its visibility based on the number of items.
46
+ */
47
+ search_bar_enabled: boolean;
48
+ /**
49
+ * If `true`, enables fuzzy searching in the {@link PopupMenu} search bar. This allows the search results to include items that almost match the search query, as well items that match the individual characters of the search query, but not in sequence.
50
+ * Use {@link search_bar_fuzzy_search_max_misses} to set the maximum number of mismatches allowed in the search results.
51
+ */
52
+ search_bar_fuzzy_search_enabled: boolean;
53
+ /**
54
+ * Sets the maximum number of mismatches allowed in each search result when fuzzy searching is enabled for the {@link PopupMenu} search bar. Any item with more mismatches will be hidden from the search results.
55
+ */
56
+ search_bar_fuzzy_search_max_misses: int;
57
+ /**
58
+ * Sets the minimum number of items required for the {@link PopupMenu} search bar to be visible. {@link search_bar_enabled} must be `true` for this to have any effect.
59
+ */
60
+ search_bar_min_item_count: int;
19
61
  /** The index of the currently selected item, or `-1` if no item is selected. */
20
62
  selected: int;
21
63
  toggle_mode: boolean;
@@ -23,6 +65,14 @@ declare class OptionButton extends Button {
23
65
  is_fit_to_longest_item(): boolean;
24
66
  set_item_count(value: int): void;
25
67
  get_item_count(): int;
68
+ set_search_bar_enabled(value: boolean): void;
69
+ is_search_bar_enabled(): boolean;
70
+ set_search_bar_fuzzy_search_enabled(value: boolean): void;
71
+ is_search_bar_fuzzy_search_enabled(): boolean;
72
+ set_search_bar_fuzzy_search_max_misses(value: int): void;
73
+ get_search_bar_fuzzy_search_max_misses(): int;
74
+ set_search_bar_min_item_count(value: int): void;
75
+ get_search_bar_min_item_count(): int;
26
76
  _select_int(value: int): void;
27
77
  get_selected(): int;
28
78
 
@@ -119,7 +169,7 @@ declare class OptionButton extends Button {
119
169
  show_popup(): void;
120
170
 
121
171
  /**
122
- * Emitted when the user navigates to an item using the {@link ProjectSettings.input/ui_up} or {@link ProjectSettings.input/ui_down} input actions. The index of the item selected is passed as argument.
172
+ * Emitted when the user navigates to an item using the {@link ProjectSettings.input/ui_up} or {@link ProjectSettings.input/ui_down} input actions. The index of the item focused is passed as argument.
123
173
  */
124
174
  item_focused: Signal<[int]>;
125
175
  /**
@@ -7,6 +7,10 @@ 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;
10
14
  /**
11
15
  * 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.
12
16
  */
@@ -5,5 +5,5 @@ declare class PacketPeerExtension extends PacketPeer {
5
5
  _get_available_packet_count(): int;
6
6
  _get_max_packet_size(): int;
7
7
  _get_packet(r_buffer: int, r_buffer_size: int): int;
8
- _put_packet(p_buffer: int, p_buffer_size: int): int;
8
+ _put_packet(buffer: int, buffer_size: int): int;
9
9
  }
@@ -209,6 +209,11 @@ declare class ParticleProcessMaterial extends Material {
209
209
  particle_flag_damping_as_friction: boolean;
210
210
  /** If `true`, particles will not move on the z axis. */
211
211
  particle_flag_disable_z: boolean;
212
+ /**
213
+ * If `true`, particles will inherit the scale of the emitter.
214
+ * **Note:** This has no effect when {@link GPUParticles3D.local_coords} is `true`, since particles in local space are already affected by the emitter's scale.
215
+ */
216
+ particle_flag_inherit_emitter_scale: boolean;
212
217
  /** If `true`, particles rotate around Y axis by {@link angle_min}. */
213
218
  particle_flag_rotate_y: boolean;
214
219
  /** Each particle's radial acceleration will vary along this {@link CurveTexture}. */
@@ -234,6 +239,32 @@ declare class ParticleProcessMaterial extends Material {
234
239
  * **Note:** Animated velocities will not be affected by damping, use {@link velocity_limit_curve} instead.
235
240
  */
236
241
  radial_velocity_min: float;
242
+ /** The maximum 3D orientation, in degrees. Works only in 3D and if {@link use_rotation_3d} is enabled. */
243
+ rotation_3d_max: Vector3;
244
+ /** The minimum 3D orientation, in degrees. Works only in 3D and if {@link use_rotation_3d} is enabled. */
245
+ rotation_3d_min: Vector3;
246
+ /**
247
+ * Rotation velocity curve over lifetime, per-axis. Enable {@link use_rotation_velocity_3d} to use this.
248
+ */
249
+ rotation_velocity_3d_curve: Texture2D | null;
250
+ /**
251
+ * Maximum 3D rotation velocity on the particle's local axis. Enable {@link use_rotation_velocity_3d} to use this.
252
+ */
253
+ rotation_velocity_3d_max: Vector3;
254
+ /**
255
+ * Minimum 3D rotation velocity on the particle's local axis. Enable {@link use_rotation_velocity_3d} to use this.
256
+ */
257
+ rotation_velocity_3d_min: Vector3;
258
+ /**
259
+ * The maximum value of the random scale vector for each particle.
260
+ * Works only if {@link use_scale_3d} is enabled.
261
+ */
262
+ scale_3d_max: Vector3;
263
+ /**
264
+ * The minimum value of the random scale vector for each particle.
265
+ * Works only if {@link use_scale_3d} is enabled.
266
+ */
267
+ scale_3d_min: Vector3;
237
268
  /**
238
269
  * Each particle's scale will vary along this {@link CurveTexture} over its lifetime. If a {@link CurveXYZTexture} is supplied instead, the scale will be separated per-axis.
239
270
  */
@@ -340,6 +371,12 @@ declare class ParticleProcessMaterial extends Material {
340
371
  * The turbulence noise strength. Increasing this will result in a stronger, more contrasting, flow pattern.
341
372
  */
342
373
  turbulence_noise_strength: float;
374
+ /** Enable the usage of {@link rotation_3d_min} and {@link rotation_3d_max}. */
375
+ use_rotation_3d: boolean;
376
+ /** Enable 3D rotation velocity. */
377
+ use_rotation_velocity_3d: boolean;
378
+ /** Enable the usage of {@link scale_3d_min} and {@link scale_3d_max}. */
379
+ use_scale_3d: boolean;
343
380
  /** A {@link CurveTexture} that defines the maximum velocity of a particle during its lifetime. */
344
381
  velocity_limit_curve: Texture2D | null;
345
382
  /** A pivot point used to calculate radial and orbital velocity of particles. */
@@ -402,6 +439,20 @@ declare class ParticleProcessMaterial extends Material {
402
439
  get_inherit_velocity_ratio(): float;
403
440
  set_lifetime_randomness(value: float): void;
404
441
  get_lifetime_randomness(): float;
442
+ set_rotation_3d_max(value: Vector3 | Vector3i): void;
443
+ get_rotation_3d_max(): Vector3;
444
+ set_rotation_3d_min(value: Vector3 | Vector3i): void;
445
+ get_rotation_3d_min(): Vector3;
446
+ set_rotation_velocity_3d_curve(value: Texture2D | null): void;
447
+ get_rotation_velocity_3d_curve(): Texture2D | null;
448
+ set_rotation_velocity_3d_max(value: Vector3 | Vector3i): void;
449
+ get_rotation_velocity_3d_max(): Vector3;
450
+ set_rotation_velocity_3d_min(value: Vector3 | Vector3i): void;
451
+ get_rotation_velocity_3d_min(): Vector3;
452
+ set_scale_3d_max(value: Vector3 | Vector3i): void;
453
+ get_scale_3d_max(): Vector3;
454
+ set_scale_3d_min(value: Vector3 | Vector3i): void;
455
+ get_scale_3d_min(): Vector3;
405
456
  set_spread(value: float): void;
406
457
  get_spread(): float;
407
458
  set_sub_emitter_amount_at_collision(value: int): void;
@@ -426,6 +477,12 @@ declare class ParticleProcessMaterial extends Material {
426
477
  get_turbulence_noise_speed_random(): float;
427
478
  set_turbulence_noise_strength(value: float): void;
428
479
  get_turbulence_noise_strength(): float;
480
+ set_use_rotation_3d(value: boolean): void;
481
+ is_using_rotation_3d(): boolean;
482
+ set_using_rotation_velocity_3d(value: boolean): void;
483
+ is_using_rotation_velocity_3d(): boolean;
484
+ set_use_scale_3d(value: boolean): void;
485
+ is_using_scale_3d(): boolean;
429
486
  set_velocity_limit_curve(value: Texture2D | null): void;
430
487
  get_velocity_limit_curve(): Texture2D | null;
431
488
  set_velocity_pivot(value: Vector3 | Vector3i): void;
@@ -545,6 +602,7 @@ declare class ParticleProcessMaterial extends Material {
545
602
  /** Use with {@link set_particle_flag} to set {@link particle_flag_disable_z}. */
546
603
  static readonly PARTICLE_FLAG_DISABLE_Z: int;
547
604
  static readonly PARTICLE_FLAG_DAMPING_AS_FRICTION: int;
605
+ static readonly PARTICLE_FLAG_INHERIT_EMITTER_SCALE: int;
548
606
  /** Represents the size of the {@link ParticleFlags} enum. */
549
607
  static readonly PARTICLE_FLAG_MAX: int;
550
608
  // enum EmissionShape
@@ -569,10 +627,15 @@ declare class ParticleProcessMaterial extends Material {
569
627
  /** Represents the size of the {@link EmissionShape} enum. */
570
628
  static readonly EMISSION_SHAPE_MAX: int;
571
629
  // enum SubEmitterMode
630
+ /** The subemitter is disabled. */
572
631
  static readonly SUB_EMITTER_DISABLED: int;
632
+ /** The submitter is emitted on the constant interval defined by {@link sub_emitter_frequency}. */
573
633
  static readonly SUB_EMITTER_CONSTANT: int;
634
+ /** The subemitter is emitted at the end of the particle's lifetime. */
574
635
  static readonly SUB_EMITTER_AT_END: int;
636
+ /** The subemitter is emitted when the particle collides. */
575
637
  static readonly SUB_EMITTER_AT_COLLISION: int;
638
+ /** The subemitter is emitted when the particle spawns. */
576
639
  static readonly SUB_EMITTER_AT_START: int;
577
640
  /** Represents the size of the {@link SubEmitterMode} enum. */
578
641
  static readonly SUB_EMITTER_MAX: int;
@@ -141,7 +141,8 @@ 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, including both translation and rotation.
144
+ * Returns the body's velocity at the given relative position.
145
+ * `local_position` is the offset from the body origin in global coordinates.
145
146
  */
146
147
  get_velocity_at_local_position(local_position: Vector2 | Vector2i): Vector2;
147
148
  /**
@@ -144,7 +144,8 @@ 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, including both translation and rotation.
147
+ * Returns the body's velocity at the given relative position.
148
+ * `local_position` is the offset from the body origin in global coordinates.
148
149
  */
149
150
  get_velocity_at_local_position(local_position: Vector3 | Vector3i): Vector3;
150
151
  /**
@@ -5,11 +5,11 @@
5
5
  * Provides virtual methods that can be overridden to create custom {@link PhysicsDirectSpaceState2D} implementations.
6
6
  */
7
7
  declare class PhysicsDirectSpaceState2DExtension extends PhysicsDirectSpaceState2D {
8
- _cast_motion(shape_rid: RID, transform: Transform2D, motion: Vector2 | Vector2i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, closest_safe: float, closest_unsafe: float): boolean;
9
- _collide_shape(shape_rid: RID, transform: Transform2D, motion: Vector2 | Vector2i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, results: void, max_results: int, result_count: int): boolean;
10
- _intersect_point(position: Vector2 | Vector2i, canvas_instance_id: int, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, results: unknown, max_results: int): int;
11
- _intersect_ray(from_: Vector2 | Vector2i, to: Vector2 | Vector2i, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, hit_from_inside: boolean, result: unknown): boolean;
12
- _intersect_shape(shape_rid: RID, transform: Transform2D, motion: Vector2 | Vector2i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, result: unknown, max_results: int): int;
13
- _rest_info(shape_rid: RID, transform: Transform2D, motion: Vector2 | Vector2i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, rest_info: unknown): boolean;
8
+ _cast_motion(shape_rid: RID, transform: Transform2D, motion: Vector2 | Vector2i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, r_closest_safe: float, r_closest_unsafe: float): boolean;
9
+ _collide_shape(shape_rid: RID, transform: Transform2D, motion: Vector2 | Vector2i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, r_results: void, max_results: int, r_result_count: int): boolean;
10
+ _intersect_point(position: Vector2 | Vector2i, canvas_instance_id: int, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, r_results: unknown, max_results: int): int;
11
+ _intersect_ray(from_: Vector2 | Vector2i, to: Vector2 | Vector2i, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, hit_from_inside: boolean, r_result: unknown): boolean;
12
+ _intersect_shape(shape_rid: RID, transform: Transform2D, motion: Vector2 | Vector2i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, r_result: unknown, max_results: int): int;
13
+ _rest_info(shape_rid: RID, transform: Transform2D, motion: Vector2 | Vector2i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, r_rest_info: unknown): boolean;
14
14
  is_body_excluded_from_query(body: RID): boolean;
15
15
  }
@@ -5,12 +5,12 @@
5
5
  * Provides virtual methods that can be overridden to create custom {@link PhysicsDirectSpaceState3D} implementations.
6
6
  */
7
7
  declare class PhysicsDirectSpaceState3DExtension extends PhysicsDirectSpaceState3D {
8
- _cast_motion(shape_rid: RID, transform: Transform3D | Projection, motion: Vector3 | Vector3i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, closest_safe: float, closest_unsafe: float, info: unknown): boolean;
9
- _collide_shape(shape_rid: RID, transform: Transform3D | Projection, motion: Vector3 | Vector3i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, results: void, max_results: int, result_count: int): boolean;
8
+ _cast_motion(shape_rid: RID, transform: Transform3D | Projection, motion: Vector3 | Vector3i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, r_closest_safe: float, r_closest_unsafe: float, r_info: unknown): boolean;
9
+ _collide_shape(shape_rid: RID, transform: Transform3D | Projection, motion: Vector3 | Vector3i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, r_results: void, max_results: int, r_result_count: int): boolean;
10
10
  _get_closest_point_to_object_volume(object: RID, point: Vector3 | Vector3i): Vector3;
11
- _intersect_point(position: Vector3 | Vector3i, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, results: unknown, max_results: int): int;
12
- _intersect_ray(from_: Vector3 | Vector3i, to: Vector3 | Vector3i, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, hit_from_inside: boolean, hit_back_faces: boolean, pick_ray: boolean, result: unknown): boolean;
13
- _intersect_shape(shape_rid: RID, transform: Transform3D | Projection, motion: Vector3 | Vector3i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, result_count: unknown, max_results: int): int;
14
- _rest_info(shape_rid: RID, transform: Transform3D | Projection, motion: Vector3 | Vector3i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, rest_info: unknown): boolean;
11
+ _intersect_point(position: Vector3 | Vector3i, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, r_results: unknown, max_results: int): int;
12
+ _intersect_ray(from_: Vector3 | Vector3i, to: Vector3 | Vector3i, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, hit_from_inside: boolean, hit_back_faces: boolean, pick_ray: boolean, r_result: unknown): boolean;
13
+ _intersect_shape(shape_rid: RID, transform: Transform3D | Projection, motion: Vector3 | Vector3i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, r_result_count: unknown, max_results: int): int;
14
+ _rest_info(shape_rid: RID, transform: Transform3D | Projection, motion: Vector3 | Vector3i, margin: float, collision_mask: int, collide_with_bodies: boolean, collide_with_areas: boolean, r_rest_info: unknown): boolean;
15
15
  is_body_excluded_from_query(body: RID): boolean;
16
16
  }
@@ -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 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.
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.
297
297
  */
298
- body_set_shape_as_one_way_collision(body: RID, shape_idx: int, enable: boolean, margin: float): void;
298
+ body_set_shape_as_one_way_collision(body: RID, shape_idx: int, enable: boolean, margin: float, direction?: Vector2 | Vector2i): 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
  */