Files
cryptonhym-thunder/Objects/UI/player_hud.tscn

54 lines
1.7 KiB
Plaintext

[gd_scene load_steps=2 format=3 uid="uid://b36xmciamjyc0"]
[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", "_interactLabel")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
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="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 8
theme_override_constants/margin_top = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 8
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
layout_mode = 2
[node name="HealthLabel" type="Label" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
text = "health 100"
uppercase = true
[node name="AmmoLabel" type="Label" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
text = "ammo 100"
uppercase = true
[node name="WeaponLabel" type="Label" parent="MarginContainer/HBoxContainer"]
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