]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Textbox/vn_textbox_layer.tscn
Squashed commit of the following:
[wolf-seeking-sheep.git] / addons / dialogic / Modules / DefaultLayoutParts / Layer_VN_Textbox / vn_textbox_layer.tscn
1 [gd_scene load_steps=17 format=3 uid="uid://bquja8jyk8kbr"]
2
3 [ext_resource type="Script" uid="uid://buliao3l3o8mv" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Textbox/vn_textbox_layer.gd" id="1_bpydr"]
4 [ext_resource type="Script" uid="uid://b2ptheolvt6g0" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Textbox/animations.gd" id="2_xy7a2"]
5 [ext_resource type="Script" uid="uid://btk4mmvkq6o32" path="res://addons/dialogic/Modules/Text/node_dialog_text.gd" id="3_4634k"]
6 [ext_resource type="StyleBox" uid="uid://dkv1pl1c1dq6" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Textbox/vn_textbox_default_panel.tres" id="3_ssa84"]
7 [ext_resource type="Script" uid="uid://cidhx6kqjya8i" path="res://addons/dialogic/Modules/Text/node_type_sound.gd" id="4_ma5mw"]
8 [ext_resource type="Script" uid="uid://couwh44n0wfjh" path="res://addons/dialogic/Modules/Text/node_next_indicator.gd" id="5_40a50"]
9 [ext_resource type="Script" uid="uid://ctfg5axs1tpq" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Textbox/autoadvance_indicator.gd" id="6_07xym"]
10 [ext_resource type="Texture2D" uid="uid://b0rpqfg4fhebk" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Textbox/next.svg" id="6_uch03"]
11 [ext_resource type="Script" uid="uid://j5qtaorku321" path="res://addons/dialogic/Modules/Text/node_name_label.gd" id="7_bi7sh"]
12 [ext_resource type="StyleBox" uid="uid://m7gyepkysu83" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Textbox/vn_textbox_name_label_panel.tres" id="9_yg8ig"]
13
14 [sub_resource type="Animation" id="Animation_au0a2"]
15 length = 0.001
16 tracks/0/type = "value"
17 tracks/0/imported = false
18 tracks/0/enabled = true
19 tracks/0/path = NodePath("Anchor/AnimationParent:position")
20 tracks/0/interp = 1
21 tracks/0/loop_wrap = true
22 tracks/0/keys = {
23 "times": PackedFloat32Array(0),
24 "transitions": PackedFloat32Array(1),
25 "update": 0,
26 "values": [Vector2(0, 0)]
27 }
28 tracks/1/type = "value"
29 tracks/1/imported = false
30 tracks/1/enabled = true
31 tracks/1/path = NodePath("Anchor/AnimationParent:rotation")
32 tracks/1/interp = 1
33 tracks/1/loop_wrap = true
34 tracks/1/keys = {
35 "times": PackedFloat32Array(0),
36 "transitions": PackedFloat32Array(1),
37 "update": 0,
38 "values": [0.0]
39 }
40 tracks/2/type = "value"
41 tracks/2/imported = false
42 tracks/2/enabled = true
43 tracks/2/path = NodePath("Anchor/AnimationParent:scale")
44 tracks/2/interp = 1
45 tracks/2/loop_wrap = true
46 tracks/2/keys = {
47 "times": PackedFloat32Array(0),
48 "transitions": PackedFloat32Array(1),
49 "update": 0,
50 "values": [Vector2(1, 1)]
51 }
52 tracks/3/type = "value"
53 tracks/3/imported = false
54 tracks/3/enabled = true
55 tracks/3/path = NodePath("Anchor/AnimationParent:modulate")
56 tracks/3/interp = 1
57 tracks/3/loop_wrap = true
58 tracks/3/keys = {
59 "times": PackedFloat32Array(0),
60 "transitions": PackedFloat32Array(1),
61 "update": 0,
62 "values": [Color(1, 1, 1, 1)]
63 }
64 tracks/4/type = "bezier"
65 tracks/4/imported = false
66 tracks/4/enabled = true
67 tracks/4/path = NodePath("Anchor/AnimationParent/Sizer/DialogTextPanel:rotation")
68 tracks/4/interp = 1
69 tracks/4/loop_wrap = true
70 tracks/4/keys = {
71 "handle_modes": PackedInt32Array(0),
72 "points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
73 "times": PackedFloat32Array(0)
74 }
75
76 [sub_resource type="Animation" id="Animation_6kbwc"]
77 resource_name = "new_text"
78 length = 0.4
79 tracks/0/type = "bezier"
80 tracks/0/imported = false
81 tracks/0/enabled = true
82 tracks/0/path = NodePath("Anchor/AnimationParent/Sizer/DialogTextPanel:rotation")
83 tracks/0/interp = 1
84 tracks/0/loop_wrap = true
85 tracks/0/keys = {
86 "handle_modes": PackedInt32Array(3, 3, 3, 3, 3),
87 "points": PackedFloat32Array(0, -0.025, 0, 0.025, 0, 0.005, -0.025, 0, 0.025, 0, -0.005, -0.025, 0, 0.025, 0, 0.005, -0.025, 0, 0.025, 0, 0, -0.025, 0, 0.025, 0),
88 "times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4)
89 }
90
91 [sub_resource type="Animation" id="Animation_g6k55"]
92 resource_name = "textbox_fade_up"
93 length = 0.7
94 tracks/0/type = "value"
95 tracks/0/imported = false
96 tracks/0/enabled = true
97 tracks/0/path = NodePath("Anchor/AnimationParent:position")
98 tracks/0/interp = 2
99 tracks/0/loop_wrap = true
100 tracks/0/keys = {
101 "times": PackedFloat32Array(0, 0.3, 0.7),
102 "transitions": PackedFloat32Array(1, 1, 1),
103 "update": 0,
104 "values": [Vector2(0, 50), Vector2(0, 19.6793), Vector2(0, 0)]
105 }
106 tracks/1/type = "value"
107 tracks/1/imported = false
108 tracks/1/enabled = true
109 tracks/1/path = NodePath("Anchor/AnimationParent:modulate")
110 tracks/1/interp = 1
111 tracks/1/loop_wrap = true
112 tracks/1/keys = {
113 "times": PackedFloat32Array(0.1, 0.6),
114 "transitions": PackedFloat32Array(1, 1),
115 "update": 0,
116 "values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
117 }
118 tracks/2/type = "value"
119 tracks/2/imported = false
120 tracks/2/enabled = true
121 tracks/2/path = NodePath("Anchor/AnimationParent:rotation")
122 tracks/2/interp = 1
123 tracks/2/loop_wrap = true
124 tracks/2/keys = {
125 "times": PackedFloat32Array(0),
126 "transitions": PackedFloat32Array(1),
127 "update": 0,
128 "values": [0.0]
129 }
130 tracks/3/type = "value"
131 tracks/3/imported = false
132 tracks/3/enabled = true
133 tracks/3/path = NodePath("Anchor/AnimationParent:scale")
134 tracks/3/interp = 1
135 tracks/3/loop_wrap = true
136 tracks/3/keys = {
137 "times": PackedFloat32Array(0),
138 "transitions": PackedFloat32Array(1),
139 "update": 0,
140 "values": [Vector2(1, 1)]
141 }
142
143 [sub_resource type="Animation" id="Animation_htbgc"]
144 resource_name = "textbox_pop"
145 length = 0.3
146 tracks/0/type = "value"
147 tracks/0/imported = false
148 tracks/0/enabled = true
149 tracks/0/path = NodePath("Anchor/AnimationParent:position")
150 tracks/0/interp = 2
151 tracks/0/loop_wrap = true
152 tracks/0/keys = {
153 "times": PackedFloat32Array(0),
154 "transitions": PackedFloat32Array(1),
155 "update": 0,
156 "values": [Vector2(0, 0)]
157 }
158 tracks/1/type = "value"
159 tracks/1/imported = false
160 tracks/1/enabled = true
161 tracks/1/path = NodePath("Anchor/AnimationParent:rotation")
162 tracks/1/interp = 2
163 tracks/1/loop_wrap = true
164 tracks/1/keys = {
165 "times": PackedFloat32Array(0, 0.2, 0.3),
166 "transitions": PackedFloat32Array(1, 1, 1),
167 "update": 0,
168 "values": [-0.0899883, 0.0258223, 0.0]
169 }
170 tracks/2/type = "value"
171 tracks/2/imported = false
172 tracks/2/enabled = true
173 tracks/2/path = NodePath("Anchor/AnimationParent:scale")
174 tracks/2/interp = 2
175 tracks/2/loop_wrap = true
176 tracks/2/keys = {
177 "times": PackedFloat32Array(0, 0.2, 0.3),
178 "transitions": PackedFloat32Array(1, 1, 1),
179 "update": 0,
180 "values": [Vector2(0.793957, 0.778082), Vector2(0.937299, 1.14248), Vector2(1, 1)]
181 }
182 tracks/3/type = "value"
183 tracks/3/imported = false
184 tracks/3/enabled = true
185 tracks/3/path = NodePath("Anchor/AnimationParent:modulate")
186 tracks/3/interp = 1
187 tracks/3/loop_wrap = true
188 tracks/3/keys = {
189 "times": PackedFloat32Array(0, 0.3),
190 "transitions": PackedFloat32Array(1, 1),
191 "update": 0,
192 "values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
193 }
194
195 [sub_resource type="AnimationLibrary" id="AnimationLibrary_c14kh"]
196 _data = {
197 &"RESET": SubResource("Animation_au0a2"),
198 &"new_text": SubResource("Animation_6kbwc"),
199 &"textbox_fade_up": SubResource("Animation_g6k55"),
200 &"textbox_pop": SubResource("Animation_htbgc")
201 }
202
203 [sub_resource type="FontVariation" id="FontVariation_v8y64"]
204
205 [node name="VN_TextboxLayer" type="Control"]
206 layout_mode = 3
207 anchors_preset = 15
208 anchor_right = 1.0
209 anchor_bottom = 1.0
210 grow_horizontal = 2
211 grow_vertical = 2
212 mouse_filter = 2
213 script = ExtResource("1_bpydr")
214 box_panel = "res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Textbox/vn_textbox_default_panel.tres"
215 box_size = Vector2(550, 150)
216 name_label_box_panel = "res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Textbox/vn_textbox_name_label_panel.tres"
217 name_label_box_modulate = Color(0, 0, 0, 1)
218
219 [node name="Animations" type="AnimationPlayer" parent="."]
220 unique_name_in_owner = true
221 libraries = {
222 "": SubResource("AnimationLibrary_c14kh")
223 }
224 autoplay = "RESET"
225 script = ExtResource("2_xy7a2")
226
227 [node name="Anchor" type="Control" parent="."]
228 layout_mode = 1
229 anchors_preset = 7
230 anchor_left = 0.5
231 anchor_top = 1.0
232 anchor_right = 0.5
233 anchor_bottom = 1.0
234 grow_horizontal = 2
235 grow_vertical = 0
236
237 [node name="AnimationParent" type="Control" parent="Anchor"]
238 layout_mode = 1
239 anchors_preset = 7
240 anchor_left = 0.5
241 anchor_top = 1.0
242 anchor_right = 0.5
243 anchor_bottom = 1.0
244 grow_horizontal = 2
245 grow_vertical = 0
246 mouse_filter = 2
247
248 [node name="Sizer" type="Control" parent="Anchor/AnimationParent"]
249 unique_name_in_owner = true
250 layout_mode = 1
251 anchors_preset = 7
252 anchor_left = 0.5
253 anchor_top = 1.0
254 anchor_right = 0.5
255 anchor_bottom = 1.0
256 offset_left = -150.0
257 offset_top = -50.0
258 offset_right = 150.0
259 grow_horizontal = 2
260 grow_vertical = 0
261 mouse_filter = 2
262
263 [node name="DialogTextPanel" type="PanelContainer" parent="Anchor/AnimationParent/Sizer"]
264 unique_name_in_owner = true
265 self_modulate = Color(0.00784314, 0.00784314, 0.00784314, 0.843137)
266 layout_mode = 1
267 anchors_preset = 15
268 anchor_right = 1.0
269 anchor_bottom = 1.0
270 grow_horizontal = 2
271 grow_vertical = 2
272 mouse_filter = 2
273 theme_override_styles/panel = ExtResource("3_ssa84")
274 metadata/_edit_layout_mode = 1
275
276 [node name="DialogicNode_DialogText" type="RichTextLabel" parent="Anchor/AnimationParent/Sizer/DialogTextPanel" node_paths=PackedStringArray("textbox_root")]
277 unique_name_in_owner = true
278 layout_mode = 2
279 mouse_filter = 1
280 theme_override_colors/default_color = Color(1, 1, 1, 1)
281 theme_override_font_sizes/normal_font_size = 15
282 theme_override_font_sizes/bold_font_size = 15
283 theme_override_font_sizes/italics_font_size = 15
284 theme_override_font_sizes/bold_italics_font_size = 15
285 bbcode_enabled = true
286 text = "Some default text"
287 visible_characters_behavior = 1
288 script = ExtResource("3_4634k")
289 textbox_root = NodePath("..")
290
291 [node name="DialogicNode_TypeSounds" type="AudioStreamPlayer" parent="Anchor/AnimationParent/Sizer/DialogTextPanel/DialogicNode_DialogText"]
292 unique_name_in_owner = true
293 script = ExtResource("4_ma5mw")
294 play_every_character = 0
295
296 [node name="NextIndicator" type="Control" parent="Anchor/AnimationParent/Sizer/DialogTextPanel"]
297 unique_name_in_owner = true
298 layout_mode = 2
299 size_flags_horizontal = 8
300 size_flags_vertical = 8
301 mouse_filter = 2
302 script = ExtResource("5_40a50")
303 show_on_questions = true
304 texture = ExtResource("6_uch03")
305 metadata/_edit_layout_mode = 1
306
307 [node name="AutoAdvanceProgressbar" type="ProgressBar" parent="Anchor/AnimationParent/Sizer/DialogTextPanel"]
308 unique_name_in_owner = true
309 modulate = Color(1, 1, 1, 0.188235)
310 custom_minimum_size = Vector2(0, 10)
311 layout_mode = 2
312 size_flags_vertical = 8
313 mouse_filter = 2
314 max_value = 1.0
315 step = 0.001
316 value = 0.5
317 show_percentage = false
318 script = ExtResource("6_07xym")
319
320 [node name="NameLabelHolder" type="Control" parent="Anchor/AnimationParent/Sizer/DialogTextPanel"]
321 layout_mode = 2
322 mouse_filter = 2
323
324 [node name="NameLabelPanel" type="PanelContainer" parent="Anchor/AnimationParent/Sizer/DialogTextPanel/NameLabelHolder"]
325 unique_name_in_owner = true
326 self_modulate = Color(0.00784314, 0.00784314, 0.00784314, 0.843137)
327 layout_mode = 1
328 offset_top = -50.0
329 offset_right = 9.0
330 offset_bottom = -25.0
331 mouse_filter = 2
332 theme_override_styles/panel = ExtResource("9_yg8ig")
333 metadata/_edit_layout_mode = 1
334 metadata/_edit_use_custom_anchors = true
335 metadata/_edit_group_ = true
336
337 [node name="DialogicNode_NameLabel" type="Label" parent="Anchor/AnimationParent/Sizer/DialogTextPanel/NameLabelHolder/NameLabelPanel" node_paths=PackedStringArray("name_label_root")]
338 unique_name_in_owner = true
339 layout_mode = 2
340 theme_override_colors/font_color = Color(1, 1, 1, 1)
341 theme_override_fonts/font = SubResource("FontVariation_v8y64")
342 theme_override_font_sizes/font_size = 15
343 text = "S"
344 script = ExtResource("7_bi7sh")
345 name_label_root = NodePath("..")