fix: refine character HUD and title presentation

This commit is contained in:
goose
2026-10-09 12:44:09 -04:00
parent c410f830e3
commit bc67e5ed88
8 changed files with 181 additions and 103 deletions
+38 -8
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=24 format=3]
[gd_scene load_steps=25 format=3]
[ext_resource type="Script" path="res://scripts/game/game.gd" id="1_game"]
[ext_resource type="Script" path="res://scripts/presentation/map_renderer.gd" id="2_map"]
@@ -43,6 +43,7 @@
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/jauge_vie_pleine.png" id="40_hud_health"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/jauge_focus_pleine.png" id="41_hud_focus"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/jauge_xp_pleine.png" id="42_hud_xp"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/gold_coin.svg" id="43_hud_gold_coin"]
[sub_resource type="StyleBoxTexture" id="StyleBox_hud_panel"]
texture = ExtResource("37_hud_panel")
@@ -234,21 +235,42 @@ theme_override_colors/font_color = Color(1, 0.82, 0.42, 1)
theme_override_font_sizes/font_size = 18
horizontal_alignment = 1
vertical_alignment = 1
visible = false
[node name="TitleLabel" type="Label" parent="HUD"]
layout_mode = 0
theme_override_colors/font_color = Color(0.95, 0.79, 0.36, 1)
theme_override_font_sizes/font_size = 22
horizontal_alignment = 1
vertical_alignment = 1
text = "Étage 0"
[node name="TitleNotificationLabel" type="Label" parent="HUD"]
layout_mode = 0
visible = false
theme_override_colors/font_color = Color(1, 0.88, 0.52, 1)
theme_override_colors/font_outline_color = Color(0.06, 0.035, 0.015, 1)
theme_override_constants/outline_size = 3
theme_override_font_sizes/font_size = 20
horizontal_alignment = 1
vertical_alignment = 1
[node name="TitleNotificationTimer" type="Timer" parent="HUD"]
wait_time = 5.0
one_shot = true
[node name="AchievementToastTimer" type="Timer" parent="HUD"]
wait_time = 5.0
one_shot = true
[node name="HeaderValuesLabel" type="Label" parent="HUD" groups=["hud_header_values"]]
layout_mode = 0
theme_override_colors/font_color = Color(0.86, 0.78, 0.58, 1)
theme_override_font_sizes/font_size = 16
horizontal_alignment = 1
vertical_alignment = 1
text = "Sans-Nom • Étage 0 • Salle inconnue • 0 cases explorées"
text = ""
visible = false
[node name="ResponsiveLayout" type="Control" parent="HUD"]
layout_mode = 3
@@ -340,10 +362,10 @@ mouse_filter = 2
theme_override_colors/font_color = Color(0.96, 0.9, 0.7, 1)
theme_override_colors/font_outline_color = Color(0.06, 0.035, 0.015, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.85)
theme_override_constants/outline_size = 2
theme_override_constants/outline_size = 3
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 2
theme_override_font_sizes/font_size = 16
theme_override_font_sizes/font_size = 22
text = "PERSONNAGE"
vertical_alignment = 1
@@ -400,10 +422,10 @@ mouse_filter = 2
theme_override_colors/font_color = Color(0.96, 0.9, 0.7, 1)
theme_override_colors/font_outline_color = Color(0.06, 0.035, 0.015, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.85)
theme_override_constants/outline_size = 2
theme_override_constants/outline_size = 3
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 2
theme_override_font_sizes/font_size = 16
theme_override_font_sizes/font_size = 22
text = "JOURNAL"
vertical_alignment = 1
@@ -466,7 +488,8 @@ layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(0.96, 0.84, 0.48, 1)
theme_override_font_sizes/font_size = 21
text = "Sans-Nom"
text = ""
visible = false
vertical_alignment = 1
[node name="CharacterLevelLabel" type="Label" parent="HUD/ResponsiveLayout" groups=["hud_character_values"]]
@@ -536,11 +559,18 @@ text = "État : 12 PV • 3 Focus"
autowrap_mode = 2
vertical_alignment = 1
[node name="GoldIcon" type="TextureRect" parent="HUD"]
layout_mode = 0
mouse_filter = 2
texture = ExtResource("43_hud_gold_coin")
expand_mode = 1
stretch_mode = 5
[node name="GoldLabel" type="Label" parent="HUD"]
layout_mode = 0
theme_override_colors/font_color = Color(1, 0.84, 0.35, 1)
theme_override_font_sizes/font_size = 18
text = "Or : 0"
text = "0"
vertical_alignment = 1
[node name="QuestTrackerLabel" type="Label" parent="HUD"]
+27 -28
View File
@@ -1,18 +1,15 @@
[gd_scene load_steps=3 format=3]
[gd_scene load_steps=4 format=3]
[ext_resource type="Script" path="res://scripts/presentation/character_panel.gd" id="1_character"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/panel_64x64_nine_patch_source.png" id="2_panel"]
[sub_resource type="StyleBoxFlat" id="StyleBox_character_panel"]
bg_color = Color(0.035, 0.055, 0.09, 0.97)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.66, 0.82, 0.42, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[sub_resource type="StyleBoxTexture" id="StyleBox_character_panel"]
texture = ExtResource("2_panel")
texture_margin_left = 10.0
texture_margin_top = 10.0
texture_margin_right = 10.0
texture_margin_bottom = 10.0
modulate_color = Color(0.22, 0.2, 0.16, 0.98)
[node name="CharacterPanel" type="PanelContainer"]
visible = false
@@ -22,10 +19,10 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -220.0
offset_top = -170.0
offset_right = 220.0
offset_bottom = 170.0
offset_left = -360.0
offset_top = -320.0
offset_right = 360.0
offset_bottom = 320.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_character_panel")
@@ -36,13 +33,15 @@ layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -185.0
offset_top = 18.0
offset_right = 185.0
offset_bottom = 46.0
offset_left = -310.0
offset_top = 22.0
offset_right = 310.0
offset_bottom = 54.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.75, 0.94, 0.55, 1)
theme_override_font_sizes/font_size = 21
theme_override_colors/font_color = Color(1, 0.88, 0.52, 1)
theme_override_colors/font_outline_color = Color(0.08, 0.045, 0.015, 1)
theme_override_constants/outline_size = 3
theme_override_font_sizes/font_size = 24
horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."]
@@ -50,11 +49,11 @@ layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 62.0
offset_right = -30.0
offset_bottom = -24.0
offset_left = 42.0
offset_top = 76.0
offset_right = -42.0
offset_bottom = -30.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 17
theme_override_colors/default_color = Color(0.95, 0.93, 0.8, 1)
theme_override_font_sizes/normal_font_size = 18