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.

TimelineEditor.tscn 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. [gd_scene load_steps=25 format=2]
  2. [ext_resource path="res://addons/dialogic/Images/character-join.svg" type="Texture" id=1]
  3. [ext_resource path="res://addons/dialogic/Images/dialog.svg" type="Texture" id=2]
  4. [ext_resource path="res://addons/dialogic/Images/Events/audio-event.svg" type="Texture" id=3]
  5. [ext_resource path="res://addons/dialogic/Images/Events/scene.svg" type="Texture" id=4]
  6. [ext_resource path="res://addons/dialogic/Images/condition.svg" type="Texture" id=5]
  7. [ext_resource path="res://addons/dialogic/Images/end-dialog.svg" type="Texture" id=6]
  8. [ext_resource path="res://addons/dialogic/Images/character-leave.svg" type="Texture" id=7]
  9. [ext_resource path="res://addons/dialogic/Images/question.svg" type="Texture" id=8]
  10. [ext_resource path="res://addons/dialogic/Images/end-choice.svg" type="Texture" id=9]
  11. [ext_resource path="res://addons/dialogic/Images/Events/change-timeline.svg" type="Texture" id=10]
  12. [ext_resource path="res://addons/dialogic/Images/Resources/definition.svg" type="Texture" id=11]
  13. [ext_resource path="res://addons/dialogic/Images/choice.svg" type="Texture" id=12]
  14. [ext_resource path="res://addons/dialogic/Images/tutorials/arrow-down.svg" type="Texture" id=13]
  15. [ext_resource path="res://addons/dialogic/Images/Events/Wait.svg" type="Texture" id=14]
  16. [ext_resource path="res://addons/dialogic/Images/Events/change-scene.svg" type="Texture" id=15]
  17. [ext_resource path="res://addons/dialogic/Images/signal.svg" type="Texture" id=16]
  18. [ext_resource path="res://addons/dialogic/Editor/TimelineEditor/TimelineEditor.gd" type="Script" id=17]
  19. [ext_resource path="res://addons/dialogic/Images/theme.svg" type="Texture" id=18]
  20. [ext_resource path="res://addons/dialogic/Images/Events/background-music.svg" type="Texture" id=19]
  21. [ext_resource path="res://addons/dialogic/Images/Script.svg" type="Texture" id=20]
  22. [ext_resource path="res://addons/dialogic/Editor/TimelineEditor/EventButton.gd" type="Script" id=21]
  23. [ext_resource path="res://addons/dialogic/Editor/TimelineEditor/TimelineArea.gd" type="Script" id=22]
  24. [sub_resource type="StyleBoxFlat" id=1]
  25. content_margin_left = 5.0
  26. content_margin_right = 5.0
  27. content_margin_top = 5.0
  28. content_margin_bottom = 5.0
  29. bg_color = Color( 0, 0, 0, 1 )
  30. border_width_left = 1
  31. border_width_top = 1
  32. border_width_right = 1
  33. border_width_bottom = 1
  34. border_color = Color( 0.0980392, 0.113725, 0.152941, 1 )
  35. [sub_resource type="StyleBoxFlat" id=2]
  36. content_margin_right = 6.0
  37. content_margin_top = 10.0
  38. content_margin_bottom = 10.0
  39. bg_color = Color( 0.94902, 1, 0.482353, 1 )
  40. corner_radius_top_left = 5
  41. corner_radius_top_right = 5
  42. corner_radius_bottom_right = 5
  43. corner_radius_bottom_left = 5
  44. [node name="TimelineEditor" type="HSplitContainer"]
  45. anchor_right = 1.0
  46. anchor_bottom = 1.0
  47. margin_bottom = 138.0
  48. size_flags_horizontal = 3
  49. size_flags_vertical = 3
  50. split_offset = 7
  51. script = ExtResource( 17 )
  52. __meta__ = {
  53. "_edit_use_anchors_": false
  54. }
  55. [node name="TimelineArea" type="ScrollContainer" parent="."]
  56. margin_right = 836.0
  57. margin_bottom = 738.0
  58. size_flags_horizontal = 3
  59. size_flags_vertical = 3
  60. custom_styles/bg = SubResource( 1 )
  61. script = ExtResource( 22 )
  62. __meta__ = {
  63. "_edit_use_anchors_": false
  64. }
  65. [node name="TimeLine" type="VBoxContainer" parent="TimelineArea"]
  66. margin_left = 5.0
  67. margin_top = 5.0
  68. margin_right = 831.0
  69. margin_bottom = 733.0
  70. grow_horizontal = 2
  71. grow_vertical = 2
  72. size_flags_horizontal = 3
  73. size_flags_vertical = 3
  74. [node name="ScrollContainer" type="ScrollContainer" parent="."]
  75. margin_left = 844.0
  76. margin_right = 1024.0
  77. margin_bottom = 738.0
  78. rect_min_size = Vector2( 180, 0 )
  79. [node name="EventContainer" type="VBoxContainer" parent="ScrollContainer"]
  80. margin_right = 180.0
  81. margin_bottom = 738.0
  82. size_flags_horizontal = 3
  83. size_flags_vertical = 3
  84. __meta__ = {
  85. "_edit_use_anchors_": false
  86. }
  87. [node name="EventsWarning" type="PanelContainer" parent="ScrollContainer/EventContainer"]
  88. margin_right = 180.0
  89. margin_bottom = 68.0
  90. custom_styles/panel = SubResource( 2 )
  91. [node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/EventContainer/EventsWarning"]
  92. margin_top = 10.0
  93. margin_right = 174.0
  94. margin_bottom = 58.0
  95. size_flags_horizontal = 3
  96. size_flags_vertical = 3
  97. __meta__ = {
  98. "_edit_use_anchors_": false
  99. }
  100. [node name="TextureRect" type="TextureRect" parent="ScrollContainer/EventContainer/EventsWarning/HBoxContainer"]
  101. margin_right = 40.0
  102. margin_bottom = 48.0
  103. rect_min_size = Vector2( 40, 40 )
  104. texture = ExtResource( 13 )
  105. stretch_mode = 4
  106. [node name="Label" type="Label" parent="ScrollContainer/EventContainer/EventsWarning/HBoxContainer"]
  107. margin_left = 44.0
  108. margin_right = 174.0
  109. margin_bottom = 48.0
  110. rect_min_size = Vector2( 100, 0 )
  111. size_flags_horizontal = 3
  112. size_flags_vertical = 1
  113. custom_colors/font_color = Color( 0, 0, 0, 1 )
  114. text = "Add an event to start building your timeline"
  115. autowrap = true
  116. [node name="HBoxContainer6" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
  117. margin_top = 72.0
  118. margin_right = 180.0
  119. margin_bottom = 86.0
  120. [node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer6"]
  121. margin_right = 77.0
  122. margin_bottom = 14.0
  123. text = "Main Events"
  124. [node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer6"]
  125. margin_left = 81.0
  126. margin_right = 180.0
  127. margin_bottom = 14.0
  128. size_flags_horizontal = 3
  129. [node name="TextBlock" type="Button" parent="ScrollContainer/EventContainer"]
  130. margin_top = 90.0
  131. margin_right = 180.0
  132. margin_bottom = 118.0
  133. text = " Text Event"
  134. icon = ExtResource( 2 )
  135. align = 0
  136. script = ExtResource( 21 )
  137. EventName = "TextBlock"
  138. [node name="CharacterJoinBlock" type="Button" parent="ScrollContainer/EventContainer"]
  139. margin_top = 122.0
  140. margin_right = 180.0
  141. margin_bottom = 150.0
  142. text = " Character Join"
  143. icon = ExtResource( 1 )
  144. align = 0
  145. script = ExtResource( 21 )
  146. EventName = "CharacterJoinBlock"
  147. [node name="CharacterLeaveBlock" type="Button" parent="ScrollContainer/EventContainer"]
  148. margin_top = 154.0
  149. margin_right = 180.0
  150. margin_bottom = 182.0
  151. text = " Character Leave"
  152. icon = ExtResource( 7 )
  153. align = 0
  154. script = ExtResource( 21 )
  155. EventName = "CharacterLeaveBlock"
  156. [node name="HBoxContainer5" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
  157. margin_top = 186.0
  158. margin_right = 180.0
  159. margin_bottom = 200.0
  160. [node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer5"]
  161. margin_right = 33.0
  162. margin_bottom = 14.0
  163. text = "Logic"
  164. [node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer5"]
  165. margin_left = 37.0
  166. margin_right = 180.0
  167. margin_bottom = 14.0
  168. size_flags_horizontal = 3
  169. [node name="ButtonQuestion" type="Button" parent="ScrollContainer/EventContainer"]
  170. margin_top = 204.0
  171. margin_right = 180.0
  172. margin_bottom = 232.0
  173. text = " Question"
  174. icon = ExtResource( 8 )
  175. align = 0
  176. script = ExtResource( 21 )
  177. EventName = "Question"
  178. [node name="Choice" type="Button" parent="ScrollContainer/EventContainer"]
  179. margin_top = 236.0
  180. margin_right = 180.0
  181. margin_bottom = 264.0
  182. text = " Choice"
  183. icon = ExtResource( 12 )
  184. align = 0
  185. script = ExtResource( 21 )
  186. EventName = "Choice"
  187. [node name="IfCondition" type="Button" parent="ScrollContainer/EventContainer"]
  188. margin_top = 268.0
  189. margin_right = 180.0
  190. margin_bottom = 296.0
  191. text = " Condition"
  192. icon = ExtResource( 5 )
  193. align = 0
  194. script = ExtResource( 21 )
  195. EventName = "IfCondition"
  196. [node name="EndBranch" type="Button" parent="ScrollContainer/EventContainer"]
  197. margin_top = 300.0
  198. margin_right = 180.0
  199. margin_bottom = 328.0
  200. text = " End Branch"
  201. icon = ExtResource( 9 )
  202. align = 0
  203. script = ExtResource( 21 )
  204. EventName = "EndBranch"
  205. [node name="SetValue" type="Button" parent="ScrollContainer/EventContainer"]
  206. margin_top = 332.0
  207. margin_right = 180.0
  208. margin_bottom = 354.0
  209. text = " Set Value"
  210. icon = ExtResource( 11 )
  211. align = 0
  212. script = ExtResource( 21 )
  213. EventName = "SetValue"
  214. [node name="HBoxContainer3" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
  215. margin_top = 358.0
  216. margin_right = 180.0
  217. margin_bottom = 372.0
  218. [node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer3"]
  219. margin_right = 56.0
  220. margin_bottom = 14.0
  221. text = "Timeline"
  222. [node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer3"]
  223. margin_left = 60.0
  224. margin_right = 180.0
  225. margin_bottom = 14.0
  226. size_flags_horizontal = 3
  227. [node name="ChangeTimeline" type="Button" parent="ScrollContainer/EventContainer"]
  228. margin_top = 376.0
  229. margin_right = 180.0
  230. margin_bottom = 404.0
  231. hint_tooltip = "This will instantly teleport you to the start of the desired timeline."
  232. text = " Change Timeline"
  233. icon = ExtResource( 10 )
  234. align = 0
  235. script = ExtResource( 21 )
  236. EventName = "ChangeTimeline"
  237. [node name="SceneEvent" type="Button" parent="ScrollContainer/EventContainer"]
  238. margin_top = 408.0
  239. margin_right = 180.0
  240. margin_bottom = 436.0
  241. text = " Scene Event"
  242. icon = ExtResource( 4 )
  243. align = 0
  244. script = ExtResource( 21 )
  245. EventName = "SceneEvent"
  246. [node name="CloseDialog" type="Button" parent="ScrollContainer/EventContainer"]
  247. margin_top = 440.0
  248. margin_right = 180.0
  249. margin_bottom = 468.0
  250. text = " Close Dialog"
  251. icon = ExtResource( 6 )
  252. align = 0
  253. script = ExtResource( 21 )
  254. EventName = "CloseDialog"
  255. [node name="WaitSeconds" type="Button" parent="ScrollContainer/EventContainer"]
  256. margin_top = 472.0
  257. margin_right = 180.0
  258. margin_bottom = 500.0
  259. text = " Wait Seconds"
  260. icon = ExtResource( 14 )
  261. align = 0
  262. script = ExtResource( 21 )
  263. EventName = "WaitSeconds"
  264. [node name="SetTheme" type="Button" parent="ScrollContainer/EventContainer"]
  265. margin_top = 504.0
  266. margin_right = 180.0
  267. margin_bottom = 532.0
  268. text = " Set Theme"
  269. icon = ExtResource( 18 )
  270. align = 0
  271. script = ExtResource( 21 )
  272. EventName = "SetTheme"
  273. [node name="HBoxContainer4" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
  274. margin_top = 536.0
  275. margin_right = 180.0
  276. margin_bottom = 550.0
  277. [node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer4"]
  278. margin_right = 37.0
  279. margin_bottom = 14.0
  280. text = "Audio"
  281. [node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer4"]
  282. margin_left = 41.0
  283. margin_right = 180.0
  284. margin_bottom = 14.0
  285. size_flags_horizontal = 3
  286. [node name="AudioBlock" type="Button" parent="ScrollContainer/EventContainer"]
  287. margin_top = 554.0
  288. margin_right = 180.0
  289. margin_bottom = 582.0
  290. text = " Audio Event"
  291. icon = ExtResource( 3 )
  292. align = 0
  293. script = ExtResource( 21 )
  294. EventName = "AudioBlock"
  295. [node name="BackgroundMusic" type="Button" parent="ScrollContainer/EventContainer"]
  296. margin_top = 586.0
  297. margin_right = 180.0
  298. margin_bottom = 614.0
  299. text = " Background Music"
  300. icon = ExtResource( 19 )
  301. align = 0
  302. script = ExtResource( 21 )
  303. EventName = "BackgroundMusic"
  304. [node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
  305. margin_top = 618.0
  306. margin_right = 180.0
  307. margin_bottom = 632.0
  308. [node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer"]
  309. margin_right = 39.0
  310. margin_bottom = 14.0
  311. text = "Godot"
  312. [node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer"]
  313. margin_left = 43.0
  314. margin_right = 180.0
  315. margin_bottom = 14.0
  316. size_flags_horizontal = 3
  317. [node name="EmitSignal" type="Button" parent="ScrollContainer/EventContainer"]
  318. margin_top = 636.0
  319. margin_right = 180.0
  320. margin_bottom = 664.0
  321. text = " Emit Signal"
  322. icon = ExtResource( 16 )
  323. align = 0
  324. script = ExtResource( 21 )
  325. EventName = "EmitSignal"
  326. [node name="ChangeScene" type="Button" parent="ScrollContainer/EventContainer"]
  327. margin_top = 668.0
  328. margin_right = 180.0
  329. margin_bottom = 696.0
  330. hint_tooltip = "This will instantly change
  331. the current scene."
  332. text = " Change Scene"
  333. icon = ExtResource( 15 )
  334. align = 0
  335. script = ExtResource( 21 )
  336. EventName = "ChangeScene"
  337. [node name="CallNode" type="Button" parent="ScrollContainer/EventContainer"]
  338. margin_top = 700.0
  339. margin_right = 180.0
  340. margin_bottom = 728.0
  341. text = " Call Node"
  342. icon = ExtResource( 20 )
  343. align = 0
  344. script = ExtResource( 21 )
  345. EventName = "CallNode"