ajout des polices d'écriture et modification des paramètres

This commit is contained in:
E213872U 2025-01-24 19:12:28 +01:00
parent 2f60e6dfa7
commit 4b1862c59c
8 changed files with 78 additions and 82 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=3 uid="uid://bmwgfrd8butry"]
[gd_scene load_steps=10 format=3 uid="uid://bmwgfrd8butry"]
[ext_resource type="Script" path="res://menu_principal/menu_principal_affichage.gd" id="1_10mja"]
[ext_resource type="Texture2D" uid="uid://dqfrqntx73do5" path="res://ressources/images/menu_jeu_button.svg" id="1_502q6"]
@ -6,6 +6,7 @@
[ext_resource type="Texture2D" uid="uid://kpss4kt07w8l" path="res://ressources/images/menu_jeu_button_survole.svg" id="2_b8slo"]
[ext_resource type="Texture2D" uid="uid://c5q7bc5hpe6hd" path="res://ressources/images/menu_jeu_tiny_button.svg" id="3_o6osq"]
[ext_resource type="Texture2D" uid="uid://1pxsc65es708" path="res://ressources/images/menu_jeu_tiny_button_survole.svg" id="4_egxbj"]
[ext_resource type="FontFile" uid="uid://dbe1teksyhymq" path="res://ressources/fonts/OpenDyslexic-Regular.otf" id="5_1lmm7"]
[ext_resource type="PackedScene" uid="uid://di4chlep1t1or" path="res://parametres/menu_parametres.tscn" id="6_0lenm"]
[ext_resource type="AudioStream" uid="uid://d0dmu15vidwv0" path="res://ressources/sons/main_theme.wav" id="8_sq6yk"]
@ -74,32 +75,13 @@ modulate = Color(0, 0, 0, 1)
layout_mode = 0
offset_right = 256.0
offset_bottom = 128.0
theme_override_fonts/font = ExtResource("5_1lmm7")
theme_override_font_sizes/font_size = 32
text = "Jouer"
horizontal_alignment = 1
vertical_alignment = 1
language = "fr_FR"
[node name="load_button" type="TextureButton" parent="Menu_principal/HBoxContainer/VBoxMainButton"]
layout_mode = 2
texture_normal = ExtResource("1_502q6")
texture_pressed = ExtResource("2_b8slo")
texture_hover = ExtResource("2_b8slo")
texture_focused = ExtResource("2_b8slo")
stretch_mode = 0
[node name="load_label" type="Label" parent="Menu_principal/HBoxContainer/VBoxMainButton/load_button"]
modulate = Color(0, 0, 0, 1)
layout_mode = 0
offset_right = 256.0
offset_bottom = 128.0
theme_override_font_sizes/font_size = 32
text = "Charger
"
horizontal_alignment = 1
vertical_alignment = 1
language = "fr_FR"
[node name="quit_button" type="TextureButton" parent="Menu_principal/HBoxContainer/VBoxMainButton"]
layout_mode = 2
texture_normal = ExtResource("1_502q6")
@ -113,6 +95,7 @@ modulate = Color(0, 0, 0, 1)
layout_mode = 0
offset_right = 256.0
offset_bottom = 128.0
theme_override_fonts/font = ExtResource("5_1lmm7")
theme_override_font_sizes/font_size = 32
text = "Quitter"
horizontal_alignment = 1
@ -133,7 +116,7 @@ size_flags_horizontal = 3
[node name="VBoxSideButton" type="VBoxContainer" parent="Menu_principal/HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 30
theme_override_constants/separation = -34
[node name="HSeparator" type="HSeparator" parent="Menu_principal/HBoxContainer/VBoxSideButton"]
modulate = Color(1, 1, 1, 0)
@ -143,7 +126,7 @@ size_flags_vertical = 3
theme_override_constants/separation = 355
[node name="param_button" type="TextureButton" parent="Menu_principal/HBoxContainer/VBoxSideButton"]
custom_minimum_size = Vector2(150, 128)
custom_minimum_size = Vector2(200, 150)
layout_mode = 2
texture_normal = ExtResource("3_o6osq")
texture_pressed = ExtResource("4_egxbj")
@ -154,9 +137,11 @@ stretch_mode = 0
[node name="param_label" type="Label" parent="Menu_principal/HBoxContainer/VBoxSideButton/param_button"]
modulate = Color(0, 0, 0, 1)
layout_mode = 0
offset_top = 27.0
offset_right = 150.0
offset_bottom = 91.0
offset_left = 22.0
offset_top = 39.0
offset_right = 178.0
offset_bottom = 103.0
theme_override_fonts/font = ExtResource("5_1lmm7")
theme_override_font_sizes/font_size = 19
text = "Paramètres"
horizontal_alignment = 1
@ -175,9 +160,11 @@ stretch_mode = 0
[node name="credit_label" type="Label" parent="Menu_principal/HBoxContainer/VBoxSideButton/credit_button"]
modulate = Color(0, 0, 0, 1)
layout_mode = 0
offset_left = 25.0
offset_top = 28.0
offset_right = 150.0
offset_right = 175.0
offset_bottom = 92.0
theme_override_fonts/font = ExtResource("5_1lmm7")
theme_override_font_sizes/font_size = 25
text = "Crédits"
horizontal_alignment = 1
@ -188,7 +175,7 @@ language = "fr_FR"
modulate = Color(1, 1, 1, 0)
self_modulate = Color(1, 1, 1, 0)
layout_mode = 2
theme_override_constants/separation = 10
theme_override_constants/separation = 29
[node name="VSeparator3" type="VSeparator" parent="Menu_principal/HBoxContainer"]
modulate = Color(1, 1, 1, 0)
@ -205,7 +192,6 @@ autoplay = true
bus = &"Music"
[connection signal="pressed" from="Menu_principal/HBoxContainer/VBoxMainButton/play_button" to="." method="_on_play_button_pressed"]
[connection signal="pressed" from="Menu_principal/HBoxContainer/VBoxMainButton/load_button" to="." method="_on_load_button_pressed"]
[connection signal="pressed" from="Menu_principal/HBoxContainer/VBoxMainButton/quit_button" to="." method="_on_quit_button_pressed"]
[connection signal="pressed" from="Menu_principal/HBoxContainer/VBoxSideButton/param_button" to="." method="_on_param_button_pressed"]
[connection signal="finished" from="MusiqueFond" to="." method="_on_musique_fond_finished"]