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
|
@@ -112,6 +112,20 @@ declare class TextServerExtension extends TextServer {
|
|
|
112
112
|
* Returns oversampling factor override. If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See {@link Viewport.oversampling}. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.
|
|
113
113
|
*/
|
|
114
114
|
_font_get_oversampling(font_rid: RID): float;
|
|
115
|
+
/**
|
|
116
|
+
* 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 _font_set_palette_custom_colors}.
|
|
117
|
+
*/
|
|
118
|
+
_font_get_palette_colors(font_rid: RID, index: int): PackedColorArray;
|
|
119
|
+
/**
|
|
120
|
+
* Returns the number of predefined color palettes. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.
|
|
121
|
+
*/
|
|
122
|
+
_font_get_palette_count(font_rid: RID): int;
|
|
123
|
+
/** Returns array of custom colors to override predefined palette. */
|
|
124
|
+
_font_get_palette_custom_colors(font_rid: RID): PackedColorArray;
|
|
125
|
+
/**
|
|
126
|
+
* 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.
|
|
127
|
+
*/
|
|
128
|
+
_font_get_palette_name(font_rid: RID, index: int): string;
|
|
115
129
|
/** Returns scaling factor of the color bitmap font. */
|
|
116
130
|
_font_get_scale(font_rid: RID, size: int): float;
|
|
117
131
|
/** Returns `true` if support override is enabled for the `script`. */
|
|
@@ -154,6 +168,8 @@ declare class TextServerExtension extends TextServer {
|
|
|
154
168
|
_font_get_underline_position(font_rid: RID, size: int): float;
|
|
155
169
|
/** Returns thickness of the underline in pixels. */
|
|
156
170
|
_font_get_underline_thickness(font_rid: RID, size: int): float;
|
|
171
|
+
/** Returns used palette index. */
|
|
172
|
+
_font_get_used_palette(font_rid: RID): int;
|
|
157
173
|
/** Returns variation coordinates for the specified font cache entry. */
|
|
158
174
|
_font_get_variation_coordinates(font_rid: RID): Dictionary;
|
|
159
175
|
/**
|
|
@@ -272,6 +288,10 @@ declare class TextServerExtension extends TextServer {
|
|
|
272
288
|
* If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See {@link Viewport.oversampling}. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.
|
|
273
289
|
*/
|
|
274
290
|
_font_set_oversampling(font_rid: RID, oversampling: float): void;
|
|
291
|
+
/**
|
|
292
|
+
* Sets array of custom colors to override predefined palette. Set to empty array to reset overrides. Use `Color(0, 0, 0, 0)`, to keep predefined palette color at specific position.
|
|
293
|
+
*/
|
|
294
|
+
_font_set_palette_custom_colors(font_rid: RID, colors: PackedColorArray | Array<unknown>): void;
|
|
275
295
|
/** Sets scaling factor of the color bitmap font. */
|
|
276
296
|
_font_set_scale(font_rid: RID, size: int, scale: float): void;
|
|
277
297
|
/** Adds override for {@link _font_is_script_supported}. */
|
|
@@ -298,6 +318,8 @@ declare class TextServerExtension extends TextServer {
|
|
|
298
318
|
_font_set_underline_position(font_rid: RID, size: int, underline_position: float): void;
|
|
299
319
|
/** Sets thickness of the underline in pixels. */
|
|
300
320
|
_font_set_underline_thickness(font_rid: RID, size: int, underline_thickness: float): void;
|
|
321
|
+
/** Sets used palette index. */
|
|
322
|
+
_font_set_used_palette(font_rid: RID, index: int): void;
|
|
301
323
|
/** Sets variation coordinates for the specified font cache entry. */
|
|
302
324
|
_font_set_variation_coordinates(font_rid: RID, variation_coordinates: Dictionary): void;
|
|
303
325
|
/**
|
|
@@ -371,6 +393,8 @@ declare class TextServerExtension extends TextServer {
|
|
|
371
393
|
_shaped_get_run_font_rid(shaped: RID, index: int): RID;
|
|
372
394
|
/** Returns the font size of the `index` text run (in visual order). */
|
|
373
395
|
_shaped_get_run_font_size(shaped: RID, index: int): int;
|
|
396
|
+
/** Returns the glyph range of the `index` text run (in visual order). */
|
|
397
|
+
_shaped_get_run_glyph_range(shaped: RID, index: int): Vector2i;
|
|
374
398
|
/** Returns the language of the `index` text run (in visual order). */
|
|
375
399
|
_shaped_get_run_language(shaped: RID, index: int): string;
|
|
376
400
|
/** Returns the embedded object of the `index` text run (in visual order). */
|
|
@@ -424,7 +448,7 @@ declare class TextServerExtension extends TextServer {
|
|
|
424
448
|
/**
|
|
425
449
|
* Returns shapes of the carets corresponding to the character offset `position` in the text. Returned caret shape is 1 pixel wide rectangle.
|
|
426
450
|
*/
|
|
427
|
-
_shaped_text_get_carets(shaped: RID, position: int,
|
|
451
|
+
_shaped_text_get_carets(shaped: RID, position: int, r_caret: unknown): void;
|
|
428
452
|
/** Returns array of the composite character boundaries. */
|
|
429
453
|
_shaped_text_get_character_breaks(shaped: RID): PackedInt32Array;
|
|
430
454
|
/** Returns ellipsis character used for text clipping. */
|
|
@@ -18,12 +18,20 @@ declare class Texture2D extends Texture {
|
|
|
18
18
|
* **Note:** This is only used in 2D rendering, not 3D.
|
|
19
19
|
*/
|
|
20
20
|
_draw_rect_region(to_canvas_item: RID, rect: Rect2 | Rect2i, src_rect: Rect2 | Rect2i, modulate: Color, transpose: boolean, clip_uv: boolean): void;
|
|
21
|
+
/** Called when {@link get_format} is called. */
|
|
22
|
+
_get_format(): int;
|
|
21
23
|
/** Called when the {@link Texture2D}'s height is queried. */
|
|
22
24
|
_get_height(): int;
|
|
25
|
+
/** Called when {@link get_image} is called. */
|
|
26
|
+
_get_image(): Image | null;
|
|
27
|
+
/** Called when {@link get_mipmap_count} is called. */
|
|
28
|
+
_get_mipmap_count(): int;
|
|
23
29
|
/** Called when the {@link Texture2D}'s width is queried. */
|
|
24
30
|
_get_width(): int;
|
|
25
31
|
/** Called when the presence of an alpha channel in the {@link Texture2D} is queried. */
|
|
26
32
|
_has_alpha(): boolean;
|
|
33
|
+
/** Called when {@link has_mipmaps} is called. */
|
|
34
|
+
_has_mipmaps(): boolean;
|
|
27
35
|
/**
|
|
28
36
|
* Called when a pixel's opaque state in the {@link Texture2D} is queried at the specified `(x, y)` position.
|
|
29
37
|
*/
|
|
@@ -38,6 +46,8 @@ declare class Texture2D extends Texture {
|
|
|
38
46
|
draw_rect(canvas_item: RID, rect: Rect2 | Rect2i, tile: boolean, modulate?: Color, transpose?: boolean): void;
|
|
39
47
|
/** Draws a part of the texture using a {@link CanvasItem} with the {@link RenderingServer} API. */
|
|
40
48
|
draw_rect_region(canvas_item: RID, rect: Rect2 | Rect2i, src_rect: Rect2 | Rect2i, modulate?: Color, transpose?: boolean, clip_uv?: boolean): void;
|
|
49
|
+
/** Returns the image format of the texture. */
|
|
50
|
+
get_format(): int;
|
|
41
51
|
/** Returns the texture height in pixels. */
|
|
42
52
|
get_height(): int;
|
|
43
53
|
/**
|
|
@@ -46,10 +56,14 @@ declare class Texture2D extends Texture {
|
|
|
46
56
|
* **Note:** This will fetch the texture data from the GPU, which might cause performance problems when overused. Avoid calling {@link get_image} every frame, especially on large textures.
|
|
47
57
|
*/
|
|
48
58
|
get_image(): Image | null;
|
|
59
|
+
/** Returns the number of mipmaps of the texture. */
|
|
60
|
+
get_mipmap_count(): int;
|
|
49
61
|
/** Returns the texture size in pixels. */
|
|
50
62
|
get_size(): Vector2;
|
|
51
63
|
/** Returns the texture width in pixels. */
|
|
52
64
|
get_width(): int;
|
|
53
65
|
/** Returns `true` if this {@link Texture2D} has an alpha channel. */
|
|
54
66
|
has_alpha(): boolean;
|
|
67
|
+
/** Returns `true` if the texture has mipmaps. */
|
|
68
|
+
has_mipmaps(): boolean;
|
|
55
69
|
}
|
|
@@ -49,7 +49,10 @@ declare class TextureRect extends Control {
|
|
|
49
49
|
// enum StretchMode
|
|
50
50
|
/** Scale to fit the node's bounding rectangle. */
|
|
51
51
|
static readonly STRETCH_SCALE: int;
|
|
52
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Tile inside the node's bounding rectangle.
|
|
54
|
+
* **Note:** {@link STRETCH_TILE} mode is not supported for {@link texture} set to an {@link AtlasTexture} with non-zero {@link AtlasTexture.margin}.
|
|
55
|
+
*/
|
|
53
56
|
static readonly STRETCH_TILE: int;
|
|
54
57
|
/** The texture keeps its original size and stays in the bounding rectangle's top-left corner. */
|
|
55
58
|
static readonly STRETCH_KEEP: int;
|
|
@@ -70,6 +70,8 @@ declare class TileSet extends Resource {
|
|
|
70
70
|
add_terrain_set(to_position?: int): void;
|
|
71
71
|
/** Clears tile proxies pointing to invalid tiles. */
|
|
72
72
|
cleanup_invalid_tile_proxies(): void;
|
|
73
|
+
/** Clears all terrain properties for the given terrain set. */
|
|
74
|
+
clear_terrains(terrain_set: int): void;
|
|
73
75
|
/** Clears all tile proxies. */
|
|
74
76
|
clear_tile_proxies(): void;
|
|
75
77
|
/**
|
|
@@ -218,7 +220,7 @@ declare class TileSet extends Resource {
|
|
|
218
220
|
* Creates a coordinates-level proxy for the given identifiers. A proxy will map set of tile identifiers to another set of identifiers. The alternative tile ID is kept the same when using coordinates-level proxies.
|
|
219
221
|
* Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor.
|
|
220
222
|
*/
|
|
221
|
-
set_coords_level_tile_proxy(
|
|
223
|
+
set_coords_level_tile_proxy(source_from: int, coords_from: Vector2i | Vector2, source_to: int, coords_to: Vector2i | Vector2): void;
|
|
222
224
|
/**
|
|
223
225
|
* Sets the name of the custom data layer identified by the given index. Names are identifiers of the layer therefore if the name is already taken it will fail and raise an error.
|
|
224
226
|
*/
|
|
@@ -18,7 +18,10 @@ declare class Tree extends Control {
|
|
|
18
18
|
* If `true`, column titles are visible.
|
|
19
19
|
*/
|
|
20
20
|
clip_contents: boolean;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* The number of columns.
|
|
23
|
+
* Prints an error and does not allow setting the columns during mouse selection.
|
|
24
|
+
*/
|
|
22
25
|
columns: int;
|
|
23
26
|
/**
|
|
24
27
|
* The drop mode as an OR combination of flags. See {@link DropModeFlags} constants. Once dropping is done, reverts to {@link DROP_MODE_DISABLED}. Setting this during {@link Control._can_drop_data} is recommended.
|
|
@@ -83,12 +86,16 @@ declare class Tree extends Control {
|
|
|
83
86
|
set_tile_scroll_hint(value: boolean): void;
|
|
84
87
|
is_scroll_hint_tiled(): boolean;
|
|
85
88
|
|
|
86
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* Clears the tree. This removes all items.
|
|
91
|
+
* Prints an error and does not allow clearing the tree if called during mouse selection.
|
|
92
|
+
*/
|
|
87
93
|
clear(): void;
|
|
88
94
|
/**
|
|
89
95
|
* Creates an item in the tree and adds it as a child of `parent`, which can be either a valid {@link TreeItem} or `null`.
|
|
90
96
|
* If `parent` is `null`, the root item will be the parent, or the new item will be the root itself if the tree is empty.
|
|
91
97
|
* The new item will be the `index`-th child of parent, or it will be the last child if there are not enough siblings.
|
|
98
|
+
* Prints an error and returns `null` if called during mouse selection, or if the `parent` does not belong to this tree.
|
|
92
99
|
*/
|
|
93
100
|
create_item(parent?: TreeItem, index?: int): TreeItem | null;
|
|
94
101
|
/**
|
|
@@ -125,14 +132,23 @@ declare class Tree extends Control {
|
|
|
125
132
|
get_column_title_tooltip_text(column: int): string;
|
|
126
133
|
/** Returns the column's width in pixels. */
|
|
127
134
|
get_column_width(column: int): int;
|
|
135
|
+
/**
|
|
136
|
+
* Returns the internal canvas item designated for custom drawing. See {@link TreeItem.set_custom_draw_callback}.
|
|
137
|
+
* **Note:** This canvas item clears automatically on each Tree draw call.
|
|
138
|
+
*/
|
|
139
|
+
get_custom_drawing_canvas_item(): RID;
|
|
128
140
|
/**
|
|
129
141
|
* Returns the rectangle for custom popups. Helper to create custom cell controls that display a popup. See {@link TreeItem.set_cell_mode}.
|
|
130
142
|
*/
|
|
131
143
|
get_custom_popup_rect(): Rect2;
|
|
132
144
|
/**
|
|
133
|
-
* Returns the drop section at `position`,
|
|
134
|
-
*
|
|
135
|
-
*
|
|
145
|
+
* Returns the drop section at `position`, as permitted by enabled {@link DropModeFlags}.
|
|
146
|
+
* - `-1` if the position is **above** the item. Typically used to insert as the item's previous sibling.
|
|
147
|
+
* - `0` if the position is **on** the item. Typically used to insert as the item's last child.
|
|
148
|
+
* - `1` if the position is **below** the item, when the item has no children. Typically used to insert as the item's next sibling. If the item *does* have children, this section is still reachable by hovering to the left of the item's collapse arrow, and below.
|
|
149
|
+
* - `2` if the position is **below** the item, when the item has children. Typically used to insert as the item's first child.
|
|
150
|
+
* - `-100` if the position is not over any item, or no {@link DropModeFlags} are set.
|
|
151
|
+
* See {@link DropModeFlags} for a description of each drop region. To get the item which the returned drop section refers to, use {@link get_item_at_position}.
|
|
136
152
|
*/
|
|
137
153
|
get_drop_section_at_position(position: Vector2 | Vector2i): int;
|
|
138
154
|
/**
|
|
@@ -265,18 +281,18 @@ declare class Tree extends Control {
|
|
|
265
281
|
static readonly SELECT_MULTI: int;
|
|
266
282
|
// enum DropModeFlags
|
|
267
283
|
/**
|
|
268
|
-
* Disables all drop sections
|
|
284
|
+
* Disables all drop sections.
|
|
269
285
|
* **Note:** This is the default flag, it has no effect when combined with other flags.
|
|
270
286
|
*/
|
|
271
287
|
static readonly DROP_MODE_DISABLED: int;
|
|
272
288
|
/**
|
|
273
289
|
* Enables the "on item" drop section. This drop section covers the entire item.
|
|
274
|
-
* When combined with {@link DROP_MODE_INBETWEEN}, this drop section halves
|
|
290
|
+
* When combined with {@link DROP_MODE_INBETWEEN}, this drop section halves in height and stays centered vertically.
|
|
275
291
|
*/
|
|
276
292
|
static readonly DROP_MODE_ON_ITEM: int;
|
|
277
293
|
/**
|
|
278
|
-
* Enables "above item" and "below item" drop sections. The "above item" drop section covers the top half of the item,
|
|
279
|
-
* When combined with {@link DROP_MODE_ON_ITEM}, these drop sections
|
|
294
|
+
* Enables "above item" and "below item" drop sections. The "above item" drop section covers the top half of the item, while the "below item" drop section covers the bottom half, and extends downward to the left of any children.
|
|
295
|
+
* When combined with {@link DROP_MODE_ON_ITEM}, these drop sections halve in height and stay at the top and bottom respectively.
|
|
280
296
|
*/
|
|
281
297
|
static readonly DROP_MODE_INBETWEEN: int;
|
|
282
298
|
// enum ScrollHintMode
|
|
@@ -56,6 +56,10 @@ declare class TreeItem extends GodotObject {
|
|
|
56
56
|
* Returns the text autowrap mode in the given `column`. By default it is {@link TextServer.AUTOWRAP_OFF}.
|
|
57
57
|
*/
|
|
58
58
|
get_autowrap_mode(column: int): int;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the autowrap trim flags for the given `column`. By default, both {@link TextServer.BREAK_TRIM_START_EDGE_SPACES} and {@link TextServer.BREAK_TRIM_END_EDGE_SPACES} are enabled.
|
|
61
|
+
*/
|
|
62
|
+
get_autowrap_trim_flags(column: int): int;
|
|
59
63
|
/** Returns the {@link Texture2D} of the button at index `button_index` in column `column`. */
|
|
60
64
|
get_button(column: int, button_index: int): Texture2D | null;
|
|
61
65
|
/**
|
|
@@ -171,6 +175,8 @@ declare class TreeItem extends GodotObject {
|
|
|
171
175
|
get_tooltip_text(column: int): string;
|
|
172
176
|
/** Returns the {@link Tree} that owns this TreeItem. */
|
|
173
177
|
get_tree(): Tree | null;
|
|
178
|
+
/** Returns `true` if this {@link TreeItem} is allowed to accept children. */
|
|
179
|
+
is_accepting_children(): boolean;
|
|
174
180
|
/**
|
|
175
181
|
* Returns `true` if this {@link TreeItem}, or any of its descendants, is collapsed.
|
|
176
182
|
* If `only_visible` is `true` it ignores non-visible {@link TreeItem}s.
|
|
@@ -213,8 +219,12 @@ declare class TreeItem extends GodotObject {
|
|
|
213
219
|
* **Note:** If you want to move a child from one {@link Tree} to another, then instead of removing and adding it manually you can use {@link move_before} or {@link move_after}.
|
|
214
220
|
*/
|
|
215
221
|
remove_child(child: TreeItem): void;
|
|
216
|
-
/**
|
|
217
|
-
|
|
222
|
+
/**
|
|
223
|
+
* Selects the given `column`. If `set_as_cursor` is `true`, the {@link Tree}'s cursor will be moved to this item (only matters if {@link Tree.select_mode} is set to {@link Tree.SELECT_MULTI}).
|
|
224
|
+
*/
|
|
225
|
+
select(column: int, set_as_cursor?: boolean): void;
|
|
226
|
+
/** Sets {@link TreeItem}'s ability to accept children. */
|
|
227
|
+
set_accept_children(allowed: boolean): void;
|
|
218
228
|
/**
|
|
219
229
|
* Sets the given column's auto translate mode to `mode`.
|
|
220
230
|
* All columns use {@link Node.AUTO_TRANSLATE_MODE_INHERIT} by default, which uses the same auto translate mode as the {@link Tree} itself.
|
|
@@ -224,6 +234,10 @@ declare class TreeItem extends GodotObject {
|
|
|
224
234
|
* Sets the autowrap mode in the given `column`. If set to something other than {@link TextServer.AUTOWRAP_OFF}, the text gets wrapped inside the cell's bounding rectangle.
|
|
225
235
|
*/
|
|
226
236
|
set_autowrap_mode(column: int, autowrap_mode: int): void;
|
|
237
|
+
/**
|
|
238
|
+
* Sets the autowrap trim flags for the given `column`. These flags control whether leading and trailing spaces are trimmed on wrapped lines. Set to `0` to disable all trimming.
|
|
239
|
+
*/
|
|
240
|
+
set_autowrap_trim_flags(column: int, flags: int): void;
|
|
227
241
|
/** Sets the given column's button {@link Texture2D} at index `button_index` to `button`. */
|
|
228
242
|
set_button(column: int, button_index: int, button: Texture2D): void;
|
|
229
243
|
/** Sets the given column's button color at index `button_index` to `color`. */
|
|
@@ -257,6 +271,7 @@ declare class TreeItem extends GodotObject {
|
|
|
257
271
|
/**
|
|
258
272
|
* Sets the given column's custom draw callback. Use an empty {@link Callable} ([code skip-lint]Callable()[/code]) to clear the custom callback. The cell has to be in {@link CELL_MODE_CUSTOM} to use this feature.
|
|
259
273
|
* The `callback` should accept two arguments: the {@link TreeItem} that is drawn and its position and size as a {@link Rect2}.
|
|
274
|
+
* To draw custom content over the native style, please use {@link Tree.get_custom_drawing_canvas_item}.
|
|
260
275
|
*/
|
|
261
276
|
set_custom_draw_callback(column: int, callback: Callable): void;
|
|
262
277
|
/** Sets custom font used to draw text in the given `column`. */
|
|
@@ -24,6 +24,10 @@ declare class Tween extends RefCounted {
|
|
|
24
24
|
* **Note:** As it results from accumulating frame deltas, the time returned after the {@link Tween} has finished animating will be slightly greater than the actual {@link Tween} duration.
|
|
25
25
|
*/
|
|
26
26
|
get_total_elapsed_time(): float;
|
|
27
|
+
/**
|
|
28
|
+
* Returns `true` if any {@link Tweener} has been added to the {@link Tween} and the {@link Tween} is valid. Useful when tweeners are added dynamically and the tween can end up empty. Killing an empty tween before it starts will prevent errors.
|
|
29
|
+
*/
|
|
30
|
+
has_tweeners(): boolean;
|
|
27
31
|
/**
|
|
28
32
|
* This method can be used for manual interpolation of a value, when you don't want {@link Tween} to do animating for you. It's similar to {@link @GlobalScope.lerp}, but with support for custom transition and easing.
|
|
29
33
|
* `initial_value` is the starting value of the interpolation.
|
|
@@ -99,6 +103,15 @@ declare class Tween extends RefCounted {
|
|
|
99
103
|
* **Note:** If a Tween is stopped and not bound to any node, it will exist indefinitely until manually started or invalidated. If you lose a reference to such Tween, you can retrieve it using {@link SceneTree.get_processed_tweens}.
|
|
100
104
|
*/
|
|
101
105
|
stop(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Creates and appends an {@link AwaitTweener}. This method can be used to await a signal to be emitted and create asynchronous animations or cutscenes.
|
|
108
|
+
* The animation will not progress to the next step until the awaited signal is emitted or the connection becomes invalid (e.g. as a result of freeing the target object). If you know that the emission may not happen, use {@link AwaitTweener.set_timeout}.
|
|
109
|
+
* **Note:** The awaited signal should be emitted during the step when {@link AwaitTweener} is active.
|
|
110
|
+
* **Example:** An object launches itself and explodes upon collision or after 4 seconds.
|
|
111
|
+
* **Example:** A character walks to a specific point, says some lines and walks back when the player closes the message box.
|
|
112
|
+
* **Note:** If you are awaiting a signal from a callback called in the same {@link Tween}, make sure the signal is emitted *after* the await starts. If it can't be reasonably guaranteed, you can await and emit in the same step:
|
|
113
|
+
*/
|
|
114
|
+
tween_await(signal: Signal): AwaitTweener;
|
|
102
115
|
/**
|
|
103
116
|
* Creates and appends a {@link CallbackTweener}. This method can be used to call an arbitrary method in any object. Use {@link Callable.bind} to bind additional arguments for the call.
|
|
104
117
|
* **Example:** Object that keeps shooting every 1 second:
|
|
@@ -68,13 +68,13 @@ declare class UndoRedo extends GodotObject {
|
|
|
68
68
|
* Returns `true` if the {@link UndoRedo} is currently committing the action, i.e. running its "do" method or property change (see {@link commit_action}).
|
|
69
69
|
*/
|
|
70
70
|
is_committing_action(): boolean;
|
|
71
|
-
/** Redo the last action. */
|
|
71
|
+
/** Redo the last action. Returns `false` if there was no action to redo. */
|
|
72
72
|
redo(): boolean;
|
|
73
73
|
/**
|
|
74
74
|
* Marks the next "do" and "undo" operations to be processed even if the action gets merged with another in the {@link MERGE_ENDS} mode. Return to normal operation using {@link end_force_keep_in_merge_ends}.
|
|
75
75
|
*/
|
|
76
76
|
start_force_keep_in_merge_ends(): void;
|
|
77
|
-
/** Undo the last action. */
|
|
77
|
+
/** Undo the last action. Returns `false` if there was no action to undo. */
|
|
78
78
|
undo(): boolean;
|
|
79
79
|
|
|
80
80
|
/** Called when {@link undo} or {@link redo} was called. */
|
|
@@ -74,11 +74,13 @@ declare interface Vector2 {
|
|
|
74
74
|
*/
|
|
75
75
|
direction_to(to: Vector2 | Vector2i): Vector2;
|
|
76
76
|
/**
|
|
77
|
-
* Returns the squared distance between this vector and `to`.
|
|
77
|
+
* Returns the squared Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
78
78
|
* This method runs faster than {@link distance_to}, so prefer it if you need to compare vectors or need the squared distance for some formula.
|
|
79
79
|
*/
|
|
80
80
|
distance_squared_to(to: Vector2 | Vector2i): float;
|
|
81
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* Returns the Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
83
|
+
*/
|
|
82
84
|
distance_to(to: Vector2 | Vector2i): float;
|
|
83
85
|
/**
|
|
84
86
|
* Returns the dot product of this vector and `with`. This can be used to compare the angle between two vectors. For example, this can be used to determine whether an enemy is facing the player.
|
|
@@ -21,11 +21,13 @@ declare interface Vector2i {
|
|
|
21
21
|
*/
|
|
22
22
|
clampi(min: int, max: int): Vector2i;
|
|
23
23
|
/**
|
|
24
|
-
* Returns the squared distance between this vector and `to`.
|
|
24
|
+
* Returns the squared Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
25
25
|
* This method runs faster than {@link distance_to}, so prefer it if you need to compare vectors or need the squared distance for some formula.
|
|
26
26
|
*/
|
|
27
27
|
distance_squared_to(to: Vector2i | Vector2): int;
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Returns the Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
30
|
+
*/
|
|
29
31
|
distance_to(to: Vector2i | Vector2): float;
|
|
30
32
|
/** Returns the length (magnitude) of this vector. */
|
|
31
33
|
length(): float;
|
|
@@ -56,11 +56,13 @@ declare interface Vector3 {
|
|
|
56
56
|
*/
|
|
57
57
|
direction_to(to: Vector3 | Vector3i): Vector3;
|
|
58
58
|
/**
|
|
59
|
-
* Returns the squared distance between this vector and `to`.
|
|
59
|
+
* Returns the squared Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
60
60
|
* This method runs faster than {@link distance_to}, so prefer it if you need to compare vectors or need the squared distance for some formula.
|
|
61
61
|
*/
|
|
62
62
|
distance_squared_to(to: Vector3 | Vector3i): float;
|
|
63
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Returns the Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
65
|
+
*/
|
|
64
66
|
distance_to(to: Vector3 | Vector3i): float;
|
|
65
67
|
/**
|
|
66
68
|
* Returns the dot product of this vector and `with`. This can be used to compare the angle between two vectors. For example, this can be used to determine whether an enemy is facing the player.
|
|
@@ -21,11 +21,13 @@ declare interface Vector3i {
|
|
|
21
21
|
*/
|
|
22
22
|
clampi(min: int, max: int): Vector3i;
|
|
23
23
|
/**
|
|
24
|
-
* Returns the squared distance between this vector and `to`.
|
|
24
|
+
* Returns the squared Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
25
25
|
* This method runs faster than {@link distance_to}, so prefer it if you need to compare vectors or need the squared distance for some formula.
|
|
26
26
|
*/
|
|
27
27
|
distance_squared_to(to: Vector3i | Vector3): int;
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Returns the Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
30
|
+
*/
|
|
29
31
|
distance_to(to: Vector3i | Vector3): float;
|
|
30
32
|
/** Returns the length (magnitude) of this vector. */
|
|
31
33
|
length(): float;
|
|
@@ -38,11 +38,13 @@ declare interface Vector4 {
|
|
|
38
38
|
*/
|
|
39
39
|
direction_to(to: Vector4 | Vector4i): Vector4;
|
|
40
40
|
/**
|
|
41
|
-
* Returns the squared distance between this vector and `to`.
|
|
41
|
+
* Returns the squared Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
42
42
|
* This method runs faster than {@link distance_to}, so prefer it if you need to compare vectors or need the squared distance for some formula.
|
|
43
43
|
*/
|
|
44
44
|
distance_squared_to(to: Vector4 | Vector4i): float;
|
|
45
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Returns the Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
47
|
+
*/
|
|
46
48
|
distance_to(to: Vector4 | Vector4i): float;
|
|
47
49
|
/** Returns the dot product of this vector and `with`. */
|
|
48
50
|
dot(with_: Vector4 | Vector4i): float;
|
|
@@ -23,11 +23,13 @@ declare interface Vector4i {
|
|
|
23
23
|
*/
|
|
24
24
|
clampi(min: int, max: int): Vector4i;
|
|
25
25
|
/**
|
|
26
|
-
* Returns the squared distance between this vector and `to`.
|
|
26
|
+
* Returns the squared Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
27
27
|
* This method runs faster than {@link distance_to}, so prefer it if you need to compare vectors or need the squared distance for some formula.
|
|
28
28
|
*/
|
|
29
29
|
distance_squared_to(to: Vector4i | Vector4): int;
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Returns the Euclidean distance (https://en.wikipedia.org/wiki/Euclidean_distance) between this vector and `to`.
|
|
32
|
+
*/
|
|
31
33
|
distance_to(to: Vector4i | Vector4): float;
|
|
32
34
|
/** Returns the length (magnitude) of this vector. */
|
|
33
35
|
length(): float;
|
|
@@ -57,6 +57,7 @@ declare class Viewport extends Node {
|
|
|
57
57
|
/**
|
|
58
58
|
* The automatic LOD bias to use for meshes rendered within the {@link Viewport} (this is analogous to {@link ReflectionProbe.mesh_lod_threshold}). Higher values will use less detailed versions of meshes that have LOD variations generated. If set to `0.0`, automatic LOD is disabled. Increase {@link mesh_lod_threshold} to improve performance at the cost of geometry detail.
|
|
59
59
|
* To control this property on the root viewport, set the {@link ProjectSettings.rendering/mesh_lod/lod_change/threshold_pixels} project setting.
|
|
60
|
+
* **Note:** Depending on the mesh's attributes (vertex colors, blend shapes, ...), a mesh may have fewer levels of LOD generated to avoid visible distortion of the mesh once it is affected by vertex colors or blend shapes. Meshes with a very low vertex count will also not have any LODs generated, which means this setting will not affect them at all. In general, this setting makes the largest impact on static meshes with a high vertex count.
|
|
60
61
|
* **Note:** {@link mesh_lod_threshold} does not affect {@link GeometryInstance3D} visibility ranges (also known as "manual" LOD or hierarchical LOD).
|
|
61
62
|
*/
|
|
62
63
|
mesh_lod_threshold: float;
|
|
@@ -151,8 +152,9 @@ declare class Viewport extends Node {
|
|
|
151
152
|
/**
|
|
152
153
|
* Affects the final texture sharpness by reading from a lower or higher mipmap (also called "texture LOD bias"). Negative values make mipmapped textures sharper but grainier when viewed at a distance, while positive values make mipmapped textures blurrier (even when up close).
|
|
153
154
|
* Enabling temporal antialiasing ({@link use_taa}) will automatically apply a `-0.5` offset to this value, while enabling FXAA ({@link screen_space_aa}) will automatically apply a `-0.25` offset to this value. If both TAA and FXAA are enabled at the same time, an offset of `-0.75` is applied to this value.
|
|
154
|
-
* **Note:** If {@link scaling_3d_scale} is lower than `1.0` (exclusive), {@link texture_mipmap_bias} is used to adjust the automatic mipmap bias which is calculated internally based on the scale factor. The formula for this is `log2(scaling_3d_scale) + mipmap_bias`.
|
|
155
155
|
* To control this property on the root viewport, set the {@link ProjectSettings.rendering/textures/default_filters/texture_mipmap_bias} project setting.
|
|
156
|
+
* **Note:** If {@link scaling_3d_scale} is lower than `1.0` (exclusive), {@link texture_mipmap_bias} is used to adjust the automatic mipmap bias which is calculated internally based on the scale factor. The formula for this is `log2(scaling_3d_scale) + mipmap_bias`.
|
|
157
|
+
* **Note:** This property is only supported in the Forward+ and Mobile renderers, not Compatibility. In Compatibility, this property is always treated as if it was set to `0.0`.
|
|
156
158
|
*/
|
|
157
159
|
texture_mipmap_bias: float;
|
|
158
160
|
/**
|
|
@@ -530,6 +532,11 @@ declare class Viewport extends Node {
|
|
|
530
532
|
* **Note:** Only supported when the Metal rendering driver is in use, which limits this scaling mode to macOS and iOS.
|
|
531
533
|
*/
|
|
532
534
|
static readonly SCALING_3D_MODE_METALFX_TEMPORAL: int;
|
|
535
|
+
/**
|
|
536
|
+
* Use nearest-neighbor filtering for the viewport's 3D buffer. This looks crisper than {@link SCALING_3D_MODE_BILINEAR} and has no additional rendering cost. The amount of scaling can be set using {@link scaling_3d_scale}. Values greater than `1.0` are not supported and bilinear downsampling will be used instead. A value of `1.0` disables scaling.
|
|
537
|
+
* **Note:** When using the **Nearest** scaling mode, to avoid uneven pixel scaling, it's highly recommended to use a value equal to an integer divisor with a dividend of `1`. For example, it's best to use a scale of `0.5` (1/2), `0.3333` (1/3), `0.25` (1/4), `0.2` (1/5), and so on.
|
|
538
|
+
*/
|
|
539
|
+
static readonly SCALING_3D_MODE_NEAREST: int;
|
|
533
540
|
/** Represents the size of the {@link Scaling3DMode} enum. */
|
|
534
541
|
static readonly SCALING_3D_MODE_MAX: int;
|
|
535
542
|
// enum MSAA
|
|
@@ -613,6 +620,7 @@ declare class Viewport extends Node {
|
|
|
613
620
|
/**
|
|
614
621
|
* Objects are displayed as wireframe models.
|
|
615
622
|
* **Note:** {@link RenderingServer.set_debug_generate_wireframes} must be called before loading any meshes for wireframes to be visible when using the Compatibility renderer.
|
|
623
|
+
* **Note:** In the Compatibility renderer, backfaces are always visible when using wireframe rendering. In the Forward+ and Mobile renderers, wireframes follow the material's backface culling properties instead.
|
|
616
624
|
*/
|
|
617
625
|
static readonly DEBUG_DRAW_WIREFRAME: int;
|
|
618
626
|
/**
|
|
@@ -726,6 +734,16 @@ declare class Viewport extends Node {
|
|
|
726
734
|
* **Note:** Only supported when using the Forward+ or Mobile rendering methods.
|
|
727
735
|
*/
|
|
728
736
|
static readonly DEBUG_DRAW_INTERNAL_BUFFER: int;
|
|
737
|
+
/**
|
|
738
|
+
* Draws the cluster used by {@link AreaLight3D} nodes to optimize light rendering.
|
|
739
|
+
* **Note:** Only supported when using the Forward+ rendering method.
|
|
740
|
+
*/
|
|
741
|
+
static readonly DEBUG_DRAW_CLUSTER_AREA_LIGHTS: int;
|
|
742
|
+
/**
|
|
743
|
+
* Draws the atlas used by {@link AreaLight3D} nodes in the upper left quadrant of the {@link Viewport}.
|
|
744
|
+
* **Note:** Only supported when using the Forward+ or Mobile rendering method.
|
|
745
|
+
*/
|
|
746
|
+
static readonly DEBUG_DRAW_AREA_LIGHT_ATLAS: int;
|
|
729
747
|
// enum DefaultCanvasItemTextureFilter
|
|
730
748
|
/**
|
|
731
749
|
* The texture filter reads from the nearest pixel only. This makes the texture look pixelated from up close, and grainy from a distance (due to mipmaps not being sampled).
|
|
@@ -745,6 +763,10 @@ declare class Viewport extends Node {
|
|
|
745
763
|
* Use this for non-pixel art textures that may be viewed at a low scale (e.g. due to {@link Camera2D} zoom or sprite scaling), as mipmaps are important to smooth out pixels that are smaller than on-screen pixels.
|
|
746
764
|
*/
|
|
747
765
|
static readonly DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS: int;
|
|
766
|
+
/**
|
|
767
|
+
* The {@link Viewport} will inherit the filter from its parent {@link CanvasItem} or {@link Viewport}.
|
|
768
|
+
*/
|
|
769
|
+
static readonly DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_PARENT_NODE: int;
|
|
748
770
|
/** Represents the size of the {@link DefaultCanvasItemTextureFilter} enum. */
|
|
749
771
|
static readonly DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_MAX: int;
|
|
750
772
|
// enum DefaultCanvasItemTextureRepeat
|
|
@@ -758,6 +780,10 @@ declare class Viewport extends Node {
|
|
|
758
780
|
static readonly DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_ENABLED: int;
|
|
759
781
|
/** Flip the texture when repeating so that the edge lines up instead of abruptly changing. */
|
|
760
782
|
static readonly DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MIRROR: int;
|
|
783
|
+
/**
|
|
784
|
+
* The {@link Viewport} will inherit the repeat mode from its parent {@link CanvasItem} or {@link Viewport}.
|
|
785
|
+
*/
|
|
786
|
+
static readonly DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_PARENT_NODE: int;
|
|
761
787
|
/** Represents the size of the {@link DefaultCanvasItemTextureRepeat} enum. */
|
|
762
788
|
static readonly DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MAX: int;
|
|
763
789
|
// enum SDFOversize
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
+
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
+
|
|
4
|
+
/** A virtual joystick control for touchscreen devices. */
|
|
5
|
+
declare class VirtualJoystick extends Control {
|
|
6
|
+
/** The action to trigger when the joystick is moved down. */
|
|
7
|
+
action_down: string;
|
|
8
|
+
/** The action to trigger when the joystick is moved left. */
|
|
9
|
+
action_left: string;
|
|
10
|
+
/** The action to trigger when the joystick is moved right. */
|
|
11
|
+
action_right: string;
|
|
12
|
+
/** The action to trigger when the joystick is moved up. */
|
|
13
|
+
action_up: string;
|
|
14
|
+
/**
|
|
15
|
+
* The multiplier applied to the joystick's radius that defines the clamp zone.
|
|
16
|
+
* This zone limits how far the joystick tip can move from its center before being clamped.
|
|
17
|
+
* A value of `1.0` means the tip can move up to the edge of the joystick's visual size.
|
|
18
|
+
* In {@link JOYSTICK_FOLLOWING} mode, this radius also determines how far the finger can move before the joystick base starts following the touch input.
|
|
19
|
+
*/
|
|
20
|
+
clampzone_ratio: float;
|
|
21
|
+
/**
|
|
22
|
+
* The ratio of the joystick size that defines the joystick deadzone. The joystick tip must move beyond this ratio before being considered active.
|
|
23
|
+
* This deadzone is applied before triggering input actions and affects the joystick's input vector and all related signals.
|
|
24
|
+
* Note that input actions may also define their own deadzones in the InputMap. If both are set, the joystick deadzone is applied first, followed by the action's deadzone.
|
|
25
|
+
* By default, this value is `0.0`, meaning the joystick does not apply its own deadzone and relies entirely on the InputMap action deadzones.
|
|
26
|
+
*/
|
|
27
|
+
deadzone_ratio: float;
|
|
28
|
+
/**
|
|
29
|
+
* The initial position of the joystick as a ratio of the control's size. `(0, 0)` is top-left and `(1, 1)` is bottom-right.
|
|
30
|
+
*/
|
|
31
|
+
initial_offset_ratio: Vector2;
|
|
32
|
+
/** The joystick mode to use. */
|
|
33
|
+
joystick_mode: int;
|
|
34
|
+
/** The size of the joystick in pixels. */
|
|
35
|
+
joystick_size: float;
|
|
36
|
+
/** The size of the joystick tip in pixels. */
|
|
37
|
+
tip_size: float;
|
|
38
|
+
/** The visibility mode to use. */
|
|
39
|
+
visibility_mode: int;
|
|
40
|
+
set_action_down(value: string): void;
|
|
41
|
+
get_action_down(): string;
|
|
42
|
+
set_action_left(value: string): void;
|
|
43
|
+
get_action_left(): string;
|
|
44
|
+
set_action_right(value: string): void;
|
|
45
|
+
get_action_right(): string;
|
|
46
|
+
set_action_up(value: string): void;
|
|
47
|
+
get_action_up(): string;
|
|
48
|
+
set_clampzone_ratio(value: float): void;
|
|
49
|
+
get_clampzone_ratio(): float;
|
|
50
|
+
set_deadzone_ratio(value: float): void;
|
|
51
|
+
get_deadzone_ratio(): float;
|
|
52
|
+
set_initial_offset_ratio(value: Vector2 | Vector2i): void;
|
|
53
|
+
get_initial_offset_ratio(): Vector2;
|
|
54
|
+
set_joystick_mode(value: int): void;
|
|
55
|
+
get_joystick_mode(): int;
|
|
56
|
+
set_joystick_size(value: float): void;
|
|
57
|
+
get_joystick_size(): float;
|
|
58
|
+
set_tip_size(value: float): void;
|
|
59
|
+
get_tip_size(): float;
|
|
60
|
+
set_visibility_mode(value: int): void;
|
|
61
|
+
get_visibility_mode(): int;
|
|
62
|
+
|
|
63
|
+
/** Emitted when the tip enters the deadzone after being outside of it. */
|
|
64
|
+
flick_canceled: Signal<[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Emitted when the tip moved outside the deadzone and the joystick is released. The `input_vector` contains the last input direction and strength before release. Its length is between `0.0` and `1.0`.
|
|
67
|
+
*/
|
|
68
|
+
flicked: Signal<[Vector2]>;
|
|
69
|
+
/** Emitted when the joystick is pressed. */
|
|
70
|
+
pressed: Signal<[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Emitted when the joystick is released. The `input_vector` is the final input direction and strength, with a length between `0.0` and `1.0`.
|
|
73
|
+
*/
|
|
74
|
+
released: Signal<[Vector2]>;
|
|
75
|
+
/** Emitted when the joystick is released without moving the tip. */
|
|
76
|
+
tapped: Signal<[]>;
|
|
77
|
+
|
|
78
|
+
// enum JoystickMode
|
|
79
|
+
/** The joystick doesn't move. */
|
|
80
|
+
static readonly JOYSTICK_FIXED: int;
|
|
81
|
+
/**
|
|
82
|
+
* The joystick is moved to the initial touch position as long as it's within the joystick's bounds. It moves back to its original position when released.
|
|
83
|
+
*/
|
|
84
|
+
static readonly JOYSTICK_DYNAMIC: int;
|
|
85
|
+
/**
|
|
86
|
+
* The joystick is moved to the initial touch position as long as it's within the joystick's bounds. It will follow the touch input if it goes outside the joystick's range. It moves back to its original position when released.
|
|
87
|
+
*/
|
|
88
|
+
static readonly JOYSTICK_FOLLOWING: int;
|
|
89
|
+
// enum VisibilityMode
|
|
90
|
+
/** The joystick is always visible. */
|
|
91
|
+
static readonly VISIBILITY_ALWAYS: int;
|
|
92
|
+
/** The joystick is only visible when being touched. */
|
|
93
|
+
static readonly VISIBILITY_WHEN_TOUCHED: int;
|
|
94
|
+
}
|
|
@@ -46,15 +46,25 @@ declare class VoxelGIData extends Resource {
|
|
|
46
46
|
set_use_two_bounces(value: boolean): void;
|
|
47
47
|
is_using_two_bounces(): boolean;
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Initializes this {@link VoxelGIData} with the specified data. `octree_cells` must be a multiple of 32. `octree_cells` must be double the size of `data_cells`. The allocated data can be retrieved later using the various getter methods.
|
|
51
|
+
*/
|
|
49
52
|
allocate(to_cell_xform: Transform3D | Projection, aabb: AABB, octree_size: Vector3 | Vector3i, octree_cells: PackedByteArray | Array<unknown>, data_cells: PackedByteArray | Array<unknown>, distance_field: PackedByteArray | Array<unknown>, level_counts: PackedInt32Array | Array<unknown>): void;
|
|
50
53
|
/**
|
|
51
54
|
* Returns the bounds of the baked voxel data as an {@link AABB}, which should match {@link VoxelGI.size} after being baked (which only contains the size as a {@link Vector3}).
|
|
52
55
|
* **Note:** If the size was modified without baking the VoxelGI data, then the value of {@link get_bounds} and {@link VoxelGI.size} will not match.
|
|
53
56
|
*/
|
|
54
57
|
get_bounds(): AABB;
|
|
58
|
+
/** Returns the baked cell data for this {@link VoxelGIData}. */
|
|
55
59
|
get_data_cells(): PackedByteArray;
|
|
60
|
+
/** Returns the baked level counts for this {@link VoxelGIData}. */
|
|
56
61
|
get_level_counts(): PackedInt32Array;
|
|
62
|
+
/** Returns the baked octree cell data for this {@link VoxelGIData}. */
|
|
57
63
|
get_octree_cells(): PackedByteArray;
|
|
64
|
+
/**
|
|
65
|
+
* Returns the baked octree size for this {@link VoxelGIData}, which corresponds to the number of subdivisions per axis. This can be viewed in the editor by hovering the **Bake VoxelGI** button at the top of the 3D editor viewport when a {@link VoxelGI} node is selected and looking at the **Subdivisions** field in the tooltip.
|
|
66
|
+
*/
|
|
58
67
|
get_octree_size(): Vector3;
|
|
68
|
+
/** Returns the baked cell transform for this {@link VoxelGIData}. */
|
|
59
69
|
get_to_cell_xform(): Transform3D;
|
|
60
70
|
}
|