This commit is contained in:
2024-10-19 19:19:46 +02:00
parent 7c50910690
commit bbf3c5e593
12 changed files with 262 additions and 13 deletions

75
scene/principal.tscn Normal file
View File

@@ -0,0 +1,75 @@
[gd_scene load_steps=6 format=3 uid="uid://cru3yl7laeiem"]
[ext_resource type="Texture2D" uid="uid://mr6hi8icwyle" path="res://model/Trick or treatBG.png" id="1_4oira"]
[ext_resource type="Script" path="res://script/Principal.cs" id="1_5hpqm"]
[ext_resource type="Theme" uid="uid://depo4fa5p8k8m" path="res://themes/button.tres" id="2_ab0tu"]
[ext_resource type="PackedScene" uid="uid://1tfopbwug3ht" path="res://scene/city.tscn" id="2_qp7s0"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qdt6c"]
bg_color = Color(0, 0, 0, 0.792157)
[node name="Principal" type="Control" node_paths=PackedStringArray("sub")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_5hpqm")
sub = NodePath("sub")
play = ExtResource("2_qp7s0")
[node name="TrickOrTreatBg" type="Sprite2D" parent="."]
texture = ExtResource("1_4oira")
centered = false
[node name="Enter" type="Button" parent="."]
layout_mode = 0
offset_left = 24.0
offset_top = 238.0
offset_right = 121.0
offset_bottom = 290.0
theme = ExtResource("2_ab0tu")
theme_override_font_sizes/font_size = 42
text = "Enter"
[node name="sub" type="Panel" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_qdt6c")
[node name="Play" type="Button" parent="sub"]
layout_mode = 0
offset_left = 284.0
offset_top = 53.0
offset_right = 343.0
offset_bottom = 91.0
theme = ExtResource("2_ab0tu")
text = "Play
"
[node name="Credits" type="Button" parent="sub"]
layout_mode = 0
offset_left = 247.0
offset_top = 149.0
offset_right = 338.0
offset_bottom = 187.0
theme = ExtResource("2_ab0tu")
text = "Credits"
[node name="Exit" type="Button" parent="sub"]
layout_mode = 0
offset_left = 181.0
offset_top = 230.0
offset_right = 233.0
offset_bottom = 268.0
theme = ExtResource("2_ab0tu")
text = "Exit
"
[connection signal="pressed" from="Enter" to="." method="EnterPressed"]