YouDunIt/flatscreen-project/objects/victim_file.tscn
2025-11-04 17:04:13 +01:00

77 lines
2.4 KiB
Text

[gd_scene load_steps=9 format=3 uid="uid://qmb60kjx6yoe"]
[ext_resource type="Texture2D" uid="uid://bwu83rfxi4mmh" path="res://assets/photo-images/Victim_Button.png" id="1_ajbhq"]
[ext_resource type="Texture2D" uid="uid://ckj2guah0egq0" path="res://assets/photo-images/Victim_file.png" id="2_ajbhq"]
[sub_resource type="QuadMesh" id="QuadMesh_7cefc"]
[sub_resource type="GDScript" id="GDScript_7cefc"]
script/source = "extends Area2D
func _on_input_event(viewport: Node, event: InputEvent, _shape_idx: int) -> void:
if event is InputEventMouseButton:
if not $\"..\".is_open():
$\"..\".request_open()
else:
$\"..\".request_close()
viewport.set_input_as_handled()
"
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vo7lu"]
size = Vector2(52.031464, 209.99301)
[sub_resource type="TextMesh" id="TextMesh_7cefc"]
flip_faces = true
text = "Victim"
depth = 0.0
[sub_resource type="Gradient" id="Gradient_vo7lu"]
offsets = PackedFloat32Array(1)
colors = PackedColorArray(0, 0, 0, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_wjago"]
gradient = SubResource("Gradient_vo7lu")
[node name="VictimFile" type="FilePopup"]
_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="MeshInstance2D2" type="MeshInstance2D" parent="."]
position = Vector2(27, 143.99998)
rotation = 1.5707964
scale = Vector2(-305, 159.671)
mesh = SubResource("QuadMesh_7cefc")
texture = ExtResource("1_ajbhq")
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
position = Vector2(-333.25, 486.25)
rotation = 3.1415927
scale = Vector2(-667.5, 973.5)
mesh = SubResource("QuadMesh_7cefc")
texture = ExtResource("2_ajbhq")
[node name="Area2D" type="Area2D" parent="."]
position = Vector2(29.17066, 143.39133)
script = SubResource("GDScript_7cefc")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
scale = Vector2(1.0000002, 1.0000002)
shape = SubResource("RectangleShape2D_vo7lu")
[node name="MeshInstance2D3" type="MeshInstance2D" parent="."]
position = Vector2(33.037315, 137.30455)
rotation = 1.5707964
scale = Vector2(-347.0554, 307.87436)
mesh = SubResource("TextMesh_7cefc")
texture = SubResource("GradientTexture1D_wjago")
[connection signal="input_event" from="Area2D" to="Area2D" method="_on_input_event"]