No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dialog.tscn 8.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. [gd_scene load_steps=14 format=2]
  2. [ext_resource path="res://addons/dialogic/Images/next-indicator.png" type="Texture" id=1]
  3. [ext_resource path="res://addons/dialogic/Images/background/background-2.png" type="Texture" id=2]
  4. [ext_resource path="res://addons/dialogic/Fonts/DefaultFont.tres" type="DynamicFont" id=3]
  5. [ext_resource path="res://addons/dialogic/Fonts/GlossaryFont.tres" type="DynamicFont" id=4]
  6. [ext_resource path="res://addons/dialogic/Nodes/glossary_info.gd" type="Script" id=5]
  7. [ext_resource path="res://addons/dialogic/Nodes/dialog_node.gd" type="Script" id=6]
  8. [ext_resource path="res://addons/dialogic/Nodes/BackgroundMusic.tscn" type="PackedScene" id=7]
  9. [sub_resource type="StyleBoxFlat" id=1]
  10. bg_color = Color( 1, 1, 1, 0 )
  11. expand_margin_left = 10.0
  12. [sub_resource type="Animation" id=2]
  13. resource_name = "Pulse"
  14. loop = true
  15. tracks/0/type = "value"
  16. tracks/0/path = NodePath(".:self_modulate")
  17. tracks/0/interp = 2
  18. tracks/0/loop_wrap = true
  19. tracks/0/imported = false
  20. tracks/0/enabled = true
  21. tracks/0/keys = {
  22. "times": PoolRealArray( 0, 0.5 ),
  23. "transitions": PoolRealArray( 1, 1 ),
  24. "update": 0,
  25. "values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
  26. }
  27. [sub_resource type="Animation" id=3]
  28. resource_name = "Static"
  29. [sub_resource type="Animation" id=4]
  30. loop = true
  31. tracks/0/type = "value"
  32. tracks/0/path = NodePath(".:margin_bottom")
  33. tracks/0/interp = 2
  34. tracks/0/loop_wrap = true
  35. tracks/0/imported = false
  36. tracks/0/enabled = true
  37. tracks/0/keys = {
  38. "times": PoolRealArray( 0, 0.5 ),
  39. "transitions": PoolRealArray( 1, 1 ),
  40. "update": 0,
  41. "values": [ 12.0, 55.0 ]
  42. }
  43. [sub_resource type="StyleBoxFlat" id=5]
  44. content_margin_left = 10.0
  45. content_margin_right = 10.0
  46. bg_color = Color( 1, 1, 1, 0 )
  47. expand_margin_left = 10.0
  48. [sub_resource type="StyleBoxFlat" id=6]
  49. bg_color = Color( 0.196078, 0.196078, 0.196078, 0 )
  50. [node name="DialogNode" type="Control"]
  51. anchor_right = 1.0
  52. anchor_bottom = 1.0
  53. script = ExtResource( 6 )
  54. __meta__ = {
  55. "_edit_use_anchors_": false
  56. }
  57. [node name="Background" type="TextureRect" parent="."]
  58. visible = false
  59. anchor_right = 1.0
  60. anchor_bottom = 1.0
  61. expand = true
  62. stretch_mode = 1
  63. __meta__ = {
  64. "_edit_use_anchors_": false
  65. }
  66. [node name="Portraits" type="Control" parent="."]
  67. anchor_left = 0.5
  68. anchor_top = 1.0
  69. anchor_right = 0.5
  70. anchor_bottom = 1.0
  71. __meta__ = {
  72. "_edit_use_anchors_": false
  73. }
  74. [node name="TextBubble" type="Control" parent="."]
  75. anchor_left = 0.5
  76. anchor_top = 1.0
  77. anchor_right = 0.5
  78. anchor_bottom = 1.0
  79. margin_left = -250.0
  80. margin_top = -207.0
  81. margin_right = 250.0
  82. margin_bottom = -40.0
  83. __meta__ = {
  84. "_edit_use_anchors_": false
  85. }
  86. [node name="ColorRect" type="ColorRect" parent="TextBubble"]
  87. visible = false
  88. anchor_right = 1.0
  89. anchor_bottom = 1.0
  90. color = Color( 0, 0, 0, 1 )
  91. __meta__ = {
  92. "_edit_use_anchors_": false
  93. }
  94. [node name="TextureRect" type="TextureRect" parent="TextBubble"]
  95. anchor_right = 1.0
  96. anchor_bottom = 1.0
  97. texture = ExtResource( 2 )
  98. expand = true
  99. stretch_mode = 1
  100. __meta__ = {
  101. "_edit_use_anchors_": false
  102. }
  103. [node name="RichTextLabel" type="RichTextLabel" parent="TextBubble"]
  104. anchor_right = 1.0
  105. anchor_bottom = 1.0
  106. margin_left = 20.0
  107. margin_top = 10.0
  108. margin_right = -20.0
  109. margin_bottom = -10.0
  110. rect_clip_content = false
  111. custom_styles/normal = SubResource( 1 )
  112. custom_fonts/normal_font = ExtResource( 3 )
  113. custom_colors/default_color = Color( 1, 1, 1, 1 )
  114. custom_colors/font_color_shadow = Color( 1, 1, 1, 0 )
  115. custom_constants/shadow_offset_x = 2
  116. custom_constants/shadow_offset_y = 2
  117. bbcode_enabled = true
  118. bbcode_text = "Placeholder text for testing and formatting."
  119. meta_underlined = false
  120. text = "Placeholder text for testing and formatting."
  121. __meta__ = {
  122. "_edit_use_anchors_": false
  123. }
  124. [node name="NextIndicator" type="TextureRect" parent="TextBubble"]
  125. visible = false
  126. anchor_left = 1.0
  127. anchor_top = 1.0
  128. anchor_right = 1.0
  129. anchor_bottom = 1.0
  130. margin_left = -36.4279
  131. margin_top = -35.9016
  132. margin_right = 14.5721
  133. margin_bottom = 29.4015
  134. rect_scale = Vector2( 0.4, 0.4 )
  135. texture = ExtResource( 1 )
  136. stretch_mode = 4
  137. __meta__ = {
  138. "_edit_use_anchors_": false
  139. }
  140. [node name="AnimationPlayer" type="AnimationPlayer" parent="TextBubble/NextIndicator"]
  141. autoplay = "Up and down"
  142. anims/Pulse = SubResource( 2 )
  143. anims/Static = SubResource( 3 )
  144. "anims/Up and down" = SubResource( 4 )
  145. [node name="NameLabel" type="Label" parent="TextBubble"]
  146. margin_top = -48.0
  147. margin_right = 58.0
  148. margin_bottom = -8.0
  149. size_flags_vertical = 1
  150. custom_styles/normal = SubResource( 5 )
  151. custom_fonts/font = ExtResource( 3 )
  152. custom_colors/font_color = Color( 1, 1, 1, 1 )
  153. custom_colors/font_color_shadow = Color( 0, 0, 0, 0.619608 )
  154. custom_constants/shadow_offset_x = 2
  155. custom_constants/shadow_offset_y = 2
  156. align = 1
  157. valign = 1
  158. __meta__ = {
  159. "_edit_use_anchors_": false
  160. }
  161. [node name="ColorRect" type="ColorRect" parent="TextBubble/NameLabel"]
  162. visible = false
  163. show_behind_parent = true
  164. anchor_right = 1.0
  165. anchor_bottom = 1.0
  166. size_flags_horizontal = 15
  167. size_flags_vertical = 15
  168. color = Color( 0.156863, 0.156863, 0.156863, 1 )
  169. __meta__ = {
  170. "_edit_use_anchors_": false
  171. }
  172. [node name="TextureRect" type="TextureRect" parent="TextBubble/NameLabel"]
  173. show_behind_parent = true
  174. anchor_right = 1.0
  175. anchor_bottom = 1.0
  176. size_flags_horizontal = 3
  177. size_flags_vertical = 3
  178. texture = ExtResource( 2 )
  179. expand = true
  180. stretch_mode = 1
  181. __meta__ = {
  182. "_edit_use_anchors_": false
  183. }
  184. [node name="Tween" type="Tween" parent="TextBubble"]
  185. [node name="Options" type="VBoxContainer" parent="."]
  186. anchor_left = 0.5
  187. anchor_top = 0.5
  188. anchor_right = 0.5
  189. anchor_bottom = 0.5
  190. margin_left = -20.0
  191. margin_top = -19.9999
  192. margin_right = 20.0
  193. margin_bottom = 19.9999
  194. grow_horizontal = 2
  195. grow_vertical = 2
  196. __meta__ = {
  197. "_edit_use_anchors_": false
  198. }
  199. [node name="TextInputDialog" type="AcceptDialog" parent="."]
  200. anchor_left = 0.5
  201. anchor_top = 0.5
  202. anchor_right = 0.5
  203. anchor_bottom = 0.5
  204. margin_left = -192.0
  205. margin_top = -57.0
  206. margin_right = 192.0
  207. margin_bottom = 57.0
  208. popup_exclusive = true
  209. dialog_hide_on_ok = false
  210. __meta__ = {
  211. "_edit_use_anchors_": false
  212. }
  213. [node name="LineEdit" type="LineEdit" parent="TextInputDialog"]
  214. margin_left = 8.0
  215. margin_top = 8.0
  216. margin_right = 376.0
  217. margin_bottom = 78.0
  218. [node name="FX" type="Control" parent="."]
  219. anchor_right = 1.0
  220. anchor_bottom = 1.0
  221. mouse_filter = 2
  222. __meta__ = {
  223. "_edit_group_": true,
  224. "_edit_lock_": true,
  225. "_edit_use_anchors_": false
  226. }
  227. [node name="FadeInNode" type="ColorRect" parent="FX"]
  228. modulate = Color( 1, 1, 1, 0 )
  229. anchor_right = 1.0
  230. anchor_bottom = 1.0
  231. mouse_filter = 2
  232. color = Color( 0, 0, 0, 1 )
  233. __meta__ = {
  234. "_edit_use_anchors_": false
  235. }
  236. [node name="Tween" type="Tween" parent="FX/FadeInNode"]
  237. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="FX"]
  238. [node name="BackgroundMusic" parent="FX" instance=ExtResource( 7 )]
  239. [node name="DefinitionInfo" type="PanelContainer" parent="."]
  240. visible = false
  241. margin_right = 208.0
  242. mouse_filter = 1
  243. size_flags_horizontal = 3
  244. size_flags_vertical = 3
  245. custom_styles/panel = SubResource( 6 )
  246. script = ExtResource( 5 )
  247. __meta__ = {
  248. "_edit_group_": true,
  249. "_edit_use_anchors_": false
  250. }
  251. [node name="ColorRect" type="ColorRect" parent="DefinitionInfo"]
  252. mouse_filter = 1
  253. size_flags_horizontal = 0
  254. size_flags_vertical = 0
  255. color = Color( 0.12549, 0.12549, 0.12549, 1 )
  256. __meta__ = {
  257. "_edit_use_anchors_": false
  258. }
  259. [node name="VBoxContainer" type="VBoxContainer" parent="DefinitionInfo"]
  260. margin_right = 208.0
  261. margin_bottom = 143.0
  262. size_flags_horizontal = 3
  263. size_flags_vertical = 2
  264. __meta__ = {
  265. "_edit_use_anchors_": false
  266. }
  267. [node name="Title" type="RichTextLabel" parent="DefinitionInfo/VBoxContainer"]
  268. margin_right = 208.0
  269. margin_bottom = 27.0
  270. size_flags_horizontal = 3
  271. size_flags_vertical = 4
  272. custom_styles/normal = SubResource( 1 )
  273. custom_fonts/normal_font = ExtResource( 4 )
  274. bbcode_text = "This is the title"
  275. text = "This is the title"
  276. fit_content_height = true
  277. scroll_active = false
  278. [node name="Content" type="RichTextLabel" parent="DefinitionInfo/VBoxContainer"]
  279. margin_top = 31.0
  280. margin_right = 208.0
  281. margin_bottom = 112.0
  282. size_flags_horizontal = 3
  283. custom_styles/normal = SubResource( 1 )
  284. custom_fonts/normal_font = ExtResource( 4 )
  285. text = "This is the main copy. Here you write the relevant"
  286. fit_content_height = true
  287. scroll_active = false
  288. __meta__ = {
  289. "_edit_use_anchors_": false
  290. }
  291. [node name="Extra" type="RichTextLabel" parent="DefinitionInfo/VBoxContainer"]
  292. self_modulate = Color( 1, 1, 1, 0.345098 )
  293. margin_top = 116.0
  294. margin_right = 208.0
  295. margin_bottom = 143.0
  296. size_flags_horizontal = 3
  297. custom_styles/normal = SubResource( 1 )
  298. custom_fonts/normal_font = ExtResource( 4 )
  299. text = "Una linea extra"
  300. fit_content_height = true
  301. scroll_active = false
  302. __meta__ = {
  303. "_edit_use_anchors_": false
  304. }
  305. [node name="Timer" type="Timer" parent="DefinitionInfo"]
  306. [node name="WaitSeconds" type="Timer" parent="."]
  307. [connection signal="meta_hover_ended" from="TextBubble/RichTextLabel" to="." method="_on_RichTextLabel_meta_hover_ended"]
  308. [connection signal="meta_hover_started" from="TextBubble/RichTextLabel" to="." method="_on_RichTextLabel_meta_hover_started"]
  309. [connection signal="timeout" from="DefinitionInfo/Timer" to="." method="_on_Definition_Timer_timeout"]
  310. [connection signal="timeout" from="WaitSeconds" to="." method="_on_WaitSeconds_timeout"]