From 8d40529349a45b7cee8dacb0807a54a43176fd93 Mon Sep 17 00:00:00 2001 From: kziolkowski Date: Wed, 9 Jul 2025 20:52:33 +0200 Subject: [PATCH] Changed StartScreen layout and added Quit button --- scenes/Babushka_scene_startMenu.tscn | 55 ++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/scenes/Babushka_scene_startMenu.tscn b/scenes/Babushka_scene_startMenu.tscn index 0b5c964..cae64f1 100644 --- a/scenes/Babushka_scene_startMenu.tscn +++ b/scenes/Babushka_scene_startMenu.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://c6wnoif01ltld"] +[gd_scene load_steps=5 format=3 uid="uid://c6wnoif01ltld"] [ext_resource type="Script" uid="uid://cssdu8viimwm6" path="res://scripts/CSharp/Common/SceneTransition.cs" id="1_fj2fh"] -[ext_resource type="Texture2D" uid="uid://bys8kq256upf3" path="res://art/ui/StartScreen/Trailer01.png" id="1_qerdf"] [ext_resource type="PackedScene" uid="uid://gigb28qk8t12" path="res://scenes/Babushka_scene_farm_outside_2d.tscn" id="2_r0y6o"] +[ext_resource type="Texture2D" uid="uid://c7atj6ohlmir3" path="res://art/ui/StartScreen/titlescreen.png" id="3_r0y6o"] +[ext_resource type="Texture2D" uid="uid://du612t3xytly3" path="res://art/ui/StartScreen/babushkalog_white.png" id="4_dl0t1"] [node name="BabushkaSceneStartMenu" type="Node2D"] script = ExtResource("1_fj2fh") @@ -16,7 +17,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -texture = ExtResource("1_qerdf") +texture = ExtResource("3_r0y6o") expand_mode = 2 stretch_mode = 6 metadata/_edit_use_anchors_ = true @@ -24,19 +25,43 @@ metadata/_edit_use_anchors_ = true [node name="Start" type="Button" parent="CanvasLayer/TextureRect"] custom_minimum_size = Vector2(100, 30) layout_mode = 1 -anchors_preset = 7 -anchor_left = 0.5 -anchor_top = 1.0 -anchor_right = 0.5 -anchor_bottom = 1.0 -offset_left = -76.0 -offset_top = -98.0 -offset_right = 24.0 -offset_bottom = -67.0 -grow_horizontal = 2 -grow_vertical = 0 +anchors_preset = 4 +anchor_top = 0.5 +anchor_bottom = 0.5 +offset_left = 200.0 +offset_top = -15.5 +offset_right = 400.0 +offset_bottom = 24.5 +grow_vertical = 2 scale = Vector2(2, 2) +toggle_mode = true text = "Start" -icon_alignment = 1 + +[node name="Quit" type="Button" parent="CanvasLayer/TextureRect"] +custom_minimum_size = Vector2(100, 30) +layout_mode = 1 +anchors_preset = 4 +anchor_top = 0.5 +anchor_bottom = 0.5 +offset_left = 200.0 +offset_top = 97.0 +offset_right = 400.0 +offset_bottom = 137.0 +grow_vertical = 2 +scale = Vector2(2, 2) +toggle_mode = true +text = "Quit +" + +[node name="Text" type="TextureRect" parent="CanvasLayer/TextureRect"] +layout_mode = 1 +offset_left = 50.0 +offset_top = -100.0 +offset_right = 1970.0 +offset_bottom = 980.0 +scale = Vector2(0.5, 0.5) +texture = ExtResource("4_dl0t1") +stretch_mode = 3 [connection signal="pressed" from="CanvasLayer/TextureRect/Start" to="." method="LoadScene"] +[connection signal="pressed" from="CanvasLayer/TextureRect/Quit" to="." method="Quit"]