[gd_scene load_steps=8 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="StyleBox" uid="uid://cl1mx7tnohwg6" path="res://themes/back_principal.tres" id="5_tyto3"]
[ext_resource type="Texture2D" uid="uid://cf12hst5y4gfr" path="res://model/Credit.png" id="6_px85q"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8wh7p"]
bg_color = Color(0.0728426, 0.0728426, 0.0728426, 0.890196)

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kg8au"]
bg_color = Color(0.0728426, 0.0728426, 0.0728426, 0.890196)

[node name="Principal" type="Control" node_paths=PackedStringArray("sub", "credit")]
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")
credit = NodePath("credit")

[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 = ExtResource("5_tyto3")

[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
"

[node name="credit" 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 = ExtResource("5_tyto3")

[node name="Credit" type="Sprite2D" parent="credit"]
texture = ExtResource("6_px85q")
centered = false

[node name="Label" type="Label" parent="credit"]
layout_mode = 0
offset_left = 13.0
offset_top = 248.0
offset_right = 207.0
offset_bottom = 293.0
theme = ExtResource("2_ab0tu")
theme_override_font_sizes/font_size = 38
theme_override_styles/normal = SubResource("StyleBoxFlat_8wh7p")
text = "Programming
"
horizontal_alignment = 1
vertical_alignment = 1

[node name="Label2" type="Label" parent="credit"]
layout_mode = 0
offset_left = 322.0
offset_top = 252.0
offset_right = 386.0
offset_bottom = 296.0
theme = ExtResource("2_ab0tu")
theme_override_font_sizes/font_size = 38
theme_override_styles/normal = SubResource("StyleBoxFlat_kg8au")
text = "Art
"
horizontal_alignment = 1
vertical_alignment = 1

[node name="Button" type="Button" parent="credit"]
layout_mode = 0
offset_left = 163.0
offset_top = 15.0
offset_right = 215.0
offset_bottom = 53.0
theme = ExtResource("2_ab0tu")
text = "Exit
"

[connection signal="pressed" from="Enter" to="." method="EnterPressed"]
[connection signal="pressed" from="sub/Play" to="." method="PlayPressed"]
[connection signal="pressed" from="sub/Credits" to="." method="creditEnter"]
[connection signal="pressed" from="sub/Exit" to="." method="ExitGlobPressed"]
[connection signal="pressed" from="credit/Button" to="." method="CreditExit"]
