summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'scenes')
-rw-r--r--scenes/Game.tscn4
-rw-r--r--scenes/hud.tscn67
-rw-r--r--scenes/ui.tscn39
3 files changed, 69 insertions, 41 deletions
diff --git a/scenes/Game.tscn b/scenes/Game.tscn
index ef60cc2..a409a23 100644
--- a/scenes/Game.tscn
+++ b/scenes/Game.tscn
@@ -7,7 +7,7 @@
[ext_resource type="Script" uid="uid://dwyr067lwqcsj" path="res://scripts/map/DungeonGenerator.cs" id="4_78awf"]
[ext_resource type="Script" uid="uid://ogqlb3purl6n" path="res://scripts/input/GameOverInputHandler.cs" id="4_g4kob"]
[ext_resource type="Script" uid="uid://bereyrj1s46y5" path="res://scripts/map/FieldOfView.cs" id="5_s0nni"]
-[ext_resource type="PackedScene" uid="uid://b4h4xyr1g8o50" path="res://scenes/ui.tscn" id="6_aug50"]
+[ext_resource type="PackedScene" uid="uid://b4h4xyr1g8o50" path="res://scenes/hud.tscn" id="6_aug50"]
[node name="Game" type="Node"]
script = ExtResource("1_cpr0p")
@@ -41,4 +41,4 @@ script = ExtResource("5_s0nni")
offset = Vector2(8, 8)
zoom = Vector2(0.5, 0.5)
-[node name="UI" parent="." instance=ExtResource("6_aug50")]
+[node name="HUD" parent="." instance=ExtResource("6_aug50")]
diff --git a/scenes/hud.tscn b/scenes/hud.tscn
new file mode 100644
index 0000000..4554c06
--- /dev/null
+++ b/scenes/hud.tscn
@@ -0,0 +1,67 @@
+[gd_scene load_steps=9 format=3 uid="uid://b4h4xyr1g8o50"]
+
+[ext_resource type="Script" uid="uid://br7w3abe0boqb" path="res://scripts/GUI/Hud.cs" id="1_gdt2y"]
+[ext_resource type="Texture2D" uid="uid://cbqd3s1065am6" path="res://assets/sprites/inter-face/HP/HealthBarUnder2.png" id="2_p7vwb"]
+[ext_resource type="Texture2D" uid="uid://c1cktg2arnphx" path="res://assets/sprites/inter-face/HP/HealthBarOverlay2.png" id="3_ktti3"]
+[ext_resource type="Texture2D" uid="uid://sgqb6ccdbt4h" path="res://assets/sprites/inter-face/MP/ManaBarUnder2.png" id="4_8dubc"]
+[ext_resource type="Texture2D" uid="uid://do06pptudsqdp" path="res://assets/sprites/inter-face/HP/HealthBar2.png" id="4_cgfq5"]
+[ext_resource type="Texture2D" uid="uid://b2msd7khjxtat" path="res://assets/sprites/inter-face/MP/ManaBarOverlay.png" id="5_p7vwb"]
+[ext_resource type="Texture2D" uid="uid://b1rotmrfynpau" path="res://assets/sprites/inter-face/MP/ManaBar.png" id="6_ktti3"]
+[ext_resource type="Script" uid="uid://0al5sptrm0fn" path="res://scripts/GUI/MessageLog.cs" id="8_hd3ao"]
+
+[node name="HUD" type="CanvasLayer"]
+script = ExtResource("1_gdt2y")
+
+[node name="InfoBar" type="HBoxContainer" parent="."]
+anchors_preset = 12
+anchor_top = 1.0
+anchor_right = 1.0
+anchor_bottom = 1.0
+offset_top = -10.0
+grow_horizontal = 2
+grow_vertical = 0
+size_flags_horizontal = 0
+size_flags_vertical = 0
+theme_override_constants/separation = 0
+
+[node name="Stats" type="PanelContainer" parent="InfoBar"]
+layout_mode = 2
+size_flags_horizontal = 3
+
+[node name="MarginContainer" type="MarginContainer" parent="InfoBar/Stats"]
+layout_mode = 2
+theme_override_constants/margin_left = 5
+theme_override_constants/margin_top = 5
+theme_override_constants/margin_right = 5
+theme_override_constants/margin_bottom = 5
+
+[node name="HBoxContainer" type="HBoxContainer" parent="InfoBar/Stats/MarginContainer"]
+layout_mode = 2
+
+[node name="HPbar" type="TextureProgressBar" parent="InfoBar/Stats/MarginContainer/HBoxContainer"]
+layout_mode = 2
+value = 100.0
+texture_under = ExtResource("2_p7vwb")
+texture_over = ExtResource("3_ktti3")
+texture_progress = ExtResource("4_cgfq5")
+
+[node name="MPbar" type="TextureProgressBar" parent="InfoBar/Stats/MarginContainer/HBoxContainer"]
+layout_mode = 2
+value = 100.0
+texture_under = ExtResource("4_8dubc")
+texture_over = ExtResource("5_p7vwb")
+texture_progress = ExtResource("6_ktti3")
+
+[node name="MessagelogContainer" type="PanelContainer" parent="InfoBar"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_stretch_ratio = 2.0
+
+[node name="MessageLog" type="ScrollContainer" parent="InfoBar/MessagelogContainer"]
+layout_mode = 2
+script = ExtResource("8_hd3ao")
+
+[node name="MessageList" type="VBoxContainer" parent="InfoBar/MessagelogContainer/MessageLog"]
+layout_mode = 2
+size_flags_horizontal = 3
+theme_override_constants/separation = 0
diff --git a/scenes/ui.tscn b/scenes/ui.tscn
deleted file mode 100644
index 113e6ff..0000000
--- a/scenes/ui.tscn
+++ /dev/null
@@ -1,39 +0,0 @@
-[gd_scene load_steps=8 format=3 uid="uid://b4h4xyr1g8o50"]
-
-[ext_resource type="Script" uid="uid://br7w3abe0boqb" path="res://scripts/UI.cs" id="1_gdt2y"]
-[ext_resource type="Texture2D" uid="uid://cbqd3s1065am6" path="res://assets/sprites/inter-face/HP/HealthBarUnder2.png" id="2_p7vwb"]
-[ext_resource type="Texture2D" uid="uid://c1cktg2arnphx" path="res://assets/sprites/inter-face/HP/HealthBarOverlay2.png" id="3_ktti3"]
-[ext_resource type="Texture2D" uid="uid://sgqb6ccdbt4h" path="res://assets/sprites/inter-face/MP/ManaBarUnder2.png" id="4_8dubc"]
-[ext_resource type="Texture2D" uid="uid://do06pptudsqdp" path="res://assets/sprites/inter-face/HP/HealthBar2.png" id="4_cgfq5"]
-[ext_resource type="Texture2D" uid="uid://b2msd7khjxtat" path="res://assets/sprites/inter-face/MP/ManaBarOverlay.png" id="5_p7vwb"]
-[ext_resource type="Texture2D" uid="uid://b1rotmrfynpau" path="res://assets/sprites/inter-face/MP/ManaBar.png" id="6_ktti3"]
-
-[node name="UI" type="Node"]
-script = ExtResource("1_gdt2y")
-
-[node name="CanvasLayer" type="CanvasLayer" parent="."]
-
-[node name="MainContainer" type="HBoxContainer" parent="CanvasLayer"]
-anchors_preset = 12
-anchor_top = 1.0
-anchor_right = 1.0
-anchor_bottom = 1.0
-offset_top = -10.0
-grow_horizontal = 2
-grow_vertical = 0
-size_flags_horizontal = 0
-size_flags_vertical = 0
-
-[node name="HPbar" type="TextureProgressBar" parent="CanvasLayer/MainContainer"]
-layout_mode = 2
-value = 100.0
-texture_under = ExtResource("2_p7vwb")
-texture_over = ExtResource("3_ktti3")
-texture_progress = ExtResource("4_cgfq5")
-
-[node name="MPbar" type="TextureProgressBar" parent="CanvasLayer/MainContainer"]
-layout_mode = 2
-value = 100.0
-texture_under = ExtResource("4_8dubc")
-texture_over = ExtResource("5_p7vwb")
-texture_progress = ExtResource("6_ktti3")