Ver Fonte

:lipstick: Rend plus lisible le reglage des volumes

DricomDragon há 9 meses atrás
pai
commit
d5ac58efe3

+ 1 - 0
godot/composants/interface/pause/AudioStreamGenerator.svg

@@ -0,0 +1 @@
+<svg height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="8" x2="8" y1="1" y2="15"><stop offset="0" stop-color="#ff5f5f"/><stop offset=".5" stop-color="#e1da5b"/><stop offset="1" stop-color="#5fff97"/></linearGradient><path d="m14 9-3 5-3-12-3 7-3-2" fill="none" stroke="url(#a)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>

+ 37 - 0
godot/composants/interface/pause/AudioStreamGenerator.svg.import

@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://c1mxl4duk5m18"
+path="res://.godot/imported/AudioStreamGenerator.svg-163113f03a6714d8a052d3dfa72e8e7f.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://composants/interface/pause/AudioStreamGenerator.svg"
+dest_files=["res://.godot/imported/AudioStreamGenerator.svg-163113f03a6714d8a052d3dfa72e8e7f.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=false
+editor/convert_colors_with_editor_theme=false

Diff do ficheiro suprimidas por serem muito extensas
+ 1 - 0
godot/composants/interface/pause/AudioStreamMP3.svg


+ 37 - 0
godot/composants/interface/pause/AudioStreamMP3.svg.import

@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dqjikgaxapxq"
+path="res://.godot/imported/AudioStreamMP3.svg-0ab724df1ee03b495252a7a3c8efed75.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://composants/interface/pause/AudioStreamMP3.svg"
+dest_files=["res://.godot/imported/AudioStreamMP3.svg-0ab724df1ee03b495252a7a3c8efed75.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=false
+editor/convert_colors_with_editor_theme=false

+ 17 - 15
godot/composants/interface/pause/pause_menu.tscn

@@ -1,8 +1,10 @@
-[gd_scene load_steps=4 format=3 uid="uid://cvsfngjyx7xvw"]
+[gd_scene load_steps=6 format=3 uid="uid://cvsfngjyx7xvw"]
 
 [ext_resource type="Script" path="res://composants/interface/pause/pause_menu.gd" id="1_c51fd"]
 [ext_resource type="Texture2D" uid="uid://bkupreskydgkg" path="res://composants/interface/pause/sprite.png" id="2_2pxrh"]
+[ext_resource type="Texture2D" uid="uid://dqjikgaxapxq" path="res://composants/interface/pause/AudioStreamMP3.svg" id="3_sxlkx"]
 [ext_resource type="Script" path="res://composants/interface/pause/bus_volume.gd" id="4_ygvs3"]
+[ext_resource type="Texture2D" uid="uid://c1mxl4duk5m18" path="res://composants/interface/pause/AudioStreamGenerator.svg" id="5_22vgw"]
 
 [node name="PauseMenu" type="VSplitContainer"]
 process_mode = 3
@@ -56,35 +58,35 @@ text = "Quitter le jeu"
 layout_mode = 2
 size_flags_vertical = 8
 
-[node name="ControleMusique" type="VBoxContainer" parent="Controles/VolumeControle"]
+[node name="IconeMusique" type="TextureRect" parent="Controles/VolumeControle"]
+custom_minimum_size = Vector2(20, 0)
 layout_mode = 2
-size_flags_horizontal = 3
-
-[node name="EtiquetteMusique" type="Label" parent="Controles/VolumeControle/ControleMusique"]
-layout_mode = 2
-text = "Musique"
-horizontal_alignment = 1
+texture = ExtResource("3_sxlkx")
+stretch_mode = 3
 
-[node name="CurseurMusique" type="HSlider" parent="Controles/VolumeControle/ControleMusique"]
+[node name="CurseurMusique" type="HSlider" parent="Controles/VolumeControle"]
 layout_mode = 2
 size_flags_horizontal = 3
+tooltip_text = "Volume de la musique."
 min_value = -60.0
 max_value = 0.0
 script = ExtResource("4_ygvs3")
 nom_bus = "Musique"
 
-[node name="ControleBruits" type="VBoxContainer" parent="Controles/VolumeControle"]
+[node name="SeparateurSliders" type="VSeparator" parent="Controles/VolumeControle"]
+custom_minimum_size = Vector2(40, 0)
 layout_mode = 2
-size_flags_horizontal = 3
 
-[node name="EtiquetteMusique" type="Label" parent="Controles/VolumeControle/ControleBruits"]
+[node name="IconeBruits" type="TextureRect" parent="Controles/VolumeControle"]
+custom_minimum_size = Vector2(20, 0)
 layout_mode = 2
-text = "Bruitages"
-horizontal_alignment = 1
+texture = ExtResource("5_22vgw")
+stretch_mode = 3
 
-[node name="CurseurBruits" type="HSlider" parent="Controles/VolumeControle/ControleBruits"]
+[node name="CurseurBruits" type="HSlider" parent="Controles/VolumeControle"]
 layout_mode = 2
 size_flags_horizontal = 3
+tooltip_text = "Volume bruitages."
 min_value = -60.0
 max_value = 0.0
 script = ExtResource("4_ygvs3")