|
@@ -1,6 +1,7 @@
|
|
|
-[gd_scene load_steps=2 format=3 uid="uid://mj0r0qodppdk"]
|
|
|
+[gd_scene load_steps=3 format=3 uid="uid://mj0r0qodppdk"]
|
|
|
|
|
|
[ext_resource type="AudioStream" uid="uid://bmws7hyv3in4u" path="res://composants/interface/perdu/gameover_sfx.wav" id="1_o3mkr"]
|
|
|
+[ext_resource type="PackedScene" uid="uid://cnx7226ap3e2y" path="res://composants/interface/bouton/retour/bouton_retour.tscn" id="2_s07c3"]
|
|
|
|
|
|
[node name="Perdu" type="Control"]
|
|
|
layout_mode = 3
|
|
@@ -26,16 +27,22 @@ grow_vertical = 2
|
|
|
theme_override_font_sizes/font_size = 40
|
|
|
text = "Partie perdue ..."
|
|
|
|
|
|
-[node name="CommandeRetour" type="Label" parent="."]
|
|
|
-layout_mode = 0
|
|
|
-offset_left = 150.0
|
|
|
-offset_top = 336.0
|
|
|
-offset_right = 330.0
|
|
|
-offset_bottom = 385.0
|
|
|
-text = "Échap → menu pause"
|
|
|
-
|
|
|
[node name="BruitDeLaDefaite" type="AudioStreamPlayer" parent="."]
|
|
|
stream = ExtResource("1_o3mkr")
|
|
|
bus = &"Bruits"
|
|
|
|
|
|
+[node name="BoutonRetour" parent="." instance=ExtResource("2_s07c3")]
|
|
|
+layout_mode = 1
|
|
|
+anchors_preset = 7
|
|
|
+anchor_left = 0.5
|
|
|
+anchor_top = 1.0
|
|
|
+anchor_right = 0.5
|
|
|
+anchor_bottom = 1.0
|
|
|
+offset_left = -94.5
|
|
|
+offset_top = -136.0
|
|
|
+offset_right = 94.5
|
|
|
+offset_bottom = -105.0
|
|
|
+grow_horizontal = 2
|
|
|
+grow_vertical = 0
|
|
|
+
|
|
|
[connection signal="visibility_changed" from="OhNon" to="BruitDeLaDefaite" method="play"]
|