[gd_scene load_steps=34 format=3 uid="uid://bq2yxcm55h7n8"]

[ext_resource type="Script" path="res://script/DoorView.cs" id="1_nmul8"]
[ext_resource type="Texture2D" uid="uid://dpqc1xv3cechw" path="res://model/House1Closed.jpg" id="1_suqi6"]
[ext_resource type="Texture2D" uid="uid://b7dcgps5sedwl" path="res://model/House1Open.jpg" id="2_c5xhw"]
[ext_resource type="Texture2D" uid="uid://d0g144qe1ly7v" path="res://model/Guy1.png" id="3_b1cgq"]
[ext_resource type="Texture2D" uid="uid://bo5rfykx4o7dj" path="res://model/frame_00_delay-0.1s.png" id="4_xbfyi"]
[ext_resource type="Theme" uid="uid://depo4fa5p8k8m" path="res://themes/button.tres" id="5_50q8s"]
[ext_resource type="Texture2D" uid="uid://borv8ayo6tunr" path="res://model/frame_01_delay-0.1s.png" id="5_qi8gy"]
[ext_resource type="Texture2D" uid="uid://ck36fe4ol2luh" path="res://model/frame_02_delay-0.1s.png" id="6_r7ofc"]
[ext_resource type="Texture2D" uid="uid://bvpix8sqi8sm4" path="res://model/frame_03_delay-0.1s.png" id="7_18s6v"]
[ext_resource type="Texture2D" uid="uid://cy6303a6p8a7k" path="res://model/frame_04_delay-0.1s.png" id="8_joxva"]
[ext_resource type="Texture2D" uid="uid://swf03offqtmw" path="res://model/frame_05_delay-0.1s.png" id="9_0u0rh"]
[ext_resource type="Texture2D" uid="uid://cbmkdbjywsnqe" path="res://model/frame_06_delay-0.1s.png" id="10_l4x34"]
[ext_resource type="Texture2D" uid="uid://dc7cls6j0f2y3" path="res://model/frame_07_delay-0.1s.png" id="11_t3mjw"]
[ext_resource type="Texture2D" uid="uid://dwixrqec6acr5" path="res://model/frame_08_delay-0.1s.png" id="12_0pk2o"]
[ext_resource type="Texture2D" uid="uid://dpo88vuxdjqx3" path="res://model/frame_09_delay-0.1s.png" id="13_fjbga"]
[ext_resource type="Texture2D" uid="uid://bkukqcnunks73" path="res://model/frame_10_delay-0.1s.png" id="14_8drb8"]
[ext_resource type="Texture2D" uid="uid://ce0cpwn2a8mc7" path="res://model/frame_11_delay-0.1s.png" id="15_2248l"]
[ext_resource type="Texture2D" uid="uid://b4hliw16a3di0" path="res://model/frame_12_delay-0.1s.png" id="16_0yrtr"]
[ext_resource type="Texture2D" uid="uid://bg4lgbismwpgm" path="res://model/frame_13_delay-0.1s.png" id="17_qdp1t"]
[ext_resource type="Texture2D" uid="uid://c637m8pidgjlh" path="res://model/frame_14_delay-0.1s.png" id="18_4qpga"]
[ext_resource type="Texture2D" uid="uid://c1sjkarfjda64" path="res://model/frame_15_delay-0.1s.png" id="19_2ovmp"]
[ext_resource type="Texture2D" uid="uid://bn3ymn1dyqdwx" path="res://model/frame_16_delay-0.1s.png" id="20_uxtuq"]
[ext_resource type="Texture2D" uid="uid://dex2ky42rkfbg" path="res://model/frame_17_delay-0.1s.png" id="21_srb7y"]
[ext_resource type="Texture2D" uid="uid://drvspvx3dpe8u" path="res://model/frame_18_delay-0.1s.png" id="22_atju4"]
[ext_resource type="Texture2D" uid="uid://cggbun65n8uo6" path="res://model/frame_19_delay-0.1s.png" id="23_l4jpt"]
[ext_resource type="Texture2D" uid="uid://ob3tlldg8ta" path="res://model/frame_20_delay-0.1s.png" id="24_tjfip"]
[ext_resource type="AudioStream" uid="uid://blgk5pv3ydewn" path="res://sound/toc.mp3" id="26_7kpao"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_jooqt"]

[sub_resource type="SpriteFrames" id="SpriteFrames_gtid6"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_xbfyi")
}, {
"duration": 1.0,
"texture": ExtResource("5_qi8gy")
}, {
"duration": 1.0,
"texture": ExtResource("6_r7ofc")
}, {
"duration": 1.0,
"texture": ExtResource("7_18s6v")
}, {
"duration": 1.0,
"texture": ExtResource("8_joxva")
}, {
"duration": 1.0,
"texture": ExtResource("9_0u0rh")
}, {
"duration": 1.0,
"texture": ExtResource("10_l4x34")
}, {
"duration": 1.0,
"texture": ExtResource("11_t3mjw")
}, {
"duration": 1.0,
"texture": ExtResource("12_0pk2o")
}, {
"duration": 1.0,
"texture": ExtResource("13_fjbga")
}, {
"duration": 1.0,
"texture": ExtResource("14_8drb8")
}, {
"duration": 1.0,
"texture": ExtResource("15_2248l")
}, {
"duration": 1.0,
"texture": ExtResource("16_0yrtr")
}, {
"duration": 1.0,
"texture": ExtResource("17_qdp1t")
}, {
"duration": 1.0,
"texture": ExtResource("18_4qpga")
}, {
"duration": 1.0,
"texture": ExtResource("19_2ovmp")
}, {
"duration": 1.0,
"texture": ExtResource("20_uxtuq")
}, {
"duration": 1.0,
"texture": ExtResource("21_srb7y")
}, {
"duration": 1.0,
"texture": ExtResource("22_atju4")
}, {
"duration": 1.0,
"texture": ExtResource("23_l4jpt")
}, {
"duration": 1.0,
"texture": ExtResource("24_tjfip")
}],
"loop": true,
"name": &"default",
"speed": 15.0
}]

[sub_resource type="Animation" id="Animation_kla4h"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Panel/back:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("1_suqi6")]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("AudioStreamPlayer:playing")
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("Trick:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Question: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("Panel/mob: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, 1)]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("Panel/AnimatedSprite2D:visible")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/6/type = "value"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath("Panel/AnimatedSprite2D:frame")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}

[sub_resource type="Animation" id="Animation_fd2lj"]
resource_name = "enter"
length = 4.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Panel/back:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2.26667),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [ExtResource("1_suqi6"), ExtResource("2_c5xhw")]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("AudioStreamPlayer:playing")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Trick:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(3.83333),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Panel/mob:modulate")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(2.3, 3.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Panel/AnimatedSprite2D:visible")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0, 0.2, 1.5),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [false, true, false]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("Panel/AnimatedSprite2D:frame")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0.2),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}

[sub_resource type="Animation" id="Animation_ewnqr"]
resource_name = "question"
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Trick: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("Question:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_b36fu"]
_data = {
"RESET": SubResource("Animation_kla4h"),
"enter": SubResource("Animation_fd2lj"),
"question": SubResource("Animation_ewnqr")
}

[node name="door_view" type="Control" node_paths=PackedStringArray("mob", "anim", "text_mob", "butA", "butB")]
process_mode = 3
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_nmul8")
mob = NodePath("Panel/mob")
anim = NodePath("AnimationPlayer")
text_mob = NodePath("Question/Label")
butA = NodePath("Question/a")
butB = NodePath("Question/b")

[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxEmpty_jooqt")

[node name="back" type="Sprite2D" parent="Panel"]
texture = ExtResource("1_suqi6")

[node name="mob" type="Sprite2D" parent="Panel"]
position = Vector2(-56, -101)
texture = ExtResource("3_b1cgq")
centered = false

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Panel"]
position = Vector2(56, 49)
sprite_frames = SubResource("SpriteFrames_gtid6")
autoplay = "default"

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

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("26_7kpao")

[node name="Trick" type="VBoxContainer" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = 155.0
offset_bottom = -2.0
grow_horizontal = 2
grow_vertical = 2
metadata/_edit_use_anchors_ = true

[node name="Label" type="Label" parent="Trick"]
custom_minimum_size = Vector2(263.595, 79.17)
layout_mode = 2
theme = ExtResource("5_50q8s")
theme_override_font_sizes/font_size = 18
text = "Trick or treat  salut a tous les amis moi c'est davide la farge pokemon"
autowrap_mode = 2

[node name="Button" type="Button" parent="Trick"]
custom_minimum_size = Vector2(128.58, 0)
layout_mode = 2
theme = ExtResource("5_50q8s")
theme_override_font_sizes/font_size = 18
text = "Trick"

[node name="Button2" type="Button" parent="Trick"]
layout_mode = 2
theme = ExtResource("5_50q8s")
theme_override_font_sizes/font_size = 18
text = "Treat
"

[node name="Question" type="VBoxContainer" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = 155.0
offset_bottom = -2.0
grow_horizontal = 2
grow_vertical = 2
metadata/_edit_use_anchors_ = true

[node name="Label" type="Label" parent="Question"]
custom_minimum_size = Vector2(263.595, 79.17)
layout_mode = 2
theme = ExtResource("5_50q8s")
theme_override_font_sizes/font_size = 18
text = "Trick or treat  salut a tous les amis moi c'est davide la farge pokemon"
autowrap_mode = 2

[node name="a" type="Button" parent="Question"]
custom_minimum_size = Vector2(128.58, 0)
layout_mode = 2
theme = ExtResource("5_50q8s")
theme_override_font_sizes/font_size = 18
text = "Trick"

[node name="b" type="Button" parent="Question"]
layout_mode = 2
theme = ExtResource("5_50q8s")
theme_override_font_sizes/font_size = 18
text = "Treat
"

[connection signal="pressed" from="Trick/Button2" to="." method="TreatPressed"]
[connection signal="pressed" from="Question/a" to="." method="APressed"]
[connection signal="pressed" from="Question/b" to="." method="BPressed"]
