Parcourir la source

:lipstick: Decrit les controles dans le menu

DricomDragon il y a 10 mois
Parent
commit
a2bccabe95

+ 24 - 16
godot/composants/interface/pause/pause_menu.tscn

@@ -15,49 +15,57 @@ grow_vertical = 2
 dragger_visibility = 1
 script = ExtResource("1_c51fd")
 
-[node name="PauseTitle" type="TextureRect" parent="."]
+[node name="Texte" type="VSplitContainer" parent="."]
+layout_mode = 2
+dragger_visibility = 2
+
+[node name="Label" type="Label" parent="Texte"]
+layout_mode = 2
+text = "Bouger la raquette : souris ou ← et →"
+
+[node name="PauseTitle" type="TextureRect" parent="Texte"]
 custom_minimum_size = Vector2(0, 200)
 layout_mode = 2
 texture = ExtResource("2_2pxrh")
 stretch_mode = 3
 
-[node name="VSplitContainer" type="VSplitContainer" parent="."]
+[node name="Controles" type="VSplitContainer" parent="."]
 process_mode = 2
 layout_mode = 2
 dragger_visibility = 2
 
-[node name="Boutons" type="VBoxContainer" parent="VSplitContainer"]
+[node name="Boutons" type="VBoxContainer" parent="Controles"]
 layout_mode = 2
 size_flags_horizontal = 4
 size_flags_vertical = 0
 
-[node name="Reprendre" type="Button" parent="VSplitContainer/Boutons"]
+[node name="Reprendre" type="Button" parent="Controles/Boutons"]
 unique_name_in_owner = true
 layout_mode = 2
 text = "Reprendre"
 
-[node name="RetourEcranTitre" type="Button" parent="VSplitContainer/Boutons"]
+[node name="RetourEcranTitre" type="Button" parent="Controles/Boutons"]
 layout_mode = 2
 text = "Retour écran titre"
 
-[node name="QuitterLeJeu" type="Button" parent="VSplitContainer/Boutons"]
+[node name="QuitterLeJeu" type="Button" parent="Controles/Boutons"]
 layout_mode = 2
 text = "Quitter le jeu"
 
-[node name="VolumeControle" type="HBoxContainer" parent="VSplitContainer"]
+[node name="VolumeControle" type="HBoxContainer" parent="Controles"]
 layout_mode = 2
 size_flags_vertical = 8
 
-[node name="ControleMusique" type="VBoxContainer" parent="VSplitContainer/VolumeControle"]
+[node name="ControleMusique" type="VBoxContainer" parent="Controles/VolumeControle"]
 layout_mode = 2
 size_flags_horizontal = 3
 
-[node name="EtiquetteMusique" type="Label" parent="VSplitContainer/VolumeControle/ControleMusique"]
+[node name="EtiquetteMusique" type="Label" parent="Controles/VolumeControle/ControleMusique"]
 layout_mode = 2
 text = "Musique"
 horizontal_alignment = 1
 
-[node name="CurseurMusique" type="HSlider" parent="VSplitContainer/VolumeControle/ControleMusique"]
+[node name="CurseurMusique" type="HSlider" parent="Controles/VolumeControle/ControleMusique"]
 layout_mode = 2
 size_flags_horizontal = 3
 min_value = -60.0
@@ -65,16 +73,16 @@ max_value = 0.0
 script = ExtResource("4_ygvs3")
 nom_bus = "Musique"
 
-[node name="ControleBruits" type="VBoxContainer" parent="VSplitContainer/VolumeControle"]
+[node name="ControleBruits" type="VBoxContainer" parent="Controles/VolumeControle"]
 layout_mode = 2
 size_flags_horizontal = 3
 
-[node name="EtiquetteMusique" type="Label" parent="VSplitContainer/VolumeControle/ControleBruits"]
+[node name="EtiquetteMusique" type="Label" parent="Controles/VolumeControle/ControleBruits"]
 layout_mode = 2
 text = "Bruitages"
 horizontal_alignment = 1
 
-[node name="CurseurBruits" type="HSlider" parent="VSplitContainer/VolumeControle/ControleBruits"]
+[node name="CurseurBruits" type="HSlider" parent="Controles/VolumeControle/ControleBruits"]
 layout_mode = 2
 size_flags_horizontal = 3
 min_value = -60.0
@@ -82,6 +90,6 @@ max_value = 0.0
 script = ExtResource("4_ygvs3")
 nom_bus = "Bruits"
 
-[connection signal="pressed" from="VSplitContainer/Boutons/Reprendre" to="." method="_quand_bouton_reprendre_est_presse"]
-[connection signal="pressed" from="VSplitContainer/Boutons/RetourEcranTitre" to="." method="_quand_bouton_retour_titre_est_presse"]
-[connection signal="pressed" from="VSplitContainer/Boutons/QuitterLeJeu" to="." method="_quand_bouton_quitter_est_presse"]
+[connection signal="pressed" from="Controles/Boutons/Reprendre" to="." method="_quand_bouton_reprendre_est_presse"]
+[connection signal="pressed" from="Controles/Boutons/RetourEcranTitre" to="." method="_quand_bouton_retour_titre_est_presse"]
+[connection signal="pressed" from="Controles/Boutons/QuitterLeJeu" to="." method="_quand_bouton_quitter_est_presse"]

+ 2 - 0
godot/exec/choix/choix_niveau.tscn

@@ -71,6 +71,8 @@ niveau = ExtResource("12_5dpbk")
 [node name="BarreMenu" type="Panel" parent="."]
 anchors_preset = 10
 anchor_right = 1.0
+offset_top = 22.0
+offset_bottom = 22.0
 grow_horizontal = 2
 
 [node name="TitreJeu" type="Label" parent="BarreMenu"]