immersive-home/app/content/ui/components/input/input.tscn

133 lines
4.0 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=13 format=3 uid="uid://blrhy2uccrdn4"]
[ext_resource type="Script" path="res://content/ui/components/input/input.gd" id="1_uml3t"]
[ext_resource type="Script" path="res://content/ui/components/panel/panel.gd" id="3_3bvrj"]
[ext_resource type="Shader" path="res://content/ui/components/panel/glass.gdshader" id="3_nl02b"]
2024-05-26 17:43:14 +03:00
[ext_resource type="FontFile" uid="uid://drsixxc4tmvjf" path="res://assets/fonts/Montserrat-Medium.ttf" id="4_yukbj"]
2024-05-27 12:29:55 +03:00
[sub_resource type="ShaderMaterial" id="ShaderMaterial_4vor6"]
resource_local_to_scene = true
render_priority = 10
2024-04-23 23:11:18 +03:00
shader = ExtResource("3_nl02b")
shader_parameter/color = Color(1, 1, 1, 0.3)
shader_parameter/border_color = Color(1, 1, 1, 1)
shader_parameter/edge_color = Color(0, 0, 0, 1)
shader_parameter/size = Vector2(3.75, 0.75)
shader_parameter/border_size = 0.01
shader_parameter/border_fade_in = 0.05
2024-04-23 23:11:18 +03:00
shader_parameter/border_fade_out = 0.0
shader_parameter/corner_radius = 0.2
2024-04-23 23:11:18 +03:00
shader_parameter/roughness = 0.3
shader_parameter/grain_amount = 0.02
2024-05-27 12:29:55 +03:00
[sub_resource type="QuadMesh" id="QuadMesh_dndsq"]
2024-04-23 23:11:18 +03:00
size = Vector2(0.15, 0.03)
[sub_resource type="BoxShape3D" id="BoxShape3D_x4yp8"]
2023-11-23 19:26:09 +02:00
resource_local_to_scene = true
2024-04-23 23:11:18 +03:00
size = Vector3(0.15, 0.03, 0.01)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_x1ra7"]
shading_mode = 0
[sub_resource type="BoxMesh" id="BoxMesh_2736g"]
size = Vector3(0.001, 0.02, 0.001)
[sub_resource type="Animation" id="Animation_65tpe"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Label/Caret:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [false]
}
[sub_resource type="Animation" id="Animation_8ny1h"]
resource_name = "blink"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Label/Caret:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5, 1),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [true, false, true]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1sy4t"]
_data = {
"RESET": SubResource("Animation_65tpe"),
"blink": SubResource("Animation_8ny1h")
}
2024-04-25 12:45:14 +03:00
[node name="Input" type="Node3D" groups=["ui_focus"]]
2024-04-23 23:11:18 +03:00
script = ExtResource("1_uml3t")
placeholder = "Placeholder"
2024-04-23 23:11:18 +03:00
text = "Example Text"
size = Vector3(0.15, 0.03, 0.01)
2024-04-25 12:45:14 +03:00
[node name="Body" type="StaticBody3D" parent="."]
2024-04-23 23:11:18 +03:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.005)
2024-03-21 17:19:09 +02:00
collision_layer = 6
2024-04-25 12:45:14 +03:00
collision_mask = 6
[node name="Panel3D" type="MeshInstance3D" parent="Body"]
2024-04-23 23:11:18 +03:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.005)
2024-05-27 12:29:55 +03:00
material_override = SubResource("ShaderMaterial_4vor6")
mesh = SubResource("QuadMesh_dndsq")
script = ExtResource("3_3bvrj")
size = Vector2(0.15, 0.03)
2024-04-23 23:11:18 +03:00
[node name="Collision" type="CollisionShape3D" parent="Body"]
shape = SubResource("BoxShape3D_x4yp8")
2024-04-23 23:11:18 +03:00
[node name="Label" type="Label3D" parent="Body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.073, 0, 0.005)
pixel_size = 0.001
2024-04-23 23:11:18 +03:00
double_sided = false
render_priority = 30
outline_render_priority = 29
2024-04-23 23:11:18 +03:00
text = "Example Text"
2024-05-26 17:43:14 +03:00
font = ExtResource("4_yukbj")
font_size = 18
outline_size = 0
horizontal_alignment = 0
2024-04-23 23:11:18 +03:00
[node name="Caret" type="MeshInstance3D" parent="Body/Label"]
visible = false
2024-04-23 23:11:18 +03:00
material_override = SubResource("StandardMaterial3D_x1ra7")
mesh = SubResource("BoxMesh_2736g")
skeleton = NodePath("../..")
[node name="Placeholder" type="Label3D" parent="Body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.073, 0, 0.005)
visible = false
pixel_size = 0.001
double_sided = false
render_priority = 30
outline_render_priority = 29
modulate = Color(0.470076, 0.470076, 0.470076, 1)
text = "Placeholder"
2024-05-26 17:43:14 +03:00
font = ExtResource("4_yukbj")
font_size = 18
outline_size = 0
horizontal_alignment = 0
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
2024-04-23 23:11:18 +03:00
root_node = NodePath("../Body")
libraries = {
"": SubResource("AnimationLibrary_1sy4t")
}
2024-05-09 13:40:41 +03:00
[node name="SnapSound" type="AudioStreamPlayer" parent="."]