ld-56/components/Dialogue/Dialogue.tscn
2024-10-06 04:22:46 -04:00

100 lines
2.8 KiB
Text

[gd_scene load_steps=6 format=3 uid="uid://mhltvrm84abx"]
[ext_resource type="Script" path="res://components/Dialogue/dialogue.gd" id="1_0g08k"]
[ext_resource type="Script" path="res://components/Dialogue/area.gd" id="3_4w6ab"]
[ext_resource type="Texture2D" uid="uid://camtxohytwrqd" path="res://components/Dialogue/textbox.png" id="3_o1ce5"]
[ext_resource type="Texture2D" uid="uid://yg134s8wlxmi" path="res://icon.svg" id="5_s3ups"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wsoph"]
size = Vector2(480, 80)
[node name="Dialogue" type="CanvasLayer"]
script = ExtResource("1_0g08k")
[node name="TextBox" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_left = 80.0
offset_top = 280.0
offset_right = 560.0
offset_bottom = 360.0
pivot_offset = Vector2(240, 80)
[node name="MinimizeHandler" type="Area2D" parent="TextBox"]
visible = false
z_index = 10
script = ExtResource("3_4w6ab")
[node name="CollisionShape2D" type="CollisionShape2D" parent="TextBox/MinimizeHandler"]
position = Vector2(240, 40)
shape = SubResource("RectangleShape2D_wsoph")
[node name="Graphics" type="TextureRect" parent="TextBox"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -240.0
offset_top = -80.0
offset_right = 240.0
grow_horizontal = 2
grow_vertical = 0
texture = ExtResource("3_o1ce5")
[node name="TextBoxAvatar" type="TextureRect" parent="TextBox/Graphics"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -206.0
offset_top = -104.0
offset_right = -158.0
offset_bottom = -40.0
grow_horizontal = 2
grow_vertical = 0
texture = ExtResource("5_s3ups")
[node name="TextBoxText" type="RichTextLabel" parent="TextBox/Graphics"]
modulate = Color(0.705882, 0.690196, 0.552941, 1)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -125.0
offset_top = -24.0
offset_right = 226.0
offset_bottom = 30.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_constants/shadow_offset_y = 1
theme_override_constants/shadow_offset_x = 0
theme_override_font_sizes/normal_font_size = 16
text = "This is test text"
[node name="TextBoxName" type="RichTextLabel" parent="TextBox/Graphics"]
modulate = Color(0.705882, 0.690196, 0.552941, 1)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -237.0
offset_top = 14.0
offset_right = -125.0
offset_bottom = 38.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_constants/shadow_offset_y = 1
theme_override_constants/shadow_offset_x = 0
theme_override_font_sizes/normal_font_size = 16
bbcode_enabled = true
text = "[center]NAME"