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
@@ -282,6 +282,10 @@ declare class CodeEdit extends TextEdit {
282
282
  is_line_executing(line: int): boolean;
283
283
  /** Returns `true` if the given line is folded. See {@link fold_line}. */
284
284
  is_line_folded(line: int): boolean;
285
+ /**
286
+ * Joins all selected lines or lines containing a caret with their next line. Whitespace in between will be removed. If the next line has content, the `line_ending` will be inserted in between.
287
+ */
288
+ join_lines(line_ending?: string | NodePath): void;
285
289
  /** Moves all lines down that are selected or have a caret on them. */
286
290
  move_lines_down(): void;
287
291
  /** Moves all lines up that are selected or have a caret on them. */
@@ -378,6 +382,8 @@ declare class CodeEdit extends TextEdit {
378
382
  static readonly KIND_FILE_PATH: int;
379
383
  /** Marks the option as unclassified or plain text. */
380
384
  static readonly KIND_PLAIN_TEXT: int;
385
+ /** Marks the option as a keyword. */
386
+ static readonly KIND_KEYWORD: int;
381
387
  // enum CodeCompletionLocation
382
388
  /**
383
389
  * The option is local to the location of the code completion query - e.g. a local variable. Subsequent value of location represent options from the outer class, the exact value represent how far they are (in terms of inner classes).
@@ -71,6 +71,8 @@ declare class CollisionObject2D extends Node2D {
71
71
  get_collision_mask_value(layer_number: int): boolean;
72
72
  /** Returns the object's {@link RID}. */
73
73
  get_rid(): RID;
74
+ /** Returns the `one_way_collision_direction` of the shape owner identified by the given `owner_id`. */
75
+ get_shape_owner_one_way_collision_direction(owner_id: int): Vector2;
74
76
  /** Returns the `one_way_collision_margin` of the shape owner identified by given `owner_id`. */
75
77
  get_shape_owner_one_way_collision_margin(owner_id: int): float;
76
78
  /**
@@ -117,6 +119,10 @@ declare class CollisionObject2D extends Node2D {
117
119
  * If `enable` is `true`, collisions for the shape owner originating from this {@link CollisionObject2D} will not be reported to collided with {@link CollisionObject2D}s.
118
120
  */
119
121
  shape_owner_set_one_way_collision(owner_id: int, enable: boolean): void;
122
+ /**
123
+ * Sets the `one_way_collision_direction` of the shape owner identified by the given `owner_id` to `direction`.
124
+ */
125
+ shape_owner_set_one_way_collision_direction(owner_id: int, direction: Vector2 | Vector2i): void;
120
126
  /**
121
127
  * Sets the `one_way_collision_margin` of the shape owner identified by given `owner_id` to `margin` pixels.
122
128
  */
@@ -12,8 +12,11 @@ declare class CollisionPolygon2D extends Node2D {
12
12
  /**
13
13
  * If `true`, only edges that face up, relative to {@link CollisionPolygon2D}'s rotation, will collide with other objects.
14
14
  * **Note:** This property has no effect if this {@link CollisionPolygon2D} is a child of an {@link Area2D} node.
15
+ * **Note:** The one way collision direction can be configured by setting {@link one_way_collision_direction}.
15
16
  */
16
17
  one_way_collision: boolean;
18
+ /** The direction used for one-way collision. */
19
+ one_way_collision_direction: Vector2;
17
20
  /**
18
21
  * The margin used for one-way collision (in pixels). Higher values will make the shape thicker, and work better for colliders that enter the polygon at a high velocity.
19
22
  */
@@ -29,6 +32,8 @@ declare class CollisionPolygon2D extends Node2D {
29
32
  is_disabled(): boolean;
30
33
  set_one_way_collision(value: boolean): void;
31
34
  is_one_way_collision_enabled(): boolean;
35
+ set_one_way_collision_direction(value: Vector2 | Vector2i): void;
36
+ get_one_way_collision_direction(): Vector2;
32
37
  set_one_way_collision_margin(value: float): void;
33
38
  get_one_way_collision_margin(): float;
34
39
  set_polygon(value: PackedVector2Array | Array<unknown>): void;
@@ -15,8 +15,11 @@ declare class CollisionShape2D extends Node2D {
15
15
  /**
16
16
  * Sets whether this collision shape should only detect collision on one side (top or bottom).
17
17
  * **Note:** This property has no effect if this {@link CollisionShape2D} is a child of an {@link Area2D} node.
18
+ * **Note:** The one way collision direction can be configured by setting {@link one_way_collision_direction}.
18
19
  */
19
20
  one_way_collision: boolean;
21
+ /** The direction used for one-way collision. */
22
+ one_way_collision_direction: Vector2;
20
23
  /**
21
24
  * The margin used for one-way collision (in pixels). Higher values will make the shape thicker, and work better for colliders that enter the shape at a high velocity.
22
25
  */
@@ -29,6 +32,8 @@ declare class CollisionShape2D extends Node2D {
29
32
  is_disabled(): boolean;
30
33
  set_one_way_collision(value: boolean): void;
31
34
  is_one_way_collision_enabled(): boolean;
35
+ set_one_way_collision_direction(value: Vector2 | Vector2i): void;
36
+ get_one_way_collision_direction(): Vector2;
32
37
  set_one_way_collision_margin(value: float): void;
33
38
  get_one_way_collision_margin(): float;
34
39
  set_shape(value: Shape2D | null): void;
@@ -3,7 +3,14 @@
3
3
 
4
4
  /** Base class for all GUI containers. */
5
5
  declare class Container extends Control {
6
+ /**
7
+ * If `true`, this container is marked as a region for accessibility. Use {@link Control.accessibility_name} to give the region a descriptive name. Screen readers can navigate between regions using landmark navigation.
8
+ */
9
+ accessibility_region: boolean;
6
10
  mouse_filter: int;
11
+ propagate_maximum_size: boolean;
12
+ set_accessibility_region(value: boolean): void;
13
+ is_accessibility_region(): boolean;
7
14
 
8
15
  /**
9
16
  * Implement to return a list of allowed horizontal {@link Control.SizeFlags} for child nodes. This doesn't technically prevent the usages of any other size flags, if your implementation requires that. This only limits the options available to the user in the Inspector dock.
@@ -43,8 +43,17 @@ declare class Control extends CanvasItem {
43
43
  * Enables whether rendering of {@link CanvasItem} based children should be clipped to this control's rectangle. If `true`, parts of a child which would be visibly outside of this control's rectangle will not be rendered and won't receive input.
44
44
  */
45
45
  clip_contents: boolean;
46
+ /**
47
+ * The maximum size of this Control's bounding rectangle. If set to a value greater than or equal to `(0, 0)`, the node's bounding rectangle will never exceed this size. A value below `(0, 0)` means there is no maximum size.
48
+ * **Note:** The final effective maximum size may be subject to parent Container sizing and propagated maximum sizes. See also: {@link get_combined_maximum_size}.
49
+ * **Note:** Not all {@link Control} subtypes handle a custom maximum size gracefully, which may lead to unexpected behavior if the control's contents exceed this size.
50
+ * **Note:** This value has priority over {@link custom_minimum_size}. For example, if you set {@link custom_maximum_size} to `(100, 100)` and {@link custom_minimum_size} to `(200, 200)`, the resulting size will be `(100, 100)`.
51
+ * **Note:** It is recommended to use {@link get_bound_minimum_size} instead of {@link get_combined_minimum_size} when using this property, as the former respects maximum size limits when calculating the minimum size, while the latter does not.
52
+ */
53
+ custom_maximum_size: Vector2;
46
54
  /**
47
55
  * The minimum size of the node's bounding rectangle. If you set it to a value greater than `(0, 0)`, the node's bounding rectangle will always have at least this size. Note that {@link Control} nodes have their internal minimum size returned by {@link get_minimum_size}. It depends on the control's contents, like text, textures, or style boxes. The actual minimum size is the maximum value of this property and the internal minimum size (see {@link get_combined_minimum_size}).
56
+ * **Note:** {@link custom_maximum_size} has priority over this property. For example, if you set {@link custom_minimum_size} to `(200, 200)` and {@link custom_maximum_size} to `(100, 100)`, the resulting size will be `(100, 100)`.
48
57
  */
49
58
  custom_minimum_size: Vector2;
50
59
  /**
@@ -139,6 +148,49 @@ declare class Control extends CanvasItem {
139
148
  * Offsets are often controlled by one or multiple parent {@link Container} nodes, so you should not modify them manually if your node is a direct child of a {@link Container}. Offsets update automatically when you move or resize the node.
140
149
  */
141
150
  offset_top: float;
151
+ /**
152
+ * If `true`, applies all offset transform properties. Otherwise, no offset transform is applied and the properties have no effect.
153
+ */
154
+ offset_transform_enabled: boolean;
155
+ /**
156
+ * Pivot used by {@link offset_transform_rotation} and {@link offset_transform_scale} in absolute units.
157
+ * The final pivot position is the combined value of this property and {@link offset_transform_pivot_ratio}.
158
+ * Has no effect unless {@link offset_transform_enabled} is `true`.
159
+ */
160
+ offset_transform_pivot: Vector2;
161
+ /**
162
+ * Same as {@link offset_transform_pivot} but expressed in units relative to the {@link Control} {@link size} where `Vector2(0, 0)` is the top-left corner of this control, and `Vector2(1, 1)` is its bottom-right corner.
163
+ * The final pivot position is the combined value of this property and {@link offset_transform_pivot}.
164
+ * Has no effect unless {@link offset_transform_enabled} is `true`.
165
+ */
166
+ offset_transform_pivot_ratio: Vector2;
167
+ /**
168
+ * Position offset in absolute units. The final offset is the combined value of this property and {@link offset_transform_position_ratio}.
169
+ * Has no effect unless {@link offset_transform_enabled} is `true`.
170
+ */
171
+ offset_transform_position: Vector2;
172
+ /**
173
+ * Same as {@link offset_transform_position} but expressed in units relative to the {@link Control} {@link size} where `Vector2(0, 0)` is the top-left corner of this control, and `Vector2(1, 1)` is its bottom-right corner.
174
+ * The final offset is the combined value of this property and {@link offset_transform_position}.
175
+ * Has no effect unless {@link offset_transform_enabled} is `true`.
176
+ */
177
+ offset_transform_position_ratio: Vector2;
178
+ /**
179
+ * Rotation offset. The rotation pivot is defined by {@link offset_transform_pivot} and {@link offset_transform_pivot_ratio}.
180
+ * Has no effect unless {@link offset_transform_enabled} is `true`.
181
+ */
182
+ offset_transform_rotation: float;
183
+ /**
184
+ * Scale offset. The scale pivot is defined by {@link offset_transform_pivot} and {@link offset_transform_pivot_ratio}.
185
+ * Has no effect unless {@link offset_transform_enabled} is `true`.
186
+ */
187
+ offset_transform_scale: Vector2;
188
+ /**
189
+ * If `true`, the offset transforms is only applied visually and does not affect input. In other words, this Control will still receive input events at its original location before the offset transform is applied.
190
+ * If `false`, the entire transform of this Control is affected and input events will register where the Control is visually.
191
+ * Has no effect unless {@link offset_transform_enabled} is `true`.
192
+ */
193
+ offset_transform_visual_only: boolean;
142
194
  /**
143
195
  * <member name="pivot_offset" type="Vector2" setter="set_pivot_offset" getter="get_pivot_offset" default="Vector2(0, 0)">
144
196
  * By default, the node's pivot is its top-left corner. When you change its {@link rotation} or {@link scale}, it will rotate or scale around this pivot.
@@ -154,6 +206,10 @@ declare class Control extends CanvasItem {
154
206
  * The node's position, relative to its containing node. It corresponds to the rectangle's top-left corner. The property is not affected by {@link pivot_offset}.
155
207
  */
156
208
  position: Vector2;
209
+ /**
210
+ * If `true`, this Control's children will use the value returned by {@link get_combined_maximum_size} in their own size calculations.
211
+ */
212
+ propagate_maximum_size: boolean;
157
213
  /**
158
214
  * The node's rotation around its pivot, in radians. See {@link pivot_offset} to change the pivot's position.
159
215
  * **Note:** This property is edited in the inspector in degrees. If you want to use degrees in a script, use {@link rotation_degrees}.
@@ -211,6 +267,10 @@ declare class Control extends CanvasItem {
211
267
  * The tooltip popup will use either a default implementation, or a custom one that you can provide by overriding {@link _make_custom_tooltip}. The default tooltip includes a {@link PopupPanel} and {@link Label} whose theme properties can be customized using {@link Theme} methods with the `"TooltipPanel"` and `"TooltipLabel"` respectively. For example:
212
268
  */
213
269
  tooltip_text: string;
270
+ /**
271
+ * The translation context used when translating this control's displayed text, if it has any. Also used when generating translation templates.
272
+ */
273
+ translation_context: string;
214
274
  set_accessibility_controls_nodes(value: Array<NodePath>): void;
215
275
  get_accessibility_controls_nodes(): Array<NodePath>;
216
276
  set_accessibility_described_by_nodes(value: Array<NodePath>): void;
@@ -233,6 +293,8 @@ declare class Control extends CanvasItem {
233
293
  is_auto_translating(): boolean;
234
294
  set_clip_contents(value: boolean): void;
235
295
  is_clipping_contents(): boolean;
296
+ set_custom_maximum_size(value: Vector2 | Vector2i): void;
297
+ get_custom_maximum_size(): Vector2;
236
298
  set_custom_minimum_size(value: Vector2 | Vector2i): void;
237
299
  get_custom_minimum_size(): Vector2;
238
300
  set_focus_behavior_recursive(value: int): void;
@@ -261,10 +323,28 @@ declare class Control extends CanvasItem {
261
323
  get_mouse_filter(): int;
262
324
  set_force_pass_scroll_events(value: boolean): void;
263
325
  is_force_pass_scroll_events(): boolean;
326
+ set_offset_transform_enabled(value: boolean): void;
327
+ is_offset_transform_enabled(): boolean;
328
+ set_offset_transform_pivot(value: Vector2 | Vector2i): void;
329
+ get_offset_transform_pivot(): Vector2;
330
+ set_offset_transform_pivot_ratio(value: Vector2 | Vector2i): void;
331
+ get_offset_transform_pivot_ratio(): Vector2;
332
+ set_offset_transform_position(value: Vector2 | Vector2i): void;
333
+ get_offset_transform_position(): Vector2;
334
+ set_offset_transform_position_ratio(value: Vector2 | Vector2i): void;
335
+ get_offset_transform_position_ratio(): Vector2;
336
+ set_offset_transform_rotation(value: float): void;
337
+ get_offset_transform_rotation(): float;
338
+ set_offset_transform_scale(value: Vector2 | Vector2i): void;
339
+ get_offset_transform_scale(): Vector2;
340
+ set_offset_transform_visual_only(value: boolean): void;
341
+ is_offset_transform_visual_only(): boolean;
264
342
  set_pivot_offset_ratio(value: Vector2 | Vector2i): void;
265
343
  get_pivot_offset_ratio(): Vector2;
266
344
  _set_position(value: Vector2 | Vector2i): void;
267
345
  get_position(): Vector2;
346
+ set_propagate_maximum_size(value: boolean): void;
347
+ is_propagating_maximum_size(): boolean;
268
348
  set_rotation(value: float): void;
269
349
  get_rotation(): float;
270
350
  set_rotation_degrees(value: float): void;
@@ -289,6 +369,8 @@ declare class Control extends CanvasItem {
289
369
  get_tooltip_auto_translate_mode(): int;
290
370
  set_tooltip_text(value: string | NodePath): void;
291
371
  get_tooltip_text(): string;
372
+ set_translation_context(value: string): void;
373
+ get_translation_context(): string;
292
374
 
293
375
  /** Return the description of the keyboard shortcuts and other contextual help for this control. */
294
376
  _accessibility_get_contextual_info(): string;
@@ -307,12 +389,24 @@ declare class Control extends CanvasItem {
307
389
  * Override this method to return a human-readable description of the position of the child `node` in the custom container, added to the {@link accessibility_name}.
308
390
  */
309
391
  _get_accessibility_container_name(node: Node): string;
392
+ /**
393
+ * Virtual method to be implemented by the user. Returns the cursor shape for the position `at_position` in the control's local coordinates, which will typically be used while hovering over this control. See {@link get_cursor_shape}.
394
+ * If not overridden, defaults to {@link mouse_default_cursor_shape}.
395
+ */
396
+ _get_cursor_shape(at_position: Vector2 | Vector2i): int;
310
397
  /**
311
398
  * Godot calls this method to get data that can be dragged and dropped onto controls that expect drop data. Returns `null` if there is no data to drag. Controls that want to receive drop data should implement {@link _can_drop_data} and {@link _drop_data}. `at_position` is local to this control. Drag may be forced with {@link force_drag}.
312
399
  * A preview that will follow the mouse that should represent the data can be set with {@link set_drag_preview}. A good time to set the preview is in this method.
313
400
  * **Note:** If the drag was initiated by a keyboard shortcut or {@link accessibility_drag}, `at_position` is set to {@link Vector2.INF}, and the currently selected item/text position should be used as the drag position.
314
401
  */
315
402
  _get_drag_data(at_position: Vector2 | Vector2i): unknown;
403
+ /**
404
+ * Virtual method to be implemented by the user. Returns the maximum size for this control. Alternative to {@link custom_maximum_size} for controlling maximum size via code. The actual maximum size will be the max value of these two (in each axis separately).
405
+ * If not overridden, defaults to {@link Vector2.ZERO}.
406
+ * **Note:** This method will not be called when the script is attached to a {@link Control} node that already overrides its maximum size (e.g. {@link ScrollContainer}).
407
+ * **Note:** It is recommended to use {@link get_bound_minimum_size} instead of {@link get_combined_minimum_size} when implementing this method, as the former respects maximum size limits when calculating the minimum size, while the latter does not.
408
+ */
409
+ _get_maximum_size(): Vector2;
316
410
  /**
317
411
  * Virtual method to be implemented by the user. Returns the minimum size for this control. Alternative to {@link custom_minimum_size} for controlling minimum size via code. The actual minimum size will be the max value of these two (in each axis separately).
318
412
  * If not overridden, defaults to {@link Vector2.ZERO}.
@@ -320,10 +414,14 @@ declare class Control extends CanvasItem {
320
414
  */
321
415
  _get_minimum_size(): Vector2;
322
416
  /**
323
- * Virtual method to be implemented by the user. Returns the tooltip text for the position `at_position` in control's local coordinates, which will typically appear when the cursor is resting over this control. See {@link get_tooltip}.
417
+ * Virtual method to be implemented by the user. Returns the tooltip text for the position `at_position` in the control's local coordinates, which will typically appear when the cursor is resting over this control. See {@link get_tooltip}.
324
418
  * **Note:** If this method returns an empty {@link String} and {@link _make_custom_tooltip} is not overridden, no tooltip is displayed.
325
419
  */
326
420
  _get_tooltip(at_position: Vector2 | Vector2i): string;
421
+ /**
422
+ * Return the auto-translation mode at the given `at_position`. If not implemented, the {@link tooltip_auto_translate_mode} property will be used instead.
423
+ */
424
+ _get_tooltip_auto_translate_mode_at(at_position: Vector2 | Vector2i): int;
327
425
  /**
328
426
  * Virtual method to be implemented by the user. Override this method to handle and accept inputs on UI elements. See also {@link accept_event}.
329
427
  * **Example:** Click on the control to print a message:
@@ -338,7 +436,7 @@ declare class Control extends CanvasItem {
338
436
  _gui_input(event: InputEvent): void;
339
437
  /**
340
438
  * Virtual method to be implemented by the user. Returns whether the given `point` is inside this control.
341
- * If not overridden, default behavior is checking if the point is within control's Rect.
439
+ * If not overridden, default behavior is checking if the point is within the control's Rect.
342
440
  * **Note:** If you want to check if a point is inside the control, you can use `Rect2(Vector2.ZERO, size).has_point(point)`.
343
441
  */
344
442
  _has_point(point: Vector2 | Vector2i): boolean;
@@ -425,16 +523,27 @@ declare class Control extends CanvasItem {
425
523
  get_anchor(side: int): float;
426
524
  /** Returns {@link offset_left} and {@link offset_top}. See also {@link position}. */
427
525
  get_begin(): Vector2;
428
- /** Returns combined minimum size from {@link custom_minimum_size} and {@link get_minimum_size}. */
526
+ /**
527
+ * Returns the bound value of {@link get_combined_minimum_size} by {@link get_combined_maximum_size}.
528
+ * This value is the true minimum size of the container, as the maximum size has priority over the minimum size.
529
+ * For example, if the combined minimum size is (100, 100) and the combined maximum size is (50, 150), the bound minimum size will be (50, 100).
530
+ */
531
+ get_bound_minimum_size(): Vector2;
532
+ /**
533
+ * Returns the combined maximum size from {@link custom_maximum_size} and {@link get_maximum_size}, as well as the {@link custom_maximum_size} of this node's parent if it is a Control node with {@link propagate_maximum_size} set to `true`.
534
+ */
535
+ get_combined_maximum_size(): Vector2;
536
+ /** Returns the combined minimum size from {@link custom_minimum_size} and {@link get_minimum_size}. */
429
537
  get_combined_minimum_size(): Vector2;
430
538
  /**
431
539
  * Returns the combined value of {@link pivot_offset} and {@link pivot_offset_ratio}, in pixels. The ratio is multiplied by the control's size.
432
540
  */
433
541
  get_combined_pivot_offset(): Vector2;
434
542
  /**
435
- * Returns the mouse cursor shape for this control when hovered over `position` in local coordinates. For most controls, this is the same as {@link mouse_default_cursor_shape}, but some built-in controls implement more complex logic.
543
+ * Returns the mouse cursor shape for this control when hovered over `at_position` in local coordinates. For most controls, this is the same as {@link mouse_default_cursor_shape}, but some built-in controls implement more complex logic.
544
+ * You can override {@link _get_cursor_shape} to implement custom behavior for this method.
436
545
  */
437
- get_cursor_shape(position?: Vector2 | Vector2i): int;
546
+ get_cursor_shape(at_position?: Vector2 | Vector2i): int;
438
547
  /** Returns {@link offset_right} and {@link offset_bottom}. */
439
548
  get_end(): Vector2;
440
549
  /**
@@ -452,6 +561,8 @@ declare class Control extends CanvasItem {
452
561
  * **Note:** Setting {@link Viewport.gui_snap_controls_to_pixels} to `true` can lead to rounding inaccuracies between the displayed control and the returned {@link Rect2}.
453
562
  */
454
563
  get_global_rect(): Rect2;
564
+ /** Returns the maximum size for this control. See {@link custom_maximum_size}. */
565
+ get_maximum_size(): Vector2;
455
566
  /** Returns the minimum size for this control. See {@link custom_minimum_size}. */
456
567
  get_minimum_size(): Vector2;
457
568
  /**
@@ -524,8 +635,8 @@ declare class Control extends CanvasItem {
524
635
  */
525
636
  get_theme_stylebox(name: string, theme_type?: string): StyleBox | null;
526
637
  /**
527
- * Returns the tooltip text for the position `at_position` in control's local coordinates, which will typically appear when the cursor is resting over this control. By default, it returns {@link tooltip_text}.
528
- * This method can be overridden to customize its behavior. See {@link _get_tooltip}.
638
+ * Returns the tooltip text for the position `at_position` in the control's local coordinates, which will typically appear when the cursor is resting over this control. By default, it returns {@link tooltip_text}.
639
+ * You can override {@link _get_tooltip} to implement custom behavior for this method.
529
640
  * **Note:** If this method returns an empty {@link String} and {@link _make_custom_tooltip} is not overridden, no tooltip is displayed.
530
641
  */
531
642
  get_tooltip(at_position?: Vector2 | Vector2i): string;
@@ -535,7 +646,7 @@ declare class Control extends CanvasItem {
535
646
  grab_click_focus(): void;
536
647
  /**
537
648
  * Steal the focus from another control and become the focused control (see {@link focus_mode}).
538
- * If `hide_focus` is `true`, the control will not visually show its focused state. Has no effect for {@link LineEdit} and {@link TextEdit} when {@link ProjectSettings.gui/common/show_focus_state_on_pointer_event} is set to `Control Supports Keyboard Input`, or for any control when it is set to `Always`.
649
+ * If `hide_focus` is `true`, the control will not visually show its focused state. Has no effect for {@link LineEdit} and {@link TextEdit} when {@link ProjectSettings.gui/common/show_focus_state_on_pointer_event} is set to `Text Input Controls`, or for any control when it is set to `Always`.
539
650
  * **Note:** Using this method together with {@link Callable.call_deferred} makes it more reliable, especially when called inside {@link Node._ready}.
540
651
  */
541
652
  grab_focus(hide_focus?: boolean): void;
@@ -708,7 +819,12 @@ declare class Control extends CanvasItem {
708
819
  */
709
820
  set_size(size: Vector2 | Vector2i, keep_offsets?: boolean): void;
710
821
  /**
711
- * Invalidates the size cache in this node and in parent nodes up to top level. Intended to be used with {@link get_minimum_size} when the return value is changed. Setting {@link custom_minimum_size} directly calls this method automatically.
822
+ * Invalidates the maximum size cache in this node and in parent nodes up to top level. Intended to be used with {@link get_maximum_size} when the return value is changed. Setting {@link custom_maximum_size} directly calls this method automatically.
823
+ * **Note:** Calling this method also calls {@link update_minimum_size} since the combined minimum size may be affected by the maximum size change.
824
+ */
825
+ update_maximum_size(): void;
826
+ /**
827
+ * Invalidates the minimum size cache in this node and in parent nodes up to top level. Intended to be used with {@link get_minimum_size} when the return value is changed. Setting {@link custom_minimum_size} directly calls this method automatically.
712
828
  */
713
829
  update_minimum_size(): void;
714
830
  /**
@@ -723,6 +839,8 @@ declare class Control extends CanvasItem {
723
839
  focus_exited: Signal<[]>;
724
840
  /** Emitted when the node receives an {@link InputEvent}. */
725
841
  gui_input: Signal<[InputEvent]>;
842
+ /** Emitted when the node's maximum size changes. */
843
+ maximum_size_changed: Signal<[]>;
726
844
  /** Emitted when the node's minimum size changes. */
727
845
  minimum_size_changed: Signal<[]>;
728
846
  /**
@@ -19,6 +19,31 @@ declare class Curve extends Resource {
19
19
  min_value: float;
20
20
  /** The number of points describing the curve. */
21
21
  point_count: int;
22
+ /**
23
+ * The left {@link TangentMode} for the point at `index`.
24
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
25
+ */
26
+ 'point_{index}/left_mode': int;
27
+ /**
28
+ * The left tangent angle (in degrees) for the point at `index`.
29
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
30
+ */
31
+ 'point_{index}/left_tangent': float;
32
+ /**
33
+ * The position of the point at `index`.
34
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
35
+ */
36
+ 'point_{index}/position': Vector2;
37
+ /**
38
+ * The right {@link TangentMode} for the point at `index`.
39
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
40
+ */
41
+ 'point_{index}/right_mode': int;
42
+ /**
43
+ * The right tangent angle (in degrees) for the point at `index`.
44
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
45
+ */
46
+ 'point_{index}/right_tangent': float;
22
47
  set_bake_resolution(value: int): void;
23
48
  get_bake_resolution(): int;
24
49
  set_max_domain(value: float): void;
@@ -70,7 +95,7 @@ declare class Curve extends Resource {
70
95
  set_point_left_mode(index: int, mode: int): void;
71
96
  /** Sets the left tangent angle for the point at `index` to `tangent`. */
72
97
  set_point_left_tangent(index: int, tangent: float): void;
73
- /** Sets the offset from `0.5`. */
98
+ /** Assigns the horizontal position `offset` to the point at `index`. */
74
99
  set_point_offset(index: int, offset: float): int;
75
100
  /** Sets the right {@link TangentMode} for the point at `index` to `mode`. */
76
101
  set_point_right_mode(index: int, mode: int): void;
@@ -9,6 +9,21 @@ declare class Curve2D extends Resource {
9
9
  bake_interval: float;
10
10
  /** The number of points describing the curve. */
11
11
  point_count: int;
12
+ /**
13
+ * The position of the control point leading to the vertex at `index`.
14
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
15
+ */
16
+ 'point_{index}/in': Vector2;
17
+ /**
18
+ * The position of the control point leading out of the vertex at `index`.
19
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
20
+ */
21
+ 'point_{index}/out': Vector2;
22
+ /**
23
+ * The position of for the vertex at `index`.
24
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
25
+ */
26
+ 'point_{index}/position': Vector2;
12
27
  set_bake_interval(value: float): void;
13
28
  get_bake_interval(): float;
14
29
  set_point_count(value: int): void;
@@ -13,6 +13,26 @@ declare class Curve3D extends Resource {
13
13
  closed: boolean;
14
14
  /** The number of points describing the curve. */
15
15
  point_count: int;
16
+ /**
17
+ * The position of the control point leading to the vertex at `index`.
18
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
19
+ */
20
+ 'point_{index}/in': Vector3;
21
+ /**
22
+ * The position of the control point leading out of the vertex at `index`.
23
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
24
+ */
25
+ 'point_{index}/out': Vector3;
26
+ /**
27
+ * The position of for the vertex at `index`.
28
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
29
+ */
30
+ 'point_{index}/position': Vector3;
31
+ /**
32
+ * The tilt angle in radians for the point at `index`.
33
+ * **Note:** `index` is a value in the `0 .. point_count - 1` range.
34
+ */
35
+ 'point_{index}/tilt': float;
16
36
  /**
17
37
  * If `true`, the curve will bake up vectors used for orientation. This is used when {@link PathFollow3D.rotation_mode} is set to {@link PathFollow3D.ROTATION_ORIENTED}. Changing it forces the cache to be recomputed.
18
38
  */
@@ -7,6 +7,16 @@ declare class DPITexture extends Texture2D {
7
7
  base_scale: float;
8
8
  /** If set, remaps texture colors according to {@link Color}-{@link Color} map. */
9
9
  color_map: Dictionary;
10
+ /**
11
+ * If `true`, puts pixels of the same surrounding color in transition from transparent to opaque areas. For textures displayed with bilinear filtering, this helps to reduce the outline effect when exporting images from an image editor.
12
+ */
13
+ fix_alpha_border: boolean;
14
+ /**
15
+ * An alternative to fixing darkened borders with {@link fix_alpha_border} is to use premultiplied alpha. By enabling this option, the texture will be converted to this format. A premultiplied alpha texture requires specific materials to be displayed correctly:
16
+ * - In 2D, a {@link CanvasItemMaterial} will need to be created and configured to use the {@link CanvasItemMaterial.BLEND_MODE_PREMULT_ALPHA} blend mode on {@link CanvasItem}s that use this texture. In custom `canvas_item` shaders, `render_mode blend_premul_alpha;` should be used.
17
+ * - In 3D, a {@link BaseMaterial3D} will need to be created and configured to use the {@link BaseMaterial3D.BLEND_MODE_PREMULT_ALPHA} blend mode on materials that use this texture. In custom `spatial` shaders, `render_mode blend_premul_alpha;` should be used.
18
+ */
19
+ premult_alpha: boolean;
10
20
  /**
11
21
  * <member name="saturation" type="float" setter="set_saturation" getter="get_saturation" default="1.0">
12
22
  * Overrides texture saturation.
@@ -16,6 +26,10 @@ declare class DPITexture extends Texture2D {
16
26
  get_base_scale(): float;
17
27
  set_color_map(value: Dictionary): void;
18
28
  get_color_map(): Dictionary;
29
+ set_fix_alpha_border(value: boolean): void;
30
+ get_fix_alpha_border(): boolean;
31
+ set_premult_alpha(value: boolean): void;
32
+ get_premult_alpha(): boolean;
19
33
 
20
34
  /**
21
35
  * Creates a new {@link DPITexture} and initializes it by allocating and setting the SVG data to `source`.
@@ -63,6 +63,7 @@ declare class Decal extends VisualInstance3D {
63
63
  * {@link Texture2D} storing ambient occlusion, roughness, and metallic for the decal. Use this to add extra detail to decals.
64
64
  * **Note:** Unlike {@link BaseMaterial3D} whose filter mode can be adjusted on a per-material basis, the filter mode for {@link Decal} textures is set globally with {@link ProjectSettings.rendering/textures/decals/filter}.
65
65
  * **Note:** Setting this texture alone will not result in a visible decal, as {@link texture_albedo} must also be set. To create an ORM-only decal, load an albedo texture into {@link texture_albedo} and set {@link albedo_mix} to `0.0`. The albedo texture's alpha channel will be used to determine where the underlying surface's ORM map should be overridden (and its intensity).
66
+ * **Note:** Due to technical limitations, modifying the underlying surface's roughness using {@link texture_orm} does *not* affect screen-space reflections ({@link Environment.ssr_enabled}), reflections from {@link VoxelGI}, and reflections from SDFGI ({@link Environment.sdfgi_enabled}). Only reflections from {@link ReflectionProbe}s are affected.
66
67
  */
67
68
  texture_orm: Texture2D | null;
68
69
  /**
@@ -32,6 +32,7 @@ declare interface Object {
32
32
  find_key(value: unknown): unknown;
33
33
  /**
34
34
  * Returns the corresponding value for the given `key` in the dictionary. If the `key` does not exist, returns `default`, or `null` if the parameter is omitted.
35
+ * **Note:** If the `default` argument is computationally expensive or has unwanted side effects, consider using the {@link has} method instead:
35
36
  */
36
37
  get(key: unknown, default_?: unknown): unknown;
37
38
  /**
@@ -92,12 +92,17 @@ declare class DirAccess extends RefCounted {
92
92
  * On other platforms, the method returns 0.
93
93
  */
94
94
  static get_drive_count(): int;
95
+ /**
96
+ * On Windows, returns the label of the drive (partition) passed as an argument.
97
+ * On other platforms, or if the requested drive does not exist, returns an empty String.
98
+ */
99
+ static get_drive_label(idx: int): string;
95
100
  /**
96
101
  * On Windows, returns the name of the drive (partition) passed as an argument (e.g. `C:`).
97
102
  * On macOS, returns the path to the mounted volume passed as an argument.
98
103
  * On Linux, returns the path to the mounted volume or GTK 3 bookmark passed as an argument.
99
104
  * On Android (API level 30+), returns the path to the mounted volume as an argument.
100
- * On other platforms, or if the requested drive does not exist, the method returns an empty String.
105
+ * On other platforms, or if the requested drive does not exist, returns an empty String.
101
106
  */
102
107
  static get_drive_name(idx: int): string;
103
108
  /**