1- [gd_scene load_steps =30 format =3 uid ="uid://uan2wdyuprb6" ]
1+ [gd_scene load_steps =31 format =3 uid ="uid://uan2wdyuprb6" ]
22
33[ext_resource type ="Script" path ="res://addons/dialogic/Modules/DefaultLayouts/Default/DialogicDefaultLayout.gd" id ="1" ]
44[ext_resource type ="Script" path ="res://addons/dialogic/Modules/Text/node_dialog_text.gd" id ="2" ]
@@ -27,19 +27,19 @@ length = 0.001
2727tracks/0/type = "value"
2828tracks/0/imported = false
2929tracks/0/enabled = true
30- tracks/0/path = NodePath ("DialogTextAnimationParent:position" )
30+ tracks/0/path = NodePath ("DialogicTextAnchor/ DialogTextAnimationParent:position" )
3131tracks/0/interp = 1
3232tracks/0/loop_wrap = true
3333tracks/0/keys = {
3434"times" : PackedFloat32Array (0 ),
3535"transitions" : PackedFloat32Array (1 ),
3636"update" : 0 ,
37- "values" : [Vector2 (576 , 648 )]
37+ "values" : [Vector2 (0 , 0 )]
3838}
3939tracks/1/type = "value"
4040tracks/1/imported = false
4141tracks/1/enabled = true
42- tracks/1/path = NodePath ("DialogTextAnimationParent:rotation" )
42+ tracks/1/path = NodePath ("DialogicTextAnchor/ DialogTextAnimationParent:rotation" )
4343tracks/1/interp = 1
4444tracks/1/loop_wrap = true
4545tracks/1/keys = {
@@ -51,7 +51,7 @@ tracks/1/keys = {
5151tracks/2/type = "value"
5252tracks/2/imported = false
5353tracks/2/enabled = true
54- tracks/2/path = NodePath ("DialogTextAnimationParent:scale" )
54+ tracks/2/path = NodePath ("DialogicTextAnchor/ DialogTextAnimationParent:scale" )
5555tracks/2/interp = 1
5656tracks/2/loop_wrap = true
5757tracks/2/keys = {
@@ -63,7 +63,7 @@ tracks/2/keys = {
6363tracks/3/type = "value"
6464tracks/3/imported = false
6565tracks/3/enabled = true
66- tracks/3/path = NodePath ("DialogTextAnimationParent:modulate" )
66+ tracks/3/path = NodePath ("DialogicTextAnchor/ DialogTextAnimationParent:modulate" )
6767tracks/3/interp = 1
6868tracks/3/loop_wrap = true
6969tracks/3/keys = {
@@ -75,7 +75,7 @@ tracks/3/keys = {
7575tracks/4/type = "bezier"
7676tracks/4/imported = false
7777tracks/4/enabled = true
78- tracks/4/path = NodePath ("% DialogTextPanel:rotation" )
78+ tracks/4/path = NodePath ("DialogicTextAnchor/DialogTextAnimationParent/ DialogTextPanel:rotation" )
7979tracks/4/interp = 1
8080tracks/4/loop_wrap = true
8181tracks/4/keys = {
@@ -90,7 +90,7 @@ length = 0.4
9090tracks/0/type = "method"
9191tracks/0/imported = false
9292tracks/0/enabled = true
93- tracks/0/path = NodePath ("% DialogicNode_DialogText" )
93+ tracks/0/path = NodePath ("DialogicTextAnchor/DialogTextAnimationParent/DialogTextPanel/ DialogicNode_DialogText" )
9494tracks/0/interp = 1
9595tracks/0/loop_wrap = true
9696tracks/0/keys = {
@@ -104,7 +104,7 @@ tracks/0/keys = {
104104tracks/1/type = "bezier"
105105tracks/1/imported = false
106106tracks/1/enabled = true
107- tracks/1/path = NodePath ("% DialogTextPanel:rotation" )
107+ tracks/1/path = NodePath ("DialogicTextAnchor/DialogTextAnimationParent/ DialogTextPanel:rotation" )
108108tracks/1/interp = 1
109109tracks/1/loop_wrap = true
110110tracks/1/keys = {
@@ -113,25 +113,77 @@ tracks/1/keys = {
113113"times" : PackedFloat32Array (0 , 0.1 , 0.2 , 0.3 , 0.4 )
114114}
115115
116+ [sub_resource type ="Animation" id ="Animation_g6k55" ]
117+ resource_name = "textbox_fade_up"
118+ length = 0.7
119+ tracks/0/type = "value"
120+ tracks/0/imported = false
121+ tracks/0/enabled = true
122+ tracks/0/path = NodePath ("DialogicTextAnchor/DialogTextAnimationParent:position" )
123+ tracks/0/interp = 2
124+ tracks/0/loop_wrap = true
125+ tracks/0/keys = {
126+ "times" : PackedFloat32Array (0 , 0.3 , 0.7 ),
127+ "transitions" : PackedFloat32Array (1 , 1 , 1 ),
128+ "update" : 0 ,
129+ "values" : [Vector2 (0 , 50 ), Vector2 (0 , 19.6793 ), Vector2 (0 , 0 )]
130+ }
131+ tracks/1/type = "value"
132+ tracks/1/imported = false
133+ tracks/1/enabled = true
134+ tracks/1/path = NodePath ("DialogicTextAnchor/DialogTextAnimationParent:modulate" )
135+ tracks/1/interp = 1
136+ tracks/1/loop_wrap = true
137+ tracks/1/keys = {
138+ "times" : PackedFloat32Array (0.1 , 0.6 ),
139+ "transitions" : PackedFloat32Array (1 , 1 ),
140+ "update" : 0 ,
141+ "values" : [Color (1 , 1 , 1 , 0 ), Color (1 , 1 , 1 , 1 )]
142+ }
143+ tracks/2/type = "value"
144+ tracks/2/imported = false
145+ tracks/2/enabled = true
146+ tracks/2/path = NodePath ("DialogicTextAnchor/DialogTextAnimationParent:rotation" )
147+ tracks/2/interp = 1
148+ tracks/2/loop_wrap = true
149+ tracks/2/keys = {
150+ "times" : PackedFloat32Array (0 ),
151+ "transitions" : PackedFloat32Array (1 ),
152+ "update" : 0 ,
153+ "values" : [0.0 ]
154+ }
155+ tracks/3/type = "value"
156+ tracks/3/imported = false
157+ tracks/3/enabled = true
158+ tracks/3/path = NodePath ("DialogicTextAnchor/DialogTextAnimationParent:scale" )
159+ tracks/3/interp = 1
160+ tracks/3/loop_wrap = true
161+ tracks/3/keys = {
162+ "times" : PackedFloat32Array (0 ),
163+ "transitions" : PackedFloat32Array (1 ),
164+ "update" : 0 ,
165+ "values" : [Vector2 (1 , 1 )]
166+ }
167+
116168[sub_resource type ="Animation" id ="Animation_htbgc" ]
117- resource_name = "text_box_reveal "
169+ resource_name = "textbox_pop "
118170length = 0.3
119171tracks/0/type = "value"
120172tracks/0/imported = false
121173tracks/0/enabled = true
122- tracks/0/path = NodePath ("DialogTextAnimationParent:position" )
174+ tracks/0/path = NodePath ("DialogicTextAnchor/ DialogTextAnimationParent:position" )
123175tracks/0/interp = 2
124176tracks/0/loop_wrap = true
125177tracks/0/keys = {
126- "times" : PackedFloat32Array (0 , 0.2 , 0.3 ),
127- "transitions" : PackedFloat32Array (1 , 1 , 1 ),
178+ "times" : PackedFloat32Array (0 ),
179+ "transitions" : PackedFloat32Array (1 ),
128180"update" : 0 ,
129- "values" : [Vector2 (577 , 700 ), Vector2 ( 582 , 647 ), Vector2 ( 576 , 648 )]
181+ "values" : [Vector2 (0 , 0 )]
130182}
131183tracks/1/type = "value"
132184tracks/1/imported = false
133185tracks/1/enabled = true
134- tracks/1/path = NodePath ("DialogTextAnimationParent:rotation" )
186+ tracks/1/path = NodePath ("DialogicTextAnchor/ DialogTextAnimationParent:rotation" )
135187tracks/1/interp = 2
136188tracks/1/loop_wrap = true
137189tracks/1/keys = {
@@ -143,7 +195,7 @@ tracks/1/keys = {
143195tracks/2/type = "value"
144196tracks/2/imported = false
145197tracks/2/enabled = true
146- tracks/2/path = NodePath ("DialogTextAnimationParent:scale" )
198+ tracks/2/path = NodePath ("DialogicTextAnchor/ DialogTextAnimationParent:scale" )
147199tracks/2/interp = 2
148200tracks/2/loop_wrap = true
149201tracks/2/keys = {
@@ -155,7 +207,7 @@ tracks/2/keys = {
155207tracks/3/type = "value"
156208tracks/3/imported = false
157209tracks/3/enabled = true
158- tracks/3/path = NodePath ("DialogTextAnimationParent:modulate" )
210+ tracks/3/path = NodePath ("DialogicTextAnchor/ DialogTextAnimationParent:modulate" )
159211tracks/3/interp = 1
160212tracks/3/loop_wrap = true
161213tracks/3/keys = {
@@ -169,7 +221,8 @@ tracks/3/keys = {
169221_data = {
170222"RESET" : SubResource ("Animation_au0a2" ),
171223"new_text" : SubResource ("Animation_6kbwc" ),
172- "text_box_reveal" : SubResource ("Animation_htbgc" )
224+ "textbox_fade_up" : SubResource ("Animation_g6k55" ),
225+ "textbox_pop" : SubResource ("Animation_htbgc" )
173226}
174227
175228[sub_resource type ="StyleBoxFlat" id ="StyleBoxFlat_q3vpc" ]
@@ -213,7 +266,11 @@ expand_margin_bottom = 5.0
213266
214267[node name ="DefaultDialogNode" type ="CanvasLayer" ]
215268script = ExtResource ("1" )
269+ box_animation_in = 1
270+ box_animation_out = 1
271+ box_animation_new_text = 1
216272name_label_box_modulate = Color (0.00784314 , 0.00784314 , 0.00784314 , 0.843137 )
273+ autoadvance_progressbar = null
217274
218275[node name ="DialogicNode_BackgroundHolder" type ="CanvasLayer" parent ="." ]
219276layer = -1
@@ -275,7 +332,6 @@ grow_vertical = 2
275332mouse_filter = 2
276333script = ExtResource ("3_dbhei" )
277334position_index = 3
278- mirrored = true
279335metadata/_edit_use_anchors_ = true
280336
281337[node name ="DialogicNode_PortraitContainer5" type ="Control" parent ="Portraits/Portraits" ]
@@ -289,7 +345,6 @@ grow_vertical = 2
289345mouse_filter = 2
290346script = ExtResource ("3_dbhei" )
291347position_index = 4
292- mirrored = true
293348metadata/_edit_use_anchors_ = true
294349
295350[node name ="DefaultStyle" type ="Control" parent ="." ]
@@ -302,6 +357,7 @@ grow_vertical = 2
302357mouse_filter = 2
303358
304359[node name ="Animations" type ="AnimationPlayer" parent ="DefaultStyle" ]
360+ unique_name_in_owner = true
305361autoplay = "RESET"
306362libraries = {
307363"" : SubResource ("AnimationLibrary_c14kh" )
@@ -360,7 +416,17 @@ sound_pressed = ExtResource("14")
360416sound_hover = ExtResource ("11" )
361417sound_focus = ExtResource ("13" )
362418
363- [node name ="DialogTextAnimationParent" type ="Control" parent ="DefaultStyle" ]
419+ [node name ="DialogicTextAnchor" type ="Control" parent ="DefaultStyle" ]
420+ layout_mode = 1
421+ anchors_preset = 7
422+ anchor_left = 0.5
423+ anchor_top = 1.0
424+ anchor_right = 0.5
425+ anchor_bottom = 1.0
426+ grow_horizontal = 2
427+ grow_vertical = 0
428+
429+ [node name ="DialogTextAnimationParent" type ="Control" parent ="DefaultStyle/DialogicTextAnchor" ]
364430layout_mode = 1
365431anchors_preset = 7
366432anchor_left = 0.5
@@ -370,7 +436,7 @@ anchor_bottom = 1.0
370436grow_horizontal = 2
371437grow_vertical = 0
372438
373- [node name ="DialogTextPanel" type ="PanelContainer" parent ="DefaultStyle/DialogTextAnimationParent" ]
439+ [node name ="DialogTextPanel" type ="PanelContainer" parent ="DefaultStyle/DialogicTextAnchor/ DialogTextAnimationParent" ]
374440unique_name_in_owner = true
375441self_modulate = Color (0.00784314 , 0.00784314 , 0.00784314 , 0.843137 )
376442custom_minimum_size = Vector2 (500 , 110 )
@@ -390,7 +456,7 @@ pivot_offset = Vector2(275, 60)
390456theme_override_styles/panel = SubResource ("StyleBoxFlat_q3vpc" )
391457metadata/_edit_layout_mode = 1
392458
393- [node name ="DialogicNode_DialogText" type ="RichTextLabel" parent ="DefaultStyle/DialogTextAnimationParent/DialogTextPanel" node_paths =PackedStringArray ("textbox_root" )]
459+ [node name ="DialogicNode_DialogText" type ="RichTextLabel" parent ="DefaultStyle/DialogicTextAnchor/ DialogTextAnimationParent/DialogTextPanel" node_paths =PackedStringArray ("textbox_root" )]
394460unique_name_in_owner = true
395461layout_mode = 2
396462theme_override_colors/default_color = Color (1 , 1 , 1 , 1 )
@@ -404,11 +470,11 @@ visible_characters_behavior = 1
404470script = ExtResource ("2" )
405471textbox_root = NodePath (".." )
406472
407- [node name ="DialogicNode_TypeSounds" type ="AudioStreamPlayer" parent ="DefaultStyle/DialogTextAnimationParent/DialogTextPanel/DialogicNode_DialogText" ]
473+ [node name ="DialogicNode_TypeSounds" type ="AudioStreamPlayer" parent ="DefaultStyle/DialogicTextAnchor/ DialogTextAnimationParent/DialogTextPanel/DialogicNode_DialogText" ]
408474script = ExtResource ("10" )
409475play_every_character = 0
410476
411- [node name ="NextIndicator" type ="Control" parent ="DefaultStyle/DialogTextAnimationParent/DialogTextPanel" ]
477+ [node name ="NextIndicator" type ="Control" parent ="DefaultStyle/DialogicTextAnchor/ DialogTextAnimationParent/DialogTextPanel" ]
412478unique_name_in_owner = true
413479layout_mode = 2
414480size_flags_horizontal = 8
@@ -417,7 +483,8 @@ script = ExtResource("20_ljcq2")
417483show_on_questions = true
418484metadata/_edit_layout_mode = 1
419485
420- [node name ="AutoAdvanceProgressbar" type ="ProgressBar" parent ="DefaultStyle/DialogTextAnimationParent/DialogTextPanel" ]
486+ [node name ="AutoAdvanceProgressbar" type ="ProgressBar" parent ="DefaultStyle/DialogicTextAnchor/DialogTextAnimationParent/DialogTextPanel" ]
487+ unique_name_in_owner = true
421488modulate = Color (1 , 1 , 1 , 0.188235 )
422489custom_minimum_size = Vector2 (0 , 10 )
423490layout_mode = 2
@@ -428,11 +495,11 @@ value = 0.5
428495show_percentage = false
429496script = ExtResource ("15_ptoy3" )
430497
431- [node name ="NameLabelHolder" type ="Control" parent ="DefaultStyle/DialogTextAnimationParent/DialogTextPanel" ]
498+ [node name ="NameLabelHolder" type ="Control" parent ="DefaultStyle/DialogicTextAnchor/ DialogTextAnimationParent/DialogTextPanel" ]
432499layout_mode = 2
433500mouse_filter = 2
434501
435- [node name ="NameLabelPanel" type ="PanelContainer" parent ="DefaultStyle/DialogTextAnimationParent/DialogTextPanel/NameLabelHolder" ]
502+ [node name ="NameLabelPanel" type ="PanelContainer" parent ="DefaultStyle/DialogicTextAnchor/ DialogTextAnimationParent/DialogTextPanel/NameLabelHolder" ]
436503unique_name_in_owner = true
437504self_modulate = Color (0.00784314 , 0.00784314 , 0.00784314 , 0.843137 )
438505layout_mode = 1
@@ -446,7 +513,7 @@ metadata/_edit_layout_mode = 1
446513metadata/_edit_use_custom_anchors = true
447514metadata/_edit_group_ = true
448515
449- [node name ="DialogicNode_NameLabel" type ="Label" parent ="DefaultStyle/DialogTextAnimationParent/DialogTextPanel/NameLabelHolder/NameLabelPanel" ]
516+ [node name ="DialogicNode_NameLabel" type ="Label" parent ="DefaultStyle/DialogicTextAnchor/ DialogTextAnimationParent/DialogTextPanel/NameLabelHolder/NameLabelPanel" ]
450517unique_name_in_owner = true
451518layout_mode = 2
452519theme_override_colors/font_color = Color (1 , 1 , 1 , 1 )
@@ -476,7 +543,7 @@ metadata/_edit_layout_mode = 1
476543
477544[node name ="TextInputPanel" type ="PanelContainer" parent ="DefaultStyle/DialogicNode_TextInput" ]
478545unique_name_in_owner = true
479- self_modulate = Color (0.360784 , 0.0941176 , 0.168627 , 1 )
546+ self_modulate = Color (0 , 0 , 0 , 0.780392 )
480547layout_mode = 1
481548anchors_preset = 15
482549anchor_right = 1.0
@@ -571,5 +638,5 @@ history_font_bold = ExtResource("24_aa4pl")
571638history_font_italics = ExtResource ("25_wt3bc" )
572639metadata/_edit_lock_ = true
573640
574- [connection signal ="meta_hover_ended" from ="DefaultStyle/DialogTextAnimationParent/DialogTextPanel/DialogicNode_DialogText" to ="DefaultStyle/Glossary" method ="_on_dialogic_display_dialog_text_meta_hover_ended" ]
575- [connection signal ="meta_hover_started" from ="DefaultStyle/DialogTextAnimationParent/DialogTextPanel/DialogicNode_DialogText" to ="DefaultStyle/Glossary" method ="_on_dialogic_display_dialog_text_meta_hover_started" ]
641+ [connection signal ="meta_hover_ended" from ="DefaultStyle/DialogicTextAnchor/ DialogTextAnimationParent/DialogTextPanel/DialogicNode_DialogText" to ="DefaultStyle/Glossary" method ="_on_dialogic_display_dialog_text_meta_hover_ended" ]
642+ [connection signal ="meta_hover_started" from ="DefaultStyle/DialogicTextAnchor/ DialogTextAnimationParent/DialogTextPanel/DialogicNode_DialogText" to ="DefaultStyle/Glossary" method ="_on_dialogic_display_dialog_text_meta_hover_started" ]
0 commit comments