YouDunIt/flatscreen-project/scenes/workspace.tscn

214 lines
7.8 KiB
Text

[gd_scene load_steps=19 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(764, 450)
[sub_resource type="QuadMesh" id="QuadMesh_cnvne"]
[sub_resource type="CircleShape2D" id="CircleShape2D_cnvne"]
radius = 7.280088
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_h7pmq"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 4.0
content_margin_bottom = 4.0
bg_color = Color(0.3254902, 0.34901962, 0.75686276, 1)
skew = Vector2(0.105, 0)
border_width_left = 5
border_width_top = 5
border_width_right = 5
border_width_bottom = 5
border_color = Color(0.011764706, 0.011764706, 0.015686275, 1)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5
[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()
"
[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="."]
position = Vector2(109, 19)
[node name="MeshInstance2D" type="MeshInstance2D" parent="Pinboard"]
position = Vector2(859.21375, 523.26025)
rotation = 3.1415927
scale = Vector2(1950.2444, 1090.4237)
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(661, 429)
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(1612.9009, 898.8248)
scale = Vector2(0.7405022, 0.7405022)
texture = ExtResource("4_h7pmq")
[node name="EnvelopeFront" type="Sprite2D" parent="Pinboard"]
position = Vector2(1613.9009, 901.8248)
scale = Vector2(0.7405022, 0.7405022)
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="WeaponSlot" type="ConclusionField" parent="Handin"]
unique_name_in_owner = true
position = Vector2(-141.25034, 550.55273)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Handin/WeaponSlot"]
position = Vector2(0, 43.237)
shape = SubResource("CircleShape2D_cnvne")
[node name="MotiveSlot" type="ConclusionField" parent="Handin"]
unique_name_in_owner = true
position = Vector2(-135.66975, 322.58594)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Handin/MotiveSlot"]
position = Vector2(0, 43.237)
shape = SubResource("CircleShape2D_cnvne")
[node name="MurdererSlot" type="ConclusionField" parent="Handin"]
unique_name_in_owner = true
position = Vector2(-399.06177, 88.315475)
[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 = -500.62653
offset_top = 718.6055
offset_right = -389.62653
offset_bottom = 768.6055
theme_override_colors/font_color = Color(0.84705883, 0.10980392, 0.56078434, 1)
theme_override_font_sizes/font_size = 30
theme_override_styles/normal = SubResource("StyleBoxFlat_h7pmq")
text = "Submit"
script = SubResource("GDScript_cnvne")
[node name="PhotosParent" type="Node2D" parent="."]
[node name="PhotoInbox" type="PhotoInbox" parent="PhotosParent"]
position = Vector2(1727, 830)
photo_scene = ExtResource("1_7cefc")
[node name="PinnedPhoto" parent="PhotosParent" instance=ExtResource("1_7cefc")]
position = Vector2(441, 822)
clue = 12
[node name="PinnedPhoto2" parent="PhotosParent" instance=ExtResource("1_7cefc")]
position = Vector2(647, 825)
clue = 13
[node name="PinnedPhoto3" parent="PhotosParent" instance=ExtResource("1_7cefc")]
position = Vector2(833, 823)
clue = 14
[node name="PinnedPhoto4" parent="PhotosParent" instance=ExtResource("1_7cefc")]
position = Vector2(1019, 825)
clue = 15
[node name="PinnedPhoto5" parent="PhotosParent" instance=ExtResource("1_7cefc")]
position = Vector2(534, 911)
clue = 16
[node name="PinnedPhoto6" parent="PhotosParent" instance=ExtResource("1_7cefc")]
position = Vector2(709, 912)
clue = 17
[node name="PinnedPhoto7" parent="PhotosParent" instance=ExtResource("1_7cefc")]
position = Vector2(881, 910)
clue = 18
[node name="PinnedPhoto8" parent="PhotosParent" instance=ExtResource("1_7cefc")]
position = Vector2(1053, 912)
clue = 19
[node name="PinnedPhoto9" parent="PhotosParent" instance=ExtResource("1_7cefc")]
position = Vector2(1227, 911)
clue = 20
[node name="PinnedPhoto10" parent="PhotosParent" instance=ExtResource("1_7cefc")]
position = Vector2(775, 381)
clue = 11
[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