Optimize backgound - move it to root node

This commit is contained in:
2025-08-03 18:39:15 +04:00
parent 7951a42c88
commit d9084606c8
4 changed files with 14 additions and 34 deletions

View File

@@ -1,7 +1,6 @@
[gd_scene load_steps=3 format=3 uid="uid://m8lf3eh3al5j"]
[gd_scene load_steps=2 format=3 uid="uid://m8lf3eh3al5j"]
[ext_resource type="Script" uid="uid://ctu58xq7btp1n" path="res://scripts/MainMenu.gd" id="1_b00nv"]
[ext_resource type="Texture2D" uid="uid://c8y6tlvcgh2gn" path="res://resources/textures/beanstalk-dark.webp" id="2_rn8js"]
[node name="MainMenu" type="Control"]
layout_mode = 3
@@ -12,16 +11,6 @@ grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_b00nv")
[node name="Background" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_rn8js")
stretch_mode = 1
[node name="MenuContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 8