YouDunIt/flatscreen-project/objects/victim_file.tscn

48 lines
1.6 KiB
Text

[gd_scene load_steps=6 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)
[node name="VictimFile" type="FilePopup"]
[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")
[connection signal="input_event" from="Area2D" to="Area2D" method="_on_input_event"]