2023-11-16 20:23:17 +02:00
|
|
|
[gd_scene load_steps=8 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-11 19:17:25 +02:00
|
|
|
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_peqek"]
|
|
|
|
albedo_color = Color(0.151534, 0.211909, 0.619523, 1)
|
|
|
|
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_jwpm5"]
|
2023-11-16 20:23:17 +02:00
|
|
|
resource_local_to_scene = true
|
2023-11-11 19:17:25 +02:00
|
|
|
material = SubResource("StandardMaterial3D_peqek")
|
|
|
|
size = Vector3(0.05, 0.02, 0.05)
|
|
|
|
|
|
|
|
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_o4j7g"]
|
|
|
|
points = PackedVector3Array(-0.025, -0.01, -0.025, -0.025, 0.01, -0.025, 0.025, -0.01, -0.025, -0.025, -0.01, 0.025, -0.025, 0.01, 0.025, 0.025, 0.01, -0.025, 0.025, -0.01, 0.025, 0.025, 0.01, 0.025)
|
|
|
|
|
2023-11-18 15:27:42 +02:00
|
|
|
[sub_resource type="Animation" id="Animation_gvfrg"]
|
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "bezier"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:position:y")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"handle_modes": PackedInt32Array(0),
|
|
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
|
|
|
"times": PackedFloat32Array(0)
|
|
|
|
}
|
|
|
|
tracks/1/type = "bezier"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath("MeshInstance3D:position:y")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"handle_modes": PackedInt32Array(0),
|
|
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
|
|
|
"times": PackedFloat32Array(0)
|
|
|
|
}
|
|
|
|
|
2023-11-11 19:17:25 +02:00
|
|
|
[sub_resource type="Animation" id="Animation_iu2ed"]
|
|
|
|
resource_name = "down"
|
2023-11-16 20:23:17 +02:00
|
|
|
length = 0.2
|
2023-11-11 19:17:25 +02:00
|
|
|
tracks/0/type = "bezier"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:position:y")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"handle_modes": PackedInt32Array(0, 0),
|
2023-11-16 20:23:17 +02:00
|
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, -0.01, -0.25, 0, 0.25, 0),
|
|
|
|
"times": PackedFloat32Array(0, 0.2)
|
|
|
|
}
|
|
|
|
tracks/1/type = "bezier"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath("MeshInstance3D:mesh:size:y")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"handle_modes": PackedInt32Array(0, 0),
|
|
|
|
"points": PackedFloat32Array(0.02, -0.25, 0, 0.25, 0, 0.01, -0.25, 0, 0.25, 0),
|
|
|
|
"times": PackedFloat32Array(0, 0.2)
|
|
|
|
}
|
|
|
|
tracks/2/type = "bezier"
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/path = NodePath("MeshInstance3D:position:y")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"handle_modes": PackedInt32Array(0, 0),
|
|
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, 0.005, -0.25, 0, 0.25, 0),
|
|
|
|
"times": PackedFloat32Array(0, 0.2)
|
2023-11-11 19:17:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_sbgno"]
|
|
|
|
_data = {
|
2023-11-16 20:23:17 +02:00
|
|
|
"RESET": SubResource("Animation_gvfrg"),
|
|
|
|
"down": SubResource("Animation_iu2ed")
|
2023-11-11 19:17:25 +02:00
|
|
|
}
|
|
|
|
|
2023-11-22 18:35:54 +02:00
|
|
|
[node name="Button" type="StaticBody3D" groups=["ui_focus"]]
|
2023-11-16 20:23:17 +02:00
|
|
|
script = ExtResource("1_74x7g")
|
2023-11-11 19:17:25 +02:00
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
|
|
mesh = SubResource("BoxMesh_jwpm5")
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
|
|
shape = SubResource("ConvexPolygonShape3D_o4j7g")
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_sbgno")
|
|
|
|
}
|