pause_menu.tscn 4.3 KB

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