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,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://n5vmjs3xhmma"]
[gd_scene load_steps=3 format=3 uid="uid://n5vmjs3xhmma"]
[ext_resource type="Script" path="res://parametres/assign_menu/assigner_bouton.gd" id="1_jtqf2"]
[ext_resource type="FontFile" uid="uid://dbe1teksyhymq" path="res://ressources/fonts/OpenDyslexic-Regular.otf" id="2_sa1vi"]
[node name="assigner_bouton" type="Control" groups=["changer_touches"]]
layout_mode = 3
@ -29,6 +30,7 @@ alignment = 1
[node name="Label" type="Label" parent="HBoxContainer"]
custom_minimum_size = Vector2(200, 40)
layout_mode = 2
theme_override_fonts/font = ExtResource("2_sa1vi")
theme_override_font_sizes/font_size = 32
text = "ACTION"
vertical_alignment = 1
@ -43,6 +45,7 @@ size_flags_horizontal = 3
[node name="Button" type="Button" parent="HBoxContainer"]
custom_minimum_size = Vector2(150, 75)
layout_mode = 2
theme_override_fonts/font = ExtResource("2_sa1vi")
theme_override_font_sizes/font_size = 32
text = "BOUTON_ACTION"

View file

@ -1,4 +1,6 @@
[gd_scene format=3 uid="uid://bbnto4k0qufd7"]
[gd_scene load_steps=2 format=3 uid="uid://bbnto4k0qufd7"]
[ext_resource type="FontFile" uid="uid://dbe1teksyhymq" path="res://ressources/fonts/OpenDyslexic-Regular.otf" id="1_2x8rq"]
[node name="Drop_Menu_Parametres" type="Control"]
layout_mode = 3
@ -29,6 +31,7 @@ size_flags_horizontal = 3
[node name="Label" type="Label" parent="HBoxContainer"]
custom_minimum_size = Vector2(264, 0)
layout_mode = 2
theme_override_fonts/font = ExtResource("1_2x8rq")
theme_override_font_sizes/font_size = 32
text = "TEXTE_PAR_DEFAUT"
vertical_alignment = 1
@ -41,7 +44,8 @@ layout_mode = 2
[node name="OptionButton" type="OptionButton" parent="HBoxContainer"]
custom_minimum_size = Vector2(256, 64)
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_fonts/font = ExtResource("1_2x8rq")
theme_override_font_sizes/font_size = 22
[node name="VSeparator3" type="VSeparator" parent="HBoxContainer"]
modulate = Color(1, 1, 1, 0)

View file

@ -2,13 +2,10 @@
[ext_resource type="Script" path="res://parametres/menu_parametres.gd" id="1_2rsun"]
[ext_resource type="PackedScene" uid="uid://d0ulsovtj84go" path="res://parametres/tab_parametres.tscn" id="2_hg7gg"]
[ext_resource type="FontFile" uid="uid://dbe1teksyhymq" path="res://ressources/fonts/OpenDyslexic-Regular.otf" id="2_lqvew"]
[ext_resource type="Texture2D" uid="uid://c5q7bc5hpe6hd" path="res://ressources/images/menu_jeu_tiny_button.svg" id="3_28efj"]
[ext_resource type="Texture2D" uid="uid://1pxsc65es708" path="res://ressources/images/menu_jeu_tiny_button_survole.svg" id="4_fo4ob"]
[sub_resource type="SystemFont" id="SystemFont_ur4bm"]
font_names = PackedStringArray("Yu Gothic UI")
subpixel_positioning = 0
[node name="Menu_parametres" type="Control"]
layout_mode = 3
anchors_preset = 15
@ -41,7 +38,7 @@ theme_override_constants/separation = 15
layout_mode = 2
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 10
theme_override_fonts/font = SubResource("SystemFont_ur4bm")
theme_override_fonts/font = ExtResource("2_lqvew")
theme_override_font_sizes/font_size = 40
text = "Options"
horizontal_alignment = 1
@ -52,7 +49,7 @@ layout_mode = 2
size_flags_vertical = 3
[node name="exit_button" type="TextureButton" parent="TabContainer/VBoxContainer"]
custom_minimum_size = Vector2(160, 128)
custom_minimum_size = Vector2(200, 150)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 8
@ -66,9 +63,11 @@ stretch_mode = 0
modulate = Color(0, 0, 0, 1)
self_modulate = Color(0, 0, 0, 1)
layout_mode = 0
offset_top = 26.0
offset_right = 160.0
offset_bottom = 90.0
offset_left = 19.0
offset_top = 37.0
offset_right = 179.0
offset_bottom = 101.0
theme_override_fonts/font = ExtResource("2_lqvew")
theme_override_font_sizes/font_size = 32
text = "Retour"
horizontal_alignment = 1

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://dah5m6qsf1fdr"]
[gd_scene load_steps=3 format=3 uid="uid://dah5m6qsf1fdr"]
[ext_resource type="Script" path="res://parametres/slide_menu/slide_menu_parametres.gd" id="1_q83rq"]
[ext_resource type="FontFile" uid="uid://dbe1teksyhymq" path="res://ressources/fonts/OpenDyslexic-Regular.otf" id="2_ra1il"]
[node name="slide_menu_parametres" type="Control"]
layout_mode = 3
@ -33,6 +34,7 @@ size_flags_horizontal = 3
[node name="Nom_Audio" type="Label" parent="HBoxContainer"]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
theme_override_fonts/font = ExtResource("2_ra1il")
theme_override_font_sizes/font_size = 32
text = "TEXTE_PAR_DEFAUT
"
@ -57,6 +59,7 @@ layout_mode = 2
[node name="Valeur_Audio" type="Label" parent="HBoxContainer"]
custom_minimum_size = Vector2(95, 0)
layout_mode = 2
theme_override_fonts/font = ExtResource("2_ra1il")
theme_override_font_sizes/font_size = 32
text = "100 %
"

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=6 format=3 uid="uid://d0ulsovtj84go"]
[gd_scene load_steps=7 format=3 uid="uid://d0ulsovtj84go"]
[ext_resource type="PackedScene" uid="uid://bql1rrrswwr0y" path="res://parametres/drop_menu/drop_menu_fenetre.tscn" id="1_josna"]
[ext_resource type="FontFile" uid="uid://dbe1teksyhymq" path="res://ressources/fonts/OpenDyslexic-Regular.otf" id="1_ls7jb"]
[ext_resource type="PackedScene" uid="uid://d30k33gvnoo46" path="res://parametres/drop_menu/drop_menu_resolution.tscn" id="2_ar3u0"]
[ext_resource type="PackedScene" uid="uid://dah5m6qsf1fdr" path="res://parametres/slide_menu/slide_menu_parametres.tscn" id="3_4tew8"]
[ext_resource type="PackedScene" uid="uid://n5vmjs3xhmma" path="res://parametres/assign_menu/assigner_bouton.tscn" id="4_chw0c"]
@ -46,11 +47,13 @@ offset_right = -100.0
offset_bottom = -50.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/font = ExtResource("1_ls7jb")
tab_alignment = 1
current_tab = 0
[node name="Affichage" type="TabBar" parent="TabContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("1_ls7jb")
metadata/_tab_index = 0
[node name="MarginContainer" type="MarginContainer" parent="TabContainer/Affichage"]
@ -92,6 +95,7 @@ size_flags_vertical = 3
[node name="Son" type="TabBar" parent="TabContainer"]
visible = false
layout_mode = 2
theme_override_fonts/font = ExtResource("1_ls7jb")
metadata/_tab_index = 1
[node name="MarginContainer" type="MarginContainer" parent="TabContainer/Son"]
@ -117,6 +121,7 @@ alignment = 1
[node name="Label" type="Label" parent="TabContainer/Son/MarginContainer/ScrollContainer/VBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("1_ls7jb")
theme_override_font_sizes/font_size = 32
text = "Volume"
horizontal_alignment = 1
@ -137,6 +142,7 @@ bus_name = "Sfx"
[node name="Commandes" type="TabBar" parent="TabContainer"]
visible = false
layout_mode = 2
theme_override_fonts/font = ExtResource("1_ls7jb")
metadata/_tab_index = 2
[node name="MarginContainer" type="MarginContainer" parent="TabContainer/Commandes"]
@ -189,43 +195,4 @@ modulate = Color(1, 1, 1, 0)
self_modulate = Color(1, 1, 1, 0)
layout_mode = 2
[node name="Accessibilité" type="TabBar" parent="TabContainer"]
visible = false
layout_mode = 2
metadata/_tab_index = 3
[node name="MarginContainer" type="MarginContainer" parent="TabContainer/Accessibilité"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 24
theme_override_constants/margin_top = 24
theme_override_constants/margin_right = 24
theme_override_constants/margin_bottom = 24
[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/Accessibilité/MarginContainer"]
layout_mode = 2
[node name="VBoxContainer2" type="VBoxContainer" parent="TabContainer/Accessibilité/MarginContainer/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 90
alignment = 1
[node name="HSeparator" type="HSeparator" parent="TabContainer/Accessibilité/MarginContainer/ScrollContainer/VBoxContainer2"]
modulate = Color(0.105882, 0.105882, 0.105882, 0)
self_modulate = Color(1, 1, 1, 0)
layout_mode = 2
[node name="Label" type="Label" parent="TabContainer/Accessibilité/MarginContainer/ScrollContainer/VBoxContainer2"]
layout_mode = 2
text = "Taille de la police"
[node name="Label2" type="Label" parent="TabContainer/Accessibilité/MarginContainer/ScrollContainer/VBoxContainer2"]
layout_mode = 2
text = "Langue du jeu"
[connection signal="tab_changed" from="TabContainer/Commandes" to="." method="_on_commandes_tab_changed"]