reticle moves when firing, stunned enemies have stars now

This commit is contained in:
derek
2024-12-13 12:05:52 -06:00
parent b6a9e9a112
commit 9bb5332ba6
30 changed files with 629 additions and 84 deletions

View File

@@ -2,9 +2,9 @@
[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"]
[ext_resource type="Texture2D" uid="uid://dumgg4fq1ngbj" path="res://assets/UI/Crosshair/SVG/reticle_outer.svg" id="3_mgrwc"]
[ext_resource type="Texture2D" uid="uid://cpe2ehq1vtj25" path="res://assets/UI/Crosshair/SVG/reticle_inner.svg" id="4_61fkt"]
[ext_resource type="Texture2D" uid="uid://h2tp42xntorm" path="res://assets/UI/Crosshair/SVG/Stamina_White.svg" id="4_ooaul"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2hn4h"]
bg_color = Color(1, 1, 1, 0.129412)
@@ -42,10 +42,9 @@ offset_top = -247.09
offset_right = 244.975
offset_bottom = -142.09
grow_vertical = 0
theme = ExtResource("2_eqnx7")
theme_type_variation = &"TextShadow"
theme = ExtResource("1_22trs")
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 80
theme_override_font_sizes/font_size = 125
text = "$"
[node name="HealthBar" type="ProgressBar" parent="."]
@@ -104,37 +103,31 @@ value = 35.29
show_percentage = false
[node name="Crosshair" type="TextureRect" parent="." groups=["hud"]]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_tmj0x")
layout_mode = 0
offset_right = 396.0
offset_bottom = 396.0
texture = ExtResource("3_mgrwc")
expand_mode = 3
stretch_mode = 4
[node name="CrosshairCenter" type="TextureRect" parent="." groups=["hud"]]
layout_mode = 0
offset_right = 396.0
offset_bottom = 396.0
scale = Vector2(0.02, 0.02)
texture = ExtResource("4_61fkt")
expand_mode = 3
stretch_mode = 4
[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
layout_mode = 0
offset_right = 370.0
offset_bottom = 370.0
scale = Vector2(0.3, 0.3)
value = 49.0
fill_mode = 5
texture_progress = ExtResource("3_2injg")
texture_progress = ExtResource("4_ooaul")
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
@@ -162,15 +155,33 @@ theme_override_constants/separation = 10
[node name="Gun Name" type="Label" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme = ExtResource("2_eqnx7")
theme = ExtResource("1_22trs")
theme_type_variation = &"TextShadow"
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
text = "Gun Name"
horizontal_alignment = 2
[node name="Ammo" type="Label" parent="MarginContainer/VBoxContainer"]
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme = ExtResource("2_eqnx7")
size_flags_vertical = 3
theme = ExtResource("1_22trs")
theme_override_constants/separation = 50
alignment = 1
[node name="AmmoCurrent" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme = ExtResource("1_22trs")
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
text = "XX - XX"
text = "XXX"
horizontal_alignment = 2
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "-"
[node name="AmmoReserve" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme = ExtResource("1_22trs")
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
text = "YYY"
horizontal_alignment = 2