345 lines
11 KiB
Text
345 lines
11 KiB
Text
[gd_scene load_steps=21 format=3 uid="uid://o3ri154wpbrx"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://btcmnw6q6g0h0" path="res://objects/pinned_photo.tscn" id="1_7cefc"]
|
|
[ext_resource type="PackedScene" uid="uid://kk4ecpjc4puc" path="res://scenes/results_ui.tscn" id="1_thvsl"]
|
|
[ext_resource type="Texture2D" uid="uid://c1jidyrk1ogs5" path="res://assets/photo-images/Background_PCplayer.png" id="2_c1nar"]
|
|
[ext_resource type="PackedScene" uid="uid://qmb60kjx6yoe" path="res://objects/victim_file.tscn" id="2_vo7lu"]
|
|
[ext_resource type="Texture2D" uid="uid://c6inptmy6kxc1" path="res://assets/photo-images/Pin_Board.png" id="3_ffegw"]
|
|
[ext_resource type="PackedScene" uid="uid://drcl138k0gym0" path="res://objects/witness_report.tscn" id="3_wjago"]
|
|
[ext_resource type="PackedScene" uid="uid://cjyr1b0fxfofx" path="res://objects/case_file.tscn" id="4_cnvne"]
|
|
[ext_resource type="Texture2D" uid="uid://ccx5ly7y2tiuc" path="res://assets/photo-images/Envelope_Back.png" id="4_h7pmq"]
|
|
[ext_resource type="Texture2D" uid="uid://ulj00tq5b0kx" path="res://assets/photo-images/Untitled_Artwork.png" id="4_r41gl"]
|
|
[ext_resource type="Texture2D" uid="uid://dyagjhgq52sht" path="res://assets/photo-images/Envelope_Front.png" id="5_r41gl"]
|
|
[ext_resource type="Texture2D" uid="uid://be1xto717rt6n" path="res://assets/photo-images/Murder_Suspect_File.png" id="6_xic1t"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_thvsl"]
|
|
script/source = "extends Node2D
|
|
|
|
@export var conclusion_screen : PackedScene = null
|
|
|
|
func notify_conclusion_sent(method : int, motive : int, murderer : int) -> void:
|
|
var instance := conclusion_screen.instantiate()
|
|
instance.set_conclusion(method, motive, murderer)
|
|
get_parent().add_child(instance)
|
|
self.queue_free()
|
|
"
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_usqe2"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_87mh6"]
|
|
size = Vector2(965, 601)
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_cnvne"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_cnvne"]
|
|
radius = 7.280088
|
|
|
|
[sub_resource type="GDScript" id="GDScript_cnvne"]
|
|
script/source = "extends Button
|
|
|
|
func _ready() -> void:
|
|
update_can_send()
|
|
|
|
func _pressed() -> void:
|
|
if ServerNode.get_singleton():
|
|
ServerNode.get_singleton().send_conclusion(%WeaponSlot.get_current_clue(), %MotiveSlot.get_current_clue(), %MurdererSlot.get_current_clue())
|
|
else:
|
|
print(\"Conclusion: \", %WeaponSlot.get_current_clue(), \", \", %MotiveSlot.get_current_clue(), \", \", %MurdererSlot.get_current_clue())
|
|
owner.notify_conclusion_sent(%WeaponSlot.get_current_clue(), %MotiveSlot.get_current_clue(), %MurdererSlot.get_current_clue())
|
|
func update_can_send():
|
|
self.disabled = not (%WeaponSlot.is_filled() and %MotiveSlot.is_filled() and %MurdererSlot.is_filled())
|
|
|
|
func _on_any_slot_selection_changed(_new_value: int) -> void:
|
|
update_can_send()
|
|
"
|
|
|
|
[sub_resource type="TextMesh" id="TextMesh_cnvne"]
|
|
flip_faces = true
|
|
text = "Method, Motive, Murderer"
|
|
depth = 0.0
|
|
|
|
[sub_resource type="Gradient" id="Gradient_thvsl"]
|
|
offsets = PackedFloat32Array(0)
|
|
colors = PackedColorArray(0, 0, 0, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_c1nar"]
|
|
gradient = SubResource("Gradient_thvsl")
|
|
|
|
[node name="Workspace" type="Node2D"]
|
|
script = SubResource("GDScript_thvsl")
|
|
conclusion_screen = ExtResource("1_thvsl")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
anchor_mode = 0
|
|
|
|
[node name="Pinboard" type="Pinboard" parent="."]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
position = Vector2(109, 19)
|
|
script = null
|
|
|
|
[node name="MeshInstance2D" type="MeshInstance2D" parent="Pinboard"]
|
|
position = Vector2(794.49994, 417)
|
|
rotation = 3.1415927
|
|
scale = Vector2(1535.0001, 818)
|
|
mesh = SubResource("QuadMesh_usqe2")
|
|
texture = ExtResource("2_c1nar")
|
|
|
|
[node name="PinBoard" type="Sprite2D" parent="Pinboard"]
|
|
position = Vector2(652, 434.50003)
|
|
scale = Vector2(0.8171887, 0.8931035)
|
|
texture = ExtResource("3_ffegw")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Pinboard"]
|
|
position = Vector2(636.5, 431.5)
|
|
shape = SubResource("RectangleShape2D_87mh6")
|
|
|
|
[node name="UntitledArtwork" type="Sprite2D" parent="Pinboard"]
|
|
position = Vector2(1391, 172)
|
|
texture = ExtResource("4_r41gl")
|
|
|
|
[node name="EnvelopeBack" type="Sprite2D" parent="Pinboard"]
|
|
position = Vector2(1533, 852)
|
|
texture = ExtResource("4_h7pmq")
|
|
|
|
[node name="EnvelopeFront" type="Sprite2D" parent="Pinboard"]
|
|
position = Vector2(1534, 855)
|
|
texture = ExtResource("5_r41gl")
|
|
|
|
[node name="Handin" type="Node2D" parent="."]
|
|
position = Vector2(1899.9999, -15)
|
|
rotation = -0.042017065
|
|
|
|
[node name="MeshInstance2D" type="MeshInstance2D" parent="Handin"]
|
|
position = Vector2(-276.4963, 370.27814)
|
|
scale = Vector2(553.986, -740.514)
|
|
mesh = SubResource("QuadMesh_cnvne")
|
|
texture = ExtResource("6_xic1t")
|
|
|
|
[node name="TextEdit" type="TextEdit" parent="Handin"]
|
|
offset_left = -508.21082
|
|
offset_top = 553.0962
|
|
offset_right = -24.305176
|
|
offset_bottom = 714.85803
|
|
backspace_deletes_composite_character_enabled = true
|
|
wrap_mode = 1
|
|
|
|
[node name="WeaponSlot" type="ConclusionField" parent="Handin"]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = true
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
position = Vector2(-448.5945, 290.4132)
|
|
script = null
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Handin/WeaponSlot"]
|
|
position = Vector2(0, 43.237)
|
|
shape = SubResource("CircleShape2D_cnvne")
|
|
|
|
[node name="MotiveSlot" type="ConclusionField" parent="Handin"]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = true
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
position = Vector2(-268.54337, 292.97845)
|
|
script = null
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Handin/MotiveSlot"]
|
|
position = Vector2(0, 43.237)
|
|
shape = SubResource("CircleShape2D_cnvne")
|
|
|
|
[node name="MurdererSlot" type="ConclusionField" parent="Handin"]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = true
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
position = Vector2(-99.188446, 288.08786)
|
|
script = null
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Handin/MurdererSlot"]
|
|
position = Vector2(0, 43.237)
|
|
shape = SubResource("CircleShape2D_cnvne")
|
|
|
|
[node name="SubmitButton" type="Button" parent="Handin"]
|
|
unique_name_in_owner = true
|
|
offset_left = -307.37988
|
|
offset_top = 502.53214
|
|
offset_right = -230.37988
|
|
offset_bottom = 533.5321
|
|
text = "Submit"
|
|
script = SubResource("GDScript_cnvne")
|
|
|
|
[node name="MeshInstance2D2" type="MeshInstance2D" parent="Handin"]
|
|
position = Vector2(-273.59598, 222.70421)
|
|
rotation = 3.1415927
|
|
scale = Vector2(-236.09602, 249.81453)
|
|
mesh = SubResource("TextMesh_cnvne")
|
|
texture = SubResource("GradientTexture1D_c1nar")
|
|
|
|
[node name="PhotosParent" type="Node2D" parent="."]
|
|
|
|
[node name="PinnedPhoto" parent="PhotosParent" instance=ExtResource("1_7cefc")]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
script = null
|
|
|
|
[node name="PinnedPhoto2" parent="PhotosParent" instance=ExtResource("1_7cefc")]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
script = null
|
|
|
|
[node name="PinnedPhoto3" parent="PhotosParent" instance=ExtResource("1_7cefc")]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
script = null
|
|
|
|
[node name="PinnedPhoto4" parent="PhotosParent" instance=ExtResource("1_7cefc")]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
script = null
|
|
|
|
[node name="PinnedPhoto5" parent="PhotosParent" instance=ExtResource("1_7cefc")]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
script = null
|
|
|
|
[node name="PinnedPhoto6" parent="PhotosParent" instance=ExtResource("1_7cefc")]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
script = null
|
|
|
|
[node name="PinnedPhoto7" parent="PhotosParent" instance=ExtResource("1_7cefc")]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
script = null
|
|
|
|
[node name="PinnedPhoto8" parent="PhotosParent" instance=ExtResource("1_7cefc")]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
script = null
|
|
|
|
[node name="PinnedPhoto9" parent="PhotosParent" instance=ExtResource("1_7cefc")]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
script = null
|
|
|
|
[node name="PinnedPhoto10" parent="PhotosParent" instance=ExtResource("1_7cefc")]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
script = null
|
|
|
|
[node name="PhotoInbox" type="PhotoInbox" parent="PhotosParent"]
|
|
_import_path = NodePath("")
|
|
unique_name_in_owner = false
|
|
process_mode = 0
|
|
process_priority = 0
|
|
process_physics_priority = 0
|
|
process_thread_group = 0
|
|
physics_interpolation_mode = 0
|
|
auto_translate_mode = 0
|
|
editor_description = ""
|
|
position = Vector2(1717, 889)
|
|
photo_scene = ExtResource("1_7cefc")
|
|
script = null
|
|
|
|
[node name="VictimFile" parent="." instance=ExtResource("2_vo7lu")]
|
|
|
|
[node name="WitnessReport" parent="." instance=ExtResource("3_wjago")]
|
|
|
|
[node name="CaseFile" parent="." instance=ExtResource("4_cnvne")]
|
|
|
|
[node name="FilePositionTarget" type="Node2D" parent="."]
|
|
position = Vector2(678.00006, 63.999996)
|
|
rotation = -0.0034519732
|