pause_menu.tscn 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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="PauseTitle" type="TextureRect" parent="."]
  16. custom_minimum_size = Vector2(0, 200)
  17. layout_mode = 2
  18. texture = ExtResource("2_2pxrh")
  19. stretch_mode = 3
  20. [node name="VSplitContainer" type="VSplitContainer" parent="."]
  21. process_mode = 2
  22. layout_mode = 2
  23. dragger_visibility = 2
  24. [node name="Boutons" type="VBoxContainer" parent="VSplitContainer"]
  25. layout_mode = 2
  26. size_flags_horizontal = 4
  27. size_flags_vertical = 0
  28. [node name="Reprendre" type="Button" parent="VSplitContainer/Boutons"]
  29. unique_name_in_owner = true
  30. layout_mode = 2
  31. text = "Reprendre"
  32. [node name="RetourEcranTitre" type="Button" parent="VSplitContainer/Boutons"]
  33. layout_mode = 2
  34. text = "Retour écran titre"
  35. [node name="QuitterLeJeu" type="Button" parent="VSplitContainer/Boutons"]
  36. layout_mode = 2
  37. text = "Quitter le jeu"
  38. [node name="VolumeControle" type="HBoxContainer" parent="VSplitContainer"]
  39. layout_mode = 2
  40. size_flags_vertical = 8
  41. [node name="ControleMusique" type="VBoxContainer" parent="VSplitContainer/VolumeControle"]
  42. layout_mode = 2
  43. size_flags_horizontal = 3
  44. [node name="EtiquetteMusique" type="Label" parent="VSplitContainer/VolumeControle/ControleMusique"]
  45. layout_mode = 2
  46. text = "Musique"
  47. horizontal_alignment = 1
  48. [node name="CurseurMusique" type="HSlider" parent="VSplitContainer/VolumeControle/ControleMusique"]
  49. layout_mode = 2
  50. size_flags_horizontal = 3
  51. min_value = -60.0
  52. max_value = 0.0
  53. script = ExtResource("4_ygvs3")
  54. nom_bus = "Musique"
  55. [node name="ControleBruits" type="VBoxContainer" parent="VSplitContainer/VolumeControle"]
  56. layout_mode = 2
  57. size_flags_horizontal = 3
  58. [node name="EtiquetteMusique" type="Label" parent="VSplitContainer/VolumeControle/ControleBruits"]
  59. layout_mode = 2
  60. text = "Bruitages"
  61. horizontal_alignment = 1
  62. [node name="CurseurBruits" type="HSlider" parent="VSplitContainer/VolumeControle/ControleBruits"]
  63. layout_mode = 2
  64. size_flags_horizontal = 3
  65. min_value = -60.0
  66. max_value = 0.0
  67. script = ExtResource("4_ygvs3")
  68. nom_bus = "Bruits"
  69. [connection signal="pressed" from="VSplitContainer/Boutons/Reprendre" to="." method="_quand_bouton_reprendre_est_presse"]
  70. [connection signal="pressed" from="VSplitContainer/Boutons/RetourEcranTitre" to="." method="_quand_bouton_retour_titre_est_presse"]
  71. [connection signal="pressed" from="VSplitContainer/Boutons/QuitterLeJeu" to="." method="_quand_bouton_quitter_est_presse"]