pause_menu.tscn 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. [gd_scene load_steps=4 format=3 uid="uid://cvsfngjyx7xvw"]
  2. [ext_resource type="Script" path="res://composants/interface/pause/pause_menu.gd" id="1_c51fd"]
  3. [ext_resource type="Texture2D" uid="uid://bkupreskydgkg" path="res://composants/interface/pause/sprite.png" id="2_2pxrh"]
  4. [ext_resource type="Script" path="res://composants/interface/pause/bus_volume.gd" id="4_ygvs3"]
  5. [node name="PauseMenu" type="VSplitContainer"]
  6. process_mode = 3
  7. visible = false
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. dragger_visibility = 1
  14. script = ExtResource("1_c51fd")
  15. [node name="Texte" type="VSplitContainer" parent="."]
  16. layout_mode = 2
  17. dragger_visibility = 2
  18. [node name="Label" type="Label" parent="Texte"]
  19. layout_mode = 2
  20. text = "Bouger la raquette : souris ou ← et →"
  21. [node name="PauseTitle" type="TextureRect" parent="Texte"]
  22. custom_minimum_size = Vector2(0, 200)
  23. layout_mode = 2
  24. texture = ExtResource("2_2pxrh")
  25. stretch_mode = 3
  26. [node name="Controles" type="VSplitContainer" parent="."]
  27. process_mode = 2
  28. layout_mode = 2
  29. dragger_visibility = 2
  30. [node name="Boutons" type="VBoxContainer" parent="Controles"]
  31. layout_mode = 2
  32. size_flags_horizontal = 4
  33. size_flags_vertical = 0
  34. [node name="Reprendre" type="Button" parent="Controles/Boutons"]
  35. unique_name_in_owner = true
  36. layout_mode = 2
  37. text = "Reprendre"
  38. [node name="RetourEcranTitre" type="Button" parent="Controles/Boutons"]
  39. layout_mode = 2
  40. text = "Choisir un autre niveau"
  41. [node name="QuitterLeJeu" type="Button" parent="Controles/Boutons"]
  42. layout_mode = 2
  43. text = "Quitter le jeu"
  44. [node name="VolumeControle" type="HBoxContainer" parent="Controles"]
  45. layout_mode = 2
  46. size_flags_vertical = 8
  47. [node name="ControleMusique" type="VBoxContainer" parent="Controles/VolumeControle"]
  48. layout_mode = 2
  49. size_flags_horizontal = 3
  50. [node name="EtiquetteMusique" type="Label" parent="Controles/VolumeControle/ControleMusique"]
  51. layout_mode = 2
  52. text = "Musique"
  53. horizontal_alignment = 1
  54. [node name="CurseurMusique" type="HSlider" parent="Controles/VolumeControle/ControleMusique"]
  55. layout_mode = 2
  56. size_flags_horizontal = 3
  57. min_value = -60.0
  58. max_value = 0.0
  59. script = ExtResource("4_ygvs3")
  60. nom_bus = "Musique"
  61. [node name="ControleBruits" type="VBoxContainer" parent="Controles/VolumeControle"]
  62. layout_mode = 2
  63. size_flags_horizontal = 3
  64. [node name="EtiquetteMusique" type="Label" parent="Controles/VolumeControle/ControleBruits"]
  65. layout_mode = 2
  66. text = "Bruitages"
  67. horizontal_alignment = 1
  68. [node name="CurseurBruits" type="HSlider" parent="Controles/VolumeControle/ControleBruits"]
  69. layout_mode = 2
  70. size_flags_horizontal = 3
  71. min_value = -60.0
  72. max_value = 0.0
  73. script = ExtResource("4_ygvs3")
  74. nom_bus = "Bruits"
  75. [connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
  76. [connection signal="pressed" from="Controles/Boutons/Reprendre" to="." method="_quand_bouton_reprendre_est_presse"]
  77. [connection signal="pressed" from="Controles/Boutons/RetourEcranTitre" to="." method="_quand_bouton_retour_titre_est_presse"]
  78. [connection signal="pressed" from="Controles/Boutons/QuitterLeJeu" to="." method="_quand_bouton_quitter_est_presse"]