perdu.tscn 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [gd_scene load_steps=3 format=3 uid="uid://mj0r0qodppdk"]
  2. [ext_resource type="AudioStream" uid="uid://bmws7hyv3in4u" path="res://composants/interface/perdu/gameover_sfx.wav" id="1_o3mkr"]
  3. [ext_resource type="PackedScene" uid="uid://cnx7226ap3e2y" path="res://composants/interface/bouton/retour/bouton_retour.tscn" id="2_s07c3"]
  4. [node name="Perdu" type="Control"]
  5. layout_mode = 3
  6. anchors_preset = 15
  7. anchor_right = 1.0
  8. anchor_bottom = 1.0
  9. grow_horizontal = 2
  10. grow_vertical = 2
  11. [node name="OhNon" type="Label" parent="."]
  12. layout_mode = 1
  13. anchors_preset = 8
  14. anchor_left = 0.5
  15. anchor_top = 0.5
  16. anchor_right = 0.5
  17. anchor_bottom = 0.5
  18. offset_left = -31.5
  19. offset_top = -11.5
  20. offset_right = 31.5
  21. offset_bottom = 11.5
  22. grow_horizontal = 2
  23. grow_vertical = 2
  24. theme_override_font_sizes/font_size = 40
  25. text = "Partie
  26. perdue ..."
  27. [node name="BruitDeLaDefaite" type="AudioStreamPlayer" parent="."]
  28. stream = ExtResource("1_o3mkr")
  29. bus = &"Bruits"
  30. [node name="BoutonRetour" parent="." instance=ExtResource("2_s07c3")]
  31. layout_mode = 1
  32. anchors_preset = 7
  33. anchor_left = 0.5
  34. anchor_top = 1.0
  35. anchor_right = 0.5
  36. anchor_bottom = 1.0
  37. offset_left = -94.5
  38. offset_top = -136.0
  39. offset_right = 94.5
  40. offset_bottom = -105.0
  41. grow_horizontal = 2
  42. grow_vertical = 0
  43. [connection signal="visibility_changed" from="OhNon" to="BruitDeLaDefaite" method="play"]