Healthbar redesign

This commit is contained in:
MaddoScientisto 2025-03-16 15:04:06 +01:00
commit ca835e1bd9
11 changed files with 206 additions and 24 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=27 format=3 uid="uid://dkwi1hu1bixoe"]
[gd_scene load_steps=31 format=3 uid="uid://dkwi1hu1bixoe"]
[ext_resource type="Script" uid="uid://baf6pxbvhqmjk" path="res://Scripts/Hud.cs" id="1_m0hb0"]
[ext_resource type="FontFile" uid="uid://ccm3u37q1hvux" path="res://fonts/Xolonium-Regular.ttf" id="2_0xmx2"]
@ -12,7 +12,11 @@
[ext_resource type="FontFile" uid="uid://coek1e2q257pq" path="res://fonts/at01.ttf" id="6_sk1eq"]
[ext_resource type="Theme" uid="uid://dnsadvmunm76k" path="res://Resources/Styles/MainMenuButtons.tres" id="9_sx5r0"]
[ext_resource type="Script" uid="uid://bobo5f4ud60qw" path="res://Scripts/UI/ItemsMenu.cs" id="10_oflr6"]
[ext_resource type="Texture2D" uid="uid://teydwmu6h04b" path="res://Sprites/UI/HealthBar.png" id="10_sjdna"]
[ext_resource type="Script" uid="uid://com5b4ffsmj7s" path="res://Scripts/UI/InventoryMenu.cs" id="11_7pulb"]
[ext_resource type="Texture2D" uid="uid://b4itkpf7s61p3" path="res://Sprites/UI/HealthBar_Foreground.png" id="11_86ddi"]
[ext_resource type="Texture2D" uid="uid://bhmtp6i2g2f1c" path="res://Sprites/UI/ShieldBar.png" id="12_n0pka"]
[ext_resource type="Texture2D" uid="uid://cihsd5rw8i5xm" path="res://Sprites/UI/ShieldBar_Foreground.png" id="13_j6myr"]
[ext_resource type="StyleBox" uid="uid://24hh6h4juk3r" path="res://Resources/Styles/PixelStyleBoxRed_SquareBackground.tres" id="13_sjdna"]
[ext_resource type="Texture2D" uid="uid://d4lqqgx8yvp5" path="res://Sprites/Portraits/Status_Cirno.png" id="15_bkqle"]
[ext_resource type="Script" uid="uid://cwd3sksjqpuy3" path="res://Scripts/Utils/FpsCounterLabel.cs" id="15_x61tu"]
@ -52,23 +56,45 @@ animations = [{
"speed": 5.0
}]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wu6au"]
bg_color = Color(0.437742, 0.0512416, 0.0286274, 1)
border_color = Color(0.197934, 0.0027957, 1.8049e-08, 1)
anti_aliasing = false
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_86ddi"]
texture = ExtResource("10_sjdna")
texture_margin_left = 3.0
texture_margin_top = 3.0
texture_margin_right = 3.0
texture_margin_bottom = 3.0
expand_margin_left = 1.0
expand_margin_top = 1.0
expand_margin_right = 1.0
expand_margin_bottom = 1.0
axis_stretch_horizontal = 2
axis_stretch_vertical = 2
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5f4mf"]
bg_color = Color(0.958101, 0.255223, 3.85046e-07, 1)
anti_aliasing = false
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_qpigx"]
texture = ExtResource("11_86ddi")
texture_margin_left = 3.0
texture_margin_top = 3.0
texture_margin_right = 3.0
texture_margin_bottom = 3.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_crjx4"]
bg_color = Color(0.120626, 7.70092e-07, 0.682086, 1)
border_color = Color(0.197934, 0.0027957, 1.8049e-08, 1)
anti_aliasing = false
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_h6xwv"]
texture = ExtResource("12_n0pka")
texture_margin_left = 3.0
texture_margin_top = 3.0
texture_margin_right = 3.0
texture_margin_bottom = 3.0
expand_margin_left = 1.0
expand_margin_top = 1.0
expand_margin_right = 1.0
expand_margin_bottom = 1.0
axis_stretch_horizontal = 2
axis_stretch_vertical = 2
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rxnbp"]
bg_color = Color(0.338981, 0.507716, 0.996646, 1)
anti_aliasing = false
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_5cvcb"]
texture = ExtResource("13_j6myr")
texture_margin_left = 3.0
texture_margin_top = 3.0
texture_margin_right = 3.0
texture_margin_bottom = 3.0
[sub_resource type="LabelSettings" id="LabelSettings_bkqle"]
font_color = Color(0, 0.737255, 0.113725, 1)
@ -143,12 +169,13 @@ theme_override_constants/separation = 0
layout_mode = 2
[node name="HealthBar" type="ProgressBar" parent="VBoxContainer/HealthBarContainer"]
custom_minimum_size = Vector2(32, 8)
custom_minimum_size = Vector2(34, 8)
layout_mode = 2
size_flags_vertical = 4
theme_override_styles/background = SubResource("StyleBoxFlat_wu6au")
theme_override_styles/fill = SubResource("StyleBoxFlat_5f4mf")
theme_override_styles/background = SubResource("StyleBoxTexture_86ddi")
theme_override_styles/fill = SubResource("StyleBoxTexture_qpigx")
value = 50.0
rounded = true
show_percentage = false
[node name="HealthLabel" type="Label" parent="VBoxContainer/HealthBarContainer"]
@ -161,11 +188,11 @@ vertical_alignment = 1
layout_mode = 2
[node name="ShieldBar" type="ProgressBar" parent="VBoxContainer/ShieldBarContainer"]
custom_minimum_size = Vector2(32, 8)
custom_minimum_size = Vector2(34, 8)
layout_mode = 2
size_flags_vertical = 4
theme_override_styles/background = SubResource("StyleBoxFlat_crjx4")
theme_override_styles/fill = SubResource("StyleBoxFlat_rxnbp")
theme_override_styles/background = SubResource("StyleBoxTexture_h6xwv")
theme_override_styles/fill = SubResource("StyleBoxTexture_5cvcb")
value = 50.0
show_percentage = false
@ -199,6 +226,7 @@ offset_right = 226.0
offset_bottom = 144.0
[node name="InventoryMenu" type="TabContainer" parent="."]
visible = false
offset_left = 16.0
offset_top = 9.0
offset_right = 305.0