@ringozz/godot 0.1.0
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/gen/classes/AESContext.ts +99 -0
- package/gen/classes/AStar2D.ts +222 -0
- package/gen/classes/AStar3D.ts +247 -0
- package/gen/classes/AStarGrid2D.ts +284 -0
- package/gen/classes/AcceptDialog.ts +104 -0
- package/gen/classes/AccessibilityServer.ts +824 -0
- package/gen/classes/AimModifier3D.ts +75 -0
- package/gen/classes/AnimatableBody2D.ts +21 -0
- package/gen/classes/AnimatableBody3D.ts +21 -0
- package/gen/classes/AnimatedSprite2D.ts +160 -0
- package/gen/classes/AnimatedSprite3D.ts +134 -0
- package/gen/classes/AnimatedTexture.ts +74 -0
- package/gen/classes/Animation.ts +596 -0
- package/gen/classes/AnimationLibrary.ts +77 -0
- package/gen/classes/AnimationMixer.ts +450 -0
- package/gen/classes/AnimationNode.ts +159 -0
- package/gen/classes/AnimationNodeAdd2.ts +16 -0
- package/gen/classes/AnimationNodeAdd3.ts +20 -0
- package/gen/classes/AnimationNodeAnimation.ts +84 -0
- package/gen/classes/AnimationNodeBlend2.ts +15 -0
- package/gen/classes/AnimationNodeBlend3.ts +19 -0
- package/gen/classes/AnimationNodeBlendSpace1D.ts +162 -0
- package/gen/classes/AnimationNodeBlendSpace2D.ts +204 -0
- package/gen/classes/AnimationNodeBlendTree.ts +110 -0
- package/gen/classes/AnimationNodeExtension.ts +25 -0
- package/gen/classes/AnimationNodeOneShot.ts +144 -0
- package/gen/classes/AnimationNodeOutput.ts +14 -0
- package/gen/classes/AnimationNodeStateMachine.ts +163 -0
- package/gen/classes/AnimationNodeStateMachinePlayback.ts +111 -0
- package/gen/classes/AnimationNodeStateMachineTransition.ts +120 -0
- package/gen/classes/AnimationNodeSub2.ts +17 -0
- package/gen/classes/AnimationNodeSync.ts +21 -0
- package/gen/classes/AnimationNodeTimeScale.ts +14 -0
- package/gen/classes/AnimationNodeTimeSeek.ts +36 -0
- package/gen/classes/AnimationNodeTransition.ts +92 -0
- package/gen/classes/AnimationPlayer.ts +319 -0
- package/gen/classes/AnimationRootNode.ts +15 -0
- package/gen/classes/AnimationTree.ts +60 -0
- package/gen/classes/Area2D.ts +252 -0
- package/gen/classes/Area3D.ts +305 -0
- package/gen/classes/AreaLight3D.ts +56 -0
- package/gen/classes/ArrayMesh.ts +177 -0
- package/gen/classes/ArrayOccluder3D.ts +35 -0
- package/gen/classes/AspectRatioContainer.ts +78 -0
- package/gen/classes/AtlasTexture.ts +42 -0
- package/gen/classes/AudioBusLayout.ts +14 -0
- package/gen/classes/AudioEffect.ts +16 -0
- package/gen/classes/AudioEffectAmplify.ts +27 -0
- package/gen/classes/AudioEffectBandLimitFilter.ts +15 -0
- package/gen/classes/AudioEffectBandPassFilter.ts +15 -0
- package/gen/classes/AudioEffectCapture.ts +62 -0
- package/gen/classes/AudioEffectChorus.ts +95 -0
- package/gen/classes/AudioEffectCompressor.ts +62 -0
- package/gen/classes/AudioEffectDelay.ts +93 -0
- package/gen/classes/AudioEffectDistortion.ts +75 -0
- package/gen/classes/AudioEffectEQ.ts +30 -0
- package/gen/classes/AudioEffectEQ10.ts +25 -0
- package/gen/classes/AudioEffectEQ21.ts +36 -0
- package/gen/classes/AudioEffectEQ6.ts +21 -0
- package/gen/classes/AudioEffectFilter.ts +68 -0
- package/gen/classes/AudioEffectHardLimiter.ts +34 -0
- package/gen/classes/AudioEffectHighPassFilter.ts +15 -0
- package/gen/classes/AudioEffectHighShelfFilter.ts +15 -0
- package/gen/classes/AudioEffectInstance.ts +14 -0
- package/gen/classes/AudioEffectLimiter.ts +40 -0
- package/gen/classes/AudioEffectLowPassFilter.ts +15 -0
- package/gen/classes/AudioEffectLowShelfFilter.ts +15 -0
- package/gen/classes/AudioEffectNotchFilter.ts +15 -0
- package/gen/classes/AudioEffectPanner.ts +21 -0
- package/gen/classes/AudioEffectPhaser.ts +45 -0
- package/gen/classes/AudioEffectPitchShift.ts +62 -0
- package/gen/classes/AudioEffectRecord.ts +39 -0
- package/gen/classes/AudioEffectReverb.ts +63 -0
- package/gen/classes/AudioEffectSpectrumAnalyzer.ts +57 -0
- package/gen/classes/AudioEffectSpectrumAnalyzerInstance.ts +35 -0
- package/gen/classes/AudioEffectStereoEnhance.ts +32 -0
- package/gen/classes/AudioListener2D.ts +31 -0
- package/gen/classes/AudioListener3D.ts +61 -0
- package/gen/classes/AudioSample.ts +14 -0
- package/gen/classes/AudioSamplePlayback.ts +14 -0
- package/gen/classes/AudioServer.ts +360 -0
- package/gen/classes/AudioStream.ts +53 -0
- package/gen/classes/AudioStreamGenerator.ts +88 -0
- package/gen/classes/AudioStreamGeneratorPlayback.ts +45 -0
- package/gen/classes/AudioStreamInteractive.ts +216 -0
- package/gen/classes/AudioStreamMP3.ts +74 -0
- package/gen/classes/AudioStreamMicrophone.ts +15 -0
- package/gen/classes/AudioStreamOggVorbis.ts +71 -0
- package/gen/classes/AudioStreamPlayback.ts +63 -0
- package/gen/classes/AudioStreamPlaybackInteractive.ts +37 -0
- package/gen/classes/AudioStreamPlaybackOggVorbis.ts +14 -0
- package/gen/classes/AudioStreamPlaybackPlaylist.ts +13 -0
- package/gen/classes/AudioStreamPlaybackPolyphonic.ts +49 -0
- package/gen/classes/AudioStreamPlaybackResampled.ts +19 -0
- package/gen/classes/AudioStreamPlaybackSynchronized.ts +13 -0
- package/gen/classes/AudioStreamPlayer.ts +146 -0
- package/gen/classes/AudioStreamPlayer2D.ts +143 -0
- package/gen/classes/AudioStreamPlayer3D.ts +233 -0
- package/gen/classes/AudioStreamPlaylist.ts +240 -0
- package/gen/classes/AudioStreamPolyphonic.ts +21 -0
- package/gen/classes/AudioStreamRandomizer.ts +99 -0
- package/gen/classes/AudioStreamSynchronized.ts +45 -0
- package/gen/classes/AudioStreamWAV.ts +151 -0
- package/gen/classes/AwaitTweener.ts +20 -0
- package/gen/classes/BackBufferCopy.ts +46 -0
- package/gen/classes/BaseButton.ts +164 -0
- package/gen/classes/BaseMaterial3D.ts +1477 -0
- package/gen/classes/BitMap.ts +94 -0
- package/gen/classes/BlitMaterial.ts +46 -0
- package/gen/classes/Bone2D.ts +71 -0
- package/gen/classes/BoneAttachment3D.ts +57 -0
- package/gen/classes/BoneConstraint3D.ts +122 -0
- package/gen/classes/BoneMap.ts +53 -0
- package/gen/classes/BoneTwistDisperser3D.ts +209 -0
- package/gen/classes/BoxContainer.ts +51 -0
- package/gen/classes/BoxMesh.ts +41 -0
- package/gen/classes/BoxOccluder3D.ts +22 -0
- package/gen/classes/BoxShape3D.ts +22 -0
- package/gen/classes/Button.ts +117 -0
- package/gen/classes/ButtonGroup.ts +39 -0
- package/gen/classes/CCDIK3D.ts +16 -0
- package/gen/classes/CPUParticles2D.ts +590 -0
- package/gen/classes/CPUParticles3D.ts +650 -0
- package/gen/classes/CSGBox3D.ts +29 -0
- package/gen/classes/CSGCombiner3D.ts +15 -0
- package/gen/classes/CSGCylinder3D.ts +52 -0
- package/gen/classes/CSGMesh3D.ts +32 -0
- package/gen/classes/CSGPolygon3D.ts +170 -0
- package/gen/classes/CSGPrimitive3D.ts +20 -0
- package/gen/classes/CSGShape3D.ts +140 -0
- package/gen/classes/CSGSphere3D.ts +46 -0
- package/gen/classes/CSGTorus3D.ts +52 -0
- package/gen/classes/CallbackTweener.ts +29 -0
- package/gen/classes/Camera2D.ts +266 -0
- package/gen/classes/Camera3D.ts +275 -0
- package/gen/classes/CameraAttributes.ts +50 -0
- package/gen/classes/CameraAttributesPhysical.ts +73 -0
- package/gen/classes/CameraAttributesPractical.ts +75 -0
- package/gen/classes/CameraFeed.ts +155 -0
- package/gen/classes/CameraServer.ts +105 -0
- package/gen/classes/CameraTexture.ts +34 -0
- package/gen/classes/CanvasGroup.ts +54 -0
- package/gen/classes/CanvasItem.ts +698 -0
- package/gen/classes/CanvasItemMaterial.ts +97 -0
- package/gen/classes/CanvasLayer.ts +103 -0
- package/gen/classes/CanvasModulate.ts +21 -0
- package/gen/classes/CanvasTexture.ts +60 -0
- package/gen/classes/CapsuleMesh.ts +40 -0
- package/gen/classes/CapsuleShape2D.ts +35 -0
- package/gen/classes/CapsuleShape3D.ts +35 -0
- package/gen/classes/CenterContainer.ts +20 -0
- package/gen/classes/ChainIK3D.ts +102 -0
- package/gen/classes/CharFXTransform.ts +108 -0
- package/gen/classes/CharacterBody2D.ts +252 -0
- package/gen/classes/CharacterBody3D.ts +246 -0
- package/gen/classes/CheckBox.ts +16 -0
- package/gen/classes/CheckButton.ts +15 -0
- package/gen/classes/CircleShape2D.ts +21 -0
- package/gen/classes/ClassDB.ts +197 -0
- package/gen/classes/CodeEdit.ts +619 -0
- package/gen/classes/CodeHighlighter.ts +132 -0
- package/gen/classes/CollisionObject2D.ts +235 -0
- package/gen/classes/CollisionObject3D.ts +199 -0
- package/gen/classes/CollisionPolygon2D.ts +70 -0
- package/gen/classes/CollisionPolygon3D.ts +54 -0
- package/gen/classes/CollisionShape2D.ts +55 -0
- package/gen/classes/CollisionShape3D.ts +53 -0
- package/gen/classes/ColorPalette.ts +21 -0
- package/gen/classes/ColorPicker.ts +197 -0
- package/gen/classes/ColorPickerButton.ts +68 -0
- package/gen/classes/ColorRect.ts +21 -0
- package/gen/classes/Compositor.ts +22 -0
- package/gen/classes/CompositorEffect.ts +134 -0
- package/gen/classes/CompressedCubemap.ts +22 -0
- package/gen/classes/CompressedCubemapArray.ts +22 -0
- package/gen/classes/CompressedTexture2D.ts +27 -0
- package/gen/classes/CompressedTexture2DArray.ts +22 -0
- package/gen/classes/CompressedTexture3D.ts +22 -0
- package/gen/classes/CompressedTextureLayered.ts +19 -0
- package/gen/classes/ConcavePolygonShape2D.ts +25 -0
- package/gen/classes/ConcavePolygonShape3D.ts +28 -0
- package/gen/classes/ConeTwistJoint3D.ts +84 -0
- package/gen/classes/ConfigFile.ts +170 -0
- package/gen/classes/ConfirmationDialog.ts +39 -0
- package/gen/classes/Container.ts +54 -0
- package/gen/classes/Control.ts +1499 -0
- package/gen/classes/ConvertTransformModifier3D.ts +153 -0
- package/gen/classes/ConvexPolygonShape2D.ts +30 -0
- package/gen/classes/ConvexPolygonShape3D.ts +24 -0
- package/gen/classes/CopyTransformModifier3D.ts +220 -0
- package/gen/classes/Crypto.ts +114 -0
- package/gen/classes/CryptoKey.ts +43 -0
- package/gen/classes/Cubemap.ts +47 -0
- package/gen/classes/CubemapArray.ts +30 -0
- package/gen/classes/Curve.ts +183 -0
- package/gen/classes/Curve2D.ts +145 -0
- package/gen/classes/Curve3D.ts +173 -0
- package/gen/classes/CurveTexture.ts +48 -0
- package/gen/classes/CurveXYZTexture.ts +40 -0
- package/gen/classes/CylinderMesh.ts +58 -0
- package/gen/classes/CylinderShape3D.ts +28 -0
- package/gen/classes/DPITexture.ts +73 -0
- package/gen/classes/DTLSServer.ts +93 -0
- package/gen/classes/DampedSpringJoint2D.ts +38 -0
- package/gen/classes/Decal.ts +146 -0
- package/gen/classes/DirAccess.ts +300 -0
- package/gen/classes/DirectionalLight2D.ts +28 -0
- package/gen/classes/DirectionalLight3D.ts +104 -0
- package/gen/classes/DisplayServer.ts +3119 -0
- package/gen/classes/DrawableTexture2D.ts +75 -0
- package/gen/classes/ENetConnection.ts +192 -0
- package/gen/classes/ENetMultiplayerPeer.ts +54 -0
- package/gen/classes/ENetPacketPeer.ts +234 -0
- package/gen/classes/EncodedObjectAsID.ts +21 -0
- package/gen/classes/Engine.ts +322 -0
- package/gen/classes/EngineDebugger.ts +136 -0
- package/gen/classes/EngineProfiler.ts +16 -0
- package/gen/classes/Environment.ts +786 -0
- package/gen/classes/Expression.ts +60 -0
- package/gen/classes/ExternalTexture.ts +35 -0
- package/gen/classes/FABRIK3D.ts +16 -0
- package/gen/classes/FBXDocument.ts +15 -0
- package/gen/classes/FBXState.ts +20 -0
- package/gen/classes/FastNoiseLite.ts +284 -0
- package/gen/classes/FileAccess.ts +596 -0
- package/gen/classes/FileDialog.ts +428 -0
- package/gen/classes/FlowContainer.ts +84 -0
- package/gen/classes/FogMaterial.ts +54 -0
- package/gen/classes/FogVolume.ts +39 -0
- package/gen/classes/FoldableContainer.ts +110 -0
- package/gen/classes/FoldableGroup.ts +38 -0
- package/gen/classes/Font.ts +242 -0
- package/gen/classes/FontFile.ts +514 -0
- package/gen/classes/FontVariation.ts +123 -0
- package/gen/classes/FramebufferCacheRD.ts +21 -0
- package/gen/classes/GDExtension.ts +47 -0
- package/gen/classes/GDExtensionManager.ts +101 -0
- package/gen/classes/GDScript.ts +30 -0
- package/gen/classes/GLTFAccessor.ts +203 -0
- package/gen/classes/GLTFAnimation.ts +33 -0
- package/gen/classes/GLTFBufferView.ts +68 -0
- package/gen/classes/GLTFCamera.ts +66 -0
- package/gen/classes/GLTFDocument.ts +202 -0
- package/gen/classes/GLTFDocumentExtension.ts +26 -0
- package/gen/classes/GLTFDocumentExtensionConvertImporterMesh.ts +11 -0
- package/gen/classes/GLTFLight.ts +80 -0
- package/gen/classes/GLTFMesh.ts +53 -0
- package/gen/classes/GLTFNode.ts +125 -0
- package/gen/classes/GLTFObjectModelProperty.ts +136 -0
- package/gen/classes/GLTFPhysicsBody.ts +89 -0
- package/gen/classes/GLTFPhysicsShape.ts +92 -0
- package/gen/classes/GLTFSkeleton.ts +32 -0
- package/gen/classes/GLTFSkin.ts +44 -0
- package/gen/classes/GLTFSpecGloss.ts +46 -0
- package/gen/classes/GLTFState.ts +250 -0
- package/gen/classes/GLTFTexture.ts +23 -0
- package/gen/classes/GLTFTextureSampler.ts +38 -0
- package/gen/classes/GPUParticles2D.ts +270 -0
- package/gen/classes/GPUParticles3D.ts +339 -0
- package/gen/classes/GPUParticlesAttractor3D.ts +43 -0
- package/gen/classes/GPUParticlesAttractorBox3D.ts +23 -0
- package/gen/classes/GPUParticlesAttractorSphere3D.ts +23 -0
- package/gen/classes/GPUParticlesAttractorVectorField3D.ts +32 -0
- package/gen/classes/GPUParticlesCollision3D.ts +26 -0
- package/gen/classes/GPUParticlesCollisionBox3D.ts +24 -0
- package/gen/classes/GPUParticlesCollisionHeightField3D.ts +109 -0
- package/gen/classes/GPUParticlesCollisionSDF3D.ts +95 -0
- package/gen/classes/GPUParticlesCollisionSphere3D.ts +23 -0
- package/gen/classes/Generic6DOFJoint3D.ts +146 -0
- package/gen/classes/Geometry2D.ts +249 -0
- package/gen/classes/Geometry3D.ts +94 -0
- package/gen/classes/GeometryInstance3D.ts +223 -0
- package/gen/classes/GodotInstance.ts +48 -0
- package/gen/classes/Gradient.ts +125 -0
- package/gen/classes/GradientTexture1D.ts +33 -0
- package/gen/classes/GradientTexture2D.ts +104 -0
- package/gen/classes/GraphEdit.ts +535 -0
- package/gen/classes/GraphElement.ts +101 -0
- package/gen/classes/GraphFrame.ts +66 -0
- package/gen/classes/GraphNode.ts +241 -0
- package/gen/classes/GridContainer.ts +21 -0
- package/gen/classes/GridMap.ts +294 -0
- package/gen/classes/GrooveJoint2D.ts +26 -0
- package/gen/classes/HBoxContainer.ts +14 -0
- package/gen/classes/HFlowContainer.ts +14 -0
- package/gen/classes/HMACContext.ts +54 -0
- package/gen/classes/HScrollBar.ts +14 -0
- package/gen/classes/HSeparator.ts +14 -0
- package/gen/classes/HSlider.ts +14 -0
- package/gen/classes/HSplitContainer.ts +14 -0
- package/gen/classes/HTTPClient.ts +525 -0
- package/gen/classes/HTTPRequest.ts +264 -0
- package/gen/classes/HashingContext.ts +75 -0
- package/gen/classes/HeightMapShape3D.ts +73 -0
- package/gen/classes/HingeJoint3D.ts +90 -0
- package/gen/classes/IKModifier3D.ts +40 -0
- package/gen/classes/IP.ts +132 -0
- package/gen/classes/Image.ts +835 -0
- package/gen/classes/ImageFormatLoader.ts +31 -0
- package/gen/classes/ImageFormatLoaderExtension.ts +30 -0
- package/gen/classes/ImageTexture.ts +73 -0
- package/gen/classes/ImageTexture3D.ts +29 -0
- package/gen/classes/ImageTextureLayered.ts +66 -0
- package/gen/classes/ImmediateMesh.ts +85 -0
- package/gen/classes/ImporterMesh.ts +159 -0
- package/gen/classes/ImporterMeshInstance3D.ts +45 -0
- package/gen/classes/Input.ts +743 -0
- package/gen/classes/InputEvent.ts +112 -0
- package/gen/classes/InputEventAction.ts +40 -0
- package/gen/classes/InputEventFromWindow.ts +19 -0
- package/gen/classes/InputEventGesture.ts +20 -0
- package/gen/classes/InputEventJoypadButton.ts +30 -0
- package/gen/classes/InputEventJoypadMotion.ts +27 -0
- package/gen/classes/InputEventKey.ts +133 -0
- package/gen/classes/InputEventMIDI.ts +108 -0
- package/gen/classes/InputEventMagnifyGesture.ts +21 -0
- package/gen/classes/InputEventMouse.ts +35 -0
- package/gen/classes/InputEventMouseButton.ts +46 -0
- package/gen/classes/InputEventMouseMotion.ts +67 -0
- package/gen/classes/InputEventPanGesture.ts +22 -0
- package/gen/classes/InputEventScreenDrag.ts +71 -0
- package/gen/classes/InputEventScreenTouch.ts +45 -0
- package/gen/classes/InputEventShortcut.ts +21 -0
- package/gen/classes/InputEventWithModifiers.ts +56 -0
- package/gen/classes/InputMap.ts +97 -0
- package/gen/classes/InstancePlaceholder.ts +33 -0
- package/gen/classes/IntervalTweener.ts +15 -0
- package/gen/classes/ItemList.ts +482 -0
- package/gen/classes/IterateIK3D.ts +136 -0
- package/gen/classes/JNISingleton.ts +20 -0
- package/gen/classes/JSON.ts +163 -0
- package/gen/classes/JSONRPC.ts +87 -0
- package/gen/classes/JacobianIK3D.ts +16 -0
- package/gen/classes/JavaClass.ts +37 -0
- package/gen/classes/JavaClassWrapper.ts +94 -0
- package/gen/classes/JavaObject.ts +28 -0
- package/gen/classes/JavaScriptBridge.ts +85 -0
- package/gen/classes/JavaScriptObject.ts +45 -0
- package/gen/classes/Joint2D.ts +44 -0
- package/gen/classes/Joint3D.ts +46 -0
- package/gen/classes/JointLimitation3D.ts +14 -0
- package/gen/classes/JointLimitationCone3D.ts +21 -0
- package/gen/classes/KinematicCollision2D.ts +83 -0
- package/gen/classes/KinematicCollision3D.ts +88 -0
- package/gen/classes/Label.ts +184 -0
- package/gen/classes/Label3D.ts +280 -0
- package/gen/classes/LabelSettings.ts +168 -0
- package/gen/classes/Light2D.ts +150 -0
- package/gen/classes/Light3D.ts +310 -0
- package/gen/classes/LightOccluder2D.ts +33 -0
- package/gen/classes/LightmapGI.ts +291 -0
- package/gen/classes/LightmapGIData.ts +85 -0
- package/gen/classes/LightmapProbe.ts +16 -0
- package/gen/classes/Lightmapper.ts +14 -0
- package/gen/classes/LightmapperRD.ts +15 -0
- package/gen/classes/LimitAngularVelocityModifier3D.ts +91 -0
- package/gen/classes/Line2D.ts +191 -0
- package/gen/classes/LineEdit.ts +663 -0
- package/gen/classes/LinkButton.ts +99 -0
- package/gen/classes/Logger.ts +38 -0
- package/gen/classes/LookAtModifier3D.ts +245 -0
- package/gen/classes/MainLoop.ts +115 -0
- package/gen/classes/MarginContainer.ts +27 -0
- package/gen/classes/Marker2D.ts +20 -0
- package/gen/classes/Marker3D.ts +20 -0
- package/gen/classes/Marshalls.ts +50 -0
- package/gen/classes/Material.ts +53 -0
- package/gen/classes/MenuBar.ts +114 -0
- package/gen/classes/MenuButton.ts +51 -0
- package/gen/classes/Mesh.ts +348 -0
- package/gen/classes/MeshConvexDecompositionSettings.ts +106 -0
- package/gen/classes/MeshDataTool.ts +251 -0
- package/gen/classes/MeshInstance2D.ts +37 -0
- package/gen/classes/MeshInstance3D.ts +122 -0
- package/gen/classes/MeshLibrary.ts +149 -0
- package/gen/classes/MeshTexture.ts +34 -0
- package/gen/classes/MethodTweener.ts +32 -0
- package/gen/classes/MissingNode.ts +39 -0
- package/gen/classes/MissingResource.ts +27 -0
- package/gen/classes/MobileVRInterface.ts +89 -0
- package/gen/classes/ModifierBoneTarget3D.ts +27 -0
- package/gen/classes/MovieWriter.ts +34 -0
- package/gen/classes/MultiMesh.ts +197 -0
- package/gen/classes/MultiMeshInstance2D.ts +36 -0
- package/gen/classes/MultiMeshInstance3D.ts +22 -0
- package/gen/classes/MultiplayerAPI.ts +139 -0
- package/gen/classes/MultiplayerAPIExtension.ts +99 -0
- package/gen/classes/MultiplayerPeer.ts +148 -0
- package/gen/classes/MultiplayerPeerExtension.ts +17 -0
- package/gen/classes/MultiplayerSpawner.ts +75 -0
- package/gen/classes/MultiplayerSynchronizer.ts +119 -0
- package/gen/classes/Mutex.ts +37 -0
- package/gen/classes/NativeMenu.ts +567 -0
- package/gen/classes/NavigationAgent2D.ts +361 -0
- package/gen/classes/NavigationAgent3D.ts +380 -0
- package/gen/classes/NavigationLink2D.ts +107 -0
- package/gen/classes/NavigationLink3D.ts +107 -0
- package/gen/classes/NavigationMesh.ts +283 -0
- package/gen/classes/NavigationMeshGenerator.ts +46 -0
- package/gen/classes/NavigationMeshSourceGeometryData2D.ts +75 -0
- package/gen/classes/NavigationMeshSourceGeometryData3D.ts +76 -0
- package/gen/classes/NavigationObstacle2D.ts +87 -0
- package/gen/classes/NavigationObstacle3D.ts +100 -0
- package/gen/classes/NavigationPathQueryParameters2D.ts +162 -0
- package/gen/classes/NavigationPathQueryParameters3D.ts +162 -0
- package/gen/classes/NavigationPathQueryResult2D.ts +64 -0
- package/gen/classes/NavigationPathQueryResult3D.ts +64 -0
- package/gen/classes/NavigationPolygon.ts +259 -0
- package/gen/classes/NavigationRegion2D.ts +116 -0
- package/gen/classes/NavigationRegion3D.ts +116 -0
- package/gen/classes/NavigationServer2D.ts +799 -0
- package/gen/classes/NavigationServer2DManager.ts +28 -0
- package/gen/classes/NavigationServer3D.ts +888 -0
- package/gen/classes/NavigationServer3DManager.ts +28 -0
- package/gen/classes/NinePatchRect.ts +95 -0
- package/gen/classes/Node.ts +1336 -0
- package/gen/classes/Node2D.ts +150 -0
- package/gen/classes/Node3D.ts +404 -0
- package/gen/classes/Node3DGizmo.ts +14 -0
- package/gen/classes/Noise.ts +67 -0
- package/gen/classes/NoiseTexture2D.ts +104 -0
- package/gen/classes/NoiseTexture3D.ts +84 -0
- package/gen/classes/ORMMaterial3D.ts +14 -0
- package/gen/classes/OS.ts +848 -0
- package/gen/classes/Object.ts +583 -0
- package/gen/classes/Occluder3D.ts +25 -0
- package/gen/classes/OccluderInstance3D.ts +54 -0
- package/gen/classes/OccluderPolygon2D.ts +51 -0
- package/gen/classes/OfflineMultiplayerPeer.ts +15 -0
- package/gen/classes/OggPacketSequence.ts +38 -0
- package/gen/classes/OggPacketSequencePlayback.ts +11 -0
- package/gen/classes/OmniLight3D.ts +49 -0
- package/gen/classes/OpenXRAPIExtension.ts +303 -0
- package/gen/classes/OpenXRAction.ts +55 -0
- package/gen/classes/OpenXRActionBindingModifier.ts +14 -0
- package/gen/classes/OpenXRActionMap.ts +86 -0
- package/gen/classes/OpenXRActionSet.ts +50 -0
- package/gen/classes/OpenXRAnalogThresholdModifier.ts +40 -0
- package/gen/classes/OpenXRAnchorTracker.ts +32 -0
- package/gen/classes/OpenXRAndroidThreadSettingsExtension.ts +43 -0
- package/gen/classes/OpenXRBindingModifier.ts +14 -0
- package/gen/classes/OpenXRCompositionLayer.ts +275 -0
- package/gen/classes/OpenXRCompositionLayerCylinder.ts +38 -0
- package/gen/classes/OpenXRCompositionLayerEquirect.ts +44 -0
- package/gen/classes/OpenXRCompositionLayerQuad.ts +21 -0
- package/gen/classes/OpenXRDpadBindingModifier.ts +73 -0
- package/gen/classes/OpenXRExtensionWrapper.ts +33 -0
- package/gen/classes/OpenXRExtensionWrapperExtension.ts +14 -0
- package/gen/classes/OpenXRFrameSynthesisExtension.ts +36 -0
- package/gen/classes/OpenXRFutureExtension.ts +43 -0
- package/gen/classes/OpenXRFutureResult.ts +64 -0
- package/gen/classes/OpenXRHand.ts +117 -0
- package/gen/classes/OpenXRHapticBase.ts +13 -0
- package/gen/classes/OpenXRHapticVibration.ts +32 -0
- package/gen/classes/OpenXRIPBinding.ts +72 -0
- package/gen/classes/OpenXRIPBindingModifier.ts +14 -0
- package/gen/classes/OpenXRInteractionProfile.ts +56 -0
- package/gen/classes/OpenXRInteractionProfileMetadata.ts +43 -0
- package/gen/classes/OpenXRInterface.ts +550 -0
- package/gen/classes/OpenXRMarkerTracker.ts +46 -0
- package/gen/classes/OpenXRPlaneTracker.ts +68 -0
- package/gen/classes/OpenXRRenderModel.ts +33 -0
- package/gen/classes/OpenXRRenderModelExtension.ts +105 -0
- package/gen/classes/OpenXRRenderModelManager.ts +63 -0
- package/gen/classes/OpenXRSpatialAnchorCapability.ts +114 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationAnchor.ts +21 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationAprilTag.ts +50 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationAruco.ts +98 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationBaseHeader.ts +25 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationMicroQrCode.ts +21 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationPlaneTracking.ts +36 -0
- package/gen/classes/OpenXRSpatialCapabilityConfigurationQrCode.ts +21 -0
- package/gen/classes/OpenXRSpatialComponentAnchorList.ts +20 -0
- package/gen/classes/OpenXRSpatialComponentBounded2DList.ts +25 -0
- package/gen/classes/OpenXRSpatialComponentBounded3DList.ts +25 -0
- package/gen/classes/OpenXRSpatialComponentData.ts +24 -0
- package/gen/classes/OpenXRSpatialComponentMarkerList.ts +60 -0
- package/gen/classes/OpenXRSpatialComponentMesh2DList.ts +31 -0
- package/gen/classes/OpenXRSpatialComponentMesh3DList.ts +26 -0
- package/gen/classes/OpenXRSpatialComponentParentList.ts +20 -0
- package/gen/classes/OpenXRSpatialComponentPersistenceList.ts +24 -0
- package/gen/classes/OpenXRSpatialComponentPlaneAlignmentList.ts +41 -0
- package/gen/classes/OpenXRSpatialComponentPlaneSemanticLabelList.ts +45 -0
- package/gen/classes/OpenXRSpatialComponentPolygon2DList.ts +26 -0
- package/gen/classes/OpenXRSpatialContextPersistenceConfig.ts +30 -0
- package/gen/classes/OpenXRSpatialEntityExtension.ts +241 -0
- package/gen/classes/OpenXRSpatialEntityTracker.ts +82 -0
- package/gen/classes/OpenXRSpatialMarkerTrackingCapability.ts +56 -0
- package/gen/classes/OpenXRSpatialPlaneTrackingCapability.ts +33 -0
- package/gen/classes/OpenXRSpatialQueryResultData.ts +30 -0
- package/gen/classes/OpenXRStructureBase.ts +25 -0
- package/gen/classes/OpenXRVisibilityMask.ts +15 -0
- package/gen/classes/OptimizedTranslation.ts +22 -0
- package/gen/classes/OptionButton.ts +236 -0
- package/gen/classes/PCKPacker.ts +57 -0
- package/gen/classes/PackedDataContainer.ts +58 -0
- package/gen/classes/PackedDataContainerRef.ts +47 -0
- package/gen/classes/PackedScene.ts +104 -0
- package/gen/classes/PacketPeer.ts +56 -0
- package/gen/classes/PacketPeerDTLS.ts +65 -0
- package/gen/classes/PacketPeerExtension.ts +12 -0
- package/gen/classes/PacketPeerStream.ts +28 -0
- package/gen/classes/PacketPeerUDP.ts +139 -0
- package/gen/classes/Panel.ts +14 -0
- package/gen/classes/PanelContainer.ts +14 -0
- package/gen/classes/PanoramaSkyMaterial.ts +35 -0
- package/gen/classes/Parallax2D.ts +78 -0
- package/gen/classes/ParallaxBackground.ts +52 -0
- package/gen/classes/ParallaxLayer.ts +38 -0
- package/gen/classes/ParticleProcessMaterial.ts +949 -0
- package/gen/classes/Path2D.ts +22 -0
- package/gen/classes/Path3D.ts +42 -0
- package/gen/classes/PathFollow2D.ts +60 -0
- package/gen/classes/PathFollow3D.ts +104 -0
- package/gen/classes/Performance.ts +370 -0
- package/gen/classes/PhysicalBone2D.ts +59 -0
- package/gen/classes/PhysicalBone3D.ts +189 -0
- package/gen/classes/PhysicalBoneSimulator3D.ts +43 -0
- package/gen/classes/PhysicalSkyMaterial.ts +83 -0
- package/gen/classes/PhysicsBody2D.ts +55 -0
- package/gen/classes/PhysicsBody3D.ts +94 -0
- package/gen/classes/PhysicsDirectBodyState2D.ts +249 -0
- package/gen/classes/PhysicsDirectBodyState2DExtension.ts +19 -0
- package/gen/classes/PhysicsDirectBodyState3D.ts +256 -0
- package/gen/classes/PhysicsDirectBodyState3DExtension.ts +19 -0
- package/gen/classes/PhysicsDirectSpaceState2D.ts +77 -0
- package/gen/classes/PhysicsDirectSpaceState2DExtension.ts +19 -0
- package/gen/classes/PhysicsDirectSpaceState3D.ts +81 -0
- package/gen/classes/PhysicsDirectSpaceState3DExtension.ts +19 -0
- package/gen/classes/PhysicsMaterial.ts +39 -0
- package/gen/classes/PhysicsPointQueryParameters2D.ts +54 -0
- package/gen/classes/PhysicsPointQueryParameters3D.ts +47 -0
- package/gen/classes/PhysicsRayQueryParameters2D.ts +71 -0
- package/gen/classes/PhysicsRayQueryParameters3D.ts +77 -0
- package/gen/classes/PhysicsServer2D.ts +1078 -0
- package/gen/classes/PhysicsServer2DExtension.ts +33 -0
- package/gen/classes/PhysicsServer2DManager.ts +28 -0
- package/gen/classes/PhysicsServer3D.ts +1620 -0
- package/gen/classes/PhysicsServer3DExtension.ts +26 -0
- package/gen/classes/PhysicsServer3DManager.ts +28 -0
- package/gen/classes/PhysicsServer3DRenderingServerHandler.ts +27 -0
- package/gen/classes/PhysicsShapeQueryParameters2D.ts +89 -0
- package/gen/classes/PhysicsShapeQueryParameters3D.ts +89 -0
- package/gen/classes/PhysicsTestMotionParameters2D.ts +60 -0
- package/gen/classes/PhysicsTestMotionParameters3D.ts +66 -0
- package/gen/classes/PhysicsTestMotionResult2D.ts +82 -0
- package/gen/classes/PhysicsTestMotionResult3D.ts +87 -0
- package/gen/classes/PinJoint2D.ts +50 -0
- package/gen/classes/PinJoint3D.ts +42 -0
- package/gen/classes/PlaceholderCubemap.ts +17 -0
- package/gen/classes/PlaceholderCubemapArray.ts +17 -0
- package/gen/classes/PlaceholderMaterial.ts +16 -0
- package/gen/classes/PlaceholderMesh.ts +23 -0
- package/gen/classes/PlaceholderTexture2D.ts +24 -0
- package/gen/classes/PlaceholderTexture2DArray.ts +17 -0
- package/gen/classes/PlaceholderTexture3D.ts +24 -0
- package/gen/classes/PlaceholderTextureLayered.ts +29 -0
- package/gen/classes/PlaneMesh.ts +64 -0
- package/gen/classes/PointLight2D.ts +40 -0
- package/gen/classes/PointMesh.ts +16 -0
- package/gen/classes/Polygon2D.ts +150 -0
- package/gen/classes/PolygonOccluder3D.ts +23 -0
- package/gen/classes/PolygonPathFinder.ts +61 -0
- package/gen/classes/Popup.ts +22 -0
- package/gen/classes/PopupMenu.ts +567 -0
- package/gen/classes/PopupPanel.ts +14 -0
- package/gen/classes/PortableCompressedTexture2D.ts +74 -0
- package/gen/classes/PrimitiveMesh.ts +69 -0
- package/gen/classes/PrismMesh.ts +45 -0
- package/gen/classes/ProceduralSkyMaterial.ts +102 -0
- package/gen/classes/ProgressBar.ts +60 -0
- package/gen/classes/ProjectSettings.ts +233 -0
- package/gen/classes/PropertyTweener.ts +94 -0
- package/gen/classes/QuadMesh.ts +14 -0
- package/gen/classes/QuadOccluder3D.ts +22 -0
- package/gen/classes/RDAccelerationStructureGeometry.ts +71 -0
- package/gen/classes/RDAccelerationStructureInstance.ts +53 -0
- package/gen/classes/RDAttachmentFormat.ts +33 -0
- package/gen/classes/RDFramebufferPass.ts +52 -0
- package/gen/classes/RDHitGroup.ts +35 -0
- package/gen/classes/RDPipelineColorBlendState.ts +42 -0
- package/gen/classes/RDPipelineColorBlendStateAttachment.ts +161 -0
- package/gen/classes/RDPipelineDepthStencilState.ts +141 -0
- package/gen/classes/RDPipelineMultisampleState.ts +52 -0
- package/gen/classes/RDPipelineRasterizationState.ts +81 -0
- package/gen/classes/RDPipelineShader.ts +29 -0
- package/gen/classes/RDPipelineSpecializationConstant.ts +28 -0
- package/gen/classes/RDSamplerState.ts +106 -0
- package/gen/classes/RDShaderFile.ts +38 -0
- package/gen/classes/RDShaderSPIRV.ts +136 -0
- package/gen/classes/RDShaderSource.ts +82 -0
- package/gen/classes/RDTextureFormat.ts +93 -0
- package/gen/classes/RDTextureView.ts +45 -0
- package/gen/classes/RDUniform.ts +43 -0
- package/gen/classes/RDVertexAttribute.ts +52 -0
- package/gen/classes/RandomNumberGenerator.ts +114 -0
- package/gen/classes/Range.ts +104 -0
- package/gen/classes/RayCast2D.ts +148 -0
- package/gen/classes/RayCast3D.ts +172 -0
- package/gen/classes/RectangleShape2D.ts +22 -0
- package/gen/classes/RefCounted.ts +41 -0
- package/gen/classes/ReferenceRect.ts +33 -0
- package/gen/classes/ReflectionProbe.ts +145 -0
- package/gen/classes/RegEx.ts +129 -0
- package/gen/classes/RegExMatch.ts +53 -0
- package/gen/classes/RemoteTransform2D.ts +51 -0
- package/gen/classes/RemoteTransform3D.ts +51 -0
- package/gen/classes/RenderData.ts +37 -0
- package/gen/classes/RenderDataExtension.ts +17 -0
- package/gen/classes/RenderDataRD.ts +15 -0
- package/gen/classes/RenderSceneBuffers.ts +20 -0
- package/gen/classes/RenderSceneBuffersConfiguration.ts +78 -0
- package/gen/classes/RenderSceneBuffersExtension.ts +15 -0
- package/gen/classes/RenderSceneBuffersRD.ts +163 -0
- package/gen/classes/RenderSceneData.ts +49 -0
- package/gen/classes/RenderSceneDataExtension.ts +16 -0
- package/gen/classes/RenderSceneDataRD.ts +15 -0
- package/gen/classes/RenderingDevice.ts +3416 -0
- package/gen/classes/RenderingServer.ts +5580 -0
- package/gen/classes/Resource.ts +171 -0
- package/gen/classes/ResourceFormatLoader.ts +44 -0
- package/gen/classes/ResourceFormatSaver.ts +18 -0
- package/gen/classes/ResourceImporter.ts +28 -0
- package/gen/classes/ResourceLoader.ts +178 -0
- package/gen/classes/ResourcePreloader.ts +50 -0
- package/gen/classes/ResourceSaver.ts +94 -0
- package/gen/classes/ResourceUID.ts +73 -0
- package/gen/classes/RetargetModifier3D.ts +91 -0
- package/gen/classes/RibbonTrailMesh.ts +66 -0
- package/gen/classes/RichTextEffect.ts +27 -0
- package/gen/classes/RichTextLabel.ts +860 -0
- package/gen/classes/RigidBody2D.ts +359 -0
- package/gen/classes/RigidBody3D.ts +347 -0
- package/gen/classes/RootMotionView.ts +47 -0
- package/gen/classes/SceneMultiplayer.ts +122 -0
- package/gen/classes/SceneReplicationConfig.ts +96 -0
- package/gen/classes/SceneState.ts +160 -0
- package/gen/classes/SceneTree.ts +371 -0
- package/gen/classes/SceneTreeTimer.ts +42 -0
- package/gen/classes/Script.ts +122 -0
- package/gen/classes/ScriptBacktrace.ts +103 -0
- package/gen/classes/ScriptExtension.ts +15 -0
- package/gen/classes/ScriptLanguage.ts +21 -0
- package/gen/classes/ScriptLanguageExtension.ts +72 -0
- package/gen/classes/ScrollBar.ts +26 -0
- package/gen/classes/ScrollContainer.ts +199 -0
- package/gen/classes/SegmentShape2D.ts +27 -0
- package/gen/classes/Semaphore.ts +33 -0
- package/gen/classes/SeparationRayShape2D.ts +27 -0
- package/gen/classes/SeparationRayShape3D.ts +27 -0
- package/gen/classes/Separator.ts +13 -0
- package/gen/classes/Shader.ts +83 -0
- package/gen/classes/ShaderGlobalsOverride.ts +16 -0
- package/gen/classes/ShaderInclude.ts +20 -0
- package/gen/classes/ShaderIncludeDB.ts +30 -0
- package/gen/classes/ShaderMaterial.ts +36 -0
- package/gen/classes/Shape2D.ts +61 -0
- package/gen/classes/Shape3D.ts +35 -0
- package/gen/classes/ShapeCast2D.ts +168 -0
- package/gen/classes/ShapeCast3D.ts +181 -0
- package/gen/classes/Shortcut.ts +60 -0
- package/gen/classes/Skeleton2D.ts +67 -0
- package/gen/classes/Skeleton3D.ts +359 -0
- package/gen/classes/SkeletonIK3D.ts +119 -0
- package/gen/classes/SkeletonModification2D.ts +58 -0
- package/gen/classes/SkeletonModification2DCCDIK.ts +107 -0
- package/gen/classes/SkeletonModification2DFABRIK.ts +73 -0
- package/gen/classes/SkeletonModification2DJiggle.ts +165 -0
- package/gen/classes/SkeletonModification2DLookAt.ts +84 -0
- package/gen/classes/SkeletonModification2DPhysicalBones.ts +49 -0
- package/gen/classes/SkeletonModification2DStackHolder.ts +26 -0
- package/gen/classes/SkeletonModification2DTwoBoneIK.ts +80 -0
- package/gen/classes/SkeletonModificationStack2D.ts +82 -0
- package/gen/classes/SkeletonModifier3D.ts +168 -0
- package/gen/classes/SkeletonProfile.ts +180 -0
- package/gen/classes/SkeletonProfileHumanoid.ts +76 -0
- package/gen/classes/Skin.ts +35 -0
- package/gen/classes/SkinReference.ts +30 -0
- package/gen/classes/Sky.ts +94 -0
- package/gen/classes/Slider.ts +78 -0
- package/gen/classes/SliderJoint3D.ts +122 -0
- package/gen/classes/SocketServer.ts +34 -0
- package/gen/classes/SoftBody3D.ts +188 -0
- package/gen/classes/SphereMesh.ts +45 -0
- package/gen/classes/SphereOccluder3D.ts +21 -0
- package/gen/classes/SphereShape3D.ts +21 -0
- package/gen/classes/SpinBox.ts +97 -0
- package/gen/classes/SplineIK3D.ts +70 -0
- package/gen/classes/SplitContainer.ts +163 -0
- package/gen/classes/SpotLight3D.ts +46 -0
- package/gen/classes/SpringArm3D.ts +64 -0
- package/gen/classes/SpringBoneCollision3D.ts +48 -0
- package/gen/classes/SpringBoneCollisionCapsule3D.ts +40 -0
- package/gen/classes/SpringBoneCollisionPlane3D.ts +14 -0
- package/gen/classes/SpringBoneCollisionSphere3D.ts +26 -0
- package/gen/classes/SpringBoneSimulator3D.ts +476 -0
- package/gen/classes/Sprite2D.ts +125 -0
- package/gen/classes/Sprite3D.ts +71 -0
- package/gen/classes/SpriteBase3D.ts +205 -0
- package/gen/classes/SpriteFrames.ts +147 -0
- package/gen/classes/StandardMaterial3D.ts +14 -0
- package/gen/classes/StaticBody2D.ts +37 -0
- package/gen/classes/StaticBody3D.ts +37 -0
- package/gen/classes/StatusIndicator.ts +50 -0
- package/gen/classes/StreamPeer.ts +206 -0
- package/gen/classes/StreamPeerBuffer.ts +52 -0
- package/gen/classes/StreamPeerExtension.ts +12 -0
- package/gen/classes/StreamPeerGZIP.ts +37 -0
- package/gen/classes/StreamPeerSocket.ts +51 -0
- package/gen/classes/StreamPeerTCP.ts +48 -0
- package/gen/classes/StreamPeerTLS.ts +73 -0
- package/gen/classes/StreamPeerUDS.ts +32 -0
- package/gen/classes/StyleBox.ts +86 -0
- package/gen/classes/StyleBoxEmpty.ts +14 -0
- package/gen/classes/StyleBoxFlat.ts +200 -0
- package/gen/classes/StyleBoxLine.ts +45 -0
- package/gen/classes/StyleBoxTexture.ts +138 -0
- package/gen/classes/SubViewport.ts +98 -0
- package/gen/classes/SubViewportContainer.ts +40 -0
- package/gen/classes/SubtweenTweener.ts +20 -0
- package/gen/classes/SurfaceTool.ts +271 -0
- package/gen/classes/SyntaxHighlighter.ts +54 -0
- package/gen/classes/SystemFont.ts +122 -0
- package/gen/classes/TCPServer.ts +35 -0
- package/gen/classes/TLSOptions.ts +79 -0
- package/gen/classes/TabBar.ts +363 -0
- package/gen/classes/TabContainer.ts +296 -0
- package/gen/classes/TextEdit.ts +1458 -0
- package/gen/classes/TextLine.ts +179 -0
- package/gen/classes/TextMesh.ts +134 -0
- package/gen/classes/TextParagraph.ts +278 -0
- package/gen/classes/TextServer.ts +1891 -0
- package/gen/classes/TextServerAdvanced.ts +14 -0
- package/gen/classes/TextServerDummy.ts +30 -0
- package/gen/classes/TextServerExtension.ts +20 -0
- package/gen/classes/TextServerManager.ts +71 -0
- package/gen/classes/Texture.ts +14 -0
- package/gen/classes/Texture2D.ts +84 -0
- package/gen/classes/Texture2DArray.ts +22 -0
- package/gen/classes/Texture2DArrayRD.ts +15 -0
- package/gen/classes/Texture2DRD.ts +22 -0
- package/gen/classes/Texture3D.ts +55 -0
- package/gen/classes/Texture3DRD.ts +22 -0
- package/gen/classes/TextureButton.ts +112 -0
- package/gen/classes/TextureCubemapArrayRD.ts +15 -0
- package/gen/classes/TextureCubemapRD.ts +15 -0
- package/gen/classes/TextureLayered.ts +73 -0
- package/gen/classes/TextureLayeredRD.ts +21 -0
- package/gen/classes/TextureProgressBar.ts +158 -0
- package/gen/classes/TextureRect.ts +109 -0
- package/gen/classes/Theme.ts +438 -0
- package/gen/classes/ThemeDB.ts +72 -0
- package/gen/classes/Thread.ts +86 -0
- package/gen/classes/TileData.ts +255 -0
- package/gen/classes/TileMap.ts +400 -0
- package/gen/classes/TileMapLayer.ts +303 -0
- package/gen/classes/TileMapPattern.ts +67 -0
- package/gen/classes/TileSet.ts +619 -0
- package/gen/classes/TileSetAtlasSource.ts +269 -0
- package/gen/classes/TileSetScenesCollectionSource.ts +87 -0
- package/gen/classes/TileSetSource.ts +50 -0
- package/gen/classes/Time.ts +237 -0
- package/gen/classes/Timer.ts +109 -0
- package/gen/classes/TorusMesh.ts +38 -0
- package/gen/classes/TouchScreenButton.ts +106 -0
- package/gen/classes/Translation.ts +91 -0
- package/gen/classes/TranslationDomain.ts +154 -0
- package/gen/classes/TranslationServer.ts +194 -0
- package/gen/classes/Tree.ts +521 -0
- package/gen/classes/TreeItem.ts +682 -0
- package/gen/classes/TriangleMesh.ts +52 -0
- package/gen/classes/TubeTrailMesh.ts +64 -0
- package/gen/classes/Tween.ts +604 -0
- package/gen/classes/Tweener.ts +20 -0
- package/gen/classes/TwoBoneIK3D.ts +173 -0
- package/gen/classes/UDPServer.ts +115 -0
- package/gen/classes/UDSServer.ts +28 -0
- package/gen/classes/UPNP.ts +279 -0
- package/gen/classes/UPNPDevice.ts +116 -0
- package/gen/classes/UndoRedo.ts +226 -0
- package/gen/classes/UniformSetCacheRD.ts +21 -0
- package/gen/classes/VBoxContainer.ts +14 -0
- package/gen/classes/VFlowContainer.ts +14 -0
- package/gen/classes/VScrollBar.ts +14 -0
- package/gen/classes/VSeparator.ts +14 -0
- package/gen/classes/VSlider.ts +14 -0
- package/gen/classes/VSplitContainer.ts +14 -0
- package/gen/classes/VehicleBody3D.ts +38 -0
- package/gen/classes/VehicleWheel3D.ts +134 -0
- package/gen/classes/VideoStream.ts +22 -0
- package/gen/classes/VideoStreamPlayback.ts +21 -0
- package/gen/classes/VideoStreamPlayer.ts +129 -0
- package/gen/classes/VideoStreamTheora.ts +15 -0
- package/gen/classes/Viewport.ts +1109 -0
- package/gen/classes/ViewportTexture.ts +35 -0
- package/gen/classes/VirtualJoystick.ts +150 -0
- package/gen/classes/VisibleOnScreenEnabler2D.ts +47 -0
- package/gen/classes/VisibleOnScreenEnabler3D.ts +47 -0
- package/gen/classes/VisibleOnScreenNotifier2D.ts +48 -0
- package/gen/classes/VisibleOnScreenNotifier3D.ts +42 -0
- package/gen/classes/VisualInstance3D.ts +69 -0
- package/gen/classes/VisualShader.ts +247 -0
- package/gen/classes/VisualShaderNode.ts +103 -0
- package/gen/classes/VisualShaderNodeBillboard.ts +52 -0
- package/gen/classes/VisualShaderNodeBooleanConstant.ts +21 -0
- package/gen/classes/VisualShaderNodeBooleanParameter.ts +26 -0
- package/gen/classes/VisualShaderNodeClamp.ts +54 -0
- package/gen/classes/VisualShaderNodeColorConstant.ts +22 -0
- package/gen/classes/VisualShaderNodeColorFunc.ts +106 -0
- package/gen/classes/VisualShaderNodeColorOp.ts +144 -0
- package/gen/classes/VisualShaderNodeColorParameter.ts +27 -0
- package/gen/classes/VisualShaderNodeComment.ts +20 -0
- package/gen/classes/VisualShaderNodeCompare.ts +124 -0
- package/gen/classes/VisualShaderNodeConstant.ts +13 -0
- package/gen/classes/VisualShaderNodeCubemap.ts +72 -0
- package/gen/classes/VisualShaderNodeCubemapParameter.ts +14 -0
- package/gen/classes/VisualShaderNodeCurveTexture.ts +21 -0
- package/gen/classes/VisualShaderNodeCurveXYZTexture.ts +21 -0
- package/gen/classes/VisualShaderNodeCustom.ts +38 -0
- package/gen/classes/VisualShaderNodeDerivativeFunc.ts +100 -0
- package/gen/classes/VisualShaderNodeDeterminant.ts +14 -0
- package/gen/classes/VisualShaderNodeDistanceFade.ts +14 -0
- package/gen/classes/VisualShaderNodeDotProduct.ts +14 -0
- package/gen/classes/VisualShaderNodeExpression.ts +21 -0
- package/gen/classes/VisualShaderNodeFaceForward.ts +14 -0
- package/gen/classes/VisualShaderNodeFloatConstant.ts +20 -0
- package/gen/classes/VisualShaderNodeFloatFunc.ts +158 -0
- package/gen/classes/VisualShaderNodeFloatOp.ts +70 -0
- package/gen/classes/VisualShaderNodeFloatParameter.ts +72 -0
- package/gen/classes/VisualShaderNodeFrame.ts +58 -0
- package/gen/classes/VisualShaderNodeFresnel.ts +14 -0
- package/gen/classes/VisualShaderNodeGlobalExpression.ts +14 -0
- package/gen/classes/VisualShaderNodeGroupBase.ts +118 -0
- package/gen/classes/VisualShaderNodeIf.ts +17 -0
- package/gen/classes/VisualShaderNodeInput.ts +32 -0
- package/gen/classes/VisualShaderNodeIntConstant.ts +20 -0
- package/gen/classes/VisualShaderNodeIntFunc.ts +46 -0
- package/gen/classes/VisualShaderNodeIntOp.ts +78 -0
- package/gen/classes/VisualShaderNodeIntParameter.ts +83 -0
- package/gen/classes/VisualShaderNodeIs.ts +38 -0
- package/gen/classes/VisualShaderNodeLinearSceneDepth.ts +14 -0
- package/gen/classes/VisualShaderNodeMix.ts +58 -0
- package/gen/classes/VisualShaderNodeMultiplyAdd.ts +46 -0
- package/gen/classes/VisualShaderNodeOuterProduct.ts +14 -0
- package/gen/classes/VisualShaderNodeOutput.ts +13 -0
- package/gen/classes/VisualShaderNodeParameter.ts +57 -0
- package/gen/classes/VisualShaderNodeParameterRef.ts +23 -0
- package/gen/classes/VisualShaderNodeParticleAccelerator.ts +42 -0
- package/gen/classes/VisualShaderNodeParticleBoxEmitter.ts +14 -0
- package/gen/classes/VisualShaderNodeParticleConeVelocity.ts +14 -0
- package/gen/classes/VisualShaderNodeParticleEmit.ts +46 -0
- package/gen/classes/VisualShaderNodeParticleEmitter.ts +19 -0
- package/gen/classes/VisualShaderNodeParticleMeshEmitter.ts +33 -0
- package/gen/classes/VisualShaderNodeParticleMultiplyByAxisAngle.ts +20 -0
- package/gen/classes/VisualShaderNodeParticleOutput.ts +14 -0
- package/gen/classes/VisualShaderNodeParticleRandomness.ts +46 -0
- package/gen/classes/VisualShaderNodeParticleRingEmitter.ts +14 -0
- package/gen/classes/VisualShaderNodeParticleSphereEmitter.ts +14 -0
- package/gen/classes/VisualShaderNodeProximityFade.ts +14 -0
- package/gen/classes/VisualShaderNodeRandomRange.ts +14 -0
- package/gen/classes/VisualShaderNodeRemap.ts +55 -0
- package/gen/classes/VisualShaderNodeReroute.ts +18 -0
- package/gen/classes/VisualShaderNodeResizableBase.ts +20 -0
- package/gen/classes/VisualShaderNodeRotationByAxis.ts +14 -0
- package/gen/classes/VisualShaderNodeSDFRaymarch.ts +14 -0
- package/gen/classes/VisualShaderNodeSDFToScreenUV.ts +14 -0
- package/gen/classes/VisualShaderNodeSample3D.ts +37 -0
- package/gen/classes/VisualShaderNodeScreenNormalWorldSpace.ts +14 -0
- package/gen/classes/VisualShaderNodeScreenUVToSDF.ts +14 -0
- package/gen/classes/VisualShaderNodeSmoothStep.ts +59 -0
- package/gen/classes/VisualShaderNodeStep.ts +59 -0
- package/gen/classes/VisualShaderNodeSwitch.ts +62 -0
- package/gen/classes/VisualShaderNodeTexture.ts +96 -0
- package/gen/classes/VisualShaderNodeTexture2DArray.ts +21 -0
- package/gen/classes/VisualShaderNodeTexture2DArrayParameter.ts +14 -0
- package/gen/classes/VisualShaderNodeTexture2DParameter.ts +14 -0
- package/gen/classes/VisualShaderNodeTexture3D.ts +21 -0
- package/gen/classes/VisualShaderNodeTexture3DParameter.ts +14 -0
- package/gen/classes/VisualShaderNodeTextureParameter.ts +177 -0
- package/gen/classes/VisualShaderNodeTextureParameterTriplanar.ts +14 -0
- package/gen/classes/VisualShaderNodeTextureSDF.ts +14 -0
- package/gen/classes/VisualShaderNodeTextureSDFNormal.ts +14 -0
- package/gen/classes/VisualShaderNodeTransformCompose.ts +14 -0
- package/gen/classes/VisualShaderNodeTransformConstant.ts +21 -0
- package/gen/classes/VisualShaderNodeTransformDecompose.ts +14 -0
- package/gen/classes/VisualShaderNodeTransformFunc.ts +38 -0
- package/gen/classes/VisualShaderNodeTransformOp.ts +66 -0
- package/gen/classes/VisualShaderNodeTransformParameter.ts +27 -0
- package/gen/classes/VisualShaderNodeTransformVecMult.ts +46 -0
- package/gen/classes/VisualShaderNodeUIntConstant.ts +20 -0
- package/gen/classes/VisualShaderNodeUIntFunc.ts +38 -0
- package/gen/classes/VisualShaderNodeUIntOp.ts +78 -0
- package/gen/classes/VisualShaderNodeUIntParameter.ts +26 -0
- package/gen/classes/VisualShaderNodeUVFunc.ts +38 -0
- package/gen/classes/VisualShaderNodeUVPolarCoord.ts +14 -0
- package/gen/classes/VisualShaderNodeVarying.ts +26 -0
- package/gen/classes/VisualShaderNodeVaryingGetter.ts +14 -0
- package/gen/classes/VisualShaderNodeVaryingSetter.ts +14 -0
- package/gen/classes/VisualShaderNodeVec2Constant.ts +21 -0
- package/gen/classes/VisualShaderNodeVec2Parameter.ts +27 -0
- package/gen/classes/VisualShaderNodeVec3Constant.ts +21 -0
- package/gen/classes/VisualShaderNodeVec3Parameter.ts +27 -0
- package/gen/classes/VisualShaderNodeVec4Constant.ts +24 -0
- package/gen/classes/VisualShaderNodeVec4Parameter.ts +27 -0
- package/gen/classes/VisualShaderNodeVectorBase.ts +41 -0
- package/gen/classes/VisualShaderNodeVectorCompose.ts +14 -0
- package/gen/classes/VisualShaderNodeVectorDecompose.ts +14 -0
- package/gen/classes/VisualShaderNodeVectorDistance.ts +15 -0
- package/gen/classes/VisualShaderNodeVectorFunc.ts +162 -0
- package/gen/classes/VisualShaderNodeVectorLen.ts +14 -0
- package/gen/classes/VisualShaderNodeVectorOp.ts +78 -0
- package/gen/classes/VisualShaderNodeVectorRefract.ts +14 -0
- package/gen/classes/VisualShaderNodeWorldPositionFromDepth.ts +14 -0
- package/gen/classes/VoxelGI.ts +85 -0
- package/gen/classes/VoxelGIData.ts +95 -0
- package/gen/classes/WeakRef.ts +20 -0
- package/gen/classes/WebRTCDataChannel.ts +115 -0
- package/gen/classes/WebRTCDataChannelExtension.ts +14 -0
- package/gen/classes/WebRTCMultiplayerPeer.ts +63 -0
- package/gen/classes/WebRTCPeerConnection.ts +220 -0
- package/gen/classes/WebRTCPeerConnectionExtension.ts +15 -0
- package/gen/classes/WebSocketMultiplayerPeer.ts +81 -0
- package/gen/classes/WebSocketPeer.ts +213 -0
- package/gen/classes/WebXRInterface.ts +317 -0
- package/gen/classes/Window.ts +1127 -0
- package/gen/classes/WorkerThreadPool.ts +100 -0
- package/gen/classes/World2D.ts +36 -0
- package/gen/classes/World3D.ts +56 -0
- package/gen/classes/WorldBoundaryShape2D.ts +28 -0
- package/gen/classes/WorldBoundaryShape3D.ts +22 -0
- package/gen/classes/WorldEnvironment.ts +37 -0
- package/gen/classes/X509Certificate.ts +36 -0
- package/gen/classes/XMLParser.ts +154 -0
- package/gen/classes/XRAnchor3D.ts +27 -0
- package/gen/classes/XRBodyModifier3D.ts +70 -0
- package/gen/classes/XRBodyTracker.ts +444 -0
- package/gen/classes/XRCamera3D.ts +16 -0
- package/gen/classes/XRController3D.ts +79 -0
- package/gen/classes/XRControllerTracker.ts +16 -0
- package/gen/classes/XRFaceModifier3D.ts +29 -0
- package/gen/classes/XRFaceTracker.ts +614 -0
- package/gen/classes/XRHandModifier3D.ts +47 -0
- package/gen/classes/XRHandTracker.ts +246 -0
- package/gen/classes/XRInterface.ts +282 -0
- package/gen/classes/XRInterfaceExtension.ts +33 -0
- package/gen/classes/XRNode3D.ts +67 -0
- package/gen/classes/XROrigin3D.ts +29 -0
- package/gen/classes/XRPose.ts +80 -0
- package/gen/classes/XRPositionalTracker.ts +125 -0
- package/gen/classes/XRServer.ts +226 -0
- package/gen/classes/XRTracker.ts +40 -0
- package/gen/classes/XRVRS.ts +40 -0
- package/gen/classes/ZIPPacker.ts +114 -0
- package/gen/classes/ZIPReader.ts +89 -0
- package/gen/classes/index.ts +957 -0
- package/gen/global-constants.ts +60 -0
- package/gen/global-enums.ts +2284 -0
- package/gen/heap-types/GodotArray.ts +615 -0
- package/gen/heap-types/GodotDictionary.ts +298 -0
- package/gen/heap-types/PackedByteArray.ts +400 -0
- package/gen/heap-types/PackedColorArray.ts +144 -0
- package/gen/heap-types/PackedFloat32Array.ts +151 -0
- package/gen/heap-types/PackedFloat64Array.ts +152 -0
- package/gen/heap-types/PackedInt32Array.ts +144 -0
- package/gen/heap-types/PackedInt64Array.ts +145 -0
- package/gen/heap-types/PackedStringArray.ts +153 -0
- package/gen/heap-types/PackedVector2Array.ts +151 -0
- package/gen/heap-types/PackedVector3Array.ts +151 -0
- package/gen/heap-types/PackedVector4Array.ts +151 -0
- package/gen/heap-types/Signal.ts +180 -0
- package/gen/heap-types/index.ts +24 -0
- package/gen/index.ts +11 -0
- package/gen/utility-functions.ts +1457 -0
- package/gen/value-types/AABB.ts +288 -0
- package/gen/value-types/Basis.ts +283 -0
- package/gen/value-types/Color.ts +282 -0
- package/gen/value-types/Plane.ts +134 -0
- package/gen/value-types/Projection.ts +137 -0
- package/gen/value-types/Quaternion.ts +192 -0
- package/gen/value-types/Rect2.ts +182 -0
- package/gen/value-types/Rect2i.ts +161 -0
- package/gen/value-types/Transform2D.ts +206 -0
- package/gen/value-types/Transform3D.ts +137 -0
- package/gen/value-types/Vector2.ts +365 -0
- package/gen/value-types/Vector2i.ts +201 -0
- package/gen/value-types/Vector3.ts +365 -0
- package/gen/value-types/Vector3i.ts +202 -0
- package/gen/value-types/Vector4.ts +285 -0
- package/gen/value-types/Vector4i.ts +208 -0
- package/gen/value-types/index.ts +19 -0
- package/package.json +33 -0
- package/src/debug.ts +219 -0
- package/src/index.ts +36 -0
- package/src/runtime.ts +69 -0
|
@@ -0,0 +1,860 @@
|
|
|
1
|
+
// Auto-generated from extension_api.json - DO NOT EDIT
|
|
2
|
+
// Generated by dev/codegen.ts
|
|
3
|
+
|
|
4
|
+
import { _C, _R, _G } from '../../src/runtime.ts';
|
|
5
|
+
import { Control } from './Control.ts';
|
|
6
|
+
import type { HorizontalAlignment, InlineAlignment, VerticalAlignment } from '../global-enums.ts';
|
|
7
|
+
import type { GodotArray, GodotDictionary, PackedFloat32Array, PackedStringArray, Signal, Variant } from '../heap-types/index.ts';
|
|
8
|
+
import type { Color, Rect2, Rect2i, Vector2, Vector2i } from '../value-types/index.ts';
|
|
9
|
+
import type { TextDirection } from './Control.ts';
|
|
10
|
+
import type { Font } from './Font.ts';
|
|
11
|
+
import type { PopupMenu } from './PopupMenu.ts';
|
|
12
|
+
import type { RichTextEffect } from './RichTextEffect.ts';
|
|
13
|
+
import type { AutowrapMode, JustificationFlag, LineBreakFlag, StructuredTextParser, VisibleCharactersBehavior } from './TextServer.ts';
|
|
14
|
+
import type { Texture2D } from './Texture2D.ts';
|
|
15
|
+
import type { VScrollBar } from './VScrollBar.ts';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A control for displaying text that can contain custom fonts, images, and basic formatting. {@link RichTextLabel} manages these as an internal tag stack. It also adapts itself to given width/heights.
|
|
19
|
+
* **Note:** {@link newline}, {@link pushParagraph}, `"\n"`, `"\r\n"`, `p` tag, and alignment tags start a new paragraph. Each paragraph is processed independently, in its own BiDi context. If you want to force line wrapping within paragraph, any other line breaking character can be used, for example, Form Feed (U+000C), Next Line (U+0085), Line Separator (U+2028).
|
|
20
|
+
* **Note:** Assignments to {@link text} clear the tag stack and reconstruct it from the property's contents. Any edits made to {@link text} will erase previous edits made from other manual sources such as {@link appendText} and the `push_*` / {@link pop} methods.
|
|
21
|
+
* **Note:** RichTextLabel doesn't support entangled BBCode tags. For example, instead of using {@link code skip-lint}**bold[i]bold italic[/i]italic**, use {@link code skip-lint}**bold[i]bold italic[/i]***italic*.
|
|
22
|
+
* **Note:** `push_*\/pop_*` functions won't affect BBCode.
|
|
23
|
+
* **Note:** While {@link bbcodeEnabled} is enabled, alignment tags such as {@link code skip-lint}{@link center} will take priority over the {@link horizontalAlignment} setting which determines the default text alignment.
|
|
24
|
+
*/
|
|
25
|
+
export class RichTextLabel extends Control {
|
|
26
|
+
constructor(name = 670) { super(name); }
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Returns the text without BBCode mark-up.
|
|
30
|
+
*/
|
|
31
|
+
getParsedText(): string { return _C(this, 5830) as string; }
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Adds raw non-BBCode-parsed text to the tag stack.
|
|
35
|
+
*/
|
|
36
|
+
addText(text: string): void { _C(this, 1307, text); }
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Adds a horizontal rule that can be used to separate content.
|
|
40
|
+
* If `widthInPercent` is set, `width` values are percentages of the control width instead of pixels.
|
|
41
|
+
* If `heightInPercent` is set, `height` values are percentages of the control width instead of pixels.
|
|
42
|
+
*/
|
|
43
|
+
addHr(width?: number /* = 90 */, height?: number /* = 2 */, color?: Color /* = Color(1, 1, 1, 1) */, alignment?: HorizontalAlignment /* = 1 */, widthInPercent?: boolean /* = true */, heightInPercent?: boolean /* = false */): void { _C(this, 1226, width, height, color, alignment, widthInPercent, heightInPercent); }
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Adds an image's opening and closing tags to the tag stack, optionally providing a `width` and `height` to resize the image, a `color` to tint the image and a `region` to only use parts of the image.
|
|
47
|
+
* If `width` or `height` is set to 0, the image size will be adjusted in order to keep the original aspect ratio.
|
|
48
|
+
* If `width` and `height` are not set, but `region` is, the region's rect will be used.
|
|
49
|
+
* `key` is an optional identifier, that can be used to modify the image via {@link updateImage}.
|
|
50
|
+
* If `pad` is set, and the image is smaller than the size specified by `width` and `height`, the image padding is added to match the size instead of upscaling.
|
|
51
|
+
* Parameters `widthUnit` and `heightUnit` determine the units used to calculate the image width and height, respectively.
|
|
52
|
+
* `altText` is used as the image description for assistive apps.
|
|
53
|
+
*/
|
|
54
|
+
addImage(image: Texture2D, width?: number /* = 0 */, height?: number /* = 0 */, color?: Color /* = Color(1, 1, 1, 1) */, inlineAlign?: InlineAlignment /* = 5 */, region?: Rect2 /* = Rect2(0, 0, 0, 0) */, key?: Variant /* = null */, pad?: boolean /* = false */, tooltip?: string /* = "" */, widthUnit?: ImageUnit /* = 0 */, heightUnit?: ImageUnit /* = 0 */, altText?: string /* = "" */): void { _C(this, 1235, image, width, height, color, inlineAlign, region, key, pad, tooltip, widthUnit, heightUnit, altText); }
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Updates the existing images with the key `key`. Only properties specified by `mask` bits are updated. See {@link addImage}.
|
|
58
|
+
*/
|
|
59
|
+
updateImage(key: Variant, mask: ImageUpdateMask, image: Texture2D, width?: number /* = 0 */, height?: number /* = 0 */, color?: Color /* = Color(1, 1, 1, 1) */, inlineAlign?: InlineAlignment /* = 5 */, region?: Rect2 /* = Rect2(0, 0, 0, 0) */, pad?: boolean /* = false */, tooltip?: string /* = "" */, widthUnit?: ImageUnit /* = 0 */, heightUnit?: ImageUnit /* = 0 */): void { _C(this, 14516, key, mask, image, width, height, color, inlineAlign, region, pad, tooltip, widthUnit, heightUnit); }
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Adds a newline tag to the tag stack.
|
|
63
|
+
*/
|
|
64
|
+
newline(): void { _C(this, 9069); }
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Removes a paragraph of content from the label. Returns `true` if the paragraph exists.
|
|
68
|
+
* The `paragraph` argument is the index of the paragraph to remove, it can take values in the interval `[0, get_paragraph_count() - 1]`.
|
|
69
|
+
* If `noInvalidate` is set to `true`, cache for the subsequent paragraphs is not invalidated. Use it for faster updates if deleted paragraph is fully self-contained (have no unclosed tags), or this call is part of the complex edit operation and {@link invalidateParagraph} will be called at the end of operation.
|
|
70
|
+
*/
|
|
71
|
+
removeParagraph(paragraph: number, noInvalidate?: boolean /* = false */): boolean { return _C(this, 9942, paragraph, noInvalidate) as boolean; }
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Invalidates `paragraph` and all subsequent paragraphs cache.
|
|
75
|
+
*/
|
|
76
|
+
invalidateParagraph(paragraph: number): boolean { return _C(this, 7712, paragraph) as boolean; }
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Adds a {@link code skip-lint}{@link font}[/code] tag to the tag stack. Overrides default fonts for its duration.
|
|
80
|
+
* Passing `0` to `fontSize` will use the existing default font size.
|
|
81
|
+
*/
|
|
82
|
+
pushFont(font: Font, fontSize?: number /* = 0 */): void { _C(this, 9642, font, fontSize); }
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Adds a {@link code skip-lint}{@link font_size}[/code] tag to the tag stack. Overrides default font size for its duration.
|
|
86
|
+
*/
|
|
87
|
+
pushFontSize(fontSize: number): void { _C(this, 9643, fontSize); }
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Adds a {@link code skip-lint}{@link font}[/code] tag with a normal font to the tag stack.
|
|
91
|
+
*/
|
|
92
|
+
pushNormal(): void { _C(this, 9654); }
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Adds a {@link code skip-lint}{@link font}[/code] tag with a bold font to the tag stack. This is the same as adding a {@link code skip-lint}{@link b}[/code] tag if not currently in a {@link code skip-lint}{@link i}[/code] tag.
|
|
96
|
+
*/
|
|
97
|
+
pushBold(): void { _C(this, 9632); }
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Adds a {@link code skip-lint}{@link font}[/code] tag with a bold italics font to the tag stack.
|
|
101
|
+
*/
|
|
102
|
+
pushBoldItalics(): void { _C(this, 9633); }
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Adds a {@link code skip-lint}{@link font}[/code] tag with an italics font to the tag stack. This is the same as adding an {@link code skip-lint}{@link i}[/code] tag if not currently in a {@link code skip-lint}{@link b}[/code] tag.
|
|
106
|
+
*/
|
|
107
|
+
pushItalics(): void { _C(this, 9649); }
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Adds a {@link code skip-lint}{@link font}[/code] tag with a monospace font to the tag stack.
|
|
111
|
+
*/
|
|
112
|
+
pushMono(): void { _C(this, 9653); }
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Adds a {@link code skip-lint}{@link color}[/code] tag to the tag stack.
|
|
116
|
+
*/
|
|
117
|
+
pushColor(color: Color): void { _C(this, 9636, color); }
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Adds a {@link code skip-lint}{@link outline_size}[/code] tag to the tag stack. Overrides default text outline size for its duration.
|
|
121
|
+
*/
|
|
122
|
+
pushOutlineSize(outlineSize: number): void { _C(this, 9656, outlineSize); }
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Adds a {@link code skip-lint}{@link outline_color}[/code] tag to the tag stack. Adds text outline for its duration.
|
|
126
|
+
*/
|
|
127
|
+
pushOutlineColor(color: Color): void { _C(this, 9655, color); }
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Adds a {@link code skip-lint}{@link p}[/code] tag to the tag stack.
|
|
131
|
+
*/
|
|
132
|
+
pushParagraph(alignment: HorizontalAlignment, baseDirection?: TextDirection /* = 0 */, language?: string /* = "" */, stParser?: StructuredTextParser /* = 0 */, justificationFlags?: JustificationFlag /* = 163 */, tabStops?: PackedFloat32Array /* = PackedFloat32Array() */): void { _C(this, 9657, alignment, baseDirection, language, stParser, justificationFlags, tabStops); }
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Adds an {@link code skip-lint}{@link indent}[/code] tag to the tag stack. Multiplies `level` by current {@link tabSize} to determine new margin length.
|
|
136
|
+
*/
|
|
137
|
+
pushIndent(level: number): void { _C(this, 9647, level); }
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Adds {@link code skip-lint}{@link ol}[/code] or {@link code skip-lint}{@link ul}[/code] tag to the tag stack. Multiplies `level` by current {@link tabSize} to determine new margin length.
|
|
141
|
+
*/
|
|
142
|
+
pushList(level: number, type: ListType, capitalize: boolean, bullet?: string /* = "•" */): void { _C(this, 9651, level, type, capitalize, bullet); }
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Adds a meta tag to the tag stack. Similar to the BBCode {@link code skip-lint}[{text}](something)[/code], but supports non-{@link String} metadata types.
|
|
146
|
+
* If {@link metaUnderlined} is `true`, meta tags display an underline. This behavior can be customized with `underlineMode`.
|
|
147
|
+
* **Note:** Meta tags do nothing by default when clicked. To assign behavior when clicked, connect {@link meta_clicked} to a function that is called when the meta tag is clicked.
|
|
148
|
+
*/
|
|
149
|
+
pushMeta(data: Variant, underlineMode?: MetaUnderline /* = 1 */, tooltip?: string /* = "" */): void { _C(this, 9652, data, underlineMode, tooltip); }
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Adds a {@link code skip-lint} tag to the tag stack. Same as BBCode {@link code skip-lint}[/code].
|
|
153
|
+
*/
|
|
154
|
+
pushHint(description: string): void { _C(this, 9646, description); }
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Adds language code used for text shaping algorithm and Open-Type font features.
|
|
158
|
+
*/
|
|
159
|
+
pushLanguage(language: string): void { _C(this, 9650, language); }
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Adds a {@link code skip-lint}{@link u}[/code] tag to the tag stack. If `color`'s alpha value is `0.0`, the current font's color with its alpha multiplied by {@link underline_alpha} is used.
|
|
163
|
+
*/
|
|
164
|
+
pushUnderline(color?: Color /* = Color(0, 0, 0, 0) */): void { _C(this, 9661, color); }
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Adds a {@link code skip-lint}{@link s}[/code] tag to the tag stack. If `color`'s alpha value is `0.0`, the current font's color with its alpha multiplied by {@link strikethrough_alpha} is used.
|
|
168
|
+
*/
|
|
169
|
+
pushStrikethrough(color?: Color /* = Color(0, 0, 0, 0) */): void { _C(this, 9658, color); }
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Adds a {@link code skip-lint}{@link table}[/code] tag to the tag stack. Use {@link setTableColumnExpand} to set column expansion ratio. Use {@link pushCell} to add cells. `name` is used as the table name for assistive apps.
|
|
173
|
+
*/
|
|
174
|
+
pushTable(columns: number, inlineAlign?: InlineAlignment /* = 0 */, alignToRow?: number /* = -1 */, name?: string /* = "" */): void { _C(this, 9659, columns, inlineAlign, alignToRow, name); }
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Adds a {@link code skip-lint}{@link dropcap}[/code] tag to the tag stack. Drop cap (dropped capital) is a decorative element at the beginning of a paragraph that is larger than the rest of the text.
|
|
178
|
+
*/
|
|
179
|
+
pushDropcap(string: string, font: Font, size: number, dropcapMargins?: Rect2 /* = Rect2(0, 0, 0, 0) */, color?: Color /* = Color(1, 1, 1, 1) */, outlineSize?: number /* = 0 */, outlineColor?: Color /* = Color(0, 0, 0, 0) */): void { _C(this, 9639, string, font, size, dropcapMargins, color, outlineSize, outlineColor); }
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Edits the selected column's expansion options. If `expand` is `true`, the column expands in proportion to its expansion ratio versus the other columns' ratios.
|
|
183
|
+
* For example, 2 columns with ratios 3 and 4 plus 70 pixels in available width would expand 30 and 40 pixels, respectively.
|
|
184
|
+
* If `expand` is `false`, the column will not contribute to the total ratio.
|
|
185
|
+
*/
|
|
186
|
+
setTableColumnExpand(column: number, expand: boolean, ratio?: number /* = 1 */, shrink?: boolean /* = true */): void { _C(this, 12985, column, expand, ratio, shrink); }
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Sets table column name for assistive apps.
|
|
190
|
+
*/
|
|
191
|
+
setTableColumnName(column: number, name: string): void { _C(this, 12986, column, name); }
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Sets color of a table cell. Separate colors for alternating rows can be specified.
|
|
195
|
+
*/
|
|
196
|
+
setCellRowBackgroundColor(oddRowBg: Color, evenRowBg: Color): void { _C(this, 10826, oddRowBg, evenRowBg); }
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Sets color of a table cell border.
|
|
200
|
+
*/
|
|
201
|
+
setCellBorderColor(color: Color): void { _C(this, 10821, color); }
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Sets minimum and maximum size overrides for a table cell.
|
|
205
|
+
*/
|
|
206
|
+
setCellSizeOverride(minSize: Vector2, maxSize: Vector2): void { _C(this, 10830, minSize, maxSize); }
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Sets inner padding of a table cell.
|
|
210
|
+
*/
|
|
211
|
+
setCellPadding(padding: Rect2): void { _C(this, 10825, padding); }
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Adds a {@link code skip-lint}{@link cell}[/code] tag to the tag stack. Must be inside a {@link code skip-lint}{@link table}[/code] tag. See {@link pushTable} for details. Use {@link setTableColumnExpand} to set column expansion ratio, {@link setCellBorderColor} to set cell border, {@link setCellRowBackgroundColor} to set cell background, {@link setCellSizeOverride} to override cell size, and {@link setCellPadding} to set padding.
|
|
215
|
+
*/
|
|
216
|
+
pushCell(): void { _C(this, 9635); }
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Adds a {@link code skip-lint}{@link fgcolor}[/code] tag to the tag stack.
|
|
220
|
+
* **Note:** The foreground color has padding applied by default, which is controlled using {@link text_highlight_h_padding} and {@link text_highlight_v_padding}. This can lead to overlapping highlights if foreground colors are placed on neighboring lines/columns, so consider setting those theme items to `0` if you want to avoid this.
|
|
221
|
+
*/
|
|
222
|
+
pushFgcolor(fgcolor: Color): void { _C(this, 9641, fgcolor); }
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Adds a {@link code skip-lint}{@link bgcolor}[/code] tag to the tag stack.
|
|
226
|
+
* **Note:** The background color has padding applied by default, which is controlled using {@link text_highlight_h_padding} and {@link text_highlight_v_padding}. This can lead to overlapping highlights if background colors are placed on neighboring lines/columns, so consider setting those theme items to `0` if you want to avoid this.
|
|
227
|
+
*/
|
|
228
|
+
pushBgcolor(bgcolor: Color): void { _C(this, 9631, bgcolor); }
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Adds a custom effect tag to the tag stack. The effect does not need to be in {@link customEffects}. The environment is directly passed to the effect.
|
|
232
|
+
*/
|
|
233
|
+
pushCustomfx(effect: RichTextEffect, env: GodotDictionary): void { _C(this, 9638, effect, env); }
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Adds a context marker to the tag stack. See {@link popContext}.
|
|
237
|
+
*/
|
|
238
|
+
pushContext(): void { _C(this, 9637); }
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Terminates tags opened after the last {@link pushContext} call (including context marker), or all tags if there's no context marker on the stack.
|
|
242
|
+
*/
|
|
243
|
+
popContext(): void { _C(this, 9479); }
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Terminates the current tag. Use after `push_*` methods to close BBCodes manually. Does not need to follow `add_*` methods.
|
|
247
|
+
*/
|
|
248
|
+
pop(): void { _C(this, 9475); }
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Terminates all tags opened by `push_*` methods.
|
|
252
|
+
*/
|
|
253
|
+
popAll(): void { _C(this, 9476); }
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Clears the tag stack, causing the label to display nothing.
|
|
257
|
+
* **Note:** This method does not affect {@link text}, and its contents will show again if the label is redrawn. However, setting {@link text} to an empty {@link String} also clears the stack.
|
|
258
|
+
*/
|
|
259
|
+
clear(): void { _C(this, 2232); }
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Returns the vertical scrollbar.
|
|
263
|
+
* **Warning:** This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their {@link CanvasItem.visible} property.
|
|
264
|
+
*/
|
|
265
|
+
getVScrollBar(): VScrollBar { return _C(this, 7014) as VScrollBar; }
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Scrolls the window's top line to match `line`.
|
|
269
|
+
*/
|
|
270
|
+
scrollToLine(line: number): void { _C(this, 10296, line); }
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Scrolls the window's top line to match first line of the `paragraph`.
|
|
274
|
+
*/
|
|
275
|
+
scrollToParagraph(paragraph: number): void { _C(this, 10297, paragraph); }
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Scrolls to the beginning of the current selection.
|
|
279
|
+
*/
|
|
280
|
+
scrollToSelection(): void { _C(this, 10299); }
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Returns the current selection first character index if a selection is active, `-1` otherwise. Does not include BBCodes.
|
|
284
|
+
*/
|
|
285
|
+
getSelectionFrom(): number { return _C(this, 6332) as number; }
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Returns the current selection last character index if a selection is active, `-1` otherwise. Does not include BBCodes.
|
|
289
|
+
*/
|
|
290
|
+
getSelectionTo(): number { return _C(this, 6340) as number; }
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Returns the current selection vertical line offset if a selection is active, `-1.0` otherwise.
|
|
294
|
+
*/
|
|
295
|
+
getSelectionLineOffset(): number { return _C(this, 6336) as number; }
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Select all the text.
|
|
299
|
+
* If {@link selectionEnabled} is `false`, no selection will occur.
|
|
300
|
+
*/
|
|
301
|
+
selectAll(): void { _C(this, 10354); }
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Returns the current selection text. Does not include BBCodes.
|
|
305
|
+
*/
|
|
306
|
+
getSelectedText(): string { return _C(this, 6329) as string; }
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Clears the current selection.
|
|
310
|
+
*/
|
|
311
|
+
deselect(): void { _C(this, 2755); }
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* The assignment version of {@link appendText}. Clears the tag stack and inserts the new content.
|
|
315
|
+
*/
|
|
316
|
+
parseBbcode(bbcode: string): void { _C(this, 9278, bbcode); }
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Parses `bbcode` and adds tags to the tag stack as needed.
|
|
320
|
+
* **Note:** Using this method, you can't close a tag that was opened in a previous {@link appendText} call. This is done to improve performance, especially when updating large RichTextLabels since rebuilding the whole BBCode every time would be slower. If you absolutely need to close a tag in a future method call, append the {@link text} instead of using {@link appendText}.
|
|
321
|
+
*/
|
|
322
|
+
appendText(bbcode: string): void { _C(this, 1525, bbcode); }
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* If {@link threaded} is enabled, returns `true` if the background thread has finished text processing, otherwise always return `true`.
|
|
326
|
+
*/
|
|
327
|
+
isReady(): boolean { return _C(this, 8228) as boolean; }
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* If {@link threaded} is enabled, returns `true` if the background thread has finished text processing, otherwise always return `true`.
|
|
331
|
+
*/
|
|
332
|
+
isFinished(): boolean { return _C(this, 7950) as boolean; }
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Returns the line number of the character position provided. Line and character numbers are both zero-indexed.
|
|
336
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether document is fully loaded.
|
|
337
|
+
*/
|
|
338
|
+
getCharacterLine(character: number): number { return _C(this, 4144, character) as number; }
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Returns the paragraph number of the character position provided. Paragraph and character numbers are both zero-indexed.
|
|
342
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether document is fully loaded.
|
|
343
|
+
*/
|
|
344
|
+
getCharacterParagraph(character: number): number { return _C(this, 4145, character) as number; }
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Returns the total number of characters from text tags. Does not include BBCodes.
|
|
348
|
+
*/
|
|
349
|
+
getTotalCharacterCount(): number { return _C(this, 6850) as number; }
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Returns the total number of lines in the text. Wrapped text is counted as multiple lines.
|
|
353
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether document is fully loaded.
|
|
354
|
+
*/
|
|
355
|
+
getLineCount(): number { return _C(this, 5355) as number; }
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Returns the indexes of the first and last visible characters for the given `line`, as a {@link Vector2i}.
|
|
359
|
+
* **Note:** If {@link visibleCharactersBehavior} is set to {@link TextServer.VC_CHARS_BEFORE_SHAPING} only visible wrapped lines are counted.
|
|
360
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether document is fully loaded.
|
|
361
|
+
*/
|
|
362
|
+
getLineRange(line: number): Vector2i { return _C(this, 5368, line) as Vector2i; }
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Returns the number of visible lines.
|
|
366
|
+
* **Note:** This method returns a correct value only after the label has been drawn.
|
|
367
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether document is fully loaded.
|
|
368
|
+
*/
|
|
369
|
+
getVisibleLineCount(): number { return _C(this, 7108) as number; }
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Returns the total number of paragraphs (newlines or `p` tags in the tag stack's text tags). Considers wrapped text as one paragraph.
|
|
373
|
+
*/
|
|
374
|
+
getParagraphCount(): number { return _C(this, 5805) as number; }
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Returns the number of visible paragraphs. A paragraph is considered visible if at least one of its lines is visible.
|
|
378
|
+
* **Note:** This method returns a correct value only after the label has been drawn.
|
|
379
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether document is fully loaded.
|
|
380
|
+
*/
|
|
381
|
+
getVisibleParagraphCount(): number { return _C(this, 7110) as number; }
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Returns the height of the content.
|
|
385
|
+
* **Note:** This method always returns the full content size, and is not affected by {@link visibleRatio} and {@link visibleCharacters}. To get the visible content size, use {@link getVisibleContentRect}.
|
|
386
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether document is fully loaded.
|
|
387
|
+
*/
|
|
388
|
+
getContentHeight(): number { return _C(this, 4310) as number; }
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Returns the width of the content.
|
|
392
|
+
* **Note:** This method always returns the full content size, and is not affected by {@link visibleRatio} and {@link visibleCharacters}. To get the visible content size, use {@link getVisibleContentRect}.
|
|
393
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether document is fully loaded.
|
|
394
|
+
*/
|
|
395
|
+
getContentWidth(): number { return _C(this, 4317) as number; }
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Returns the height of the line found at the provided index.
|
|
399
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether the document is fully loaded.
|
|
400
|
+
*/
|
|
401
|
+
getLineHeight(line: number): number { return _C(this, 5362, line) as number; }
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Returns the width of the line found at the provided index.
|
|
405
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether the document is fully loaded.
|
|
406
|
+
*/
|
|
407
|
+
getLineWidth(line: number): number { return _C(this, 5376, line) as number; }
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Returns the bounding rectangle of the visible content.
|
|
411
|
+
* **Note:** This method returns a correct value only after the label has been drawn.
|
|
412
|
+
*
|
|
413
|
+
*
|
|
414
|
+
* ```gdscript
|
|
415
|
+
*
|
|
416
|
+
* extends RichTextLabel
|
|
417
|
+
*
|
|
418
|
+
* @export var background_panel: Panel
|
|
419
|
+
*
|
|
420
|
+
* func _ready():
|
|
421
|
+
* await draw
|
|
422
|
+
* background_panel.position = get_visible_content_rect().position
|
|
423
|
+
* background_panel.size = get_visible_content_rect().size
|
|
424
|
+
*
|
|
425
|
+
* ```
|
|
426
|
+
*/
|
|
427
|
+
getVisibleContentRect(): Rect2i { return _C(this, 7106) as Rect2i; }
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Returns the vertical offset of the line found at the provided index.
|
|
431
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether document is fully loaded.
|
|
432
|
+
*/
|
|
433
|
+
getLineOffset(line: number): number { return _C(this, 5367, line) as number; }
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Returns the vertical offset of the paragraph found at the provided index.
|
|
437
|
+
* **Note:** If {@link threaded} is enabled, this method returns a value for the loaded part of the document. Use {@link isFinished} or {@link finished} to determine whether document is fully loaded.
|
|
438
|
+
*/
|
|
439
|
+
getParagraphOffset(paragraph: number): number { return _C(this, 5806, paragraph) as number; }
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Parses BBCode parameter `expressions` into a dictionary.
|
|
443
|
+
*/
|
|
444
|
+
parseExpressionsForValues(expressions: PackedStringArray): GodotDictionary { return _C(this, 9279, expressions) as GodotDictionary; }
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Installs a custom effect. This can also be done in the Inspector through the {@link customEffects} property. `effect` should be a valid {@link RichTextEffect}.
|
|
448
|
+
* **Example:** With the following script extending from {@link RichTextEffect}:
|
|
449
|
+
*
|
|
450
|
+
* ```text
|
|
451
|
+
*
|
|
452
|
+
* # effect.gd
|
|
453
|
+
* class_name MyCustomEffect
|
|
454
|
+
* extends RichTextEffect
|
|
455
|
+
*
|
|
456
|
+
* var bbcode = "my_custom_effect"
|
|
457
|
+
*
|
|
458
|
+
* # ...
|
|
459
|
+
*
|
|
460
|
+
* ```
|
|
461
|
+
*
|
|
462
|
+
* The above effect can be installed in {@link RichTextLabel} from a script:
|
|
463
|
+
*
|
|
464
|
+
* ```text
|
|
465
|
+
*
|
|
466
|
+
* # rich_text_label.gd
|
|
467
|
+
* extends RichTextLabel
|
|
468
|
+
*
|
|
469
|
+
* func _ready():
|
|
470
|
+
* install_effect(MyCustomEffect.new())
|
|
471
|
+
*
|
|
472
|
+
* # Alternatively, if not using `class_name` in the script that extends RichTextEffect:
|
|
473
|
+
* install_effect(preload("res://effect.gd").new())
|
|
474
|
+
*
|
|
475
|
+
* ```
|
|
476
|
+
*/
|
|
477
|
+
installEffect(effect: Variant): void { _C(this, 7639, effect); }
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Reloads custom effects. Useful when {@link customEffects} is modified manually.
|
|
481
|
+
*/
|
|
482
|
+
reloadEffects(): void { _C(this, 9872); }
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Returns the {@link PopupMenu} of this {@link RichTextLabel}. By default, this menu is displayed when right-clicking on the {@link RichTextLabel}.
|
|
486
|
+
* You can add custom menu items or remove standard ones. Make sure your IDs don't conflict with the standard ones (see {@link MenuItems}). For example:
|
|
487
|
+
*
|
|
488
|
+
*
|
|
489
|
+
* ```gdscript
|
|
490
|
+
*
|
|
491
|
+
* func _ready():
|
|
492
|
+
* var menu = get_menu()
|
|
493
|
+
* # Remove "Select All" item.
|
|
494
|
+
* menu.remove_item(MENU_SELECT_ALL)
|
|
495
|
+
* # Add custom items.
|
|
496
|
+
* menu.add_separator()
|
|
497
|
+
* menu.add_item("Duplicate Text", MENU_MAX + 1)
|
|
498
|
+
* # Connect callback.
|
|
499
|
+
* menu.id_pressed.connect(_on_item_pressed)
|
|
500
|
+
*
|
|
501
|
+
* func _on_item_pressed(id):
|
|
502
|
+
* if id == MENU_MAX + 1:
|
|
503
|
+
* add_text("\n" + get_parsed_text())
|
|
504
|
+
*
|
|
505
|
+
* ```
|
|
506
|
+
*
|
|
507
|
+
*
|
|
508
|
+
*
|
|
509
|
+
* **Warning:** This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their {@link Window.visible} property.
|
|
510
|
+
*/
|
|
511
|
+
getMenu(): PopupMenu { return _C(this, 5505) as PopupMenu; }
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Returns whether the menu is visible. Use this instead of `get_menu().visible` to improve performance (so the creation of the menu is avoided).
|
|
515
|
+
*/
|
|
516
|
+
isMenuVisible(): boolean { return _C(this, 8101) as boolean; }
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Executes a given action as defined in the {@link MenuItems} enum.
|
|
520
|
+
*/
|
|
521
|
+
menuOption(option: number): void { _C(this, 8849, option); }
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* If `true`, the label uses BBCode formatting.
|
|
525
|
+
* **Note:** This only affects the contents of {@link text}, not the tag stack.
|
|
526
|
+
*/
|
|
527
|
+
get bbcodeEnabled(): boolean { return _C(this, 8394) as boolean; }
|
|
528
|
+
set bbcodeEnabled(v: boolean) { _C(this, 13199, v); }
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* The label's text in BBCode format. Is not representative of manual modifications to the internal tag stack. Erases changes made by other methods when edited.
|
|
532
|
+
* **Note:** If {@link bbcodeEnabled} is `true`, it is unadvised to use the `+=` operator with {@link text} (e.g. `text += "some string"`) as it replaces the whole text and can cause slowdowns. It will also erase all BBCode that was added to stack using `push_*` methods. Use {@link appendText} for adding text instead, unless you absolutely need to close a tag that was opened in an earlier method call.
|
|
533
|
+
*/
|
|
534
|
+
get text(): string { return _C(this, 6718) as string; }
|
|
535
|
+
set text(v: string) { _C(this, 13020, v); }
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* If `true`, the label's minimum size will be automatically updated to fit its content, matching the behavior of {@link Label}.
|
|
539
|
+
* **Note:** RichTextLabels with autowrapping and {@link fitContent} enabled must have a custom maximum width configured to work correctly, either through the RichTextLabel's own {@link Control.customMaximumSize} or as a result of a propagated maximum size from a parent Control with {@link Control.propagateMaximumSize} enabled.
|
|
540
|
+
*/
|
|
541
|
+
get fitContent(): boolean { return _C(this, 7952) as boolean; }
|
|
542
|
+
set fitContent(v: boolean) { _C(this, 11397, v); }
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* If `true`, the scrollbar is visible. Setting this to `false` does not block scrolling completely. See {@link scrollToLine}.
|
|
546
|
+
*/
|
|
547
|
+
get scrollActive(): boolean { return _C(this, 8272) as boolean; }
|
|
548
|
+
set scrollActive(v: boolean) { _C(this, 12633, v); }
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* If `true`, the window scrolls down to display new content automatically.
|
|
552
|
+
*/
|
|
553
|
+
get scrollFollowing(): boolean { return _C(this, 8273) as boolean; }
|
|
554
|
+
set scrollFollowing(v: boolean) { _C(this, 12636, v); }
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* If `true`, the window scrolls to display the last visible line when {@link visibleCharacters} or {@link visibleRatio} is changed.
|
|
558
|
+
*/
|
|
559
|
+
get scrollFollowingVisibleCharacters(): boolean { return _C(this, 8274) as boolean; }
|
|
560
|
+
set scrollFollowingVisibleCharacters(v: boolean) { _C(this, 12637, v); }
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* If set to something other than {@link TextServer.AUTOWRAP_OFF}, the text gets wrapped inside the node's bounding rectangle.
|
|
564
|
+
* **Note:** RichTextLabels with autowrapping and {@link fitContent} enabled must have a custom maximum width configured to work correctly, either through the RichTextLabel's own {@link Control.customMaximumSize} or as a result of a propagated maximum size from a parent Control with {@link Control.propagateMaximumSize} enabled.
|
|
565
|
+
*/
|
|
566
|
+
get autowrapMode(): AutowrapMode { return _C(this, 3847) as AutowrapMode; }
|
|
567
|
+
set autowrapMode(v: AutowrapMode) { _C(this, 10596, v); }
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Autowrap space trimming flags. See {@link TextServer.BREAK_TRIM_START_EDGE_SPACES} and {@link TextServer.BREAK_TRIM_END_EDGE_SPACES} for more info.
|
|
571
|
+
*/
|
|
572
|
+
get autowrapTrimFlags(): LineBreakFlag { return _C(this, 3848) as LineBreakFlag; }
|
|
573
|
+
set autowrapTrimFlags(v: LineBreakFlag) { _C(this, 10597, v); }
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* The number of spaces associated with a single tab length. Does not affect `\t` in text tags, only indent tags.
|
|
577
|
+
*/
|
|
578
|
+
get tabSize(): number { return _C(this, 6682) as number; }
|
|
579
|
+
set tabSize(v: number) { _C(this, 12980, v); }
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* If `true`, a right-click displays the context menu.
|
|
583
|
+
*/
|
|
584
|
+
get contextMenuEnabled(): boolean { return _C(this, 7860) as boolean; }
|
|
585
|
+
set contextMenuEnabled(v: boolean) { _C(this, 10959, v); }
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* If `true`, shortcut keys for context menu items are enabled, even if the context menu is disabled.
|
|
589
|
+
*/
|
|
590
|
+
get shortcutKeysEnabled(): boolean { return _C(this, 8305) as boolean; }
|
|
591
|
+
set shortcutKeysEnabled(v: boolean) { _C(this, 12728, v); }
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Controls the text's horizontal alignment. Supports left, center, right, and fill (also known as justify).
|
|
595
|
+
*/
|
|
596
|
+
get horizontalAlignment(): HorizontalAlignment { return _C(this, 5044) as HorizontalAlignment; }
|
|
597
|
+
set horizontalAlignment(v: HorizontalAlignment) { _C(this, 11638, v); }
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Controls the text's vertical alignment. Supports top, center, bottom, and fill.
|
|
601
|
+
*/
|
|
602
|
+
get verticalAlignment(): VerticalAlignment { return _C(this, 7063) as VerticalAlignment; }
|
|
603
|
+
set verticalAlignment(v: VerticalAlignment) { _C(this, 13303, v); }
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Line fill alignment rules.
|
|
607
|
+
*/
|
|
608
|
+
get justificationFlags(): JustificationFlag { return _C(this, 5279) as JustificationFlag; }
|
|
609
|
+
set justificationFlags(v: JustificationFlag) { _C(this, 11853, v); }
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Aligns text to the given tab-stops.
|
|
613
|
+
*/
|
|
614
|
+
get tabStops(): PackedFloat32Array { return _C(this, 6683) as PackedFloat32Array; }
|
|
615
|
+
set tabStops(v: PackedFloat32Array) { _C(this, 12981, v); }
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* The currently installed custom effects. This is an array of {@link RichTextEffect}s.
|
|
619
|
+
* To add a custom effect, it's more convenient to use {@link installEffect}.
|
|
620
|
+
*/
|
|
621
|
+
get customEffects(): GodotArray { return _C(this, 4607) as GodotArray; }
|
|
622
|
+
set customEffects(v: GodotArray) { _C(this, 11224, v); }
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* If `true`, the label underlines meta tags such as {@link code skip-lint}[{text}]({text}). These tags can call a function when clicked if {@link meta_clicked} is connected to a function.
|
|
626
|
+
*/
|
|
627
|
+
get metaUnderlined(): boolean { return _C(this, 8104) as boolean; }
|
|
628
|
+
set metaUnderlined(v: boolean) { _C(this, 12034, v); }
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* If `true`, the label underlines hint tags such as {@link code skip-lint}.
|
|
632
|
+
*/
|
|
633
|
+
get hintUnderlined(): boolean { return _C(this, 7998) as boolean; }
|
|
634
|
+
set hintUnderlined(v: boolean) { _C(this, 11633, v); }
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* If `true`, text processing is done in a background thread.
|
|
638
|
+
*/
|
|
639
|
+
get threaded(): boolean { return _C(this, 8363) as boolean; }
|
|
640
|
+
set threaded(v: boolean) { _C(this, 13058, v); }
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* The delay after which the loading progress bar is displayed, in milliseconds. Set to `-1` to disable progress bar entirely.
|
|
644
|
+
* **Note:** Progress bar is displayed only if {@link threaded} is enabled.
|
|
645
|
+
*/
|
|
646
|
+
get progressBarDelay(): number { return _C(this, 6037) as number; }
|
|
647
|
+
set progressBarDelay(v: number) { _C(this, 12437, v); }
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* If `true`, the label allows text selection.
|
|
651
|
+
*/
|
|
652
|
+
get selectionEnabled(): boolean { return _C(this, 8289) as boolean; }
|
|
653
|
+
set selectionEnabled(v: boolean) { _C(this, 12690, v); }
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* If `true`, the selected text will be deselected when focus is lost.
|
|
657
|
+
*/
|
|
658
|
+
get deselectOnFocusLossEnabled(): boolean { return _C(this, 7879) as boolean; }
|
|
659
|
+
set deselectOnFocusLossEnabled(v: boolean) { _C(this, 11099, v); }
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* If `true`, allow drag and drop of selected text.
|
|
663
|
+
*/
|
|
664
|
+
get dragAndDropSelectionEnabled(): boolean { return _C(this, 7893) as boolean; }
|
|
665
|
+
set dragAndDropSelectionEnabled(v: boolean) { _C(this, 11161, v); }
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* The number of characters to display. If set to `-1`, all characters are displayed. This can be useful when animating the text appearing in a dialog box.
|
|
669
|
+
* **Note:** Setting this property updates {@link visibleRatio} accordingly.
|
|
670
|
+
* **Note:** Characters are counted as Unicode codepoints. A single visible grapheme may contain multiple codepoints (e.g. certain emoji use three codepoints). A single codepoint may contain two UTF-16 characters, which are used in C# strings.
|
|
671
|
+
*/
|
|
672
|
+
get visibleCharacters(): number { return _C(this, 7104) as number; }
|
|
673
|
+
set visibleCharacters(v: number) { _C(this, 13332, v); }
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* The clipping behavior when {@link visibleCharacters} or {@link visibleRatio} is set.
|
|
677
|
+
*/
|
|
678
|
+
get visibleCharactersBehavior(): VisibleCharactersBehavior { return _C(this, 7105) as VisibleCharactersBehavior; }
|
|
679
|
+
set visibleCharactersBehavior(v: VisibleCharactersBehavior) { _C(this, 13333, v); }
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* The fraction of characters to display, relative to the total number of characters (see {@link getTotalCharacterCount}). If set to `1.0`, all characters are displayed. If set to `0.5`, only half of the characters will be displayed. This can be useful when animating the text appearing in a dialog box.
|
|
683
|
+
* **Note:** Setting this property updates {@link visibleCharacters} accordingly.
|
|
684
|
+
*/
|
|
685
|
+
get visibleRatio(): number { return _C(this, 7111) as number; }
|
|
686
|
+
set visibleRatio(v: number) { _C(this, 13335, v); }
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Base text writing direction.
|
|
690
|
+
*/
|
|
691
|
+
get textDirection(): TextDirection { return _C(this, 6720) as TextDirection; }
|
|
692
|
+
set textDirection(v: TextDirection) { _C(this, 13022, v); }
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Language code used for line-breaking and text shaping algorithms. If left empty, the current locale is used instead.
|
|
696
|
+
*/
|
|
697
|
+
get language(): string { return _C(this, 5299) as string; }
|
|
698
|
+
set language(v: string) { _C(this, 11871, v); }
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Set BiDi algorithm override for the structured text.
|
|
702
|
+
*/
|
|
703
|
+
get structuredTextBidiOverride(): StructuredTextParser { return _C(this, 6585) as StructuredTextParser; }
|
|
704
|
+
set structuredTextBidiOverride(v: StructuredTextParser) { _C(this, 12913, v); }
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Set additional options for BiDi override.
|
|
708
|
+
*/
|
|
709
|
+
get structuredTextBidiOverrideOptions(): GodotArray { return _C(this, 6586) as GodotArray; }
|
|
710
|
+
set structuredTextBidiOverrideOptions(v: GodotArray) { _C(this, 12914, v); }
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Triggered when the user clicks on content between meta (URL) tags. If the meta is defined in BBCode, e.g. {@link code skip-lint}[Text](value"})[/code], then the parameter for this signal will always be a {@link String} type. If a particular type or an object is desired, the {@link pushMeta} method must be used to manually insert the data into the tag stack. Alternatively, you can convert the {@link String} input to the desired type based on its contents (such as calling {@link JSON.parse} on it).
|
|
714
|
+
* For example, the following method can be connected to {@link meta_clicked} to open clicked URLs using the user's default web browser:
|
|
715
|
+
*
|
|
716
|
+
*
|
|
717
|
+
* ```gdscript
|
|
718
|
+
*
|
|
719
|
+
* # This assumes RichTextLabel's `meta_clicked` signal was connected to
|
|
720
|
+
* # the function below using the signal connection dialog.
|
|
721
|
+
* func _richtextlabel_on_meta_clicked(meta):
|
|
722
|
+
* # `meta` is of Variant type, so convert it to a String to avoid script errors at run-time.
|
|
723
|
+
* OS.shell_open(str(meta))
|
|
724
|
+
*
|
|
725
|
+
* ```
|
|
726
|
+
*/
|
|
727
|
+
get metaClicked(): Signal<(meta: Variant) => void> { return _G(this, 8893) as Signal<(meta: Variant) => void>; }
|
|
728
|
+
set metaClicked(v: ((meta: Variant) => void) | null) { _G(this, 8893, v); }
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Triggers when the mouse enters a meta tag.
|
|
732
|
+
*/
|
|
733
|
+
get metaHoverStarted(): Signal<(meta: Variant) => void> { return _G(this, 8895) as Signal<(meta: Variant) => void>; }
|
|
734
|
+
set metaHoverStarted(v: ((meta: Variant) => void) | null) { _G(this, 8895, v); }
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Triggers when the mouse exits a meta tag.
|
|
738
|
+
*/
|
|
739
|
+
get metaHoverEnded(): Signal<(meta: Variant) => void> { return _G(this, 8894) as Signal<(meta: Variant) => void>; }
|
|
740
|
+
set metaHoverEnded(v: ((meta: Variant) => void) | null) { _G(this, 8894, v); }
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Triggered when the document is fully loaded.
|
|
744
|
+
* **Note:** This can happen before the text is processed for drawing. Scrolling values may not be valid until the document is drawn for the first time after this signal.
|
|
745
|
+
*/
|
|
746
|
+
get finished(): Signal<() => void> { return _G(this, 3310) as Signal<() => void>; }
|
|
747
|
+
set finished(v: (() => void) | null) { _G(this, 3310, v); }
|
|
748
|
+
|
|
749
|
+
static readonly name = _R(670, RichTextLabel);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
export const ListType = {
|
|
753
|
+
/**
|
|
754
|
+
* Each list item has a number marker.
|
|
755
|
+
*/
|
|
756
|
+
LIST_NUMBERS: 0,
|
|
757
|
+
/**
|
|
758
|
+
* Each list item has a letter marker.
|
|
759
|
+
*/
|
|
760
|
+
LIST_LETTERS: 1,
|
|
761
|
+
/**
|
|
762
|
+
* Each list item has a roman number marker.
|
|
763
|
+
*/
|
|
764
|
+
LIST_ROMAN: 2,
|
|
765
|
+
/**
|
|
766
|
+
* Each list item has a filled circle marker.
|
|
767
|
+
*/
|
|
768
|
+
LIST_DOTS: 3,
|
|
769
|
+
} as const;
|
|
770
|
+
|
|
771
|
+
export type ListType = (typeof ListType)[keyof typeof ListType];
|
|
772
|
+
|
|
773
|
+
export const MenuItems = {
|
|
774
|
+
/**
|
|
775
|
+
* Copies the selected text.
|
|
776
|
+
*/
|
|
777
|
+
MENU_COPY: 0,
|
|
778
|
+
/**
|
|
779
|
+
* Selects the whole {@link RichTextLabel} text.
|
|
780
|
+
*/
|
|
781
|
+
MENU_SELECT_ALL: 1,
|
|
782
|
+
/**
|
|
783
|
+
* Represents the size of the {@link MenuItems} enum.
|
|
784
|
+
*/
|
|
785
|
+
MENU_MAX: 2,
|
|
786
|
+
} as const;
|
|
787
|
+
|
|
788
|
+
export type MenuItems = (typeof MenuItems)[keyof typeof MenuItems];
|
|
789
|
+
|
|
790
|
+
export const MetaUnderline = {
|
|
791
|
+
/**
|
|
792
|
+
* Meta tag does not display an underline, even if {@link metaUnderlined} is `true`.
|
|
793
|
+
*/
|
|
794
|
+
META_UNDERLINE_NEVER: 0,
|
|
795
|
+
/**
|
|
796
|
+
* If {@link metaUnderlined} is `true`, meta tag always display an underline.
|
|
797
|
+
*/
|
|
798
|
+
META_UNDERLINE_ALWAYS: 1,
|
|
799
|
+
/**
|
|
800
|
+
* If {@link metaUnderlined} is `true`, meta tag display an underline when the mouse cursor is over it.
|
|
801
|
+
*/
|
|
802
|
+
META_UNDERLINE_ON_HOVER: 2,
|
|
803
|
+
} as const;
|
|
804
|
+
|
|
805
|
+
export type MetaUnderline = (typeof MetaUnderline)[keyof typeof MetaUnderline];
|
|
806
|
+
|
|
807
|
+
export const ImageUpdateMask = {
|
|
808
|
+
/**
|
|
809
|
+
* If this bit is set, {@link updateImage} changes image texture.
|
|
810
|
+
*/
|
|
811
|
+
UPDATE_TEXTURE: 1,
|
|
812
|
+
/**
|
|
813
|
+
* If this bit is set, {@link updateImage} changes image size.
|
|
814
|
+
*/
|
|
815
|
+
UPDATE_SIZE: 2,
|
|
816
|
+
/**
|
|
817
|
+
* If this bit is set, {@link updateImage} changes image color.
|
|
818
|
+
*/
|
|
819
|
+
UPDATE_COLOR: 4,
|
|
820
|
+
/**
|
|
821
|
+
* If this bit is set, {@link updateImage} changes image inline alignment.
|
|
822
|
+
*/
|
|
823
|
+
UPDATE_ALIGNMENT: 8,
|
|
824
|
+
/**
|
|
825
|
+
* If this bit is set, {@link updateImage} changes image texture region.
|
|
826
|
+
*/
|
|
827
|
+
UPDATE_REGION: 16,
|
|
828
|
+
/**
|
|
829
|
+
* If this bit is set, {@link updateImage} changes image padding.
|
|
830
|
+
*/
|
|
831
|
+
UPDATE_PAD: 32,
|
|
832
|
+
/**
|
|
833
|
+
* If this bit is set, {@link updateImage} changes image tooltip.
|
|
834
|
+
*/
|
|
835
|
+
UPDATE_TOOLTIP: 64,
|
|
836
|
+
/**
|
|
837
|
+
* If this bit is set, {@link updateImage} changes the units used to calculate image size.
|
|
838
|
+
*/
|
|
839
|
+
UPDATE_WIDTH_UNIT: 128,
|
|
840
|
+
} as const;
|
|
841
|
+
|
|
842
|
+
export type ImageUpdateMask = (typeof ImageUpdateMask)[keyof typeof ImageUpdateMask];
|
|
843
|
+
|
|
844
|
+
export const ImageUnit = {
|
|
845
|
+
/**
|
|
846
|
+
* Images drawn with this unit will be in pixels.
|
|
847
|
+
*/
|
|
848
|
+
IMAGE_UNIT_PIXEL: 0,
|
|
849
|
+
/**
|
|
850
|
+
* Images drawn with this unit will be in percentages of the control width.
|
|
851
|
+
*/
|
|
852
|
+
IMAGE_UNIT_PERCENT: 1,
|
|
853
|
+
/**
|
|
854
|
+
* Images drawn with this unit will be in percentages of the surrounding font size.
|
|
855
|
+
*/
|
|
856
|
+
IMAGE_UNIT_EM: 2,
|
|
857
|
+
} as const;
|
|
858
|
+
|
|
859
|
+
export type ImageUnit = (typeof ImageUnit)[keyof typeof ImageUnit];
|
|
860
|
+
|