2025-06-28 11:04:03 +02:00
|
|
|
[gd_scene load_steps=5 format=3 uid="uid://cjo7jm55bkqk3"]
|
2025-06-28 10:23:35 +02:00
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://dl18owt8pb11r" path="res://scenes/interactibles/interactible.gd" id="1_7dp4u"]
|
|
|
|
[ext_resource type="FontFile" uid="uid://detctsm8oy251" path="res://assets/PansyHand/pansyhand.ttf" id="2_u3pc4"]
|
2025-06-28 11:04:03 +02:00
|
|
|
[ext_resource type="Script" uid="uid://1nf36h0gms3q" path="res://addons/maaacks_menus_template/base/scripts/capture_focus.gd" id="3_dyo5s"]
|
2025-06-28 10:23:35 +02:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_oyfc1"]
|
|
|
|
radius = 20.0
|
|
|
|
|
|
|
|
[node name="Interactible" type="Area2D"]
|
|
|
|
collision_layer = 4
|
|
|
|
collision_mask = 2
|
|
|
|
script = ExtResource("1_7dp4u")
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource("CircleShape2D_oyfc1")
|
|
|
|
|
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="."]
|
|
|
|
z_index = 1000
|
2025-06-28 22:37:16 +02:00
|
|
|
offset_left = 10.0
|
|
|
|
offset_top = -29.0
|
|
|
|
offset_right = 132.0
|
|
|
|
offset_bottom = 11.0
|
2025-06-28 10:23:35 +02:00
|
|
|
theme_override_fonts/normal_font = ExtResource("2_u3pc4")
|
2025-06-28 22:37:16 +02:00
|
|
|
theme_override_font_sizes/normal_font_size = 32
|
|
|
|
text = "INTERAGIR"
|
2025-06-28 10:23:35 +02:00
|
|
|
|
2025-06-28 11:04:03 +02:00
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
2025-06-28 17:54:57 +02:00
|
|
|
z_index = 1000
|
2025-06-28 11:04:03 +02:00
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
offset_left = -140.0
|
|
|
|
offset_top = -151.0
|
|
|
|
offset_right = 140.0
|
|
|
|
offset_bottom = -31.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
mouse_filter = 2
|
|
|
|
|
|
|
|
[node name="ConfirmPanel" type="Panel" parent="CenterContainer"]
|
|
|
|
unique_name_in_owner = true
|
2025-06-28 12:46:58 +02:00
|
|
|
visible = false
|
2025-06-28 11:04:03 +02:00
|
|
|
custom_minimum_size = Vector2(280, 120)
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer/ConfirmPanel"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="MessageBox" type="Label" parent="CenterContainer/ConfirmPanel/VBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
2025-06-28 17:54:57 +02:00
|
|
|
custom_minimum_size = Vector2(256, 0)
|
2025-06-28 11:04:03 +02:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "ENTRER DANS LA POSTE ?"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
vertical_alignment = 1
|
2025-06-28 17:54:57 +02:00
|
|
|
autowrap_mode = 3
|
2025-06-28 11:04:03 +02:00
|
|
|
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="CenterContainer/ConfirmPanel/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer"]
|
|
|
|
custom_minimum_size = Vector2(256, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
theme_override_constants/separation = 16
|
|
|
|
script = ExtResource("3_dyo5s")
|
|
|
|
|
|
|
|
[node name="ConfirmButton" type="Button" parent="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2025-06-28 22:37:16 +02:00
|
|
|
text = "CARRÉMENT!"
|
2025-06-28 11:04:03 +02:00
|
|
|
|
|
|
|
[node name="CancelButton" type="Button" parent="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2025-06-28 22:37:16 +02:00
|
|
|
text = "UNDO, UNDO!"
|
2025-06-28 11:04:03 +02:00
|
|
|
|
2025-06-28 17:54:57 +02:00
|
|
|
[node name="OkButton" type="Button" parent="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
visible = false
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2025-06-29 14:58:36 +02:00
|
|
|
text = "OK"
|
2025-06-28 17:54:57 +02:00
|
|
|
|
2025-06-28 10:23:35 +02:00
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
|
|
|
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
2025-06-28 11:04:03 +02:00
|
|
|
[connection signal="pressed" from="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer/ConfirmButton" to="." method="_on_confirm_button_pressed"]
|
|
|
|
[connection signal="pressed" from="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer/CancelButton" to="." method="_on_cancel_button_pressed"]
|
2025-06-28 17:54:57 +02:00
|
|
|
[connection signal="pressed" from="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer/OkButton" to="." method="_on_cancel_button_pressed"]
|