typescript-to-gdscript 0.1.1 → 0.1.3
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/gd-to-ts/class-scope.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/class-scope.js +4 -4
- package/dist/converter/gd-to-ts/class-scope.js.map +1 -1
- package/dist/converter/gd-to-ts/expressions.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/expressions.js +59 -8
- package/dist/converter/gd-to-ts/expressions.js.map +1 -1
- package/dist/converter/gd-to-ts/functions.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/functions.js +29 -24
- package/dist/converter/gd-to-ts/functions.js.map +1 -1
- package/dist/converter/gd-to-ts/identifiers.d.ts +27 -0
- package/dist/converter/gd-to-ts/identifiers.d.ts.map +1 -0
- package/dist/converter/gd-to-ts/identifiers.js +76 -0
- package/dist/converter/gd-to-ts/identifiers.js.map +1 -0
- package/dist/converter/gd-to-ts/members.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/members.js +15 -6
- package/dist/converter/gd-to-ts/members.js.map +1 -1
- package/dist/converter/gd-to-ts/statements.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/statements.js +12 -1
- package/dist/converter/gd-to-ts/statements.js.map +1 -1
- package/dist/converter/gd-to-ts/type-inference.d.ts +33 -0
- package/dist/converter/gd-to-ts/type-inference.d.ts.map +1 -1
- package/dist/converter/gd-to-ts/type-inference.js +79 -0
- package/dist/converter/gd-to-ts/type-inference.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/typings/content-generators.d.ts +2 -2
- package/dist/typings/content-generators.d.ts.map +1 -1
- package/dist/typings/content-generators.js +8 -2
- package/dist/typings/content-generators.js.map +1 -1
- package/dist/typings/godot-docs.d.ts.map +1 -1
- package/dist/typings/godot-docs.js +45 -16
- package/dist/typings/godot-docs.js.map +1 -1
- package/dist/typings/override-system.d.ts.map +1 -1
- package/dist/typings/override-system.js +8 -0
- package/dist/typings/override-system.js.map +1 -1
- package/dist/typings/scene-utils.d.ts +8 -0
- package/dist/typings/scene-utils.d.ts.map +1 -1
- package/dist/typings/scene-utils.js +49 -8
- package/dist/typings/scene-utils.js.map +1 -1
- package/dist/typings/scenes.d.ts.map +1 -1
- package/dist/typings/scenes.js +17 -10
- package/dist/typings/scenes.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 +74 -28
- 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/globals/globals.d.ts +20 -0
- package/typings/godot-class-registry.json +2120 -3693
- package/typings-overrides/dictionary.d.ts +35 -15
- package/typings-overrides/object-dict.d.ts +43 -0
- 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
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
// AUTO-GENERATED from Godot class documentation.
|
|
2
2
|
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Override: Object (the structural base every value/dictionary inherits) —
|
|
6
|
+
* `this: T` generic methods so plain object literals and typed Dictionaries
|
|
7
|
+
* get key/value-aware typing for the Dictionary access methods.
|
|
8
|
+
*
|
|
9
|
+
* The `this: T` parameter (à la CallableFunction.apply/bind) infers the actual
|
|
10
|
+
* receiver type at the call site, so `keyof this` resolves to the real keys
|
|
11
|
+
* instead of collapsing to `keyof Object`. Each method pairs a typed overload
|
|
12
|
+
* (literal/known keys → precise type) with a permissive fallback (`unknown`
|
|
13
|
+
* key/value) so dynamic runtime keys, `{}` literals, and untyped Dictionaries
|
|
14
|
+
* keep compiling — matching GDScript's Variant semantics where these methods
|
|
15
|
+
* accept/return Variant. The typed overload comes first so it wins for known
|
|
16
|
+
* literal keys.
|
|
17
|
+
*
|
|
18
|
+
* Value/key TYPE ENFORCEMENT for typed dictionaries comes from the index
|
|
19
|
+
* signature on `Dictionary<K, V>` via the `[]` operator (`d[k] = v`), not from
|
|
20
|
+
* these methods — the permissive fallback intentionally allows `.set()` etc.
|
|
21
|
+
* with any value.
|
|
22
|
+
*
|
|
23
|
+
* const d: Dictionary<string, int> = { x: 1 };
|
|
24
|
+
* d.get("x"); // int (typed overload)
|
|
25
|
+
* d.get(someStr); // unknown (fallback)
|
|
26
|
+
* d.keys(); // Array<string>
|
|
27
|
+
* d["x"] = "no"; // ERROR (index signature enforces value type)
|
|
28
|
+
*/
|
|
5
29
|
declare interface Object {
|
|
6
30
|
/**
|
|
7
31
|
* Assigns elements of another `dictionary` into the dictionary. Resizes the dictionary to match `dictionary`. Performs type conversions if the dictionary is typed.
|
|
@@ -14,7 +38,7 @@ declare interface Object {
|
|
|
14
38
|
* By default, a **shallow** copy is returned: all nested {@link Array}, {@link Dictionary}, and {@link Resource} keys and values are shared with the original dictionary. Modifying any of those in one dictionary will also affect them in the other.
|
|
15
39
|
* If `deep` is `true`, a **deep** copy is returned: all nested arrays and dictionaries are also duplicated (recursively). Any {@link Resource} is still shared with the original dictionary, though.
|
|
16
40
|
*/
|
|
17
|
-
duplicate(deep?: boolean):
|
|
41
|
+
duplicate<T>(this: T, deep?: boolean): T;
|
|
18
42
|
/**
|
|
19
43
|
* Duplicates this dictionary, deeply, like {@link duplicate} when passing `true`, with extra control over how subresources are handled.
|
|
20
44
|
* `deep_subresources_mode` must be one of the values from {@link Resource.DeepDuplicateMode}. By default, only internal resources will be duplicated (recursively).
|
|
@@ -24,19 +48,24 @@ declare interface Object {
|
|
|
24
48
|
* Removes the dictionary entry by key, if it exists. Returns `true` if the given `key` existed in the dictionary, otherwise `false`.
|
|
25
49
|
* **Note:** Do not erase entries while iterating over the dictionary. You can iterate over the {@link keys} array instead.
|
|
26
50
|
*/
|
|
51
|
+
erase<T, K extends keyof T>(this: T, key: K): boolean;
|
|
27
52
|
erase(key: unknown): boolean;
|
|
28
53
|
/**
|
|
29
54
|
* Finds and returns the first key whose associated value is equal to `value`, or `null` if it is not found.
|
|
30
55
|
* **Note:** `null` is also a valid key. If inside the dictionary, {@link find_key} may give misleading results.
|
|
31
56
|
*/
|
|
57
|
+
find_key<T>(this: T, value: T[keyof T]): keyof T | null;
|
|
32
58
|
find_key(value: unknown): unknown;
|
|
33
59
|
/**
|
|
34
60
|
* Returns the corresponding value for the given `key` in the dictionary. If the `key` does not exist, returns `default`, or `null` if the parameter is omitted.
|
|
61
|
+
* **Note:** If the `default` argument is computationally expensive or has unwanted side effects, consider using the {@link has} method instead:
|
|
35
62
|
*/
|
|
63
|
+
get<T, K extends keyof T>(this: T, key: K, default_?: T[K]): T[K];
|
|
36
64
|
get(key: unknown, default_?: unknown): unknown;
|
|
37
65
|
/**
|
|
38
66
|
* Gets a value and ensures the key is set. If the `key` exists in the dictionary, this behaves like {@link get}. Otherwise, the `default` value is inserted into the dictionary and returned.
|
|
39
67
|
*/
|
|
68
|
+
get_or_add<T, K extends keyof T>(this: T, key: K, default_?: T[K]): T[K];
|
|
40
69
|
get_or_add(key: unknown, default_?: unknown): unknown;
|
|
41
70
|
/**
|
|
42
71
|
* Returns the built-in {@link Variant} type of the typed dictionary's keys as a {@link Variant.Type} constant. If the keys are not typed, returns {@link TYPE_NIL}. See also {@link is_typed_key}.
|
|
@@ -67,6 +96,7 @@ declare interface Object {
|
|
|
67
96
|
* In GDScript, this is equivalent to the `in` operator:
|
|
68
97
|
* **Note:** This method returns `true` as long as the `key` exists, even if its corresponding value is `null`.
|
|
69
98
|
*/
|
|
99
|
+
has<T, K extends keyof T>(this: T, key: K): boolean;
|
|
70
100
|
has(key: unknown): boolean;
|
|
71
101
|
/** Returns `true` if the dictionary contains all keys in the given `keys` array. */
|
|
72
102
|
has_all(keys: Array<unknown>): boolean;
|
|
@@ -97,7 +127,7 @@ declare interface Object {
|
|
|
97
127
|
/** Returns `true` if the dictionary's values are typed. */
|
|
98
128
|
is_typed_value(): boolean;
|
|
99
129
|
/** Returns the list of keys in the dictionary. */
|
|
100
|
-
keys(): Array<
|
|
130
|
+
keys<T>(this: T): Array<keyof T>;
|
|
101
131
|
/**
|
|
102
132
|
* Makes the dictionary read-only, i.e. disables modification of the dictionary's contents. Does not apply to nested content, e.g. content of nested dictionaries.
|
|
103
133
|
*/
|
|
@@ -111,7 +141,7 @@ declare interface Object {
|
|
|
111
141
|
* Returns a copy of this dictionary merged with the other `dictionary`. By default, duplicate keys are not copied over, unless `overwrite` is `true`. See also {@link merge}.
|
|
112
142
|
* This method is useful for quickly making dictionaries with default values:
|
|
113
143
|
*/
|
|
114
|
-
merged(dictionary:
|
|
144
|
+
merged<T>(this: T, dictionary: T, overwrite?: boolean): T;
|
|
115
145
|
/**
|
|
116
146
|
* Returns `true` if the two dictionaries contain the same keys and values, inner {@link Dictionary} and {@link Array} keys and values are compared recursively.
|
|
117
147
|
*/
|
|
@@ -119,6 +149,7 @@ declare interface Object {
|
|
|
119
149
|
/**
|
|
120
150
|
* Sets the value of the element at the given `key` to the given `value`. Returns `true` if the value is set successfully. Fails and returns `false` if the dictionary is read-only, or if `key` and `value` don't match the dictionary's types. This is the same as using the `[]` operator (`dict[key] = value`).
|
|
121
151
|
*/
|
|
152
|
+
set<T, K extends keyof T>(this: T, key: K, value: T[K]): boolean;
|
|
122
153
|
set(key: unknown, value: unknown): boolean;
|
|
123
154
|
/**
|
|
124
155
|
* Returns the number of entries in the dictionary. Empty dictionaries (`{ }`) always return `0`. See also {@link is_empty}.
|
|
@@ -130,7 +161,7 @@ declare interface Object {
|
|
|
130
161
|
*/
|
|
131
162
|
sort(): void;
|
|
132
163
|
/** Returns the list of values in this dictionary. */
|
|
133
|
-
values(): Array<
|
|
164
|
+
values<T>(this: T): Array<T[keyof T]>;
|
|
134
165
|
|
|
135
166
|
// Operator overloads
|
|
136
167
|
[__ops_ne]: { right: Dictionary; ret: boolean };
|
|
@@ -140,41 +171,56 @@ declare interface Object {
|
|
|
140
171
|
}
|
|
141
172
|
|
|
142
173
|
/**
|
|
143
|
-
* Override: Dictionary
|
|
174
|
+
* Override: Dictionary typed surface.
|
|
144
175
|
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
176
|
+
* `DictionaryTypedMethods<K, V>` is the single source of truth for the
|
|
177
|
+
* key/value-typed access methods. The generator derives `DictionaryKeyMethods`
|
|
178
|
+
* from it — `Omit<Object, keyof DictionaryTypedMethods> & DictionaryTypedMethods`
|
|
179
|
+
* — so the method-name list lives only here. Because the typed methods are
|
|
180
|
+
* all-`unknown` when K = V = unknown, a bare `Dictionary`
|
|
181
|
+
* (= DictionaryKeyMethods<unknown, unknown>) still accepts `{}` literals.
|
|
151
182
|
*/
|
|
152
|
-
interface
|
|
153
|
-
assign(dictionary: Dictionary<K, V>): void;
|
|
154
|
-
duplicate(deep?: boolean): Dictionary<K, V>;
|
|
155
|
-
duplicate_deep(deep_subresources_mode?: int): Dictionary<K, V>;
|
|
156
|
-
erase(key: K): boolean;
|
|
157
|
-
find_key(value: V): K | null;
|
|
183
|
+
interface DictionaryTypedMethods<K = unknown, V = unknown> {
|
|
158
184
|
get(key: K, default_?: V): V;
|
|
159
185
|
get_or_add(key: K, default_?: V): V;
|
|
186
|
+
set(key: K, value: V): boolean;
|
|
160
187
|
has(key: K): boolean;
|
|
161
188
|
has_all(keys: Array<K>): boolean;
|
|
189
|
+
erase(key: K): boolean;
|
|
190
|
+
find_key(value: V): K | null;
|
|
162
191
|
keys(): Array<K>;
|
|
192
|
+
values(): Array<V>;
|
|
193
|
+
assign(dictionary: Dictionary<K, V>): void;
|
|
163
194
|
merge(dictionary: Dictionary<K, V>, overwrite?: boolean): void;
|
|
164
195
|
merged(dictionary: Dictionary<K, V>, overwrite?: boolean): Dictionary<K, V>;
|
|
165
|
-
|
|
166
|
-
values(): Array<V>;
|
|
196
|
+
duplicate(deep?: boolean): Dictionary<K, V>;
|
|
167
197
|
}
|
|
198
|
+
interface DictionaryKeyMethods<K = unknown, V = unknown>
|
|
199
|
+
extends Omit<Object, keyof DictionaryTypedMethods>,
|
|
200
|
+
DictionaryTypedMethods<K, V> {}
|
|
201
|
+
type Dictionary<K = unknown, V = unknown> =
|
|
202
|
+
[K] extends [string | number]
|
|
203
|
+
? { [P in K & (string | number)]: V }
|
|
204
|
+
: DictionaryKeyMethods<K, V>;
|
|
205
|
+
/**
|
|
206
|
+
* Override: DictionaryConstructor — generic call signatures so
|
|
207
|
+
* `Dictionary<K, V>()` yields a typed dictionary. (Inference from a contextual
|
|
208
|
+
* type or a copy argument can't flow through the conditional `Dictionary` alias,
|
|
209
|
+
* so use explicit type arguments for a typed result.)
|
|
210
|
+
*/
|
|
168
211
|
declare interface DictionaryConstructor {
|
|
169
212
|
readonly prototype: Dictionary;
|
|
170
|
-
|
|
171
|
-
(): Dictionary
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
213
|
+
<K = unknown, V = unknown>(): Dictionary<K, V>;
|
|
214
|
+
<K = unknown, V = unknown>(from_: Dictionary<K, V>): Dictionary<K, V>;
|
|
215
|
+
<K = unknown, V = unknown>(
|
|
216
|
+
base: Dictionary<K, V>,
|
|
217
|
+
key_type: int,
|
|
218
|
+
key_class_name: string,
|
|
219
|
+
key_script: unknown,
|
|
220
|
+
value_type: int,
|
|
221
|
+
value_class_name: string,
|
|
222
|
+
value_script: unknown,
|
|
223
|
+
): Dictionary<K, V>;
|
|
178
224
|
}
|
|
179
225
|
declare const Dictionary: DictionaryConstructor;
|
|
180
226
|
declare var Object: typeof GodotObject;
|
|
@@ -92,12 +92,17 @@ declare class DirAccess extends RefCounted {
|
|
|
92
92
|
* On other platforms, the method returns 0.
|
|
93
93
|
*/
|
|
94
94
|
static get_drive_count(): int;
|
|
95
|
+
/**
|
|
96
|
+
* On Windows, returns the label of the drive (partition) passed as an argument.
|
|
97
|
+
* On other platforms, or if the requested drive does not exist, returns an empty String.
|
|
98
|
+
*/
|
|
99
|
+
static get_drive_label(idx: int): string;
|
|
95
100
|
/**
|
|
96
101
|
* On Windows, returns the name of the drive (partition) passed as an argument (e.g. `C:`).
|
|
97
102
|
* On macOS, returns the path to the mounted volume passed as an argument.
|
|
98
103
|
* On Linux, returns the path to the mounted volume or GTK 3 bookmark passed as an argument.
|
|
99
104
|
* On Android (API level 30+), returns the path to the mounted volume as an argument.
|
|
100
|
-
* On other platforms, or if the requested drive does not exist,
|
|
105
|
+
* On other platforms, or if the requested drive does not exist, returns an empty String.
|
|
101
106
|
*/
|
|
102
107
|
static get_drive_name(idx: int): string;
|
|
103
108
|
/**
|
|
@@ -95,7 +95,7 @@ declare interface DisplayServer extends GodotObject {
|
|
|
95
95
|
/** Sets element background color. */
|
|
96
96
|
accessibility_update_set_background_color(id: RID, color: Color): void;
|
|
97
97
|
/** Sets element bounding box, relative to the node position. */
|
|
98
|
-
accessibility_update_set_bounds(id: RID,
|
|
98
|
+
accessibility_update_set_bounds(id: RID, rect: Rect2 | Rect2i): void;
|
|
99
99
|
/** Sets element checked state. */
|
|
100
100
|
accessibility_update_set_checked(id: RID, checekd: boolean): void;
|
|
101
101
|
/** Sets element class name. */
|
|
@@ -271,7 +271,7 @@ declare interface DisplayServer extends GodotObject {
|
|
|
271
271
|
* Displays OS native dialog for selecting files or directories in the file system.
|
|
272
272
|
* Each filter string in the `filters` array should be formatted like this: `*.png,*.jpg,*.jpeg;Image Files;image/png,image/jpeg`. The description text of the filter is optional and can be omitted. It is recommended to set both file extension and MIME type. See also {@link FileDialog.filters}.
|
|
273
273
|
* Callbacks have the following arguments: `status: bool, selected_paths: PackedStringArray, selected_filter_index: int`. **On Android,** the third callback argument (`selected_filter_index`) is always `0`.
|
|
274
|
-
* **Note:** This method is implemented if the display server has the {@link FEATURE_NATIVE_DIALOG_FILE} feature. Supported platforms include Linux (X11/Wayland), Windows, macOS, and Android
|
|
274
|
+
* **Note:** This method is implemented if the display server has the {@link FEATURE_NATIVE_DIALOG_FILE} feature. Supported platforms include Linux (X11/Wayland), Windows, macOS, and Android.
|
|
275
275
|
* **Note:** `current_directory` might be ignored.
|
|
276
276
|
* **Note:** Embedded file dialogs and Windows file dialogs support only file extensions, while Android, Linux, and macOS file dialogs also support MIME types.
|
|
277
277
|
* **Note:** On Android and Linux, `show_hidden` is ignored.
|
|
@@ -771,6 +771,11 @@ declare interface DisplayServer extends GodotObject {
|
|
|
771
771
|
* **Note:** This method is implemented on Android, iOS, macOS, Windows, and Linux (X11/Wayland).
|
|
772
772
|
*/
|
|
773
773
|
is_dark_mode_supported(): boolean;
|
|
774
|
+
/**
|
|
775
|
+
* Returns `true` if the application is in picture-in-picture mode.
|
|
776
|
+
* **Note:** This method is implemented on Android.
|
|
777
|
+
*/
|
|
778
|
+
is_in_pip_mode(window_id?: int): boolean;
|
|
774
779
|
/**
|
|
775
780
|
* Returns `true` if touch events are available (Android or iOS), the capability is detected on the Web platform or if {@link ProjectSettings.input_devices/pointing/emulate_touch_from_mouse} is `true`.
|
|
776
781
|
*/
|
|
@@ -824,6 +829,21 @@ declare interface DisplayServer extends GodotObject {
|
|
|
824
829
|
mouse_get_position(): Vector2i;
|
|
825
830
|
/** Sets the current mouse mode. See also {@link mouse_get_mode}. */
|
|
826
831
|
mouse_set_mode(mouse_mode: int): void;
|
|
832
|
+
/**
|
|
833
|
+
* Enters picture-in-picture mode.
|
|
834
|
+
* **Note:** This method is implemented on Android.
|
|
835
|
+
*/
|
|
836
|
+
pip_mode_enter(window_id?: int): void;
|
|
837
|
+
/**
|
|
838
|
+
* Specifies the aspect ratio for picture-in-picture mode.
|
|
839
|
+
* **Note:** This method is implemented on Android.
|
|
840
|
+
*/
|
|
841
|
+
pip_mode_set_aspect_ratio(numerator: int, denominator: int, window_id?: int): void;
|
|
842
|
+
/**
|
|
843
|
+
* Specifies whether picture-in-picture mode should be entered automatically when the application goes in the background.
|
|
844
|
+
* **Note:** This method is implemented on Android.
|
|
845
|
+
*/
|
|
846
|
+
pip_mode_set_auto_enter_on_background(auto_enter_on_background: boolean, window_id?: int): void;
|
|
827
847
|
/**
|
|
828
848
|
* Perform window manager processing, including input flushing. See also {@link force_process_and_drop_events}, {@link Input.flush_buffered_events} and {@link Input.use_accumulated_input}.
|
|
829
849
|
*/
|
|
@@ -941,7 +961,7 @@ declare interface DisplayServer extends GodotObject {
|
|
|
941
961
|
*/
|
|
942
962
|
set_hardware_keyboard_connection_change_callback(callable: Callable): void;
|
|
943
963
|
/**
|
|
944
|
-
* Sets the
|
|
964
|
+
* Sets the application icon and icons of all windows with an {@link Image}. To use icons in the operating system's native format, use {@link set_native_icon} instead.
|
|
945
965
|
* **Note:** Requires support for {@link FEATURE_ICON}.
|
|
946
966
|
*/
|
|
947
967
|
set_icon(image: Image): void;
|
|
@@ -1113,6 +1133,24 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1113
1133
|
window_get_current_screen(window_id?: int): int;
|
|
1114
1134
|
/** Returns the current value of the given window's `flag`. */
|
|
1115
1135
|
window_get_flag(flag: int, window_id?: int): boolean;
|
|
1136
|
+
/**
|
|
1137
|
+
* When {@link window_is_hdr_output_enabled} returns `true`, this returns the current maximum luminance in nits (cd/m²) for HDR output by the window specified by `window_id`. If the maximum luminance is being automatically adjusted based on the screen's capabilities, this method will return that value. Otherwise, it will return the value set by {@link window_set_hdr_output_max_luminance}. This maximum luminance value is used when calculating {@link window_get_output_max_linear_value}.
|
|
1138
|
+
* **Note:** This maximum luminance may not match the physical behavior of the screen, but will always be proportionally correct relative to {@link window_get_hdr_output_current_reference_luminance}.
|
|
1139
|
+
*/
|
|
1140
|
+
window_get_hdr_output_current_max_luminance(window_id?: int): float;
|
|
1141
|
+
/**
|
|
1142
|
+
* When {@link window_is_hdr_output_enabled} returns `true`, this returns the current reference white luminance in nits (cd/m²) for HDR output by the window specified by `window_id`. If the reference luminance is being automatically adjusted to match the operating system brightness, this will return that value. Otherwise, it will return the value set by {@link window_set_hdr_output_reference_luminance}. This reference luminance value is used when calculating {@link window_get_output_max_linear_value}.
|
|
1143
|
+
* **Note:** This reference white luminance may not match the physical behavior of the screen, but will always be proportionally correct relative to {@link window_get_hdr_output_current_max_luminance}.
|
|
1144
|
+
*/
|
|
1145
|
+
window_get_hdr_output_current_reference_luminance(window_id?: int): float;
|
|
1146
|
+
/**
|
|
1147
|
+
* Returns the maximum luminance in nits (cd/m²) set for HDR output by the window specified by `window_id`. Negative values indicate that the value is being automatically adjusted based on the screen's capabilities. See also {@link window_get_hdr_output_current_max_luminance}.
|
|
1148
|
+
*/
|
|
1149
|
+
window_get_hdr_output_max_luminance(window_id?: int): float;
|
|
1150
|
+
/**
|
|
1151
|
+
* Returns the reference white luminance in nits (cd/m²) set for HDR output by the window specified by `window_id`. Negative values indicate that the value is being automatically adjusted to match the operating system brightness. See also {@link window_get_hdr_output_current_reference_luminance}.
|
|
1152
|
+
*/
|
|
1153
|
+
window_get_hdr_output_reference_luminance(window_id?: int): float;
|
|
1116
1154
|
/** Returns the window's maximum size (in pixels). See also {@link window_set_max_size}. */
|
|
1117
1155
|
window_get_max_size(window_id?: int): Vector2i;
|
|
1118
1156
|
/** Returns the window's minimum size (in pixels). See also {@link window_set_min_size}. */
|
|
@@ -1124,6 +1162,10 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1124
1162
|
* **Note:** This method is implemented on Android, Linux (X11/Wayland), macOS, and Windows.
|
|
1125
1163
|
*/
|
|
1126
1164
|
window_get_native_handle(handle_type: int, window_id?: int): int;
|
|
1165
|
+
/**
|
|
1166
|
+
* Returns the maximum value for linear color components that can be displayed for the window specified by `window_id`, regardless of SDR or HDR output. Returns `1.0` if HDR is not enabled or not supported. When HDR output is enabled, this is calculated based on {@link window_get_hdr_output_current_reference_luminance} and {@link window_get_hdr_output_current_max_luminance}. The {@link Window.output_max_linear_value_changed} signal will be emitted whenever this value changes. This value is used by tonemapping and other {@link Environment} effects to ensure that bright colors are presented in the range that can be displayed by this window. Corresponds to {@link Window.get_output_max_linear_value}.
|
|
1167
|
+
*/
|
|
1168
|
+
window_get_output_max_linear_value(window_id?: int): float;
|
|
1127
1169
|
/**
|
|
1128
1170
|
* Returns the bounding box of control, or menu item that was used to open the popup window, in the screen coordinate system.
|
|
1129
1171
|
*/
|
|
@@ -1155,6 +1197,18 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1155
1197
|
window_get_vsync_mode(window_id?: int): int;
|
|
1156
1198
|
/** Returns `true` if the window specified by `window_id` is focused. */
|
|
1157
1199
|
window_is_focused(window_id?: int): boolean;
|
|
1200
|
+
/**
|
|
1201
|
+
* Returns `true` if HDR output is currently enabled for the window specified by `window_id`. The returned value may change dynamically based on system settings, screen capabilities, and which screen the window is currently on.
|
|
1202
|
+
*/
|
|
1203
|
+
window_is_hdr_output_enabled(window_id?: int): boolean;
|
|
1204
|
+
/**
|
|
1205
|
+
* Returns `true` if HDR output is requested for the window specified by `window_id`. Corresponds to {@link Window.hdr_output_requested}.
|
|
1206
|
+
*/
|
|
1207
|
+
window_is_hdr_output_requested(window_id?: int): boolean;
|
|
1208
|
+
/**
|
|
1209
|
+
* Returns `true` if the window specified by `window_id` supports HDR output. This depends on the platform, screen capabilities, system settings, and the screen the window is currently on.
|
|
1210
|
+
*/
|
|
1211
|
+
window_is_hdr_output_supported(window_id?: int): boolean;
|
|
1158
1212
|
/** Returns `true` if the given window can be maximized (the maximize button is enabled). */
|
|
1159
1213
|
window_is_maximize_allowed(window_id?: int): boolean;
|
|
1160
1214
|
/**
|
|
@@ -1175,6 +1229,10 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1175
1229
|
* Makes the window specified by `window_id` request attention, which is materialized by the window title and taskbar entry blinking until the window is focused. This usually has no visible effect if the window is currently focused. The exact behavior varies depending on the operating system.
|
|
1176
1230
|
*/
|
|
1177
1231
|
window_request_attention(window_id?: int): void;
|
|
1232
|
+
/**
|
|
1233
|
+
* If `enable` is `true`, HDR output is requested for the window specified by `window_id`. The window will automatically switch between HDR and SDR if it is moved between screens, screen capabilities change, or system settings are modified. This will internally force {@link Viewport.use_hdr_2d} to be enabled on the main {@link Viewport}. All other {@link SubViewport} of the {@link Window} must have their {@link Viewport.use_hdr_2d} property enabled to produce HDR output. Corresponds to {@link Window.hdr_output_requested}.
|
|
1234
|
+
*/
|
|
1235
|
+
window_request_hdr_output(enable: boolean, window_id?: int): void;
|
|
1178
1236
|
/**
|
|
1179
1237
|
* Sets the background color of the root window.
|
|
1180
1238
|
* **Note:** This method is implemented only on Android.
|
|
@@ -1200,6 +1258,21 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1200
1258
|
window_set_exclusive(window_id: int, exclusive: boolean): void;
|
|
1201
1259
|
/** Enables or disables the given window's given `flag`. */
|
|
1202
1260
|
window_set_flag(flag: int, enabled: boolean, window_id?: int): void;
|
|
1261
|
+
/**
|
|
1262
|
+
* Sets the maximum luminance in nits (cd/m²) for HDR output by the window specified by `window_id`. If `max_luminance` is negative, the window uses the screen's maximum luminance that is reported by the operating system. By default, this luminance is set to `-1.0` for every window. Typically this property should be left at this default value, but may optionally be exposed through in-game settings to allow the player to correct an inaccurate maximum luminance reported by the operating system. See also {@link window_get_hdr_output_current_max_luminance} and {@link window_get_hdr_output_max_luminance}.
|
|
1263
|
+
* **Note:** This method is only implemented on macOS and Windows. Other platforms will always use the screen's maximum luminance that is reported by the operating system.
|
|
1264
|
+
*/
|
|
1265
|
+
window_set_hdr_output_max_luminance(max_luminance: float, window_id?: int): void;
|
|
1266
|
+
/**
|
|
1267
|
+
* Sets the reference white luminance in nits (cd/m²) for HDR output by the window specified by `window_id`. If `reference_luminance` is negative, the window automatically adjusts to the brightness set by the operating system. By default, this luminance is set to `-1.0` for every window. Typically this property should be left at this default value, but may optionally be exposed as an "HDR Brightness" in-game setting to allow the player to adjust the brightness of their game, independently of their device settings. See also {@link window_get_hdr_output_current_reference_luminance} and {@link window_get_hdr_output_reference_luminance}.
|
|
1268
|
+
* **Note:** This method is only implemented on Windows. Other platforms will always use the reference luminance that is reported by the operating system.
|
|
1269
|
+
*/
|
|
1270
|
+
window_set_hdr_output_reference_luminance(reference_luminance: float, window_id?: int): void;
|
|
1271
|
+
/**
|
|
1272
|
+
* Sets the window icon (usually displayed in the top-left corner) for the window specified by `window_id`.
|
|
1273
|
+
* **Note:** This method is implemented on Linux and Windows.
|
|
1274
|
+
*/
|
|
1275
|
+
window_set_icon(icon: Image, window_id?: int): void;
|
|
1203
1276
|
/**
|
|
1204
1277
|
* Sets whether Input Method Editor (https://en.wikipedia.org/wiki/Input_method) should be enabled for the window specified by `window_id`. See also {@link window_set_ime_position}.
|
|
1205
1278
|
*/
|
|
@@ -1273,6 +1346,19 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1273
1346
|
* **Note:** It's recommended to change this value using {@link Window.size} instead.
|
|
1274
1347
|
*/
|
|
1275
1348
|
window_set_size(size: Vector2i | Vector2, window_id?: int): void;
|
|
1349
|
+
/**
|
|
1350
|
+
* Sets the type and state of the progress bar on the taskbar/dock icon of the window specified by `window_id`. See {@link ProgressState} for possible values and how each mode behaves.
|
|
1351
|
+
* **Note:** This method is implemented only on Windows and macOS.
|
|
1352
|
+
* **Note:** On macOS, the progress bar is displayed only for the main window.
|
|
1353
|
+
*/
|
|
1354
|
+
window_set_taskbar_progress_state(state: int, window_id?: int): void;
|
|
1355
|
+
/**
|
|
1356
|
+
* Creates a progress bar on the taskbar/dock icon of the window specified by `window_id` if it does not exist, sets the progress of the icon.
|
|
1357
|
+
* `value` acts as a relative percentage value, ranges from `0.0` (lowest) to `1.0` (highest).
|
|
1358
|
+
* **Note:** This method is implemented only on Windows and macOS.
|
|
1359
|
+
* **Note:** On macOS, the progress bar is displayed only for the main window.
|
|
1360
|
+
*/
|
|
1361
|
+
window_set_taskbar_progress_value(value: float, window_id?: int): void;
|
|
1276
1362
|
/**
|
|
1277
1363
|
* Sets the title of the given window to `title`.
|
|
1278
1364
|
* **Note:** It's recommended to change this value using {@link Window.title} instead.
|
|
@@ -1312,6 +1398,13 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1312
1398
|
*/
|
|
1313
1399
|
window_start_resize(edge: int, window_id?: int): void;
|
|
1314
1400
|
|
|
1401
|
+
/**
|
|
1402
|
+
* Emitted when the device orientation changes. `orientation` is the new orientation.
|
|
1403
|
+
* Returns `1` for portrait, `2` for landscape, and `0` if the orientation is undefined.
|
|
1404
|
+
* **Note:** This method is implemented on Android and iOS.
|
|
1405
|
+
*/
|
|
1406
|
+
orientation_changed: Signal<[int]>;
|
|
1407
|
+
|
|
1315
1408
|
// enum Feature
|
|
1316
1409
|
/**
|
|
1317
1410
|
* Display server supports global menu. This allows the application to display its menu items in the operating system's top bar. **macOS**
|
|
@@ -1321,7 +1414,7 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1321
1414
|
* Display server supports multiple windows that can be moved outside of the main window. **Windows, macOS, Linux (X11)**
|
|
1322
1415
|
*/
|
|
1323
1416
|
readonly FEATURE_SUBWINDOWS: int;
|
|
1324
|
-
/** Display server supports touchscreen input. **Windows, Linux (X11), Android, iOS, Web** */
|
|
1417
|
+
/** Display server supports touchscreen input. **Windows, Linux (X11/Wayland), Android, iOS, Web** */
|
|
1325
1418
|
readonly FEATURE_TOUCHSCREEN: int;
|
|
1326
1419
|
/** Display server supports mouse input. **Windows, macOS, Linux (X11/Wayland), Android, Web** */
|
|
1327
1420
|
readonly FEATURE_MOUSE: int;
|
|
@@ -1428,6 +1521,10 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1428
1521
|
* Display server supports interaction with screen reader or Braille display. **Linux (X11/Wayland), macOS, Windows**
|
|
1429
1522
|
*/
|
|
1430
1523
|
readonly FEATURE_ACCESSIBILITY_SCREEN_READER: int;
|
|
1524
|
+
/** Display server supports HDR output. **Linux (Wayland), macOS, iOS, visionOS, Windows** */
|
|
1525
|
+
readonly FEATURE_HDR_OUTPUT: int;
|
|
1526
|
+
/** Display server supports putting the application in picture-in-picture mode. **Android** */
|
|
1527
|
+
readonly FEATURE_PIP_MODE: int;
|
|
1431
1528
|
// enum AccessibilityRole
|
|
1432
1529
|
/** Unknown or custom role. */
|
|
1433
1530
|
readonly ROLE_UNKNOWN: int;
|
|
@@ -1523,6 +1620,13 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1523
1620
|
readonly ROLE_DIALOG: int;
|
|
1524
1621
|
/** Tooltip element. */
|
|
1525
1622
|
readonly ROLE_TOOLTIP: int;
|
|
1623
|
+
/** Region/landmark element. Screen readers can navigate between regions using landmark navigation. */
|
|
1624
|
+
readonly ROLE_REGION: int;
|
|
1625
|
+
/**
|
|
1626
|
+
* Unifor text run.
|
|
1627
|
+
* Note: This role is used for internal text elements, and should not be assigned to nodes.
|
|
1628
|
+
*/
|
|
1629
|
+
readonly ROLE_TEXT_RUN: int;
|
|
1526
1630
|
// enum AccessibilityPopupType
|
|
1527
1631
|
/** Popup menu. */
|
|
1528
1632
|
readonly POPUP_MENU: int;
|
|
@@ -1803,16 +1907,41 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1803
1907
|
* **Note:** Regardless of the platform, enabling full screen will change the window size to match the monitor's size. Therefore, make sure your project supports multiple resolutions ($DOCS_URL/tutorials/rendering/multiple_resolutions.html) when enabling full screen mode.
|
|
1804
1908
|
*/
|
|
1805
1909
|
readonly WINDOW_MODE_EXCLUSIVE_FULLSCREEN: int;
|
|
1910
|
+
// enum ProgressState
|
|
1911
|
+
/** Stops displaying progress and returns the button to its normal state. */
|
|
1912
|
+
readonly PROGRESS_STATE_NOPROGRESS: int;
|
|
1913
|
+
/**
|
|
1914
|
+
* The progress indicator shows an indeterminate progress.
|
|
1915
|
+
* On Windows, the progress indicator does not grow in size, but cycles repeatedly along the length of the taskbar button by default.
|
|
1916
|
+
*/
|
|
1917
|
+
readonly PROGRESS_STATE_INDETERMINATE: int;
|
|
1918
|
+
/** The progress indicator shows progress normally. */
|
|
1919
|
+
readonly PROGRESS_STATE_NORMAL: int;
|
|
1920
|
+
/**
|
|
1921
|
+
* The progress indicator shows that an error has occurred.
|
|
1922
|
+
* On Windows, the progress indicator turns red by default to show that an error has occurred in one of the windows that is broadcasting progress.
|
|
1923
|
+
*/
|
|
1924
|
+
readonly PROGRESS_STATE_ERROR: int;
|
|
1925
|
+
/**
|
|
1926
|
+
* The progress indicator shows it was paused.
|
|
1927
|
+
* On Windows, the progress indicator turns yellow by default to show that progress is currently stopped in one of the windows but can be resumed by the user.
|
|
1928
|
+
*/
|
|
1929
|
+
readonly PROGRESS_STATE_PAUSED: int;
|
|
1806
1930
|
// enum WindowFlags
|
|
1807
1931
|
/**
|
|
1808
1932
|
* The window can't be resized by dragging its resize grip. It's still possible to resize the window using {@link window_set_size}. This flag is ignored for full screen windows.
|
|
1933
|
+
* **Note:** This flag is implemented on Linux (X11), macOS, and Windows.
|
|
1809
1934
|
*/
|
|
1810
1935
|
readonly WINDOW_FLAG_RESIZE_DISABLED: int;
|
|
1811
1936
|
/**
|
|
1812
1937
|
* The window do not have native title bar and other decorations. This flag is ignored for full-screen windows.
|
|
1938
|
+
* **Note:** This flag is implemented on Linux (X11/Wayland), macOS, and Windows.
|
|
1813
1939
|
*/
|
|
1814
1940
|
readonly WINDOW_FLAG_BORDERLESS: int;
|
|
1815
|
-
/**
|
|
1941
|
+
/**
|
|
1942
|
+
* The window is floating on top of all other windows. This flag is ignored for full-screen windows.
|
|
1943
|
+
* **Note:** This flag is implemented on Linux (X11), macOS, and Windows.
|
|
1944
|
+
*/
|
|
1816
1945
|
readonly WINDOW_FLAG_ALWAYS_ON_TOP: int;
|
|
1817
1946
|
/**
|
|
1818
1947
|
* The window background can be transparent.
|
|
@@ -1821,10 +1950,14 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1821
1950
|
* **Note:** Transparency support is implemented on Android, but can only be enabled via {@link ProjectSettings.display/window/per_pixel_transparency/allowed}. This flag has no effect on Android.
|
|
1822
1951
|
*/
|
|
1823
1952
|
readonly WINDOW_FLAG_TRANSPARENT: int;
|
|
1824
|
-
/**
|
|
1953
|
+
/**
|
|
1954
|
+
* The window can't be focused. No-focus window will ignore all input, except mouse clicks.
|
|
1955
|
+
* **Note:** This flag is implemented on Linux (X11), macOS, and Windows.
|
|
1956
|
+
*/
|
|
1825
1957
|
readonly WINDOW_FLAG_NO_FOCUS: int;
|
|
1826
1958
|
/**
|
|
1827
1959
|
* Window is part of menu or {@link OptionButton} dropdown. This flag can't be changed when the window is visible. An active popup window will exclusively receive all input, without stealing focus from its parent. Popup windows are automatically closed when uses click outside it, or when an application is switched. Popup window must have transient parent set (see {@link window_set_transient}).
|
|
1960
|
+
* **Note:** This flag is implemented on Linux (X11/Wayland), macOS, and Windows.
|
|
1828
1961
|
*/
|
|
1829
1962
|
readonly WINDOW_FLAG_POPUP: int;
|
|
1830
1963
|
/**
|
|
@@ -1834,7 +1967,10 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1834
1967
|
* **Note:** This flag is implemented only on macOS.
|
|
1835
1968
|
*/
|
|
1836
1969
|
readonly WINDOW_FLAG_EXTEND_TO_TITLE: int;
|
|
1837
|
-
/**
|
|
1970
|
+
/**
|
|
1971
|
+
* All mouse events are passed to the underlying window of the same application.
|
|
1972
|
+
* **Note:** This flag is implemented on Linux (X11), macOS, and Windows.
|
|
1973
|
+
*/
|
|
1838
1974
|
readonly WINDOW_FLAG_MOUSE_PASSTHROUGH: int;
|
|
1839
1975
|
/**
|
|
1840
1976
|
* Window style is overridden, forcing sharp corners.
|
|
@@ -1849,16 +1985,17 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1849
1985
|
readonly WINDOW_FLAG_EXCLUDE_FROM_CAPTURE: int;
|
|
1850
1986
|
/**
|
|
1851
1987
|
* Signals the window manager that this window is supposed to be an implementation-defined "popup" (usually a floating, borderless, untileable and immovable child window).
|
|
1988
|
+
* **Note:** This flag is implemented on Linux (Wayland).
|
|
1852
1989
|
*/
|
|
1853
1990
|
readonly WINDOW_FLAG_POPUP_WM_HINT: int;
|
|
1854
1991
|
/**
|
|
1855
1992
|
* Window minimize button is disabled.
|
|
1856
|
-
* **Note:** This flag is implemented on macOS and Windows.
|
|
1993
|
+
* **Note:** This flag is implemented on Linux (X11), macOS, and Windows.
|
|
1857
1994
|
*/
|
|
1858
1995
|
readonly WINDOW_FLAG_MINIMIZE_DISABLED: int;
|
|
1859
1996
|
/**
|
|
1860
1997
|
* Window maximize button is disabled.
|
|
1861
|
-
* **Note:** This flag is implemented on macOS and Windows.
|
|
1998
|
+
* **Note:** This flag is implemented on Linux (X11), macOS, and Windows.
|
|
1862
1999
|
*/
|
|
1863
2000
|
readonly WINDOW_FLAG_MAXIMIZE_DISABLED: int;
|
|
1864
2001
|
/** Represents the size of the {@link WindowFlags} enum. */
|
|
@@ -1894,6 +2031,11 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1894
2031
|
* **Note:** This flag is implemented only on Linux (Wayland).
|
|
1895
2032
|
*/
|
|
1896
2033
|
readonly WINDOW_EVENT_FORCE_CLOSE: int;
|
|
2034
|
+
/**
|
|
2035
|
+
* Sent when the output max linear value returned by {@link Window.get_output_max_linear_value} has changed.
|
|
2036
|
+
* This occurs when HDR output is enabled or disabled and when any HDR output luminance values of the window have changed, such as when the player adjusts their screen brightness setting or moves the window to a different screen.
|
|
2037
|
+
*/
|
|
2038
|
+
readonly WINDOW_EVENT_OUTPUT_MAX_LINEAR_VALUE_CHANGED: int;
|
|
1897
2039
|
// enum WindowResizeEdge
|
|
1898
2040
|
/** Top-left edge of a window. */
|
|
1899
2041
|
readonly WINDOW_EDGE_TOP_LEFT: int;
|
|
@@ -1977,6 +2119,16 @@ declare interface DisplayServer extends GodotObject {
|
|
|
1977
2119
|
* - Linux (Wayland): `EGLConfig` for the window.
|
|
1978
2120
|
*/
|
|
1979
2121
|
readonly EGL_CONFIG: int;
|
|
2122
|
+
/**
|
|
2123
|
+
* The GLX `VisualID` for the window.
|
|
2124
|
+
* **Note:** Only available on Linux when using X11.
|
|
2125
|
+
*/
|
|
2126
|
+
readonly GLX_VISUALID: int;
|
|
2127
|
+
/**
|
|
2128
|
+
* The `GLXFBConfig` for the window.
|
|
2129
|
+
* **Note:** Only available on Linux when using X11.
|
|
2130
|
+
*/
|
|
2131
|
+
readonly GLX_FBCONFIG: int;
|
|
1980
2132
|
// enum TTSUtteranceEvent
|
|
1981
2133
|
/** Utterance has begun to be spoken. */
|
|
1982
2134
|
readonly TTS_UTTERANCE_STARTED: int;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// AUTO-GENERATED from Godot class documentation.
|
|
2
|
+
// Manual overrides applied from typings-overrides/*.d.ts
|
|
3
|
+
|
|
4
|
+
/** A 2D texture that supports drawing to itself via Blit calls. */
|
|
5
|
+
declare class DrawableTexture2D extends Texture2D {
|
|
6
|
+
resource_local_to_scene: boolean;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Draws to given `rect` on this texture by copying from the given `source`. A `modulate` color can be passed in for the shader to use, but defaults to White. The `mipmap` value can specify a draw to a lower mipmap level. The `material` parameter can take a ShaderMaterial with a TextureBlit Shader for custom drawing behavior.
|
|
10
|
+
*/
|
|
11
|
+
blit_rect(rect: Rect2i | Rect2, source: Texture2D, modulate?: Color, mipmap?: int, material?: Material): void;
|
|
12
|
+
/**
|
|
13
|
+
* Draws to the given `rect` on this texture, as well as on up to 3 DrawableTexture `extra_targets`. All `extra_targets` must be the same size and DrawableFormat as the original target, otherwise the Shader may fail. Expects up to 4 Texture `sources`, but will replace missing `sources` with default Black Textures.
|
|
14
|
+
*/
|
|
15
|
+
blit_rect_multi(rect: Rect2i | Rect2, sources: Array<Texture2D>, extra_targets: Array<DrawableTexture2D>, modulate?: Color, mipmap?: int, material?: Material): void;
|
|
16
|
+
/** Re-calculates the mipmaps for this texture on demand. */
|
|
17
|
+
generate_mipmaps(): void;
|
|
18
|
+
/** Returns `true` if mipmaps are set to be used on this DrawableTexture. */
|
|
19
|
+
get_use_mipmaps(): boolean;
|
|
20
|
+
/** Sets the format of this DrawableTexture. */
|
|
21
|
+
set_format(format: int): void;
|
|
22
|
+
/** Sets if mipmaps should be used on this DrawableTexture. */
|
|
23
|
+
set_use_mipmaps(mipmaps: boolean): void;
|
|
24
|
+
/** Initializes the DrawableTexture to a White texture of the given `width`, `height`, and `format`. */
|
|
25
|
+
setup(width: int, height: int, format: int, color?: Color, use_mipmaps?: boolean): void;
|
|
26
|
+
|
|
27
|
+
// enum DrawableFormat
|
|
28
|
+
/** OpenGL texture format RGBA with four components, each with a bitdepth of 8. */
|
|
29
|
+
static readonly DRAWABLE_FORMAT_RGBA8: int;
|
|
30
|
+
/**
|
|
31
|
+
* OpenGL texture format RGBA with four components, each with a bitdepth of 8.
|
|
32
|
+
* When drawn to, an sRGB to linear color space conversion is performed.
|
|
33
|
+
*/
|
|
34
|
+
static readonly DRAWABLE_FORMAT_RGBA8_SRGB: int;
|
|
35
|
+
/**
|
|
36
|
+
* OpenGL texture format GL_RGBA16F where there are four components, each a 16-bit "half-precision" floating-point value.
|
|
37
|
+
*/
|
|
38
|
+
static readonly DRAWABLE_FORMAT_RGBAH: int;
|
|
39
|
+
/**
|
|
40
|
+
* OpenGL texture format GL_RGBA32F where there are four components, each a 32-bit floating-point value.
|
|
41
|
+
*/
|
|
42
|
+
static readonly DRAWABLE_FORMAT_RGBAF: int;
|
|
43
|
+
}
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
/** Godot editor's command palette. */
|
|
5
5
|
declare class EditorCommandPalette extends ConfirmationDialog {
|
|
6
|
-
dialog_hide_on_ok: boolean;
|
|
7
|
-
|
|
8
6
|
/**
|
|
9
7
|
* Adds a custom command to EditorCommandPalette.
|
|
10
8
|
* - `command_name`: {@link String} (Name of the **Command**. This is displayed to the user.)
|
|
@@ -56,4 +56,8 @@ declare class EditorContextMenuPlugin extends RefCounted {
|
|
|
56
56
|
* The paths array is empty if there weren't any nodes under cursor. The option callback will receive a typed array of {@link CanvasItem} nodes.
|
|
57
57
|
*/
|
|
58
58
|
static readonly CONTEXT_SLOT_2D_EDITOR: int;
|
|
59
|
+
/**
|
|
60
|
+
* Context menu of the inspectors right-click menu. {@link _popup_menu} will be called with an array of two items: The first will be the object's ID, the second will be the property name. An object can be retrieved from it's ID via {@link @GlobalScope.instance_from_id} after converting it to an int. The option callback will receive the EditorProperty directly.
|
|
61
|
+
*/
|
|
62
|
+
static readonly CONTEXT_SLOT_INSPECTOR_PROPERTY: int;
|
|
59
63
|
}
|