necra-prototypes/main.tscn
Antonio Dell'Annunziata 2cb41beef2
All checks were successful
/ test (push) Successful in 2s
Add choices to dialogs
2025-03-28 07:34:57 +01:00

353 lines
13 KiB
Text

[gd_scene load_steps=37 format=3 uid="uid://w3ntt1yh1nq7"]
[ext_resource type="Script" uid="uid://lnmooufxbuym" path="res://main.gd" id="1_dp5o4"]
[ext_resource type="PackedScene" uid="uid://3oqyqft8w72m" path="res://selectable.tscn" id="3_g5hfc"]
[ext_resource type="Script" uid="uid://c3dlxuhruho8c" path="res://operation/feedback_canvas_modulate.gd" id="4_0odxb"]
[ext_resource type="PackedScene" uid="uid://cnq1uvadx0rwf" path="res://dropoff_area.tscn" id="4_ycdy4"]
[ext_resource type="Texture2D" uid="uid://bicjfwpoa3pma" path="res://operation/test_table.png" id="5_lswn8"]
[ext_resource type="PackedScene" uid="uid://bgp8l04mw4ddh" path="res://suitcase.tscn" id="12_dg77c"]
[ext_resource type="Texture2D" uid="uid://ccy71gl4qatjy" path="res://operation/pliers.png" id="17_b1qrp"]
[ext_resource type="Script" uid="uid://crkr8emyhv1fo" path="res://operation/pliers.gd" id="18_come4"]
[ext_resource type="PackedScene" uid="uid://c3of67m4ic212" path="res://pickup_area.tscn" id="19_h8e4i"]
[ext_resource type="Texture2D" uid="uid://cg3dg7iqif56d" path="res://operation/test_scalpel.png" id="20_4lmeg"]
[ext_resource type="Script" uid="uid://cqnproj5khm5a" path="res://operation/test_scalpel.gd" id="21_0cp0l"]
[ext_resource type="Shape2D" uid="uid://bo77ihhtxfueg" path="res://operation/scalpel_pickup_area_collision_shape.tres" id="22_d2t1y"]
[ext_resource type="Script" uid="uid://drfykuqe2phdt" path="res://operation/bat_dropoff.gd" id="23_gngh3"]
[sub_resource type="Gradient" id="Gradient_qkope"]
offsets = PackedFloat32Array(0.0372881)
colors = PackedColorArray(0.466181, 0.466181, 0.466181, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_p6qcv"]
gradient = SubResource("Gradient_qkope")
width = 1152
[sub_resource type="Gradient" id="Gradient_wb6aq"]
offsets = PackedFloat32Array(0.0372881)
colors = PackedColorArray(0.281175, 0.300745, 0.258554, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_ij864"]
gradient = SubResource("Gradient_wb6aq")
width = 1152
[sub_resource type="Gradient" id="Gradient_fq5io"]
offsets = PackedFloat32Array(0.272085)
colors = PackedColorArray(0.202521, 0.371426, 0.429081, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_ty4ro"]
gradient = SubResource("Gradient_fq5io")
width = 100
height = 200
fill_from = Vector2(0.5, 0)
fill_to = Vector2(0.5, 1)
[sub_resource type="Gradient" id="Gradient_ncwe7"]
offsets = PackedFloat32Array(0.282686)
colors = PackedColorArray(0.368627, 0, 0, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_ftstk"]
gradient = SubResource("Gradient_ncwe7")
width = 170
height = 170
[sub_resource type="Gradient" id="Gradient_b76e3"]
offsets = PackedFloat32Array(0.240678)
colors = PackedColorArray(0.737193, 0.737193, 0.737193, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_soglf"]
gradient = SubResource("Gradient_b76e3")
width = 1
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1u8w0"]
size = Vector2(286, 635)
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_1a0oe"]
radius = 7.10071
height = 206.493
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_f4g1u"]
radius = 7.10071
height = 193.839
[sub_resource type="CircleShape2D" id="CircleShape2D_efxa6"]
radius = 8.24621
[sub_resource type="CircleShape2D" id="CircleShape2D_8w656"]
radius = 8.24621
[sub_resource type="CircleShape2D" id="CircleShape2D_qmwrh"]
radius = 5.65684
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0odxb"]
size = Vector2(110, 65)
[sub_resource type="Gradient" id="Gradient_vivmo"]
offsets = PackedFloat32Array(0.353357, 0.929329, 1)
colors = PackedColorArray(0, 0, 0, 1, 0.498233, 0.498233, 0.498233, 1, 1, 1, 1, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_2cqfq"]
gradient = SubResource("Gradient_vivmo")
width = 32
height = 128
[sub_resource type="Gradient" id="Gradient_ycdy4"]
offsets = PackedFloat32Array(0.151943)
colors = PackedColorArray(0.19, 0.164287, 0.1368, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_w48qg"]
gradient = SubResource("Gradient_ycdy4")
width = 32
[sub_resource type="Gradient" id="Gradient_efxa6"]
offsets = PackedFloat32Array(0.116608)
colors = PackedColorArray(0.61, 0.527447, 0.4392, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_dg77c"]
gradient = SubResource("Gradient_efxa6")
width = 32
[node name="Main" type="Node2D"]
script = ExtResource("1_dp5o4")
[node name="UI" type="Control" parent="."]
top_level = true
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="TextBox" type="MarginContainer" parent="UI"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -353.0
offset_top = -68.0
offset_right = 353.0
grow_horizontal = 2
grow_vertical = 0
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="VBoxContainer" type="VBoxContainer" parent="UI/TextBox"]
layout_mode = 2
[node name="TextBoxLabel" type="RichTextLabel" parent="UI/TextBox/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
text = "Test"
[node name="HBoxContainer" type="HBoxContainer" parent="UI/TextBox/VBoxContainer"]
layout_mode = 2
alignment = 1
[node name="Choice1" type="Button" parent="UI/TextBox/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
visible = false
layout_mode = 2
text = "Choice 1"
[node name="Choice2" type="Button" parent="UI/TextBox/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
visible = false
layout_mode = 2
text = "Choice 2"
[node name="FeedbackCanvasModulate" type="CanvasModulate" parent="." groups=["effects"]]
unique_name_in_owner = true
script = ExtResource("4_0odxb")
[node name="Room" type="Node2D" parent="."]
[node name="RoomFloor" type="Sprite2D" parent="Room"]
position = Vector2(576, 325.25)
scale = Vector2(1.001, 652)
texture = SubResource("GradientTexture1D_p6qcv")
[node name="RoomWall" type="Sprite2D" parent="Room"]
position = Vector2(578, -71)
scale = Vector2(1.001, 652)
texture = SubResource("GradientTexture1D_ij864")
[node name="Bob" type="Sprite2D" parent="Room"]
position = Vector2(242, 258)
texture = SubResource("GradientTexture2D_ty4ro")
[node name="Selectable" parent="Room/Bob" instance=ExtResource("3_g5hfc")]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Room/Bob/Selectable"]
polygon = PackedVector2Array(-50, 100, -50, -100, 50, -100, 50, 100)
[node name="Label" type="Label" parent="Room/Bob"]
offset_top = 2.0
offset_right = 40.0
offset_bottom = 25.0
text = "Bob"
[node name="RitualPlace" type="Sprite2D" parent="Room"]
position = Vector2(469, 390)
texture = SubResource("GradientTexture2D_ftstk")
[node name="Selectable" parent="Room/RitualPlace" instance=ExtResource("3_g5hfc")]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Room/RitualPlace/Selectable"]
polygon = PackedVector2Array(-85, 85, -85, -85, 85, -85, 85, 85)
[node name="Label" type="Label" parent="Room/RitualPlace"]
offset_left = -41.0
offset_top = 44.0
offset_right = 49.0
offset_bottom = 67.0
text = "Ritual place"
[node name="Shelves" type="Node2D" parent="Room"]
top_level = true
position = Vector2(1004, 324.5)
[node name="ShelvesBackground" type="Sprite2D" parent="Room/Shelves"]
scale = Vector2(300, 655)
texture = SubResource("GradientTexture1D_soglf")
[node name="UtilsDropoff" type="Node2D" parent="Room/Shelves"]
[node name="DropoffArea" parent="Room/Shelves/UtilsDropoff" instance=ExtResource("4_ycdy4")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Room/Shelves/UtilsDropoff/DropoffArea"]
shape = SubResource("RectangleShape2D_1u8w0")
[node name="Pliers" type="Sprite2D" parent="Room/Shelves" groups=["grabber"]]
z_index = 10
position = Vector2(0, -206.5)
scale = Vector2(0.5, 0.5)
texture = ExtResource("17_b1qrp")
offset = Vector2(76, -78)
script = ExtResource("18_come4")
[node name="PickupArea" parent="Room/Shelves/Pliers" instance=ExtResource("19_h8e4i")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Room/Shelves/Pliers/PickupArea"]
position = Vector2(76, -60)
rotation = 1.00484
shape = SubResource("CapsuleShape2D_1a0oe")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Room/Shelves/Pliers/PickupArea"]
position = Vector2(46, -80)
rotation = 0.363771
shape = SubResource("CapsuleShape2D_f4g1u")
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Room/Shelves/Pliers/PickupArea"]
shape = SubResource("CircleShape2D_efxa6")
[node name="GrabArea" type="Area2D" parent="Room/Shelves/Pliers"]
collision_layer = 8
collision_mask = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="Room/Shelves/Pliers/GrabArea"]
shape = SubResource("CircleShape2D_8w656")
debug_color = Color(0.879882, 0.304191, 0.394852, 0.42)
[node name="Scalpel" type="Sprite2D" parent="Room/Shelves" groups=["cutter"]]
z_index = 10
position = Vector2(-72.9391, -140.263)
rotation = -2.00713
scale = Vector2(0.5, 0.5)
texture = ExtResource("20_4lmeg")
offset = Vector2(-8.44019, 66.5461)
script = ExtResource("21_0cp0l")
[node name="PickupArea" parent="Room/Shelves/Scalpel" instance=ExtResource("19_h8e4i")]
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Room/Shelves/Scalpel/PickupArea"]
position = Vector2(-7.59496, 64.7336)
shape = ExtResource("22_d2t1y")
[node name="CutArea" type="Area2D" parent="Room/Shelves/Scalpel"]
collision_layer = 5
collision_mask = 5
[node name="CollisionShape2D" type="CollisionShape2D" parent="Room/Shelves/Scalpel/CutArea"]
position = Vector2(0.481193, 0.0901661)
shape = SubResource("CircleShape2D_qmwrh")
debug_color = Color(0.879882, 0.304191, 0.394852, 0.42)
[node name="CutHurtTimer" type="Timer" parent="Room/Shelves/Scalpel"]
unique_name_in_owner = true
[node name="BatDropoff" type="Node2D" parent="Room/Shelves" groups=["bat_dropoff"]]
unique_name_in_owner = true
script = ExtResource("23_gngh3")
[node name="Sprite2D" type="Sprite2D" parent="Room/Shelves/BatDropoff"]
rotation = 1.5708
scale = Vector2(0.208791, 0.204598)
texture = ExtResource("5_lswn8")
[node name="Area2D" type="Area2D" parent="Room/Shelves/BatDropoff"]
collision_layer = 8
collision_mask = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="Room/Shelves/BatDropoff/Area2D"]
scale = Vector2(0.983051, 1)
shape = SubResource("RectangleShape2D_0odxb")
[node name="RitualBook" type="Node2D" parent="Room/Shelves"]
position = Vector2(-92, 240.5)
[node name="Sprite2D" type="Sprite2D" parent="Room/Shelves/RitualBook"]
texture = SubResource("GradientTexture2D_2cqfq")
[node name="Selectable" parent="Room/Shelves/RitualBook/Sprite2D" instance=ExtResource("3_g5hfc")]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Room/Shelves/RitualBook/Sprite2D/Selectable"]
polygon = PackedVector2Array(-16, -64, -16, 64, 16, 64, 16, -64)
[node name="Label" type="Label" parent="Room/Shelves/RitualBook"]
offset_left = -17.0
offset_top = 40.5
offset_right = 68.0
offset_bottom = 63.5
rotation = -1.5708
text = "Rituals 101"
[node name="Map" type="Node2D" parent="Room/Shelves"]
position = Vector2(43, 200.5)
[node name="Sprite2D2" type="Sprite2D" parent="Room/Shelves/Map"]
position = Vector2(2, 2.5)
skew = 0.115192
texture = SubResource("GradientTexture2D_w48qg")
[node name="Sprite2D" type="Sprite2D" parent="Room/Shelves/Map"]
skew = 0.115192
texture = SubResource("GradientTexture2D_dg77c")
[node name="Selectable" parent="Room/Shelves/Map/Sprite2D" instance=ExtResource("3_g5hfc")]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Room/Shelves/Map/Sprite2D/Selectable"]
polygon = PackedVector2Array(-16, -32, -16, 32, 16, 32, 16, -32)
[node name="Label" type="Label" parent="Room/Shelves/Map"]
offset_left = -13.0
offset_top = 17.5
offset_right = 27.0
offset_bottom = 39.8333
rotation = -1.49051
text = "Map"
[node name="Suitcase" parent="." instance=ExtResource("12_dg77c")]
position = Vector2(177, 487)
[connection signal="clicked" from="Room/Bob/Selectable" to="." method="_on_bob_clicked"]
[connection signal="input_event" from="Room/Shelves/Pliers/GrabArea" to="Room/Shelves/Pliers" method="_on_grab_area_input_event"]
[connection signal="area_entered" from="Room/Shelves/Scalpel/CutArea" to="Room/Shelves/Scalpel" method="_on_cut_area_area_entered"]
[connection signal="area_exited" from="Room/Shelves/Scalpel/CutArea" to="Room/Shelves/Scalpel" method="_on_cut_area_area_exited"]
[connection signal="timeout" from="Room/Shelves/Scalpel/CutHurtTimer" to="Room/Shelves/Scalpel" method="_on_cut_hurt_timer_timeout"]
[connection signal="clicked" from="Room/Shelves/RitualBook/Sprite2D/Selectable" to="." method="_on_ritual_book_clicked"]
[connection signal="clicked" from="Room/Shelves/Map/Sprite2D/Selectable" to="." method="_on_map_selectable_clicked"]