]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Modules/DefaultLayoutParts/Layer_Textbubble/text_bubble.tscn
6277c5f5b1bc0cbf9904a1a368a5b32f66f817cf
[wolf-seeking-sheep.git] / addons / dialogic / Modules / DefaultLayoutParts / Layer_Textbubble / text_bubble.tscn
1 [gd_scene load_steps=11 format=3 uid="uid://dlx7jcvm52tyw"]
2
3 [ext_resource type="Script" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_Textbubble/text_bubble.gd" id="1_jdhpk"]
4 [ext_resource type="Shader" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_Textbubble/text_bubble.gdshader" id="2_1mhvf"]
5 [ext_resource type="Script" path="res://addons/dialogic/Modules/Text/node_dialog_text.gd" id="3_syv35"]
6 [ext_resource type="Script" path="res://addons/dialogic/Modules/Text/node_type_sound.gd" id="4_7bm4b"]
7 [ext_resource type="Script" path="res://addons/dialogic/Modules/Text/node_name_label.gd" id="6_5gd03"]
8
9 [sub_resource type="Curve" id="Curve_0j8nu"]
10 _data = [Vector2(0, 1), 0.0, -1.0, 0, 1, Vector2(1, 0), -1.0, 0.0, 1, 0]
11 point_count = 2
12
13 [sub_resource type="FastNoiseLite" id="FastNoiseLite_lsfnp"]
14 noise_type = 0
15 fractal_type = 0
16 cellular_jitter = 0.15
17
18 [sub_resource type="NoiseTexture2D" id="NoiseTexture2D_kr7hw"]
19 seamless = true
20 noise = SubResource("FastNoiseLite_lsfnp")
21
22 [sub_resource type="ShaderMaterial" id="ShaderMaterial_60xbe"]
23 resource_local_to_scene = true
24 shader = ExtResource("2_1mhvf")
25 shader_parameter/radius = 200.0
26 shader_parameter/box_size = Vector2(100, 100)
27 shader_parameter/box_padding = 10.0
28 shader_parameter/wobble_amount = 0.75
29 shader_parameter/wobble_speed = 10.0
30 shader_parameter/wobble_detail = 0.51
31 shader_parameter/deformation_sampler = SubResource("NoiseTexture2D_kr7hw")
32
33 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_h6ls0"]
34 content_margin_left = 5.0
35 content_margin_right = 5.0
36 bg_color = Color(1, 1, 1, 1)
37 corner_radius_top_left = 10
38 corner_radius_top_right = 10
39 corner_radius_bottom_right = 10
40 corner_radius_bottom_left = 10
41 shadow_color = Color(0.152941, 0.152941, 0.152941, 0.12549)
42 shadow_size = 5
43
44 [node name="TextBubble" type="Control"]
45 layout_mode = 3
46 anchors_preset = 0
47 script = ExtResource("1_jdhpk")
48
49 [node name="Group" type="CanvasGroup" parent="."]
50
51 [node name="Tail" type="Line2D" parent="Group"]
52 unique_name_in_owner = true
53 points = PackedVector2Array(-9, 7, -29, 118, -95, 174, -193, 195)
54 width = 96.0
55 width_curve = SubResource("Curve_0j8nu")
56
57 [node name="Background" type="ColorRect" parent="Group"]
58 unique_name_in_owner = true
59 material = SubResource("ShaderMaterial_60xbe")
60 offset_left = -115.0
61 offset_top = -69.0
62 offset_right = 108.0
63 offset_bottom = 83.0
64 mouse_filter = 2
65
66 [node name="DialogText" type="RichTextLabel" parent="." node_paths=PackedStringArray("textbox_root")]
67 unique_name_in_owner = true
68 clip_contents = false
69 layout_mode = 1
70 anchors_preset = 8
71 anchor_left = 0.5
72 anchor_top = 0.5
73 anchor_right = 0.5
74 anchor_bottom = 0.5
75 offset_left = -53.0
76 offset_top = -13.0
77 offset_right = 53.0
78 offset_bottom = 12.0
79 grow_horizontal = 2
80 grow_vertical = 2
81 theme_override_colors/default_color = Color(0, 0, 0, 1)
82 scroll_active = false
83 visible_characters_behavior = 1
84 script = ExtResource("3_syv35")
85 textbox_root = NodePath("..")
86
87 [node name="DialogicNode_TypeSounds" type="AudioStreamPlayer" parent="DialogText"]
88 script = ExtResource("4_7bm4b")
89
90 [node name="NameLabelPositioner" type="HBoxContainer" parent="DialogText"]
91 layout_mode = 1
92 anchors_preset = 10
93 anchor_right = 1.0
94 offset_bottom = 23.0
95 grow_horizontal = 2
96 alignment = 1
97
98 [node name="NameLabelPanel" type="PanelContainer" parent="DialogText/NameLabelPositioner"]
99 unique_name_in_owner = true
100 layout_mode = 2
101 theme_override_styles/panel = SubResource("StyleBoxFlat_h6ls0")
102
103 [node name="NameLabel" type="Label" parent="DialogText/NameLabelPositioner/NameLabelPanel" node_paths=PackedStringArray("name_label_root")]
104 unique_name_in_owner = true
105 layout_mode = 2
106 horizontal_alignment = 1
107 script = ExtResource("6_5gd03")
108 name_label_root = NodePath("..")
109 use_character_color = false
110
111 [connection signal="started_revealing_text" from="DialogText" to="." method="_on_dialog_text_started_revealing_text"]