[gd_scene load_steps=11 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_luosh"]
bg_color = Color(0, 0, 0, 0.745098)

[sub_resource type="Animation" id="Animation_fe1ic"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("sub:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("credit:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("explication/Label:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("explication:visible")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("explication/Label2:modulate")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
}

[sub_resource type="Animation" id="Animation_5wj8t"]
resource_name = "play"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("sub:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("credit:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("explication/Label:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("explication:visible")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}

[sub_resource type="Animation" id="Animation_arta6"]
resource_name = "play2"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("explication/Label:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("explication/Label2:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_l2600"]
_data = {
"RESET": SubResource("Animation_fe1ic"),
"play": SubResource("Animation_5wj8t"),
"play2": SubResource("Animation_arta6")
}

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

[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"]
process_mode = 3
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="Button" type="Button" parent="credit"]
layout_mode = 0
offset_left = 333.0
offset_top = 248.0
offset_right = 385.0
offset_bottom = 286.0
theme = ExtResource("2_ab0tu")
text = "Exit
"

[node name="explication" 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_luosh")

[node name="Label" type="Label" parent="explication"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_ab0tu")
theme_override_font_sizes/font_size = 19
text = "You play as Patrick, a fat diabetic kiddo without a friend.
You might think he’s disguised for Halloween, but in fact he feels bad in his own skin, he cosplays as his favorite character to feel cooler.

On Halloween night he decided to go hangout outside alone while his parents weren’t at home, but he forgot something important, his insulin injector.
"
vertical_alignment = 1
autowrap_mode = 2

[node name="Label2" type="Label" parent="explication"]
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_ab0tu")
theme_override_font_sizes/font_size = 19
text = "He now has to go from 6pm to 10pm without it, but he just can’t wait here, lucky him, it’s Halloween, so there’s kiddos everywhere going to trick or treat.
Though he’s not a fan of adults, he must face his fears on this tremendous night and go knock on their doors to have some candy !
But beware, too much candy is no good too, you must balance between getting candies and going around the place.
Now, there’s something weird about this place..
Have fun !
"
vertical_alignment = 1
autowrap_mode = 2

[node name="Label3" type="Label" parent="explication"]
layout_mode = 0
offset_left = 334.0
offset_top = 270.0
offset_right = 380.0
offset_bottom = 293.0
theme = ExtResource("2_ab0tu")
text = "Enter..."

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_l2600")
}

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