2024-05-09 13:40:41 +03:00
|
|
|
[gd_scene load_steps=9 format=3 uid="uid://bsjqdvkt0u87c"]
|
2023-11-11 19:17:25 +02:00
|
|
|
|
2023-11-16 20:23:17 +02:00
|
|
|
[ext_resource type="Script" path="res://content/ui/components/button/button.gd" id="1_74x7g"]
|
2024-04-26 15:42:30 +03:00
|
|
|
[ext_resource type="Shader" path="res://content/ui/components/panel/glass.gdshader" id="2_db5by"]
|
2024-04-26 14:30:11 +03:00
|
|
|
[ext_resource type="Script" path="res://content/ui/components/panel/panel.gd" id="3_skm86"]
|
2024-05-09 13:40:41 +03:00
|
|
|
[ext_resource type="AudioStream" uid="uid://c1yu80uj3fsn7" path="res://assets/sound/click.wav" id="4_51sb0"]
|
2024-04-23 15:26:20 +03:00
|
|
|
|
2024-05-27 18:22:20 +03:00
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_n8raw"]
|
2024-04-26 15:42:30 +03:00
|
|
|
resource_local_to_scene = true
|
|
|
|
render_priority = 10
|
|
|
|
shader = ExtResource("2_db5by")
|
|
|
|
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(1, 1)
|
|
|
|
shader_parameter/border_size = 0.01
|
|
|
|
shader_parameter/border_fade_in = 0.05
|
|
|
|
shader_parameter/border_fade_out = 0.0
|
|
|
|
shader_parameter/corner_radius = 0.2
|
|
|
|
shader_parameter/roughness = 0.3
|
|
|
|
shader_parameter/grain_amount = 0.02
|
|
|
|
|
2024-05-27 18:22:20 +03:00
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_g3nfn"]
|
2024-04-25 01:22:27 +03:00
|
|
|
size = Vector2(0.04, 0.04)
|
2023-11-11 19:17:25 +02:00
|
|
|
|
2024-03-21 14:29:10 +02:00
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_xwopm"]
|
2024-04-24 02:06:15 +03:00
|
|
|
resource_local_to_scene = true
|
2024-04-25 01:22:27 +03:00
|
|
|
size = Vector3(0.04, 0.04, 0.01)
|
2023-11-11 19:17:25 +02:00
|
|
|
|
2023-11-28 00:46:05 +02:00
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_bqjii"]
|
2024-04-24 02:06:15 +03:00
|
|
|
resource_local_to_scene = true
|
2024-05-24 22:08:27 +03:00
|
|
|
size = Vector3(0.04, 0.04, 0.005)
|
2023-11-28 00:46:05 +02:00
|
|
|
|
|
|
|
[node name="Button" type="Node3D" groups=["ui_focus"]]
|
2023-11-16 20:23:17 +02:00
|
|
|
script = ExtResource("1_74x7g")
|
2023-11-26 01:02:03 +02:00
|
|
|
label = "Example Text"
|
2024-04-25 01:22:27 +03:00
|
|
|
size = Vector3(0.04, 0.04, 0.01)
|
2023-11-11 19:17:25 +02:00
|
|
|
|
2023-11-28 15:20:38 +02:00
|
|
|
[node name="Body" type="StaticBody3D" parent="." groups=["ui_focus_skip"]]
|
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-24 22:08:27 +03:00
|
|
|
collision_layer = 6
|
2023-11-28 16:14:21 +02:00
|
|
|
collision_mask = 0
|
2023-11-28 00:46:05 +02:00
|
|
|
|
2024-04-26 14:30:11 +03:00
|
|
|
[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 18:22:20 +03:00
|
|
|
material_override = SubResource("ShaderMaterial_n8raw")
|
|
|
|
mesh = SubResource("QuadMesh_g3nfn")
|
2023-11-28 00:46:05 +02:00
|
|
|
skeleton = NodePath("../..")
|
2024-04-26 14:30:11 +03:00
|
|
|
script = ExtResource("3_skm86")
|
|
|
|
size = Vector2(0.04, 0.04)
|
2023-11-11 19:17:25 +02:00
|
|
|
|
2023-11-28 00:46:05 +02:00
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Body"]
|
2024-03-21 14:29:10 +02:00
|
|
|
shape = SubResource("BoxShape3D_xwopm")
|
2023-11-11 19:17:25 +02:00
|
|
|
|
2023-11-28 00:46:05 +02:00
|
|
|
[node name="Label" type="Label3D" parent="Body"]
|
2024-04-23 23:11:18 +03:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.006)
|
2023-11-26 01:02:03 +02:00
|
|
|
pixel_size = 0.001
|
2024-04-23 23:11:18 +03:00
|
|
|
double_sided = false
|
2024-04-25 01:22:27 +03:00
|
|
|
render_priority = 30
|
2023-11-26 01:02:03 +02:00
|
|
|
text = "Example Text"
|
|
|
|
font_size = 10
|
|
|
|
outline_size = 0
|
|
|
|
autowrap_mode = 3
|
2024-04-25 14:19:12 +03:00
|
|
|
width = 40.0
|
2023-11-28 00:46:05 +02:00
|
|
|
|
2024-04-25 20:09:52 +03:00
|
|
|
[node name="FingerArea" type="Area3D" parent="." groups=["ui_focus_skip"]]
|
2024-05-24 22:08:27 +03:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.0075)
|
2023-11-28 16:14:21 +02:00
|
|
|
collision_layer = 4
|
|
|
|
collision_mask = 0
|
2023-11-28 00:46:05 +02:00
|
|
|
monitoring = false
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="FingerArea"]
|
|
|
|
shape = SubResource("BoxShape3D_bqjii")
|
2024-03-07 15:21:31 +02:00
|
|
|
|
2024-05-09 13:40:41 +03:00
|
|
|
[node name="ClickSound" type="AudioStreamPlayer" parent="."]
|
|
|
|
stream = ExtResource("4_51sb0")
|
|
|
|
volume_db = -18.0
|