From f922fe4669080d1633e0a345a3f8981867c9e841 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 3 Jun 2022 21:13:19 -0600 Subject: add working world gen, fixed food placing, minor refactoring --- src/ui/UI.tscn | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'src/ui/UI.tscn') diff --git a/src/ui/UI.tscn b/src/ui/UI.tscn index f5b0ac3..207a5fa 100644 --- a/src/ui/UI.tscn +++ b/src/ui/UI.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=3 format=2] [ext_resource path="res://ui/ui.gd" type="Script" id=1] +[ext_resource path="res://fonts/MonogramExtended.tres" type="DynamicFont" id=2] [node name="UI" type="CanvasLayer"] script = ExtResource( 1 ) @@ -12,13 +13,30 @@ anchor_bottom = 1.0 [node name="StatsHUD" type="MarginContainer" parent="Root"] margin_left = 10.0 margin_top = 10.0 -margin_right = 310.0 -margin_bottom = 110.0 +margin_right = 130.0 +margin_bottom = 50.0 [node name="VBox" type="VBoxContainer" parent="Root/StatsHUD"] -margin_right = 300.0 -margin_bottom = 100.0 +margin_right = 120.0 +margin_bottom = 40.0 [node name="SnakeSize" type="Label" parent="Root/StatsHUD/VBox"] -margin_right = 300.0 -margin_bottom = 14.0 +margin_right = 120.0 +margin_bottom = 13.0 +custom_fonts/font = ExtResource( 2 ) + +[node name="MarginContainer" type="MarginContainer" parent="Root"] +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_top = -20.0 + +[node name="CenterContainer" type="CenterContainer" parent="Root/MarginContainer"] +margin_right = 320.0 +margin_bottom = 20.0 + +[node name="Start" type="Button" parent="Root/MarginContainer/CenterContainer"] +margin_left = 139.0 +margin_right = 180.0 +margin_bottom = 20.0 +text = "Start" -- cgit v1.2.3