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.
- package/README.md +4 -2
- package/dist/cli/convert.d.ts.map +1 -1
- package/dist/cli/convert.js +15 -5
- package/dist/cli/convert.js.map +1 -1
- package/dist/converter/ts-to-gd/access-rewrite.d.ts +40 -0
- package/dist/converter/ts-to-gd/access-rewrite.d.ts.map +1 -0
- package/dist/converter/ts-to-gd/access-rewrite.js +124 -0
- package/dist/converter/ts-to-gd/access-rewrite.js.map +1 -0
- package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -1
- package/dist/converter/ts-to-gd/expressions.js +31 -7
- package/dist/converter/ts-to-gd/expressions.js.map +1 -1
- package/dist/watcher/check.d.ts +87 -0
- package/dist/watcher/check.d.ts.map +1 -0
- package/dist/watcher/check.js +209 -0
- package/dist/watcher/check.js.map +1 -0
- package/dist/watcher/heal.d.ts +66 -0
- package/dist/watcher/heal.d.ts.map +1 -0
- package/dist/watcher/heal.js +132 -0
- package/dist/watcher/heal.js.map +1 -0
- package/dist/watcher/index.d.ts +1 -0
- package/dist/watcher/index.d.ts.map +1 -1
- package/dist/watcher/index.js +48 -52
- package/dist/watcher/index.js.map +1 -1
- package/package.json +1 -1
- package/typings/classes/AccessibilityServer.d.ts +405 -0
- package/typings/classes/AnimationLibrary.d.ts +4 -4
- package/typings/classes/AnimationNodeBlendSpace1D.d.ts +45 -4
- package/typings/classes/AnimationNodeBlendSpace2D.d.ts +45 -4
- package/typings/classes/Area3D.d.ts +14 -7
- package/typings/classes/AreaLight3D.d.ts +37 -0
- package/typings/classes/ArrayMesh.d.ts +15 -0
- package/typings/classes/AudioEffectAmplify.d.ts +2 -2
- package/typings/classes/AudioEffectBandLimitFilter.d.ts +1 -1
- package/typings/classes/AudioEffectBandPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectCapture.d.ts +10 -9
- package/typings/classes/AudioEffectChorus.d.ts +57 -28
- package/typings/classes/AudioEffectCompressor.d.ts +11 -9
- package/typings/classes/AudioEffectDelay.d.ts +21 -15
- package/typings/classes/AudioEffectDistortion.d.ts +19 -10
- package/typings/classes/AudioEffectEQ.d.ts +2 -2
- package/typings/classes/AudioEffectEQ10.d.ts +2 -2
- package/typings/classes/AudioEffectEQ21.d.ts +2 -2
- package/typings/classes/AudioEffectEQ6.d.ts +2 -2
- package/typings/classes/AudioEffectFilter.d.ts +25 -9
- package/typings/classes/AudioEffectHardLimiter.d.ts +8 -5
- package/typings/classes/AudioEffectHighPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectHighShelfFilter.d.ts +1 -1
- package/typings/classes/AudioEffectInstance.d.ts +1 -1
- package/typings/classes/AudioEffectLimiter.d.ts +9 -4
- package/typings/classes/AudioEffectLowPassFilter.d.ts +1 -1
- package/typings/classes/AudioEffectLowShelfFilter.d.ts +1 -1
- package/typings/classes/AudioEffectNotchFilter.d.ts +1 -1
- package/typings/classes/AudioEffectPanner.d.ts +7 -2
- package/typings/classes/AudioEffectPhaser.d.ts +9 -7
- package/typings/classes/AudioEffectPitchShift.d.ts +3 -3
- package/typings/classes/AudioEffectReverb.d.ts +17 -8
- package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +4 -5
- package/typings/classes/AudioEffectStereoEnhance.d.ts +7 -4
- package/typings/classes/AudioServer.d.ts +2 -2
- package/typings/classes/AudioStreamPlaybackResampled.d.ts +8 -0
- package/typings/classes/AudioStreamRandomizer.d.ts +10 -0
- package/typings/classes/AwaitTweener.d.ts +10 -0
- package/typings/classes/BaseButton.d.ts +1 -1
- package/typings/classes/Basis.d.ts +6 -2
- package/typings/classes/BlitMaterial.d.ts +22 -0
- package/typings/classes/CPUParticles2D.d.ts +2 -2
- package/typings/classes/CPUParticles3D.d.ts +2 -2
- package/typings/classes/Camera3D.d.ts +1 -1
- package/typings/classes/CameraAttributes.d.ts +1 -0
- package/typings/classes/CameraFeed.d.ts +4 -0
- package/typings/classes/CanvasItem.d.ts +16 -1
- package/typings/classes/CodeEdit.d.ts +6 -0
- package/typings/classes/CollisionObject2D.d.ts +6 -0
- package/typings/classes/CollisionPolygon2D.d.ts +5 -0
- package/typings/classes/CollisionShape2D.d.ts +5 -0
- package/typings/classes/Container.d.ts +7 -0
- package/typings/classes/Control.d.ts +127 -9
- package/typings/classes/Curve.d.ts +26 -1
- package/typings/classes/Curve2D.d.ts +15 -0
- package/typings/classes/Curve3D.d.ts +20 -0
- package/typings/classes/DPITexture.d.ts +14 -0
- package/typings/classes/Decal.d.ts +1 -0
- package/typings/classes/Dictionary.d.ts +1 -0
- package/typings/classes/DirAccess.d.ts +6 -1
- package/typings/classes/DisplayServer.d.ts +161 -9
- package/typings/classes/DrawableTexture2D.d.ts +43 -0
- package/typings/classes/EditorCommandPalette.d.ts +0 -2
- package/typings/classes/EditorContextMenuPlugin.d.ts +4 -0
- package/typings/classes/EditorDock.d.ts +10 -5
- package/typings/classes/EditorExportPlatform.d.ts +4 -2
- package/typings/classes/EditorExportPlugin.d.ts +7 -0
- package/typings/classes/EditorFeatureProfile.d.ts +1 -1
- package/typings/classes/EditorFileSystem.d.ts +2 -0
- package/typings/classes/EditorInspector.d.ts +10 -0
- package/typings/classes/EditorInterface.d.ts +6 -4
- package/typings/classes/EditorNode3DGizmoPlugin.d.ts +4 -0
- package/typings/classes/EditorPlugin.d.ts +4 -4
- package/typings/classes/EditorResourcePicker.d.ts +2 -1
- package/typings/classes/EditorSceneFormatImporter.d.ts +23 -0
- package/typings/classes/EditorSettings.d.ts +241 -140
- package/typings/classes/EditorSpinSlider.d.ts +6 -0
- package/typings/classes/EditorTranslationParserPlugin.d.ts +4 -0
- package/typings/classes/EditorVCSInterface.d.ts +6 -2
- package/typings/classes/Environment.d.ts +7 -2
- package/typings/classes/FileAccess.d.ts +1 -1
- package/typings/classes/FileDialog.d.ts +16 -1
- package/typings/classes/FoldableContainer.d.ts +1 -1
- package/typings/classes/Font.d.ts +15 -3
- package/typings/classes/FontVariation.d.ts +10 -0
- package/typings/classes/GDScript.d.ts +8 -0
- package/typings/classes/GDScriptLanguageProtocol.d.ts +25 -0
- package/typings/classes/GDScriptSyntaxHighlighter.d.ts +6 -0
- package/typings/classes/GDScriptTextDocument.d.ts +27 -0
- package/typings/classes/GDScriptWorkspace.d.ts +17 -0
- package/typings/classes/GPUParticles2D.d.ts +2 -2
- package/typings/classes/GPUParticles3D.d.ts +19 -2
- package/typings/classes/Geometry2D.d.ts +2 -2
- package/typings/classes/GeometryInstance3D.d.ts +1 -1
- package/typings/classes/GradientTexture2D.d.ts +2 -0
- package/typings/classes/Image.d.ts +7 -4
- package/typings/classes/ImageFormatLoader.d.ts +5 -0
- package/typings/classes/ImageTexture.d.ts +0 -2
- package/typings/classes/ImporterMesh.d.ts +6 -0
- package/typings/classes/Input.d.ts +159 -15
- package/typings/classes/InputEvent.d.ts +8 -0
- package/typings/classes/InputEventGesture.d.ts +2 -3
- package/typings/classes/InputEventMouse.d.ts +2 -3
- package/typings/classes/InputEventMouseMotion.d.ts +2 -2
- package/typings/classes/InputEventWithModifiers.d.ts +2 -3
- package/typings/classes/InputMap.d.ts +3 -0
- package/typings/classes/ItemList.d.ts +29 -2
- package/typings/classes/IterateIK3D.d.ts +6 -3
- package/typings/classes/JavaClassWrapper.d.ts +13 -0
- package/typings/classes/JavaScriptBridge.d.ts +1 -1
- package/typings/classes/Joint3D.d.ts +1 -0
- package/typings/classes/Label.d.ts +1 -0
- package/typings/classes/LabelSettings.d.ts +25 -0
- package/typings/classes/Light3D.d.ts +1 -1
- package/typings/classes/Logger.d.ts +1 -1
- package/typings/classes/LookAtModifier3D.d.ts +2 -1
- package/typings/classes/MainLoop.d.ts +4 -0
- package/typings/classes/MenuButton.d.ts +35 -0
- package/typings/classes/MeshLibrary.d.ts +2 -0
- package/typings/classes/MovieWriter.d.ts +2 -0
- package/typings/classes/MultiplayerPeerExtension.d.ts +9 -9
- package/typings/classes/NativeMenu.d.ts +10 -3
- package/typings/classes/Node.d.ts +15 -5
- package/typings/classes/Node3D.d.ts +6 -4
- package/typings/classes/OS.d.ts +3 -3
- package/typings/classes/Object.d.ts +9 -3
- package/typings/classes/OptimizedTranslation.d.ts +2 -2
- package/typings/classes/OptionButton.d.ts +51 -1
- package/typings/classes/PCKPacker.d.ts +4 -0
- package/typings/classes/PacketPeerExtension.d.ts +1 -1
- package/typings/classes/ParticleProcessMaterial.d.ts +63 -0
- package/typings/classes/PhysicsDirectBodyState2D.d.ts +2 -1
- package/typings/classes/PhysicsDirectBodyState3D.d.ts +2 -1
- package/typings/classes/PhysicsDirectSpaceState2DExtension.d.ts +6 -6
- package/typings/classes/PhysicsDirectSpaceState3DExtension.d.ts +6 -6
- package/typings/classes/PhysicsServer2D.d.ts +2 -2
- package/typings/classes/PhysicsServer2DExtension.d.ts +6 -6
- package/typings/classes/PhysicsServer3D.d.ts +145 -42
- package/typings/classes/PhysicsServer3DExtension.d.ts +1 -1
- package/typings/classes/PopupMenu.d.ts +74 -8
- package/typings/classes/PopupPanel.d.ts +2 -0
- package/typings/classes/PortableCompressedTexture2D.d.ts +0 -2
- package/typings/classes/ProjectSettings.d.ts +62 -10
- package/typings/classes/Quaternion.d.ts +2 -2
- package/typings/classes/RDAccelerationStructureGeometry.d.ts +42 -0
- package/typings/classes/RDAccelerationStructureInstance.d.ts +34 -0
- package/typings/classes/RDHitGroup.d.ts +20 -0
- package/typings/classes/RDPipelineShader.d.ts +14 -0
- package/typings/classes/RDShaderSPIRV.d.ts +30 -0
- package/typings/classes/RDShaderSource.d.ts +10 -0
- package/typings/classes/RandomNumberGenerator.d.ts +4 -2
- package/typings/classes/RenderSceneBuffersConfiguration.d.ts +4 -1
- package/typings/classes/RenderingDevice.d.ts +175 -1
- package/typings/classes/RenderingServer.d.ts +264 -14
- package/typings/classes/Resource.d.ts +4 -2
- package/typings/classes/ResourceImporterDynamicFont.d.ts +3 -1
- package/typings/classes/ResourceImporterOBJ.d.ts +1 -1
- package/typings/classes/ResourceImporterSVG.d.ts +10 -0
- package/typings/classes/ResourceImporterScene.d.ts +11 -3
- package/typings/classes/ResourceImporterTexture.d.ts +2 -2
- package/typings/classes/RichTextLabel.d.ts +14 -6
- package/typings/classes/Script.d.ts +2 -0
- package/typings/classes/ScriptEditor.d.ts +13 -0
- package/typings/classes/ScriptLanguageExtension.d.ts +7 -0
- package/typings/classes/ScrollContainer.d.ts +17 -5
- package/typings/classes/Shader.d.ts +2 -0
- package/typings/classes/Shape3D.d.ts +1 -0
- package/typings/classes/SkeletonModification2DJiggle.d.ts +4 -0
- package/typings/classes/SplitContainer.d.ts +6 -0
- package/typings/classes/SpringBoneSimulator3D.d.ts +4 -2
- package/typings/classes/SpriteFrames.d.ts +20 -4
- package/typings/classes/StreamPeerExtension.d.ts +2 -2
- package/typings/classes/String.d.ts +1 -1
- package/typings/classes/SubViewport.d.ts +4 -0
- package/typings/classes/TabBar.d.ts +20 -0
- package/typings/classes/TabContainer.d.ts +21 -3
- package/typings/classes/TextEdit.d.ts +5 -2
- package/typings/classes/TextServer.d.ts +25 -1
- package/typings/classes/TextServerExtension.d.ts +25 -1
- package/typings/classes/Texture2D.d.ts +14 -0
- package/typings/classes/TextureRect.d.ts +4 -1
- package/typings/classes/TileSet.d.ts +3 -1
- package/typings/classes/Tree.d.ts +25 -9
- package/typings/classes/TreeItem.d.ts +17 -2
- package/typings/classes/Tween.d.ts +13 -0
- package/typings/classes/UndoRedo.d.ts +2 -2
- package/typings/classes/Vector2.d.ts +4 -2
- package/typings/classes/Vector2i.d.ts +4 -2
- package/typings/classes/Vector3.d.ts +4 -2
- package/typings/classes/Vector3i.d.ts +4 -2
- package/typings/classes/Vector4.d.ts +4 -2
- package/typings/classes/Vector4i.d.ts +4 -2
- package/typings/classes/Viewport.d.ts +27 -1
- package/typings/classes/VirtualJoystick.d.ts +94 -0
- package/typings/classes/VoxelGIData.d.ts +10 -0
- package/typings/classes/Window.d.ts +41 -4
- package/typings/classes/XRCamera3D.d.ts +1 -1
- package/typings/classes/XRServer.d.ts +2 -0
- package/typings/classes/_globals.d.ts +55 -18
- package/typings/classes/index.d.ts +15 -112
- package/typings/godot-class-registry.json +2120 -3693
- package/typings/classes/VisualShader.d.ts +0 -110
- package/typings/classes/VisualShaderNode.d.ts +0 -63
- package/typings/classes/VisualShaderNodeBillboard.d.ts +0 -28
- package/typings/classes/VisualShaderNodeBooleanConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeBooleanParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeClamp.d.ts +0 -26
- package/typings/classes/VisualShaderNodeColorConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeColorFunc.d.ts +0 -32
- package/typings/classes/VisualShaderNodeColorOp.d.ts +0 -32
- package/typings/classes/VisualShaderNodeColorParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeComment.d.ts +0 -12
- package/typings/classes/VisualShaderNodeCompare.d.ts +0 -68
- package/typings/classes/VisualShaderNodeConstant.d.ts +0 -6
- package/typings/classes/VisualShaderNodeCubemap.d.ts +0 -43
- package/typings/classes/VisualShaderNodeCubemapParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeCurveTexture.d.ts +0 -10
- package/typings/classes/VisualShaderNodeCurveXYZTexture.d.ts +0 -10
- package/typings/classes/VisualShaderNodeCustom.d.ts +0 -122
- package/typings/classes/VisualShaderNodeDerivativeFunc.d.ts +0 -56
- package/typings/classes/VisualShaderNodeDeterminant.d.ts +0 -6
- package/typings/classes/VisualShaderNodeDistanceFade.d.ts +0 -6
- package/typings/classes/VisualShaderNodeDotProduct.d.ts +0 -6
- package/typings/classes/VisualShaderNodeExpression.d.ts +0 -12
- package/typings/classes/VisualShaderNodeFaceForward.d.ts +0 -8
- package/typings/classes/VisualShaderNodeFloatConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeFloatFunc.d.ts +0 -108
- package/typings/classes/VisualShaderNodeFloatOp.d.ts +0 -36
- package/typings/classes/VisualShaderNodeFloatParameter.d.ts +0 -52
- package/typings/classes/VisualShaderNodeFrame.d.ts +0 -35
- package/typings/classes/VisualShaderNodeFresnel.d.ts +0 -6
- package/typings/classes/VisualShaderNodeGlobalExpression.d.ts +0 -6
- package/typings/classes/VisualShaderNodeGroupBase.d.ts +0 -60
- package/typings/classes/VisualShaderNodeIf.d.ts +0 -8
- package/typings/classes/VisualShaderNodeInput.d.ts +0 -20
- package/typings/classes/VisualShaderNodeIntConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeIntFunc.d.ts +0 -24
- package/typings/classes/VisualShaderNodeIntOp.d.ts +0 -48
- package/typings/classes/VisualShaderNodeIntParameter.d.ts +0 -58
- package/typings/classes/VisualShaderNodeIs.d.ts +0 -18
- package/typings/classes/VisualShaderNodeLinearSceneDepth.d.ts +0 -6
- package/typings/classes/VisualShaderNodeMix.d.ts +0 -28
- package/typings/classes/VisualShaderNodeMultiplyAdd.d.ts +0 -22
- package/typings/classes/VisualShaderNodeOuterProduct.d.ts +0 -6
- package/typings/classes/VisualShaderNodeOutput.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParameter.d.ts +0 -32
- package/typings/classes/VisualShaderNodeParameterRef.d.ts +0 -10
- package/typings/classes/VisualShaderNodeParticleAccelerator.d.ts +0 -20
- package/typings/classes/VisualShaderNodeParticleBoxEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleConeVelocity.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleEmit.d.ts +0 -22
- package/typings/classes/VisualShaderNodeParticleEmitter.d.ts +0 -12
- package/typings/classes/VisualShaderNodeParticleMeshEmitter.d.ts +0 -20
- package/typings/classes/VisualShaderNodeParticleMultiplyByAxisAngle.d.ts +0 -10
- package/typings/classes/VisualShaderNodeParticleOutput.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleRandomness.d.ts +0 -22
- package/typings/classes/VisualShaderNodeParticleRingEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeParticleSphereEmitter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeProximityFade.d.ts +0 -6
- package/typings/classes/VisualShaderNodeRandomRange.d.ts +0 -6
- package/typings/classes/VisualShaderNodeRemap.d.ts +0 -33
- package/typings/classes/VisualShaderNodeReroute.d.ts +0 -8
- package/typings/classes/VisualShaderNodeResizableBase.d.ts +0 -10
- package/typings/classes/VisualShaderNodeRotationByAxis.d.ts +0 -6
- package/typings/classes/VisualShaderNodeSDFRaymarch.d.ts +0 -6
- package/typings/classes/VisualShaderNodeSDFToScreenUV.d.ts +0 -8
- package/typings/classes/VisualShaderNodeSample3D.d.ts +0 -18
- package/typings/classes/VisualShaderNodeScreenNormalWorldSpace.d.ts +0 -6
- package/typings/classes/VisualShaderNodeScreenUVToSDF.d.ts +0 -8
- package/typings/classes/VisualShaderNodeSmoothStep.d.ts +0 -28
- package/typings/classes/VisualShaderNodeStep.d.ts +0 -28
- package/typings/classes/VisualShaderNodeSwitch.d.ts +0 -30
- package/typings/classes/VisualShaderNodeTexture.d.ts +0 -57
- package/typings/classes/VisualShaderNodeTexture2DArray.d.ts +0 -12
- package/typings/classes/VisualShaderNodeTexture2DArrayParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTexture2DParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTexture3D.d.ts +0 -12
- package/typings/classes/VisualShaderNodeTexture3DParameter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureParameter.d.ts +0 -104
- package/typings/classes/VisualShaderNodeTextureParameterTriplanar.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureSDF.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTextureSDFNormal.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformCompose.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeTransformDecompose.d.ts +0 -6
- package/typings/classes/VisualShaderNodeTransformFunc.d.ts +0 -18
- package/typings/classes/VisualShaderNodeTransformOp.d.ts +0 -32
- package/typings/classes/VisualShaderNodeTransformParameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeTransformVecMult.d.ts +0 -22
- package/typings/classes/VisualShaderNodeUIntConstant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeUIntFunc.d.ts +0 -20
- package/typings/classes/VisualShaderNodeUIntOp.d.ts +0 -48
- package/typings/classes/VisualShaderNodeUIntParameter.d.ts +0 -16
- package/typings/classes/VisualShaderNodeUVFunc.d.ts +0 -22
- package/typings/classes/VisualShaderNodeUVPolarCoord.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVarying.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVaryingGetter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVaryingSetter.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVec2Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec2Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVec3Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec3Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVec4Constant.d.ts +0 -10
- package/typings/classes/VisualShaderNodeVec4Parameter.d.ts +0 -14
- package/typings/classes/VisualShaderNodeVectorBase.d.ts +0 -20
- package/typings/classes/VisualShaderNodeVectorCompose.d.ts +0 -8
- package/typings/classes/VisualShaderNodeVectorDecompose.d.ts +0 -8
- package/typings/classes/VisualShaderNodeVectorDistance.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVectorFunc.d.ts +0 -84
- package/typings/classes/VisualShaderNodeVectorLen.d.ts +0 -6
- package/typings/classes/VisualShaderNodeVectorOp.d.ts +0 -42
- package/typings/classes/VisualShaderNodeVectorRefract.d.ts +0 -8
- package/typings/classes/VisualShaderNodeWorldPositionFromDepth.d.ts +0 -8
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
declare class EditorSpinSlider extends Range {
|
|
6
6
|
/** The state in which the control used to manipulate the value will be. */
|
|
7
7
|
control_state: int;
|
|
8
|
+
/**
|
|
9
|
+
* If `true`, changing via dragging is applied only at the end of the input (for example, when the user releases a mouse button).
|
|
10
|
+
*/
|
|
11
|
+
deferred_drag_mode: boolean;
|
|
8
12
|
/**
|
|
9
13
|
* If `true`, the {@link EditorSpinSlider} is considered to be editing an integer value. If `false`, the {@link EditorSpinSlider} is considered to be editing a floating-point value. This is used to determine whether a slider should be drawn by default. The slider is only drawn for floats; integers use up-down arrows similar to {@link SpinBox} instead, unless {@link control_state} is set to {@link CONTROL_STATE_PREFER_SLIDER}. It will also use {@link EditorSettings.interface/inspector/integer_drag_speed} instead of {@link EditorSettings.interface/inspector/float_drag_speed} if the slider is available.
|
|
10
14
|
*/
|
|
@@ -28,6 +32,8 @@ declare class EditorSpinSlider extends Range {
|
|
|
28
32
|
size_flags_vertical: int;
|
|
29
33
|
set_control_state(value: int): void;
|
|
30
34
|
get_control_state(): int;
|
|
35
|
+
set_deferred_drag_mode_enabled(value: boolean): void;
|
|
36
|
+
is_deferred_drag_mode_enabled(): boolean;
|
|
31
37
|
set_editing_integer(value: boolean): void;
|
|
32
38
|
is_editing_integer(): boolean;
|
|
33
39
|
set_flat(value: boolean): void;
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
* Plugin for adding custom parsers to extract strings that are to be translated from custom files (.csv, .json etc.).
|
|
6
6
|
*/
|
|
7
7
|
declare class EditorTranslationParserPlugin extends RefCounted {
|
|
8
|
+
/**
|
|
9
|
+
* Called after parsing all files. You can modify the `strings` array to add or remove entries from the final list of strings, then return it after modifications. Each entry is a {@link PackedStringArray} like explained in the {@link EditorTranslationParserPlugin}'s description.
|
|
10
|
+
*/
|
|
11
|
+
_customize_strings(strings: Array<PackedStringArray>): Array<PackedStringArray>;
|
|
8
12
|
/** Gets the list of file extensions to associate with this parser, e.g. `["csv"]`. */
|
|
9
13
|
_get_recognized_extensions(): PackedStringArray;
|
|
10
14
|
/** Override this method to define a custom parsing logic to extract the translatable strings. */
|
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
/** Version Control System (VCS) interface, which reads and writes to the local VCS in use. */
|
|
5
5
|
declare class EditorVCSInterface extends GodotObject {
|
|
6
|
+
/** Returns whether or not the plugin allows commit amends. */
|
|
7
|
+
_allow_amends(): boolean;
|
|
6
8
|
/** Checks out a `branch_name` in the VCS. */
|
|
7
9
|
_checkout_branch(branch_name: string | NodePath): boolean;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Commits the currently staged changes and applies the commit `msg` to the resulting commit. If `amend` is `true` the commit will modify the most recent commit instead.
|
|
12
|
+
*/
|
|
13
|
+
_commit(msg: string | NodePath, amend: boolean): void;
|
|
10
14
|
/** Creates a new branch named `branch_name` in the VCS. */
|
|
11
15
|
_create_branch(branch_name: string | NodePath): void;
|
|
12
16
|
/**
|
|
@@ -11,6 +11,7 @@ declare class Environment extends Resource {
|
|
|
11
11
|
adjustment_brightness: float;
|
|
12
12
|
/**
|
|
13
13
|
* The {@link Texture2D} or {@link Texture3D} lookup table (LUT) to use for the built-in post-process color grading. Can use a {@link GradientTexture1D} for a 1-dimensional LUT, or a {@link Texture3D} for a more complex LUT. Effective only if {@link adjustment_enabled} is `true`.
|
|
14
|
+
* **Note:** Color correction does not currently support HDR output due to only supporting values in the SDR (0.0 to 1.0) range.
|
|
14
15
|
*/
|
|
15
16
|
adjustment_color_correction: Texture | null;
|
|
16
17
|
/**
|
|
@@ -345,7 +346,7 @@ declare class Environment extends Resource {
|
|
|
345
346
|
tonemap_agx_contrast: float;
|
|
346
347
|
/**
|
|
347
348
|
* The white reference value for tonemapping, which indicates where bright white is located in the scale of values provided to the tonemapper. For photorealistic lighting, it is recommended to set {@link tonemap_agx_white} to at least `6.0`. Higher values result in less blown out highlights, but may make the scene appear lower contrast. {@link tonemap_agx_white} is the same as {@link tonemap_white}, but is only effective with the {@link TONE_MAPPER_AGX} tonemapper. See also {@link tonemap_exposure}.
|
|
348
|
-
* **Note:** When using the Mobile renderer with {@link Viewport.use_hdr_2d} disabled, {@link tonemap_agx_white} is ignored and a white value of `2.0` will always be used instead.
|
|
349
|
+
* **Note:** When using the Mobile renderer with {@link Viewport.use_hdr_2d} disabled, {@link tonemap_agx_white} is ignored and a white value of `2.0` will always be used instead. Otherwise, {@link tonemap_agx_white} will be dynamically adjusted at runtime by multiplying it by the parent window's {@link Window.get_output_max_linear_value} when using {@link Viewport.use_hdr_2d} to ensure good behavior with both SDR and HDR output.
|
|
349
350
|
*/
|
|
350
351
|
tonemap_agx_white: float;
|
|
351
352
|
/**
|
|
@@ -360,6 +361,7 @@ declare class Environment extends Resource {
|
|
|
360
361
|
/**
|
|
361
362
|
* The white reference value for tonemapping, which indicates where bright white is located in the scale of values provided to the tonemapper. For photorealistic lighting, it is recommended to set {@link tonemap_white} to at least `6.0`. Higher values result in less blown out highlights, but may make the scene appear lower contrast. {@link tonemap_agx_white} will be used instead when using the {@link TONE_MAPPER_AGX} tonemapper. See also {@link tonemap_exposure}.
|
|
362
363
|
* **Note:** {@link tonemap_white} must be set to `2.0` or lower on the Mobile renderer to produce bright images.
|
|
364
|
+
* **Note:** {@link tonemap_white} is ignored when using {@link TONE_MAPPER_LINEAR} and will be dynamically adjusted at runtime to never be less than the parent window's {@link Window.get_output_max_linear_value} when using {@link TONE_MAPPER_REINHARDT} with {@link Viewport.use_hdr_2d}.
|
|
363
365
|
*/
|
|
364
366
|
tonemap_white: float;
|
|
365
367
|
/**
|
|
@@ -662,11 +664,13 @@ declare class Environment extends Resource {
|
|
|
662
664
|
static readonly TONE_MAPPER_REINHARDT: int;
|
|
663
665
|
/**
|
|
664
666
|
* Uses a film-like tonemapping curve to prevent clipping of bright values and provide better contrast than {@link TONE_MAPPER_REINHARDT}. Slightly slower than {@link TONE_MAPPER_REINHARDT}.
|
|
667
|
+
* **Note:** This tonemapper does not support HDR output because it produces output in the SDR range. It is recommended to use a different tonemapper when rendering to an HDR screen.
|
|
665
668
|
*/
|
|
666
669
|
static readonly TONE_MAPPER_FILMIC: int;
|
|
667
670
|
/**
|
|
668
671
|
* Uses a high-contrast film-like tonemapping curve and desaturates bright values for a more realistic appearance. Slightly slower than {@link TONE_MAPPER_FILMIC}.
|
|
669
672
|
* **Note:** This tonemapping operator is called "ACES Fitted" in Godot 3.x.
|
|
673
|
+
* **Note:** This tonemapper does not support HDR output because it produces output in the SDR range. It is recommended to use a different tonemapper when rendering to an HDR screen.
|
|
670
674
|
*/
|
|
671
675
|
static readonly TONE_MAPPER_ACES: int;
|
|
672
676
|
/**
|
|
@@ -677,11 +681,12 @@ declare class Environment extends Resource {
|
|
|
677
681
|
/** Adds the glow effect to the scene. */
|
|
678
682
|
static readonly GLOW_BLEND_MODE_ADDITIVE: int;
|
|
679
683
|
/**
|
|
680
|
-
* Adds the glow effect to the scene after modifying the glow influence based on the scene value; dark values will be highly influenced by glow and bright values will not be influenced by glow. This approach avoids bright values becoming overly bright from the glow effect. {@link tonemap_white} is used to determine the maximum scene value where the glow should have no influence. When {@link tonemap_mode} is set to {@link TONE_MAPPER_LINEAR}
|
|
684
|
+
* Adds the glow effect to the scene after modifying the glow influence based on the scene value; dark values will be highly influenced by glow and bright values will not be influenced by glow. This approach avoids bright values becoming overly bright from the glow effect. {@link tonemap_white} is used to determine the maximum scene value where the glow should have no influence. When {@link tonemap_mode} is set to {@link TONE_MAPPER_LINEAR} and {@link Viewport.use_hdr_2d} is `true`, the parent window's {@link Window.get_output_max_linear_value} will be used as the maximum scene value.
|
|
681
685
|
*/
|
|
682
686
|
static readonly GLOW_BLEND_MODE_SCREEN: int;
|
|
683
687
|
/**
|
|
684
688
|
* Adds the glow effect to the tonemapped image after modifying the glow influence based on the image value; dark values and bright values will not be influenced by glow and mid-range values will be highly influenced by glow. This approach avoids bright values becoming overly bright from the glow effect. The glow will have the largest influence on image values of `0.25` and will have no influence when applied to image values greater than `1.0`.
|
|
689
|
+
* **Note:** This blend mode does not support HDR output because expects a maximum output value of `1.0`. It is recommended to use a different blend mode when rendering to an HDR screen.
|
|
685
690
|
*/
|
|
686
691
|
static readonly GLOW_BLEND_MODE_SOFTLIGHT: int;
|
|
687
692
|
/**
|
|
@@ -236,7 +236,7 @@ declare class FileAccess extends RefCounted {
|
|
|
236
236
|
seek(position: int): void;
|
|
237
237
|
/**
|
|
238
238
|
* Sets the file cursor to the specified position in bytes, from the end of the file. This changes the value returned by {@link get_position}.
|
|
239
|
-
* **Note:** This is an offset, so you should use negative numbers otherwise the file cursor will
|
|
239
|
+
* **Note:** This is an offset, so you should use negative numbers otherwise the file cursor will move past the end of the file.
|
|
240
240
|
*/
|
|
241
241
|
seek_end(position?: int): void;
|
|
242
242
|
/**
|
|
@@ -58,6 +58,21 @@ declare class FileDialog extends ConfirmationDialog {
|
|
|
58
58
|
mode_overrides_title: boolean;
|
|
59
59
|
/** The number of additional {@link OptionButton}s and {@link CheckBox}es in the dialog. */
|
|
60
60
|
option_count: int;
|
|
61
|
+
/**
|
|
62
|
+
* The default value for the option at `index`.
|
|
63
|
+
* **Note:** `index` is a value in the `0 .. option_count - 1` range.
|
|
64
|
+
*/
|
|
65
|
+
'option_{index}/default': int;
|
|
66
|
+
/**
|
|
67
|
+
* The name of the option at `index`.
|
|
68
|
+
* **Note:** `index` is a value in the `0 .. option_count - 1` range.
|
|
69
|
+
*/
|
|
70
|
+
'option_{index}/name': string;
|
|
71
|
+
/**
|
|
72
|
+
* The list of values for the option at `index`.
|
|
73
|
+
* **Note:** `index` is a value in the `0 .. option_count - 1` range.
|
|
74
|
+
*/
|
|
75
|
+
'option_{index}/values': PackedStringArray;
|
|
61
76
|
/** If `true`, the {@link FileDialog} will warn the user before overwriting files in save mode. */
|
|
62
77
|
overwrite_warning_enabled: boolean;
|
|
63
78
|
/** If `true`, shows the recent directories list on the left side of the dialog. */
|
|
@@ -76,7 +91,7 @@ declare class FileDialog extends ConfirmationDialog {
|
|
|
76
91
|
* <member name="title" type="String" setter="set_title" getter="get_title" overrides="Window" default=""Save a File"" />
|
|
77
92
|
* <member name="use_native_dialog" type="bool" setter="set_use_native_dialog" getter="get_use_native_dialog" default="false">
|
|
78
93
|
* If `true`, and if supported by the current {@link DisplayServer}, OS native dialog will be used instead of custom one.
|
|
79
|
-
* **Note:** On Android, it is only supported
|
|
94
|
+
* **Note:** On Android, it is only supported when using {@link ACCESS_FILESYSTEM}. For access mode {@link ACCESS_RESOURCES} and {@link ACCESS_USERDATA}, the system will fall back to custom FileDialog.
|
|
80
95
|
* **Note:** On Linux and macOS, sandboxed apps always use native dialogs to access the host file system.
|
|
81
96
|
* **Note:** On macOS, sandboxed apps will save security-scoped bookmarks to retain access to the opened folders across multiple sessions. Use {@link OS.get_granted_permissions} to get a list of saved bookmarks.
|
|
82
97
|
* **Note:** Native dialogs are isolated from the base process, file dialog properties can't be modified once the dialog is shown.
|
|
@@ -8,7 +8,7 @@ declare class FoldableContainer extends Container {
|
|
|
8
8
|
* The {@link FoldableGroup} associated with the container. When multiple {@link FoldableContainer} nodes share the same group, only one of them is allowed to be unfolded.
|
|
9
9
|
*/
|
|
10
10
|
focus_mode: int;
|
|
11
|
-
/** If `true`, the container will
|
|
11
|
+
/** If `true`, the container will become folded and will hide all its children. */
|
|
12
12
|
folded: boolean;
|
|
13
13
|
/** Language code used for text shaping algorithms. If left empty, the current locale is used instead. */
|
|
14
14
|
language: string;
|
|
@@ -42,9 +42,9 @@ declare class Font extends Resource {
|
|
|
42
42
|
*/
|
|
43
43
|
draw_string_outline(canvas_item: RID, pos: Vector2 | Vector2i, text: string | NodePath, alignment: int, width?: float, font_size?: int, size?: int, modulate?: Color, justification_flags?: int, direction?: int, orientation?: int, oversampling?: float): void;
|
|
44
44
|
/** Returns {@link TextServer} RID of the font cache for specific variation. */
|
|
45
|
-
find_variation(variation_coordinates: Dictionary, face_index?: int, strength?: float, transform?: Transform2D, spacing_top?: int, spacing_bottom?: int, spacing_space?: int, spacing_glyph?: int, baseline_offset?: float): RID;
|
|
45
|
+
find_variation(variation_coordinates: Dictionary, face_index?: int, strength?: float, transform?: Transform2D, spacing_top?: int, spacing_bottom?: int, spacing_space?: int, spacing_glyph?: int, baseline_offset?: float, palette_index?: int, custom_colors?: PackedColorArray | Array<unknown>): RID;
|
|
46
46
|
/**
|
|
47
|
-
* Returns the
|
|
47
|
+
* Returns the maximum font ascent (number of pixels above the baseline) of this font and all fallback fonts.
|
|
48
48
|
* **Note:** Real ascent of the string is context-dependent and can be significantly different from the value returned by this function. Use it only as rough estimate (e.g. as the ascent of empty line).
|
|
49
49
|
*/
|
|
50
50
|
get_ascent(font_size?: int): float;
|
|
@@ -54,7 +54,7 @@ declare class Font extends Resource {
|
|
|
54
54
|
*/
|
|
55
55
|
get_char_size(char: int, font_size: int): Vector2;
|
|
56
56
|
/**
|
|
57
|
-
* Returns the
|
|
57
|
+
* Returns the maximum font descent (number of pixels below the baseline) of this font and all fallback fonts.
|
|
58
58
|
* **Note:** Real descent of the string is context-dependent and can be significantly different from the value returned by this function. Use it only as rough estimate (e.g. as the descent of empty line).
|
|
59
59
|
*/
|
|
60
60
|
get_descent(font_size?: int): float;
|
|
@@ -92,6 +92,18 @@ declare class Font extends Resource {
|
|
|
92
92
|
* Returns {@link Dictionary} with OpenType font name strings (localized font names, version, description, license information, sample text, etc.).
|
|
93
93
|
*/
|
|
94
94
|
get_ot_name_strings(): Dictionary;
|
|
95
|
+
/**
|
|
96
|
+
* Returns the array in the predefined color palette at `index`. Palette contains all colors used to render font glyphs. Each palette has the same number of colors. Colors can be overridden using {@link FontVariation}.
|
|
97
|
+
*/
|
|
98
|
+
get_palette_colors(index: int): PackedColorArray;
|
|
99
|
+
/**
|
|
100
|
+
* Returns the number of predefined color palettes. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.
|
|
101
|
+
*/
|
|
102
|
+
get_palette_count(): int;
|
|
103
|
+
/**
|
|
104
|
+
* Returns the name of the predefined color palette at `index`. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.
|
|
105
|
+
*/
|
|
106
|
+
get_palette_name(index: int): string;
|
|
95
107
|
/**
|
|
96
108
|
* Returns {@link Array} of valid {@link Font} {@link RID}s, which can be passed to the {@link TextServer} methods.
|
|
97
109
|
*/
|
|
@@ -11,6 +11,12 @@ declare class FontVariation extends Font {
|
|
|
11
11
|
* A set of OpenType feature tags. More info: OpenType feature tags (https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags).
|
|
12
12
|
*/
|
|
13
13
|
opentype_features: Dictionary;
|
|
14
|
+
/**
|
|
15
|
+
* An array of colors to override predefined palette. Use `Color(0, 0, 0, 0)`, to keep predefined palette color at specific position.
|
|
16
|
+
*/
|
|
17
|
+
palette_custom_colors: PackedColorArray;
|
|
18
|
+
/** A palette index. */
|
|
19
|
+
palette_index: int;
|
|
14
20
|
/** Extra spacing at the bottom of the line in pixels. */
|
|
15
21
|
spacing_bottom: int;
|
|
16
22
|
/** Extra spacing between graphical glyphs. */
|
|
@@ -42,6 +48,10 @@ declare class FontVariation extends Font {
|
|
|
42
48
|
set_baseline_offset(value: float): void;
|
|
43
49
|
get_baseline_offset(): float;
|
|
44
50
|
set_opentype_features(value: Dictionary): void;
|
|
51
|
+
set_palette_custom_colors(value: PackedColorArray | Array<unknown>): void;
|
|
52
|
+
get_palette_custom_colors(): PackedColorArray;
|
|
53
|
+
set_palette_index(value: int): void;
|
|
54
|
+
get_palette_index(): int;
|
|
45
55
|
set_variation_embolden(value: float): void;
|
|
46
56
|
get_variation_embolden(): float;
|
|
47
57
|
set_variation_face_index(value: int): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
+
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
+
|
|
4
|
+
/** A script implemented in the GDScript programming language. */
|
|
5
|
+
declare class GDScript extends Script {
|
|
6
|
+
/** Returns a new instance of the script. */
|
|
7
|
+
new(...args: any[]): unknown;
|
|
8
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
+
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
+
|
|
4
|
+
/** GDScript language server. */
|
|
5
|
+
declare interface GDScriptLanguageProtocol extends JSONRPC {
|
|
6
|
+
/** Returns the language server's {@link GDScriptTextDocument} instance. */
|
|
7
|
+
get_text_document(): GDScriptTextDocument | null;
|
|
8
|
+
/** Returns the language server's {@link GDScriptWorkspace} instance. */
|
|
9
|
+
get_workspace(): GDScriptWorkspace | null;
|
|
10
|
+
initialize(params: Dictionary): unknown;
|
|
11
|
+
initialized(params: unknown): void;
|
|
12
|
+
/**
|
|
13
|
+
* Returns `true` if the language server was initialized by a language server client, `false` otherwise.
|
|
14
|
+
*/
|
|
15
|
+
is_initialized(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Returns `true` if the language server is providing the smart resolve feature, `false` otherwise. The feature can be configured through the editor settings.
|
|
18
|
+
*/
|
|
19
|
+
is_smart_resolve_enabled(): boolean;
|
|
20
|
+
notify_client(method: string | NodePath, params?: unknown, client_id?: int): void;
|
|
21
|
+
on_client_connected(): int;
|
|
22
|
+
on_client_disconnected(client_id: int): void;
|
|
23
|
+
}
|
|
24
|
+
declare const GDScriptLanguageProtocol: GDScriptLanguageProtocol;
|
|
25
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
+
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
+
|
|
4
|
+
/** A GDScript syntax highlighter that can be used with {@link TextEdit} and {@link CodeEdit} nodes. */
|
|
5
|
+
declare class GDScriptSyntaxHighlighter extends EditorSyntaxHighlighter {
|
|
6
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
+
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
+
|
|
4
|
+
/** Document related language server functionality. */
|
|
5
|
+
declare class GDScriptTextDocument extends RefCounted {
|
|
6
|
+
codeLens(params: Dictionary): Array<unknown>;
|
|
7
|
+
colorPresentation(params: Dictionary): Array<unknown>;
|
|
8
|
+
completion(params: Dictionary): Array<unknown>;
|
|
9
|
+
declaration(params: Dictionary): unknown;
|
|
10
|
+
definition(params: Dictionary): Array<unknown>;
|
|
11
|
+
didChange(params: unknown): void;
|
|
12
|
+
didClose(params: unknown): void;
|
|
13
|
+
didOpen(params: unknown): void;
|
|
14
|
+
didSave(params: unknown): void;
|
|
15
|
+
documentLink(params: Dictionary): Array<unknown>;
|
|
16
|
+
documentSymbol(params: Dictionary): Array<unknown>;
|
|
17
|
+
foldingRange(params: Dictionary): Array<unknown>;
|
|
18
|
+
hover(params: Dictionary): unknown;
|
|
19
|
+
nativeSymbol(params: Dictionary): unknown;
|
|
20
|
+
prepareRename(params: Dictionary): unknown;
|
|
21
|
+
references(params: Dictionary): Array<unknown>;
|
|
22
|
+
rename(params: Dictionary): Dictionary;
|
|
23
|
+
resolve(params: Dictionary): Dictionary;
|
|
24
|
+
show_native_symbol_in_editor(symbol_id: string | NodePath): void;
|
|
25
|
+
signatureHelp(params: Dictionary): unknown;
|
|
26
|
+
willSaveWaitUntil(params: unknown): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
+
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
+
|
|
4
|
+
/** Workspace related language server functionality. */
|
|
5
|
+
declare class GDScriptWorkspace extends RefCounted {
|
|
6
|
+
apply_new_signal(obj: GodotObject, function_: string | NodePath, args: PackedStringArray | Array<unknown>): void;
|
|
7
|
+
didDeleteFiles(params: Dictionary): void;
|
|
8
|
+
/** Returns the interface of the script in a machine-readable format. */
|
|
9
|
+
generate_script_api(path: string | NodePath): Dictionary;
|
|
10
|
+
/** Converts a URI to a file path. */
|
|
11
|
+
get_file_path(uri: string | NodePath): string;
|
|
12
|
+
/** Converts a file path to a URI. */
|
|
13
|
+
get_file_uri(path: string | NodePath): string;
|
|
14
|
+
parse_local_script(path: string | NodePath): int;
|
|
15
|
+
parse_script(path: string | NodePath, content: string | NodePath): int;
|
|
16
|
+
publish_diagnostics(path: string | NodePath): void;
|
|
17
|
+
}
|
|
@@ -178,9 +178,9 @@ declare class GPUParticles2D extends Node2D {
|
|
|
178
178
|
emit_particle(xform: Transform2D, velocity: Vector2 | Vector2i, color: Color, custom: Color, flags: int): void;
|
|
179
179
|
/**
|
|
180
180
|
* Requests the particles to process for extra process time during a single frame.
|
|
181
|
-
*
|
|
181
|
+
* `process_time` defines the time that the particles will process while emitting is on. `process_time_residual` defines the time that particles will process with emitting turned off for the simulation. When combined with {@link speed_scale} set to `0.0`, this is useful to be able to seek a particle system timeline.
|
|
182
182
|
*/
|
|
183
|
-
request_particles_process(process_time: float): void;
|
|
183
|
+
request_particles_process(process_time: float, process_time_residual?: float): void;
|
|
184
184
|
/**
|
|
185
185
|
* Restarts the particle emission cycle, clearing existing particles. To avoid particles vanishing from the viewport, wait for the {@link finished} signal before calling.
|
|
186
186
|
* **Note:** The {@link finished} signal is only emitted by {@link one_shot} emitters.
|
|
@@ -101,7 +101,14 @@ declare class GPUParticles3D extends GeometryInstance3D {
|
|
|
101
101
|
* The amount of time the particle's trail should represent (in seconds). Only effective if {@link trail_enabled} is `true`.
|
|
102
102
|
*/
|
|
103
103
|
trail_lifetime: float;
|
|
104
|
+
/** The alignment of particles. Use this for billboarding and aligning to velocity. */
|
|
104
105
|
transform_align: int;
|
|
106
|
+
/**
|
|
107
|
+
* When using transform align local billboard, which axis to use for the billboarding. Supports only X or Y.
|
|
108
|
+
*/
|
|
109
|
+
transform_align_axis: int;
|
|
110
|
+
/** In the case of billboarded particles, which custom channel to read from to calculate their angle. */
|
|
111
|
+
transform_align_channel_filter: int;
|
|
105
112
|
/**
|
|
106
113
|
* If `true`, particles will use the same seed for every simulation using the seed defined in {@link seed}. This is useful for situations where the visual outcome should be consistent across replays, for example when using Movie Maker mode.
|
|
107
114
|
*/
|
|
@@ -160,6 +167,10 @@ declare class GPUParticles3D extends GeometryInstance3D {
|
|
|
160
167
|
get_trail_lifetime(): float;
|
|
161
168
|
set_transform_align(value: int): void;
|
|
162
169
|
get_transform_align(): int;
|
|
170
|
+
set_transform_align_axis(value: int): void;
|
|
171
|
+
get_transform_align_axis(): int;
|
|
172
|
+
set_transform_align_channel_filter(value: int): void;
|
|
173
|
+
get_transform_align_channel_filter(): int;
|
|
163
174
|
set_use_fixed_seed(value: boolean): void;
|
|
164
175
|
get_use_fixed_seed(): boolean;
|
|
165
176
|
set_visibility_aabb(value: AABB): void;
|
|
@@ -181,9 +192,9 @@ declare class GPUParticles3D extends GeometryInstance3D {
|
|
|
181
192
|
get_draw_pass_mesh(pass: int): Mesh | null;
|
|
182
193
|
/**
|
|
183
194
|
* Requests the particles to process for extra process time during a single frame.
|
|
184
|
-
*
|
|
195
|
+
* `process_time` defines the time that the particles will process while emitting is on. `process_time_residual` defines the time that particles will process with emitting turned off for the simulation. When combined with {@link speed_scale} set to `0.0`, this is useful to be able to seek a particle system timeline.
|
|
185
196
|
*/
|
|
186
|
-
request_particles_process(process_time: float): void;
|
|
197
|
+
request_particles_process(process_time: float, process_time_residual?: float): void;
|
|
187
198
|
/**
|
|
188
199
|
* Restarts the particle emission cycle, clearing existing particles. To avoid particles vanishing from the viewport, wait for the {@link finished} signal before calling.
|
|
189
200
|
* **Note:** The {@link finished} signal is only emitted by {@link one_shot} emitters.
|
|
@@ -225,10 +236,16 @@ declare class GPUParticles3D extends GeometryInstance3D {
|
|
|
225
236
|
/** Particle starts with specified `CUSTOM` data. */
|
|
226
237
|
static readonly EMIT_FLAG_CUSTOM: int;
|
|
227
238
|
// enum TransformAlign
|
|
239
|
+
/** Do not align particle transforms relative to the camera or velocity. */
|
|
228
240
|
static readonly TRANSFORM_ALIGN_DISABLED: int;
|
|
241
|
+
/** Align each particle's Z axis to face the camera. */
|
|
229
242
|
static readonly TRANSFORM_ALIGN_Z_BILLBOARD: int;
|
|
243
|
+
/** Align each particle's Y axis to the velocity vector. */
|
|
230
244
|
static readonly TRANSFORM_ALIGN_Y_TO_VELOCITY: int;
|
|
245
|
+
/** Align each particle's Z axis to face the camera and Y axis to the velocity vector. */
|
|
231
246
|
static readonly TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY: int;
|
|
247
|
+
/** Align each particle's Z axis to face the camera, while preserving a given axis (X or Y). */
|
|
248
|
+
static readonly TRANSFORM_ALIGN_LOCAL_BILLBOARD: int;
|
|
232
249
|
|
|
233
250
|
/** Maximum number of draw passes supported. */
|
|
234
251
|
static readonly MAX_DRAW_PASSES: int;
|
|
@@ -66,7 +66,7 @@ declare interface Geometry2D extends GodotObject {
|
|
|
66
66
|
is_polygon_clockwise(polygon: PackedVector2Array | Array<unknown>): boolean;
|
|
67
67
|
/**
|
|
68
68
|
* Returns the point of intersection between the two lines (`from_a`, `dir_a`) and (`from_b`, `dir_b`). Returns a {@link Vector2}, or `null` if the lines are parallel.
|
|
69
|
-
* `from` and `dir` are *not* endpoints of a line segment or ray but the slope (`dir`) and a known point (`from`) on that line.
|
|
69
|
+
* `from` and `dir` are *not* endpoints of a line segment or ray but the slope (`dir`) and a known point (`from`) on that line. To get the intersection between two line segments, use {@link segment_intersects_segment}.
|
|
70
70
|
*/
|
|
71
71
|
line_intersects_line(from_a: Vector2 | Vector2i, dir_a: Vector2 | Vector2i, from_b: Vector2 | Vector2i, dir_b: Vector2 | Vector2i): unknown;
|
|
72
72
|
/**
|
|
@@ -99,7 +99,7 @@ declare interface Geometry2D extends GodotObject {
|
|
|
99
99
|
*/
|
|
100
100
|
segment_intersects_circle(segment_from: Vector2 | Vector2i, segment_to: Vector2 | Vector2i, circle_position: Vector2 | Vector2i, circle_radius: float): float;
|
|
101
101
|
/**
|
|
102
|
-
* Checks if
|
|
102
|
+
* Checks if two line segments intersect, with line `a` between `from_a` and `to_a` and line `b` between `from_b` and `to_b`. If the line segments intersect, the point of intersection is returned as a {@link Vector2}. If no intersection takes place, `null` is returned.
|
|
103
103
|
*/
|
|
104
104
|
segment_intersects_segment(from_a: Vector2 | Vector2i, to_a: Vector2 | Vector2i, from_b: Vector2 | Vector2i, to_b: Vector2 | Vector2i): unknown;
|
|
105
105
|
/**
|
|
@@ -6,7 +6,7 @@ declare class GeometryInstance3D extends VisualInstance3D {
|
|
|
6
6
|
/** The mode used to cast shadows from this instance. */
|
|
7
7
|
cast_shadow: int;
|
|
8
8
|
/**
|
|
9
|
-
* Overrides the bounding box of this node with a custom one. This can be used to avoid the expensive {@link AABB} recalculation that happens when a skeleton is used with a {@link MeshInstance3D} or to have precise control over the {@link MeshInstance3D}'s bounding box. To use the default AABB, set value to an {@link AABB} with all fields set to `0.0`. To avoid frustum culling, set {@link custom_aabb} to a very large AABB that covers your entire game world such as `AABB(-10000, -10000, -10000, 20000, 20000, 20000)`. To disable all forms of culling (including occlusion culling), call {@link RenderingServer.instance_set_ignore_culling} on the {@link GeometryInstance3D}'s {@link RID}.
|
|
9
|
+
* Overrides the bounding box of this node with a custom one. This can be used to avoid the expensive {@link AABB} recalculation that happens when a skeleton is used with a {@link MeshInstance3D} or to have precise control over the {@link MeshInstance3D}'s bounding box. To use the default AABB, set value to an {@link AABB} with all fields set to `0.0`. To avoid frustum culling, set {@link custom_aabb} to a very large AABB that covers your entire game world such as `AABB(-10000, -10000, -10000, 20000, 20000, 20000)`. To disable all forms of culling (including occlusion and layer culling), call {@link RenderingServer.instance_set_ignore_culling} on the {@link GeometryInstance3D}'s {@link RID}.
|
|
10
10
|
*/
|
|
11
11
|
custom_aabb: AABB;
|
|
12
12
|
/**
|
|
@@ -46,6 +46,8 @@ declare class GradientTexture2D extends Texture2D {
|
|
|
46
46
|
static readonly FILL_RADIAL: int;
|
|
47
47
|
/** The colors are linearly interpolated in a square pattern. */
|
|
48
48
|
static readonly FILL_SQUARE: int;
|
|
49
|
+
/** The colors are linearly interpolated in a cone pattern. */
|
|
50
|
+
static readonly FILL_CONIC: int;
|
|
49
51
|
// enum Repeat
|
|
50
52
|
/**
|
|
51
53
|
* The gradient fill is restricted to the range defined by {@link fill_from} to {@link fill_to} offsets.
|
|
@@ -210,6 +210,7 @@ declare class Image extends Resource {
|
|
|
210
210
|
premultiply_alpha(): void;
|
|
211
211
|
/**
|
|
212
212
|
* Resizes the image to the given `width` and `height`. New pixels are calculated using the `interpolation` mode defined via {@link Interpolation} constants.
|
|
213
|
+
* **Note:** If the image's format is {@link FORMAT_RGBA4444}, {@link FORMAT_RGB565}, or {@link FORMAT_RGBE9995}, it will be temporarily converted to either {@link FORMAT_RGBA8} or {@link FORMAT_RGBAH}. This can affect the quality of the resized image.
|
|
213
214
|
*/
|
|
214
215
|
resize(width: int, height: int, interpolation: int): void;
|
|
215
216
|
/**
|
|
@@ -237,13 +238,15 @@ declare class Image extends Resource {
|
|
|
237
238
|
*/
|
|
238
239
|
save_dds_to_buffer(): PackedByteArray;
|
|
239
240
|
/**
|
|
240
|
-
* Saves the image as an EXR file to `path`. If `grayscale` is `true` and the image has only one channel, it will be saved explicitly as monochrome rather than one red channel. This function will return {@link ERR_UNAVAILABLE} if Godot was compiled without the TinyEXR module.
|
|
241
|
+
* Saves the image as an EXR file to `path`. If `grayscale` is `true` and the image has only one channel, it will be saved explicitly as monochrome rather than one red channel. Set `color_image` to `true` when saving a color image, such as a screenshot. Negative values will be included when `color_image` is `false`, which may be useful for saving raw floating point data such as a lightmap that includes negative light information. Color component values in the resulting EXR file will not exceed `max_linear_value` if `max_linear_value` is not negative. This function will return {@link ERR_UNAVAILABLE} if Godot was compiled without the TinyEXR module.
|
|
242
|
+
* When saving screenshots of a project that uses HDR output, use {@link Window.get_output_max_linear_value} for `max_linear_value`.
|
|
241
243
|
*/
|
|
242
|
-
save_exr(path: string | NodePath, grayscale?: boolean): int;
|
|
244
|
+
save_exr(path: string | NodePath, grayscale?: boolean, color_image?: boolean, max_linear_value?: float): int;
|
|
243
245
|
/**
|
|
244
|
-
* Saves the image as an EXR file to a byte array. If `grayscale` is `true` and the image has only one channel, it will be saved explicitly as monochrome rather than one red channel. This function will return an empty byte array if Godot was compiled without the TinyEXR module.
|
|
246
|
+
* Saves the image as an EXR file to a byte array. If `grayscale` is `true` and the image has only one channel, it will be saved explicitly as monochrome rather than one red channel. Set `color_image` to `true` when saving a color image, such as a screenshot. Negative values will be included when `color_image` is `false`, which may be useful for saving raw floating point data such as a lightmap that includes negative light information. Color component values in the resulting EXR file will not exceed `max_linear_value` if `max_linear_value` is not negative. This function will return an empty byte array if Godot was compiled without the TinyEXR module.
|
|
247
|
+
* When saving screenshots of a project that uses HDR output, use {@link Window.get_output_max_linear_value} for `max_linear_value`.
|
|
245
248
|
*/
|
|
246
|
-
save_exr_to_buffer(grayscale?: boolean): PackedByteArray;
|
|
249
|
+
save_exr_to_buffer(grayscale?: boolean, color_image?: boolean, max_linear_value?: float): PackedByteArray;
|
|
247
250
|
/**
|
|
248
251
|
* Saves the image as a JPEG file to `path` with the specified `quality` between `0.01` and `1.0` (inclusive). Higher `quality` values result in better-looking output at the cost of larger file sizes. Recommended `quality` values are between `0.75` and `0.90`. Even at quality `1.00`, JPEG compression remains lossy.
|
|
249
252
|
* **Note:** JPEG does not save an alpha channel. If the {@link Image} contains an alpha channel, the image will still be saved, but the resulting JPEG file won't contain the alpha channel.
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
declare class ImageFormatLoader extends RefCounted {
|
|
6
6
|
|
|
7
7
|
// enum LoaderFlags
|
|
8
|
+
/** Default loading behavior. No processing is applied to the image. */
|
|
8
9
|
static readonly FLAG_NONE: int;
|
|
10
|
+
/** If set, the image is converted from sRGB to linear encoding. */
|
|
9
11
|
static readonly FLAG_FORCE_LINEAR: int;
|
|
12
|
+
/**
|
|
13
|
+
* If set, a predefined color map is applied to the image. Used when {@link ResourceImporterTexture.editor/convert_colors_with_editor_theme} is `true`.
|
|
14
|
+
*/
|
|
10
15
|
static readonly FLAG_CONVERT_COLORS: int;
|
|
11
16
|
}
|
|
@@ -9,8 +9,6 @@ declare class ImageTexture extends Texture2D {
|
|
|
9
9
|
* Creates a new {@link ImageTexture} and initializes it by allocating and setting the data from an {@link Image}.
|
|
10
10
|
*/
|
|
11
11
|
static create_from_image(image: Image): ImageTexture;
|
|
12
|
-
/** Returns the format of the texture. */
|
|
13
|
-
get_format(): int;
|
|
14
12
|
/**
|
|
15
13
|
* Replaces the texture's data with a new {@link Image}. This will re-allocate new memory for the texture.
|
|
16
14
|
* If you want to update the image, but don't need to change its parameters (format, size), use {@link update} instead for better performance.
|
|
@@ -67,6 +67,12 @@ declare class ImporterMesh extends Resource {
|
|
|
67
67
|
get_surface_name(surface_idx: int): string;
|
|
68
68
|
/** Returns the primitive type of the requested surface (see {@link add_surface}). */
|
|
69
69
|
get_surface_primitive_type(surface_idx: int): int;
|
|
70
|
+
/**
|
|
71
|
+
* Merges multiple {@link ImporterMesh}es into a single {@link ImporterMesh}. Each input mesh is transformed by the corresponding {@link Transform3D} in the `relative_transforms` array, which must be the same size as `importer_meshes`. Negative scales are supported, and the winding order in the mesh data will be corrected to account for this.
|
|
72
|
+
* If `deduplicate_surfaces` is `true` and multiple meshes have surfaces with the same names and formats, the surfaces will be merged together when the meshes are merged, and will use the material from the first matching surface. This is useful for reducing the number of surfaces in the resulting mesh, and avoids duplicating materials. Surfaces with bone weights will never be deduplicated. If `deduplicate_surfaces` is `false`, the surfaces will always be kept separate, and will be given unique names.
|
|
73
|
+
* **Warning:** Blend shapes and LODs are not supported and will be discarded. Do not use this function to discard blend shapes and LODs, as support for these may be added in the future.
|
|
74
|
+
*/
|
|
75
|
+
static merge_importer_meshes(importer_meshes: Array<ImporterMesh>, relative_transforms: Array<Transform3D>, deduplicate_surfaces?: boolean): ImporterMesh | null;
|
|
70
76
|
/** Sets the blend shape mode. */
|
|
71
77
|
set_blend_shape_mode(mode: int): void;
|
|
72
78
|
/** Sets the size hint of this mesh for lightmap-unwrapping in UV-space. */
|