pause_menu.tscn 3.3 KB

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