[gd_scene load_steps=3 format=3 uid="uid://b0hud00001"]

[ext_resource type="Script" path="res://scenes/hud/hud.gd" id="1"]
[ext_resource type="Script" path="res://scenes/hud/minimap.gd" id="2"]

[node name="HUD" type="CanvasLayer"]
script = ExtResource("1")

[node name="VitalsPanel" type="PanelContainer" parent="."]
offset_left = 12.0
offset_top = 12.0
offset_right = 312.0
offset_bottom = 130.0

[node name="VBox" type="VBoxContainer" parent="VitalsPanel"]
layout_mode = 2

[node name="HpRow" type="HBoxContainer" parent="VitalsPanel/VBox"]
layout_mode = 2

[node name="HpBar" type="ProgressBar" parent="VitalsPanel/VBox/HpRow"]
unique_name_in_owner = true
custom_minimum_size = Vector2(220, 18)
layout_mode = 2
max_value = 100.0
value = 100.0

[node name="HpLabel" type="Label" parent="VitalsPanel/VBox/HpRow"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
text = "100/100"
horizontal_alignment = 1

[node name="ShieldRow" type="HBoxContainer" parent="VitalsPanel/VBox"]
layout_mode = 2

[node name="ShieldBar" type="ProgressBar" parent="VitalsPanel/VBox/ShieldRow"]
unique_name_in_owner = true
custom_minimum_size = Vector2(220, 14)
layout_mode = 2
max_value = 100.0
value = 0.0

[node name="ShieldLabel" type="Label" parent="VitalsPanel/VBox/ShieldRow"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
text = "0/0"
horizontal_alignment = 1

[node name="XpRow" type="HBoxContainer" parent="VitalsPanel/VBox"]
layout_mode = 2

[node name="LevelLabel" type="Label" parent="VitalsPanel/VBox/XpRow"]
unique_name_in_owner = true
layout_mode = 2
text = "Lv 1"

[node name="XpBar" type="ProgressBar" parent="VitalsPanel/VBox/XpRow"]
unique_name_in_owner = true
custom_minimum_size = Vector2(180, 12)
layout_mode = 2
size_flags_horizontal = 3
max_value = 50.0
value = 0.0

[node name="VillageRow" type="HBoxContainer" parent="VitalsPanel/VBox"]
layout_mode = 2

[node name="VillageLabelStatic" type="Label" parent="VitalsPanel/VBox/VillageRow"]
layout_mode = 2
text = "Village"

[node name="VillageBar" type="ProgressBar" parent="VitalsPanel/VBox/VillageRow"]
unique_name_in_owner = true
custom_minimum_size = Vector2(180, 12)
layout_mode = 2
size_flags_horizontal = 3
max_value = 1000.0
value = 1000.0

[node name="WaveBox" type="PanelContainer" parent="."]
anchor_left = 0.5
anchor_right = 0.5
offset_left = -120.0
offset_top = 12.0
offset_right = 120.0
offset_bottom = 64.0

[node name="VBox" type="VBoxContainer" parent="WaveBox"]
layout_mode = 2

[node name="WaveLabel" type="Label" parent="WaveBox/VBox"]
unique_name_in_owner = true
layout_mode = 2
horizontal_alignment = 1
text = "Wave 1"
theme_override_font_sizes/font_size = 18

[node name="WaveTimer" type="Label" parent="WaveBox/VBox"]
unique_name_in_owner = true
layout_mode = 2
horizontal_alignment = 1
text = "10:00"

[node name="MinimapPanel" type="PanelContainer" parent="."]
anchor_left = 1.0
anchor_right = 1.0
offset_left = -212.0
offset_top = 12.0
offset_right = -12.0
offset_bottom = 212.0

[node name="MinimapCanvas" type="Control" parent="MinimapPanel"]
unique_name_in_owner = true
layout_mode = 2
script = ExtResource("2")
world_size = 80.0

[node name="AbilityBox" type="HBoxContainer" parent="."]
unique_name_in_owner = true
anchor_left = 0.5
anchor_right = 0.5
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = -200.0
offset_top = -76.0
offset_right = 280.0
offset_bottom = -12.0
theme_override_constants/separation = 6

[node name="RoleIcon" type="Panel" parent="AbilityBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(56, 56)
layout_mode = 2

[node name="RoleLabel" type="Label" parent="AbilityBox/RoleIcon"]
unique_name_in_owner = true
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
text = "D"
horizontal_alignment = 1
vertical_alignment = 1
theme_override_font_sizes/font_size = 28

[node name="A1" type="Button" parent="AbilityBox"]
custom_minimum_size = Vector2(56, 56)
layout_mode = 2
text = "1"

[node name="A2" type="Button" parent="AbilityBox"]
custom_minimum_size = Vector2(56, 56)
layout_mode = 2
text = "2"

[node name="A3" type="Button" parent="AbilityBox"]
custom_minimum_size = Vector2(56, 56)
layout_mode = 2
text = "3"

[node name="A4" type="Button" parent="AbilityBox"]
custom_minimum_size = Vector2(56, 56)
layout_mode = 2
text = "4"

[node name="ChatPanel" type="PanelContainer" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 12.0
offset_top = -200.0
offset_right = 360.0
offset_bottom = -12.0

[node name="VBox" type="VBoxContainer" parent="ChatPanel"]
layout_mode = 2

[node name="ChatLog" type="RichTextLabel" parent="ChatPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 140)
layout_mode = 2
size_flags_vertical = 3
bbcode_enabled = true
scroll_following = true
scroll_active = true

[node name="ChatInput" type="LineEdit" parent="ChatPanel/VBox"]
unique_name_in_owner = true
layout_mode = 2
placeholder_text = "Press Y to chat, Enter to send"

[node name="DeathOverlay" type="Control" parent="."]
unique_name_in_owner = true
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0

[node name="Background" type="ColorRect" parent="DeathOverlay"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0.0, 0.0, 0.0, 0.5)

[node name="DeathLabel" type="Label" parent="DeathOverlay"]
unique_name_in_owner = true
anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = -200.0
offset_top = -40.0
offset_right = 200.0
offset_bottom = 40.0
text = "Respawning..."
horizontal_alignment = 1
vertical_alignment = 1
theme_override_font_sizes/font_size = 32

[node name="InventoryPanel" type="PanelContainer" parent="."]
unique_name_in_owner = true
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -200.0
offset_top = -200.0
offset_right = 200.0
offset_bottom = 200.0

[node name="VBox" type="VBoxContainer" parent="InventoryPanel"]
layout_mode = 2

[node name="Title" type="Label" parent="InventoryPanel/VBox"]
layout_mode = 2
text = "Inventory (I)"
horizontal_alignment = 1

[node name="InventoryList" type="VBoxContainer" parent="InventoryPanel/VBox"]
unique_name_in_owner = true
layout_mode = 2

[node name="CraftingPanel" type="PanelContainer" parent="."]
unique_name_in_owner = true
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -260.0
offset_top = -240.0
offset_right = 260.0
offset_bottom = 240.0

[node name="VBox" type="VBoxContainer" parent="CraftingPanel"]
layout_mode = 2

[node name="Title" type="Label" parent="CraftingPanel/VBox"]
layout_mode = 2
text = "Crafting (C)"
horizontal_alignment = 1

[node name="CraftingList" type="VBoxContainer" parent="CraftingPanel/VBox"]
unique_name_in_owner = true
layout_mode = 2

[node name="BuildPanel" type="PanelContainer" parent="."]
unique_name_in_owner = true
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 12.0
offset_top = -260.0
offset_right = 360.0
offset_bottom = -210.0

[node name="VBox" type="VBoxContainer" parent="BuildPanel"]
layout_mode = 2

[node name="Title" type="Label" parent="BuildPanel/VBox"]
layout_mode = 2
text = "Build Mode (B)"
horizontal_alignment = 1

[node name="BuildList" type="HBoxContainer" parent="BuildPanel/VBox"]
unique_name_in_owner = true
layout_mode = 2

[node name="DialogPanel" type="PanelContainer" parent="."]
unique_name_in_owner = true
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -300.0
offset_top = -200.0
offset_right = 300.0
offset_bottom = 200.0

[node name="VBox" type="VBoxContainer" parent="DialogPanel"]
layout_mode = 2

[node name="DialogNpc" type="Label" parent="DialogPanel/VBox"]
unique_name_in_owner = true
layout_mode = 2
text = "NPC"
horizontal_alignment = 1
theme_override_font_sizes/font_size = 22

[node name="DialogLog" type="RichTextLabel" parent="DialogPanel/VBox"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 280)
layout_mode = 2
size_flags_vertical = 3
bbcode_enabled = true
scroll_following = true
scroll_active = true

[node name="DialogInput" type="LineEdit" parent="DialogPanel/VBox"]
unique_name_in_owner = true
layout_mode = 2
placeholder_text = "Frage stellen, Enter senden"

[node name="MapPanel" type="Control" parent="."]
unique_name_in_owner = true
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0

[node name="Background" type="ColorRect" parent="MapPanel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0.0, 0.0, 0.0, 0.7)

[node name="MapCanvas" type="Control" parent="MapPanel"]
unique_name_in_owner = true
anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = -300.0
offset_top = -300.0
offset_right = 300.0
offset_bottom = 300.0
script = ExtResource("2")
world_size = 200.0
draw_labels = true

[node name="PausePanel" type="PanelContainer" parent="."]
unique_name_in_owner = true
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -150.0
offset_top = -120.0
offset_right = 150.0
offset_bottom = 120.0

[node name="VBox" type="VBoxContainer" parent="PausePanel"]
layout_mode = 2

[node name="Title" type="Label" parent="PausePanel/VBox"]
layout_mode = 2
text = "Paused"
horizontal_alignment = 1
theme_override_font_sizes/font_size = 28

[node name="Resume" type="Button" parent="PausePanel/VBox"]
layout_mode = 2
text = "Resume"

[node name="QuitToMenu" type="Button" parent="PausePanel/VBox"]
layout_mode = 2
text = "Quit to Menu"

[node name="GameOverOverlay" type="Control" parent="."]
unique_name_in_owner = true
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0

[node name="Background" type="ColorRect" parent="GameOverOverlay"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0.2, 0.0, 0.0, 0.8)

[node name="VBox" type="VBoxContainer" parent="GameOverOverlay"]
anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = -200.0
offset_top = -100.0
offset_right = 200.0
offset_bottom = 100.0

[node name="Title" type="Label" parent="GameOverOverlay/VBox"]
layout_mode = 2
text = "GAME OVER"
horizontal_alignment = 1
theme_override_font_sizes/font_size = 48

[node name="Restart" type="Button" parent="GameOverOverlay/VBox"]
layout_mode = 2
text = "Back to Main Menu"

[connection signal="pressed" from="PausePanel/VBox/Resume" to="." method="_on_resume_pressed"]
[connection signal="pressed" from="PausePanel/VBox/QuitToMenu" to="." method="_on_quit_pressed"]
[connection signal="pressed" from="GameOverOverlay/VBox/Restart" to="." method="_on_game_over_restart"]
