Add door interaction system with requirements and HUD integration

This commit is contained in:
2025-10-30 00:57:28 +01:00
parent 9c0cd3f549
commit 5ae8b6f08c
21 changed files with 337 additions and 14 deletions

View File

@@ -2,7 +2,7 @@
[ext_resource type="Script" uid="uid://c6nouigv5wsu1" path="res://Code/Presenters/HudPresenterComponent.cs" id="1_yd76s"]
[node name="PlayerHUD" type="Control" node_paths=PackedStringArray("_healthLabel", "_ammoLabel", "_weaponLabel")]
[node name="PlayerHUD" type="Control" node_paths=PackedStringArray("_healthLabel", "_ammoLabel", "_weaponLabel", "_interactLabel")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
@@ -13,6 +13,7 @@ script = ExtResource("1_yd76s")
_healthLabel = NodePath("MarginContainer/HBoxContainer/HealthLabel")
_ammoLabel = NodePath("MarginContainer/HBoxContainer/AmmoLabel")
_weaponLabel = NodePath("MarginContainer/HBoxContainer/WeaponLabel")
_interactLabel = NodePath("MarginContainer/Interact")
metadata/_custom_type_script = "uid://c6nouigv5wsu1"
[node name="MarginContainer" type="MarginContainer" parent="."]
@@ -44,3 +45,9 @@ uppercase = true
layout_mode = 2
text = "gun"
uppercase = true
[node name="Interact" type="Label" parent="MarginContainer"]
layout_mode = 2
size_flags_horizontal = 4
text = "INTERACT"
uppercase = true