summaryrefslogtreecommitdiff
path: root/src/ui/UI.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/UI.tscn')
-rw-r--r--src/ui/UI.tscn27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/ui/UI.tscn b/src/ui/UI.tscn
index 207a5fa..14701f0 100644
--- a/src/ui/UI.tscn
+++ b/src/ui/UI.tscn
@@ -1,7 +1,8 @@
-[gd_scene load_steps=3 format=2]
+[gd_scene load_steps=4 format=2]
[ext_resource path="res://ui/ui.gd" type="Script" id=1]
-[ext_resource path="res://fonts/MonogramExtended.tres" type="DynamicFont" id=2]
+[ext_resource path="res://ui/hud/snake/scenes/SnakeHUD.tscn" type="PackedScene" id=3]
+[ext_resource path="res://ui/hud/progress_bars/scenes/GrowthProgress.tscn" type="PackedScene" id=4]
[node name="UI" type="CanvasLayer"]
script = ExtResource( 1 )
@@ -11,19 +12,27 @@ anchor_right = 1.0
anchor_bottom = 1.0
[node name="StatsHUD" type="MarginContainer" parent="Root"]
-margin_left = 10.0
-margin_top = 10.0
-margin_right = 130.0
-margin_bottom = 50.0
+margin_left = 4.0
+margin_top = 4.0
+margin_right = 124.0
+margin_bottom = 44.0
[node name="VBox" type="VBoxContainer" parent="Root/StatsHUD"]
margin_right = 120.0
margin_bottom = 40.0
-[node name="SnakeSize" type="Label" parent="Root/StatsHUD/VBox"]
+[node name="SnakeHUD" parent="Root/StatsHUD/VBox" instance=ExtResource( 3 )]
margin_right = 120.0
-margin_bottom = 13.0
-custom_fonts/font = ExtResource( 2 )
+margin_bottom = 8.0
+
+[node name="HBoxProgressBars" type="HBoxContainer" parent="Root/StatsHUD/VBox"]
+margin_top = 12.0
+margin_right = 120.0
+margin_bottom = 20.0
+
+[node name="GrowthProgress" parent="Root/StatsHUD/VBox/HBoxProgressBars" instance=ExtResource( 4 )]
+margin_right = 40.0
+margin_bottom = 8.0
[node name="MarginContainer" type="MarginContainer" parent="Root"]
anchor_top = 1.0