[gd_scene load_steps=2 format=3 uid="uid://dhud123"] [ext_resource type="Script" path="res://ui/hud.gd" id="1_hud"] [node name="HUD" type="CanvasLayer"] script = ExtResource("1_hud") [node name="MarginContainer" type="MarginContainer" parent="."] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 20 theme_override_constants/margin_top = 20 theme_override_constants/margin_right = 20 theme_override_constants/margin_bottom = 20 [node name="TopLeft" type="VBoxContainer" parent="MarginContainer"] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 0 theme_override_constants/separation = 10 [node name="TimeLabel" type="Label" parent="MarginContainer/TopLeft"] layout_mode = 2 theme_override_font_sizes/font_size = 24 text = "14:23" [node name="HealthBar" type="ProgressBar" parent="MarginContainer/TopLeft"] custom_minimum_size = Vector2(200, 30) layout_mode = 2 max_value = 100.0 value = 100.0 show_percentage = false [node name="HealthLabel" type="Label" parent="MarginContainer/TopLeft/HealthBar"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_font_sizes/font_size = 16 text = "HP: 100/100" horizontal_alignment = 1 vertical_alignment = 1 [node name="InventorySlots" type="HBoxContainer" parent="MarginContainer/TopLeft"] layout_mode = 2 theme_override_constants/separation = 10 [node name="Slot1" type="Panel" parent="MarginContainer/TopLeft/InventorySlots"] custom_minimum_size = Vector2(50, 50) layout_mode = 2 [node name="Slot2" type="Panel" parent="MarginContainer/TopLeft/InventorySlots"] custom_minimum_size = Vector2(50, 50) layout_mode = 2 [node name="Slot3" type="Panel" parent="MarginContainer/TopLeft/InventorySlots"] custom_minimum_size = Vector2(50, 50) layout_mode = 2 [node name="DialogueBox" type="PanelContainer" parent="MarginContainer"] visible = false layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 8 [node name="MarginContainer" type="MarginContainer" parent="MarginContainer/DialogueBox"] layout_mode = 2 theme_override_constants/margin_left = 15 theme_override_constants/margin_top = 15 theme_override_constants/margin_right = 15 theme_override_constants/margin_bottom = 15 [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/DialogueBox/MarginContainer"] custom_minimum_size = Vector2(800, 150) layout_mode = 2 [node name="SpeakerLabel" type="Label" parent="MarginContainer/DialogueBox/MarginContainer/VBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 18 text = "Character Name" [node name="DialogueLabel" type="Label" parent="MarginContainer/DialogueBox/MarginContainer/VBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 16 text = "This is where dialogue text will appear. Press Space to continue..." autowrap_mode = 3