[gd_scene load_steps=9 format=3 uid="uid://b5o03n2r0xmnc"]

[ext_resource type="Script" path="res://ui/text box/text_box.gd" id="1_fo401"]
[ext_resource type="FontFile" uid="uid://deige1vwgfcp2" path="res://ui/text box/Daydream.ttf" id="1_wrgbl"]
[ext_resource type="PackedScene" uid="uid://cxjyxcbcxxydo" path="res://levels/level_1.tscn" id="2_wak5t"]
[ext_resource type="Script" path="res://scripts/intro_crawl.gd" id="2_y1nqs"]
[ext_resource type="Theme" uid="uid://btsjb0dqi43oc" path="res://ui/intro_theme.tres" id="5_14cw3"]
[ext_resource type="Script" path="res://scripts/flasher.gd" id="5_dldwo"]
[ext_resource type="Theme" uid="uid://diky4hvq73cit" path="res://ui/swap_box_theme.tres" id="7_qsky1"]

[sub_resource type="Theme" id="Theme_phwj2"]
default_font = ExtResource("1_wrgbl")
default_font_size = 20

[node name="Intro1" type="Node2D" node_paths=PackedStringArray("button")]
script = ExtResource("2_y1nqs")
text = "Your name: Lizzy Silvertongue
Your situation: Dire

Your arch nemesis, Pirate Piratesson, stole your treasure and humiliated you. He told the authorities that you're a bad pirate (which you definitely are not), and the mayor threw you in jail...

Now it's the time to take your revenge!"
scene = ExtResource("2_wak5t")
button = NodePath("SpaceBar")

[node name="ColorRect" type="ColorRect" parent="."]
offset_left = -65.0
offset_top = -43.0
offset_right = 1344.0
offset_bottom = 1173.0
color = Color(0, 0, 0, 1)

[node name="TextBox" type="MarginContainer" parent="." node_paths=PackedStringArray("label")]
clip_contents = true
offset_left = 81.0
offset_top = 94.0
offset_right = 118.0
offset_bottom = 121.0
theme = SubResource("Theme_phwj2")
script = ExtResource("1_fo401")
label = NodePath("Label")
min_width = 800
max_width = 800
recenter = false

[node name="Label" type="RichTextLabel" parent="TextBox"]
clip_contents = false
layout_mode = 2
theme = ExtResource("5_14cw3")
theme_override_colors/default_color = Color(1, 1, 1, 1)
fit_content = true

[node name="LetterDisplayTimer" type="Timer" parent="TextBox"]
one_shot = true

[node name="SpaceBar" type="Node2D" parent="." node_paths=PackedStringArray("f1", "f2")]
position = Vector2(1001, 811)
script = ExtResource("5_dldwo")
f1 = NodePath("ColorRect2")
f2 = NodePath("ColorRect3")

[node name="ColorRect2" type="ColorRect" parent="SpaceBar"]
offset_right = 149.0
offset_bottom = 40.0

[node name="ColorRect3" type="ColorRect" parent="SpaceBar"]
offset_right = 149.0
offset_bottom = 40.0
color = Color(0.414066, 0.414066, 0.414066, 1)

[node name="Label" type="Label" parent="SpaceBar"]
offset_left = 11.0
offset_top = 6.0
offset_right = 141.0
offset_bottom = 33.0
theme = ExtResource("7_qsky1")
theme_override_font_sizes/font_size = 28
text = "SPACEBAR"

[connection signal="finished_displaying" from="TextBox" to="." method="_on_text_box_finished_displaying"]
[connection signal="timeout" from="TextBox/LetterDisplayTimer" to="TextBox" method="_on_letter_display_timer_timeout"]
