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

60 lines
2.1 KiB
Plaintext
Raw Normal View History

2024-03-21 17:19:09 +02:00
[gd_scene load_steps=7 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"]
2023-11-26 22:11:05 +02:00
[ext_resource type="ArrayMesh" uid="uid://iv4lk77axlk4" path="res://assets/immersive_home/button.obj" id="2_cve3l"]
2023-12-10 02:47:21 +02:00
[ext_resource type="Material" uid="uid://bujy3egn1oqac" path="res://assets/materials/pri-500.material" id="2_wx7av"]
2023-11-11 19:17:25 +02:00
2024-03-21 14:29:10 +02:00
[sub_resource type="BoxShape3D" id="BoxShape3D_xwopm"]
size = Vector3(0.05, 0.02, 0.05)
2023-11-11 19:17:25 +02:00
2023-11-28 00:46:05 +02:00
[sub_resource type="BoxShape3D" id="BoxShape3D_bqjii"]
2024-03-07 15:21:31 +02:00
size = Vector3(0.0501598, 0.0390937, 0.0501598)
2024-03-21 17:19:09 +02:00
[sub_resource type="BoxShape3D" id="BoxShape3D_vkbuh"]
size = Vector3(0.05, 0.03, 0.05)
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")
label = "Example Text"
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"]]
2023-11-28 00:46:05 +02:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.01, 0)
2023-11-28 16:14:21 +02:00
collision_layer = 2
collision_mask = 0
2023-11-28 00:46:05 +02:00
[node name="MeshInstance3D" type="MeshInstance3D" parent="Body"]
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.005, 0)
2023-12-10 02:47:21 +02:00
material_override = ExtResource("2_wx7av")
2023-11-26 22:11:05 +02:00
mesh = ExtResource("2_cve3l")
2023-11-28 00:46:05 +02:00
skeleton = NodePath("../..")
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"]
2023-12-10 02:47:21 +02:00
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.0107199, 0)
pixel_size = 0.001
text = "Example Text"
font_size = 10
outline_size = 0
autowrap_mode = 3
width = 50.0
2023-11-28 00:46:05 +02:00
[node name="FingerArea" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0101447, 0)
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"]
2024-03-07 15:21:31 +02:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.00975001, 0)
2023-11-28 00:46:05 +02:00
shape = SubResource("BoxShape3D_bqjii")
2024-03-07 15:21:31 +02:00
2024-03-21 17:19:09 +02:00
[node name="TouchBody" type="StaticBody3D" parent="."]
collision_layer = 4
collision_mask = 0
2024-03-07 15:21:31 +02:00
2024-03-21 17:19:09 +02:00
[node name="CollisionShape3D" type="CollisionShape3D" parent="TouchBody"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.005, 0)
shape = SubResource("BoxShape3D_vkbuh")