feat: improve FOV readability and compact HUD

This commit is contained in:
goose
2026-10-01 21:48:33 -04:00
parent df1451a45a
commit b5e520a682
11 changed files with 240 additions and 40 deletions
+36 -31
View File
@@ -54,6 +54,7 @@ script = ExtResource("3_actor")
[node name="Enemies" type="Node2D" parent="World"]
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(2, 2)
position_smoothing_enabled = false
[node name="HUD" type="CanvasLayer" parent="."]
@@ -74,8 +75,8 @@ layout_mode = 1
anchors_preset = 0
offset_left = 12.0
offset_top = 12.0
offset_right = 326.0
offset_bottom = 116.0
offset_right = 248.0
offset_bottom = 94.0
grow_horizontal = 0
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
@@ -85,10 +86,10 @@ layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -344.0
offset_left = -256.0
offset_top = 12.0
offset_right = -12.0
offset_bottom = 278.0
offset_bottom = 170.0
grow_horizontal = 0
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
@@ -96,12 +97,14 @@ theme_override_styles/panel = SubResource("StyleBox_hud_panel")
[node name="PromptPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = 332.0
offset_top = -110.0
offset_right = -332.0
offset_bottom = -62.0
offset_left = -280.0
offset_top = -90.0
offset_right = 280.0
offset_bottom = -52.0
grow_horizontal = 2
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBox_prompt_panel")
@@ -113,7 +116,7 @@ anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 12.0
offset_top = -50.0
offset_top = -42.0
offset_right = -12.0
offset_bottom = -12.0
grow_horizontal = 2
@@ -124,9 +127,9 @@ theme_override_styles/panel = SubResource("StyleBox_hud_panel")
layout_mode = 1
anchors_preset = 0
offset_left = 26.0
offset_top = 20.0
offset_right = 312.0
offset_bottom = 44.0
offset_top = 26.0
offset_right = 236.0
offset_bottom = 46.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(1, 1, 1, 1)
@@ -137,8 +140,8 @@ layout_mode = 1
anchors_preset = 0
offset_left = 26.0
offset_top = 48.0
offset_right = 312.0
offset_bottom = 72.0
offset_right = 236.0
offset_bottom = 68.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(1, 0.8, 0.7, 1)
@@ -148,9 +151,9 @@ theme_override_font_sizes/font_size = 18
layout_mode = 1
anchors_preset = 0
offset_left = 26.0
offset_top = 78.0
offset_right = 312.0
offset_bottom = 100.0
offset_top = 70.0
offset_right = 236.0
offset_bottom = 90.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
@@ -161,10 +164,10 @@ layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -330.0
offset_top = 24.0
offset_right = -26.0
offset_bottom = 266.0
offset_left = -244.0
offset_top = 22.0
offset_right = -24.0
offset_bottom = 158.0
grow_horizontal = 0
grow_vertical = 0
bbcode_enabled = false
@@ -175,16 +178,18 @@ theme_override_font_sizes/normal_font_size = 14
[node name="ContextPromptLabel" type="Label" parent="HUD"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = 348.0
offset_top = -101.0
offset_right = -348.0
offset_bottom = -71.0
offset_left = -266.0
offset_top = -85.0
offset_right = 266.0
offset_bottom = -57.0
grow_horizontal = 2
grow_vertical = 0
theme_override_colors/font_color = Color(1, 0.92, 0.63, 1)
theme_override_font_sizes/font_size = 18
theme_override_font_sizes/font_size = 16
horizontal_alignment = 1
vertical_alignment = 1
@@ -195,13 +200,13 @@ anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 28.0
offset_top = -43.0
offset_top = -37.0
offset_right = -28.0
offset_bottom = -19.0
offset_bottom = -17.0
grow_horizontal = 2
grow_vertical = 0
theme_override_colors/font_color = Color(0.82, 0.9, 1, 1)
theme_override_font_sizes/font_size = 16
theme_override_font_sizes/font_size = 14
text = "Déplacer : ZQSD / Flèches • Interagir : Espace ou E"
horizontal_alignment = 1
vertical_alignment = 1