feat: rebuild dark fantasy game HUD
This commit is contained in:
+184
-180
@@ -36,6 +36,14 @@
|
||||
[ext_resource type="PackedScene" path="res://scenes/ui/OptionsPanel.tscn" id="29_options"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/ui/HelpPanel.tscn" id="30_help"]
|
||||
|
||||
[ext_resource type="Theme" path="res://assets/ui/dark_fantasy/dark_fantasy_theme.tres" id="36_hud_theme"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/header_800x54.png" id="37_hud_header"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/portrait_roger.png" id="38_hud_portrait"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/illustration_equipement.png" id="39_hud_equipment"]
|
||||
[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"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBox_hud_panel"]
|
||||
bg_color = Color(0.035, 0.055, 0.09, 0.9)
|
||||
border_width_left = 2
|
||||
@@ -83,6 +91,40 @@ corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBox_play_frame"]
|
||||
bg_color = Color(0.008, 0.012, 0.018, 0.0)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
border_color = Color(0.67, 0.48, 0.19, 0.95)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBox_health_fill"]
|
||||
texture = ExtResource("40_hud_health")
|
||||
texture_margin_left = 4.0
|
||||
texture_margin_top = 4.0
|
||||
texture_margin_right = 4.0
|
||||
texture_margin_bottom = 4.0
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBox_focus_fill"]
|
||||
texture = ExtResource("41_hud_focus")
|
||||
texture_margin_left = 4.0
|
||||
texture_margin_top = 4.0
|
||||
texture_margin_right = 4.0
|
||||
texture_margin_bottom = 4.0
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBox_xp_fill_dark_fantasy"]
|
||||
texture = ExtResource("42_hud_xp")
|
||||
texture_margin_left = 4.0
|
||||
texture_margin_top = 4.0
|
||||
texture_margin_right = 4.0
|
||||
texture_margin_bottom = 4.0
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource("1_game")
|
||||
|
||||
@@ -175,32 +217,26 @@ script = ExtResource("4_hud")
|
||||
[node name="HelpPanel" parent="HUD" instance=ExtResource("30_help")]
|
||||
|
||||
[node name="AchievementToast" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -360.0
|
||||
offset_top = 18.0
|
||||
offset_right = 360.0
|
||||
offset_bottom = 48.0
|
||||
grow_horizontal = 2
|
||||
layout_mode = 0
|
||||
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
|
||||
|
||||
[node name="TitleLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -360.0
|
||||
offset_top = 48.0
|
||||
offset_right = 360.0
|
||||
offset_bottom = 74.0
|
||||
grow_horizontal = 2
|
||||
theme_override_colors/font_color = Color(0.75, 0.94, 0.55, 1)
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(0.95, 0.79, 0.36, 1)
|
||||
theme_override_font_sizes/font_size = 20
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[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"
|
||||
|
||||
[node name="ResponsiveLayout" type="Control" parent="HUD"]
|
||||
layout_mode = 3
|
||||
@@ -210,107 +246,130 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("36_hud_theme")
|
||||
|
||||
[node name="DarkBackdrop" type="Control" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="TopBar" type="Panel" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="HeaderOrnament" type="TextureRect" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("37_hud_header")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="LeftRail" type="Panel" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="PlayAreaFrame" type="Panel" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
show_behind_parent = true
|
||||
theme_override_styles/panel = SubResource("StyleBox_play_frame")
|
||||
|
||||
[node name="RightRail" type="Panel" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="CommandBar" type="Panel" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="StatsPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 12.0
|
||||
offset_right = 298.0
|
||||
offset_bottom = 250.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
|
||||
|
||||
[node name="LogPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -256.0
|
||||
offset_top = 12.0
|
||||
offset_right = -12.0
|
||||
offset_bottom = 170.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
|
||||
|
||||
[node name="PromptPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -280.0
|
||||
offset_top = -90.0
|
||||
offset_right = 280.0
|
||||
offset_bottom = -52.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBox_prompt_panel")
|
||||
|
||||
[node name="HelpPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 12.0
|
||||
offset_top = -42.0
|
||||
offset_right = -12.0
|
||||
offset_bottom = -12.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
|
||||
|
||||
[node name="QuickSlotStrip" type="PanelContainer" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
|
||||
|
||||
[node name="QuickSlotHint" type="Label" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(0.86, 0.78, 0.58, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "[1] Arme [2] Sort [3] Soin [4] Inventaire"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="PortraitIllustration" type="TextureRect" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("38_hud_portrait")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="EquipmentIllustration" type="TextureRect" parent="HUD/ResponsiveLayout"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("39_hud_equipment")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="PlayerHealthLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 26.0
|
||||
offset_right = 286.0
|
||||
offset_bottom = 46.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 0.78, 0.68, 1)
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Player HP: 12/12"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="HUD"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
max_value = 12.0
|
||||
value = 12.0
|
||||
show_percentage = false
|
||||
theme_override_styles/background = SubResource("StyleBox_xp_background")
|
||||
theme_override_styles/fill = SubResource("StyleBox_health_fill")
|
||||
|
||||
[node name="PlayerFocusLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 47.0
|
||||
offset_right = 286.0
|
||||
offset_bottom = 73.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(0.7, 0.8, 1, 1)
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Focus: 3/3"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="FocusBar" type="ProgressBar" parent="HUD"]
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
max_value = 3.0
|
||||
value = 3.0
|
||||
show_percentage = false
|
||||
theme_override_styles/background = SubResource("StyleBox_xp_background")
|
||||
theme_override_styles/fill = SubResource("StyleBox_focus_fill")
|
||||
|
||||
[node name="ExperienceBar" type="ProgressBar" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 74.0
|
||||
offset_right = 286.0
|
||||
offset_bottom = 94.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
theme_override_styles/background = SubResource("StyleBox_xp_background")
|
||||
theme_override_styles/fill = SubResource("StyleBox_xp_fill")
|
||||
theme_override_styles/fill = SubResource("StyleBox_xp_fill_dark_fantasy")
|
||||
show_percentage = false
|
||||
|
||||
[node name="ExperienceLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 30.0
|
||||
offset_top = 74.0
|
||||
offset_right = 282.0
|
||||
offset_bottom = 94.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(0.92, 0.97, 1, 1)
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.9)
|
||||
@@ -321,130 +380,75 @@ text = "Niveau 1 — XP 0/100"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="CharacterStatusLabel" type="Label" parent="HUD" groups=["hud_character_values"]]
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(0.75, 0.9, 0.72, 1)
|
||||
theme_override_font_sizes/font_size = 15
|
||||
text = "État : 12 PV • 3 Focus"
|
||||
autowrap_mode = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="GoldLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 96.0
|
||||
offset_right = 286.0
|
||||
offset_bottom = 122.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
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"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="QuestTrackerLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 123.0
|
||||
offset_right = 286.0
|
||||
offset_bottom = 143.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(0.65, 1, 0.72, 1)
|
||||
theme_override_font_sizes/font_size = 14
|
||||
text = "Quêtes : aucune"
|
||||
autowrap_mode = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="SpellLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 144.0
|
||||
offset_right = 286.0
|
||||
offset_bottom = 164.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(0.82, 0.7, 1, 1)
|
||||
theme_override_font_sizes/font_size = 14
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="EnemyHealthLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 165.0
|
||||
offset_right = 286.0
|
||||
offset_bottom = 191.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 0.8, 0.7, 1)
|
||||
theme_override_font_sizes/font_size = 18
|
||||
theme_override_font_sizes/font_size = 16
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="CombatSummaryLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 192.0
|
||||
offset_right = 286.0
|
||||
offset_bottom = 215.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_font_sizes/font_size = 15
|
||||
autowrap_mode = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="DeadlineLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 26.0
|
||||
offset_top = 216.0
|
||||
offset_right = 286.0
|
||||
offset_bottom = 246.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 0.76, 0.4, 1)
|
||||
theme_override_font_sizes/font_size = 14
|
||||
autowrap_mode = 2
|
||||
clip_text = true
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="EventLog" type="RichTextLabel" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -244.0
|
||||
offset_top = 22.0
|
||||
offset_right = -24.0
|
||||
offset_bottom = 158.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
layout_mode = 0
|
||||
mouse_filter = 2
|
||||
bbcode_enabled = false
|
||||
fit_content = false
|
||||
theme_override_colors/default_color = Color(1, 1, 0.8, 1)
|
||||
theme_override_font_sizes/normal_font_size = 14
|
||||
|
||||
[node name="ContextPromptLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -266.0
|
||||
offset_top = -85.0
|
||||
offset_right = 266.0
|
||||
offset_bottom = -57.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
[node name="ContextPromptLabel" type="Label" parent="HUD" groups=["hud_command_hints"]]
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 0.92, 0.63, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HelpLabel" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 28.0
|
||||
offset_top = -37.0
|
||||
offset_right = -28.0
|
||||
offset_bottom = -17.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
[node name="HelpLabel" type="Label" parent="HUD" groups=["hud_command_hints"]]
|
||||
layout_mode = 0
|
||||
theme_override_colors/font_color = Color(0.82, 0.9, 1, 1)
|
||||
theme_override_font_sizes/font_size = 14
|
||||
text = "Déplacer : ZQSD / Flèches (nord-est : pavé num. 9) • Interagir : Espace ou E • Distance : F • Familier : K • Sauvegarder : V / Ctrl+S • Aide : F1"
|
||||
clip_text = true
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
Reference in New Issue
Block a user