78 lines
2.5 KiB
Text
78 lines
2.5 KiB
Text
[gd_scene load_steps=9 format=3 uid="uid://cjyr1b0fxfofx"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cplpndk6qv7sx" path="res://assets/photo-images/Case_Button.png" id="1_3vy0q"]
|
|
[ext_resource type="Texture2D" uid="uid://2cn7xvs6k1r5" path="res://assets/photo-images/Case_file.png" id="2_vi7i2"]
|
|
|
|
[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_mes51"]
|
|
flip_faces = true
|
|
text = "Case"
|
|
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="CaseFile" 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(29.999994, 581.83563)
|
|
rotation = 1.5707964
|
|
scale = Vector2(-257.99997, 159.671)
|
|
mesh = SubResource("QuadMesh_7cefc")
|
|
texture = ExtResource("1_3vy0q")
|
|
|
|
[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_vi7i2")
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
position = Vector2(28.170658, 585.06274)
|
|
script = SubResource("GDScript_7cefc")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2(-0.17065811, 0.93725586)
|
|
scale = Vector2(1.0000002, 1.0000002)
|
|
shape = SubResource("RectangleShape2D_vo7lu")
|
|
|
|
[node name="MeshInstance2D3" type="MeshInstance2D" parent="."]
|
|
position = Vector2(30.888136, 582.9807)
|
|
rotation = 1.5707964
|
|
scale = Vector2(-347.0554, 307.87436)
|
|
mesh = SubResource("TextMesh_mes51")
|
|
texture = SubResource("GradientTexture1D_wjago")
|
|
|
|
[connection signal="input_event" from="Area2D" to="Area2D" method="_on_input_event"]
|