more UI tweaks

This commit is contained in:
Derek
2024-12-09 08:32:15 -06:00
parent 81f86396e0
commit 6c16607956
38 changed files with 795 additions and 46 deletions

106
hud.tscn
View File

@@ -1,16 +1,21 @@
[gd_scene load_steps=8 format=3 uid="uid://br882tlh3cfwu"]
[gd_scene load_steps=9 format=3 uid="uid://br882tlh3cfwu"]
[ext_resource type="Script" path="res://scripts/hud.gd" id="1_7hukm"]
[ext_resource type="Theme" uid="uid://clek42ofxr45f" path="res://DefaultTheme.tres" id="1_22trs"]
[ext_resource type="Theme" uid="uid://buma708jpxqrn" path="res://Clean_theme.tres" id="2_eqnx7"]
[ext_resource type="Texture2D" uid="uid://b8r7mp1r4xqv1" path="res://assets/UI/Edit Files/0.5x/Stamina_White@0.5x.png" id="3_2injg"]
[ext_resource type="Texture2D" uid="uid://mcay8s80071h" path="res://assets/UI/Crosshair/SVG/Reticle 1_svg.svg" id="3_tmj0x"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2hn4h"]
bg_color = Color(0, 0, 0, 0.25098)
expand_margin_left = 2.0
expand_margin_top = 2.0
expand_margin_right = 2.0
expand_margin_bottom = 2.0
bg_color = Color(1, 1, 1, 0.129412)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
expand_margin_left = 10.0
expand_margin_top = 10.0
expand_margin_right = 10.0
expand_margin_bottom = 10.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_axtce"]
bg_color = Color(1, 1, 1, 0.498039)
@@ -27,6 +32,39 @@ grow_vertical = 2
script = ExtResource("1_7hukm")
radial_stamina = true
[node name="Money" type="Label" parent="."]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 44.975
offset_top = -247.09
offset_right = 244.975
offset_bottom = -142.09
grow_vertical = 0
theme = ExtResource("2_eqnx7")
theme_type_variation = &"TextShadow"
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 80
text = "$"
[node name="HealthBar" type="ProgressBar" parent="."]
custom_minimum_size = Vector2(300, 50)
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 50.38
offset_top = -105.315
offset_right = 350.38
offset_bottom = -55.315
grow_vertical = 0
theme = ExtResource("1_22trs")
theme_override_styles/background = SubResource("StyleBoxFlat_2hn4h")
theme_override_styles/fill = SubResource("StyleBoxFlat_axtce")
value = 30.45
show_percentage = false
[node name="LeftMargin" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 2
@@ -44,40 +82,6 @@ theme_override_constants/margin_bottom = 50
layout_mode = 2
theme_override_constants/separation = 10
[node name="Money" type="Label" parent="LeftMargin/VBoxContainer"]
layout_mode = 2
theme = ExtResource("1_22trs")
theme_type_variation = &"TextShadow"
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
text = "$"
[node name="HealthBar" type="ProgressBar" parent="LeftMargin/VBoxContainer"]
custom_minimum_size = Vector2(300, 50)
layout_mode = 2
theme = ExtResource("1_22trs")
theme_override_styles/background = SubResource("StyleBoxFlat_2hn4h")
theme_override_styles/fill = SubResource("StyleBoxFlat_axtce")
value = 30.45
show_percentage = false
[node name="StaminaBar" type="TextureProgressBar" parent="."]
material = SubResource("CanvasItemMaterial_ytfhs")
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -23.5
offset_top = -23.5
offset_right = 23.5
offset_bottom = 23.5
grow_horizontal = 2
grow_vertical = 2
value = 49.0
fill_mode = 5
texture_progress = ExtResource("3_2injg")
[node name="StaminaBar2" type="ProgressBar" parent="."]
custom_minimum_size = Vector2(30, 10)
layout_mode = 1
@@ -114,6 +118,24 @@ grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_tmj0x")
[node name="StaminaBar" type="TextureProgressBar" parent="."]
material = SubResource("CanvasItemMaterial_ytfhs")
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -23.5
offset_top = -23.5
offset_right = 23.5
offset_bottom = 23.5
grow_horizontal = 2
grow_vertical = 2
value = 49.0
fill_mode = 5
texture_progress = ExtResource("3_2injg")
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 3
@@ -140,7 +162,7 @@ theme_override_constants/separation = 10
[node name="Gun Name" type="Label" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme = ExtResource("1_22trs")
theme = ExtResource("2_eqnx7")
theme_type_variation = &"TextShadow"
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
text = "Gun Name"
@@ -148,7 +170,7 @@ horizontal_alignment = 2
[node name="Ammo" type="Label" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme = ExtResource("1_22trs")
theme = ExtResource("2_eqnx7")
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
text = "XX - XX"
horizontal_alignment = 1