[gd_scene load_steps=12 format=3 uid="uid://7oi3hcf5q4o7"]

[ext_resource type="Script" path="res://Scripts/UI/textbox.gd" id="1_nbji8"]
[ext_resource type="FontFile" uid="uid://bgqotudi6bifk" path="res://UI/Gundam 00 font gaufont.ttf" id="1_p6ypw"]
[ext_resource type="Theme" uid="uid://733mwxm2ul3w" path="res://UI/ui_theme.tres" id="2_rsu4n"]
[ext_resource type="Texture2D" uid="uid://du2iwu36y3l5p" path="res://Portraits/hiro_default_normal.png" id="3_cbor4"]

[sub_resource type="LabelSettings" id="LabelSettings_ydgvr"]
font = ExtResource("1_p6ypw")
font_size = 18

[sub_resource type="Animation" id="Animation_pk8my"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("LeftTextbox:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-720, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("RightTextbox:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(720, 0)]
}

[sub_resource type="Animation" id="Animation_eq77b"]
resource_name = "hide"
length = 0.266668
step = 0.0166667
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("LeftTextbox:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.266667),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(-720, 0)]
}

[sub_resource type="Animation" id="Animation_o6mf0"]
resource_name = "hide_right"
length = 0.250002
step = 0.0166667
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("RightTextbox:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.25),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(720, 0)]
}

[sub_resource type="Animation" id="Animation_cb4qc"]
resource_name = "show"
length = 0.266668
step = 0.0166667
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("LeftTextbox:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.266667),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(-720, 0), Vector2(0, 0)]
}

[sub_resource type="Animation" id="Animation_ucf3h"]
resource_name = "show_right"
length = 0.250002
step = 0.0166667
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("RightTextbox:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.25),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(720, 0), Vector2(0, 0)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_c2uka"]
_data = {
"RESET": SubResource("Animation_pk8my"),
"hide_left": SubResource("Animation_eq77b"),
"hide_right": SubResource("Animation_o6mf0"),
"show_left": SubResource("Animation_cb4qc"),
"show_right": SubResource("Animation_ucf3h")
}

[node name="TextboxUI" type="CanvasLayer"]
script = ExtResource("1_nbji8")

[node name="LeftTextbox" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_left = -720.0
offset_bottom = 480.0

[node name="ChatboxContainer" type="Control" parent="LeftTextbox"]
layout_mode = 1
anchor_top = 0.55
anchor_right = 1.0
anchor_bottom = 0.95
grow_horizontal = 2
grow_vertical = 0

[node name="Chatbox" type="PanelContainer" parent="LeftTextbox/ChatboxContainer"]
layout_mode = 1
anchors_preset = -1
anchor_top = 0.358
anchor_right = 0.9
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
theme = ExtResource("2_rsu4n")
theme_type_variation = &"LeftLeaningPanel"

[node name="PlacementContainer" type="Control" parent="LeftTextbox/ChatboxContainer/Chatbox"]
layout_mode = 2

[node name="NextIndicator" type="Label" parent="LeftTextbox/ChatboxContainer/Chatbox/PlacementContainer"]
visible = false
layout_mode = 1
anchors_preset = -1
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = -16.0
offset_bottom = -16.0
grow_horizontal = 0
grow_vertical = 0
text = ">"
label_settings = SubResource("LabelSettings_ydgvr")

[node name="MarginContainer" type="MarginContainer" parent="LeftTextbox/ChatboxContainer/Chatbox/PlacementContainer"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.269
anchor_right = 0.919
anchor_bottom = 1.0
grow_vertical = 2
size_flags_horizontal = 0
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16

[node name="Text" type="Label" parent="LeftTextbox/ChatboxContainer/Chatbox/PlacementContainer/MarginContainer"]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
size_flags_vertical = 1
label_settings = SubResource("LabelSettings_ydgvr")
autowrap_mode = 2
text_overrun_behavior = 3

[node name="Portrait" type="TextureRect" parent="LeftTextbox/ChatboxContainer"]
layout_mode = 1
anchors_preset = -1
anchor_right = 0.286
anchor_bottom = 1.0
grow_vertical = 0
texture = ExtResource("3_cbor4")
expand_mode = 1
stretch_mode = 5
flip_h = true

[node name="RightTextbox" type="Control" parent="."]
layout_mode = 3
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = 720.0
offset_right = 1440.0
offset_bottom = 480.0
grow_horizontal = 0

[node name="ChatboxContainer" type="Control" parent="RightTextbox"]
layout_mode = 1
anchor_top = 0.55
anchor_right = 1.0
anchor_bottom = 0.95
grow_horizontal = 2
grow_vertical = 0

[node name="Chatbox" type="PanelContainer" parent="RightTextbox/ChatboxContainer"]
layout_mode = 1
anchors_preset = -1
anchor_top = 0.358
anchor_right = 0.9
anchor_bottom = 1.0
offset_left = 72.0
offset_right = 72.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
theme = ExtResource("2_rsu4n")
theme_type_variation = &"RightLeaningPanel"

[node name="PlacementContainer" type="Control" parent="RightTextbox/ChatboxContainer/Chatbox"]
layout_mode = 2

[node name="NextIndicator" type="Label" parent="RightTextbox/ChatboxContainer/Chatbox/PlacementContainer"]
layout_mode = 1
anchors_preset = -1
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = -16.0
offset_bottom = -16.0
grow_horizontal = 0
grow_vertical = 0
text = ">"
label_settings = SubResource("LabelSettings_ydgvr")

[node name="MarginContainer" type="MarginContainer" parent="RightTextbox/ChatboxContainer/Chatbox/PlacementContainer"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.269
anchor_right = 0.919
anchor_bottom = 1.0
offset_left = -137.312
offset_right = -137.312
grow_vertical = 2
size_flags_horizontal = 0
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16

[node name="Text" type="Label" parent="RightTextbox/ChatboxContainer/Chatbox/PlacementContainer/MarginContainer"]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
size_flags_vertical = 1
text = "Lorem ipsum dolor sit amet
Quantiscat et sigmus dolmen romani ite domus
......."
label_settings = SubResource("LabelSettings_ydgvr")
autowrap_mode = 2
text_overrun_behavior = 3

[node name="Portrait" type="TextureRect" parent="RightTextbox/ChatboxContainer"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.65
anchor_right = 1.0
anchor_bottom = 1.0
grow_vertical = 0
texture = ExtResource("3_cbor4")
expand_mode = 1
stretch_mode = 5

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

[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_finished"]
