From e6beb7d4d3450c68ca5ebfae040f42dd82db1b31 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 4 Jun 2022 05:17:12 -0600 Subject: add text for points when eating food --- src/ui/UI.tscn | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'src/ui/UI.tscn') diff --git a/src/ui/UI.tscn b/src/ui/UI.tscn index 980faf4..79d8f93 100644 --- a/src/ui/UI.tscn +++ b/src/ui/UI.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://ui/ui.gd" type="Script" id=1] +[ext_resource path="res://ui/hud/progress_bars/sprites/grow_progress_icon.png" type="Texture" 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] @@ -18,21 +19,27 @@ margin_right = 124.0 margin_bottom = 44.0 [node name="VBox" type="VBoxContainer" parent="Root/StatsHUD"] -margin_right = 120.0 -margin_bottom = 40.0 +custom_constants/separation = 2 [node name="SnakeHUD" parent="Root/StatsHUD/VBox" instance=ExtResource( 3 )] -margin_right = 120.0 +margin_right = 30.0 margin_bottom = 8.0 [node name="HBoxProgressBars" type="HBoxContainer" parent="Root/StatsHUD/VBox"] -margin_top = 12.0 -margin_right = 120.0 -margin_bottom = 16.0 +margin_top = 10.0 +margin_right = 30.0 +margin_bottom = 18.0 +custom_constants/separation = 2 + +[node name="GrowthProgressIcon" type="TextureRect" parent="Root/StatsHUD/VBox/HBoxProgressBars"] +margin_right = 8.0 +margin_bottom = 8.0 +texture = ExtResource( 2 ) [node name="GrowthProgress" parent="Root/StatsHUD/VBox/HBoxProgressBars" instance=ExtResource( 4 )] -margin_right = 20.0 -margin_bottom = 4.0 +margin_left = 10.0 +margin_right = 30.0 +margin_bottom = 8.0 [node name="MarginContainer" type="MarginContainer" parent="Root"] anchor_top = 1.0 -- cgit v1.2.3