[gd_scene load_steps=10 format=2]

[ext_resource path="res://objects/speech_bubble/speech_bubble.gd" type="Script" id=1]
[ext_resource path="res://objects/speech_bubble/assets/corner.png" type="Texture" id=2]
[ext_resource path="res://objects/speech_bubble/assets/side.png" type="Texture" id=3]
[ext_resource path="res://objects/speech_bubble/assets/arrow.png" type="Texture" id=4]
[ext_resource path="res://objects/speech_bubble/assets/side2.png" type="Texture" id=5]
[ext_resource path="res://common/fonts/ComicNeue-Bold.ttf" type="DynamicFontData" id=6]
[ext_resource path="res://common/soundeffects/type.wav" type="AudioStream" id=7]

[sub_resource type="DynamicFont" id=2]
size = 20
font_data = ExtResource( 6 )

[sub_resource type="Animation" id=1]
resource_name = "fade"
tracks/0/type = "value"
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}

[node name="SpeechBubble" type="ReferenceRect"]
modulate = Color( 1, 1, 1, 0 )
margin_right = 490.0
margin_bottom = 175.0
script = ExtResource( 1 )

[node name="Corner0" type="TextureRect" parent="."]
margin_right = 32.0
margin_bottom = 32.0
rect_pivot_offset = Vector2( 16, 20 )
texture = ExtResource( 2 )
stretch_mode = 3

[node name="Side0" type="TextureRect" parent="."]
anchor_bottom = 1.0
margin_top = 32.0
margin_bottom = -32.0
texture = ExtResource( 3 )
stretch_mode = 1

[node name="Corner1" type="TextureRect" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
margin_top = -32.0
margin_right = 32.0
rect_pivot_offset = Vector2( 16, 20 )
texture = ExtResource( 2 )
stretch_mode = 3
flip_v = true

[node name="Side1" type="TextureRect" parent="."]
anchor_right = 1.0
margin_left = 32.0
margin_right = -32.0
texture = ExtResource( 5 )
stretch_mode = 1

[node name="Corner2" type="TextureRect" parent="."]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -32.0
margin_bottom = 32.0
rect_pivot_offset = Vector2( 16, 20 )
texture = ExtResource( 2 )
stretch_mode = 3
flip_h = true

[node name="Side2" type="TextureRect" parent="."]
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -32.0
margin_top = 32.0
margin_bottom = -32.0
texture = ExtResource( 3 )
stretch_mode = 1
flip_h = true

[node name="Corner3" type="TextureRect" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -32.0
margin_top = -32.0
rect_pivot_offset = Vector2( 16, 20 )
texture = ExtResource( 2 )
stretch_mode = 3
flip_h = true
flip_v = true

[node name="Side3" type="TextureRect" parent="."]
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 32.0
margin_top = -32.0
margin_right = -32.0
texture = ExtResource( 5 )
stretch_mode = 1
flip_v = true

[node name="Arrow" type="TextureRect" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -116.0
texture = ExtResource( 4 )

[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 32.0
margin_top = 32.0
margin_right = -32.0
margin_bottom = -32.0

[node name="Label" type="RichTextLabel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = 20.0
margin_right = -20.0
margin_bottom = -20.0
custom_colors/default_color = Color( 0, 0, 0, 1 )
custom_fonts/normal_font = SubResource( 2 )
text = "TEXT"
scroll_active = false

[node name="Animation" type="AnimationPlayer" parent="."]
anims/fade = SubResource( 1 )

[node name="TypeSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
volume_db = -14.0
