main.tscn 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. [gd_scene load_steps=3 format=1]
  2. [ext_resource path="res://main.gd" type="Script" id=1]
  3. [ext_resource path="res://godot.png" type="Texture" id=2]
  4. [node name="main" type="Control"]
  5. focus/ignore_mouse = false
  6. focus/stop_mouse = true
  7. size_flags/horizontal = 2
  8. size_flags/vertical = 2
  9. margin/left = 0.0
  10. margin/top = 0.0
  11. margin/right = 800.0
  12. margin/bottom = 600.0
  13. script/script = ExtResource( 1 )
  14. __meta__ = {
  15. "__editor_plugin_screen__": "2D"
  16. }
  17. [node name="trans" type="VBoxContainer" parent="."]
  18. editor/display_folded = true
  19. focus/ignore_mouse = false
  20. focus/stop_mouse = false
  21. size_flags/horizontal = 2
  22. size_flags/vertical = 2
  23. margin/left = 56.0
  24. margin/top = 288.0
  25. margin/right = 129.0
  26. margin/bottom = 614.0
  27. alignment = 0
  28. [node name="linear" type="Button" parent="trans"]
  29. focus/ignore_mouse = false
  30. focus/stop_mouse = true
  31. size_flags/horizontal = 2
  32. size_flags/vertical = 2
  33. margin/left = 0.0
  34. margin/top = 0.0
  35. margin/right = 73.0
  36. margin/bottom = 20.0
  37. toggle_mode = true
  38. enabled_focus_mode = 2
  39. shortcut = null
  40. text = "linear"
  41. flat = false
  42. [node name="sine" type="Button" parent="trans"]
  43. focus/ignore_mouse = false
  44. focus/stop_mouse = true
  45. size_flags/horizontal = 2
  46. size_flags/vertical = 2
  47. margin/left = 0.0
  48. margin/top = 24.0
  49. margin/right = 73.0
  50. margin/bottom = 44.0
  51. toggle_mode = true
  52. enabled_focus_mode = 2
  53. shortcut = null
  54. text = "sine"
  55. flat = false
  56. [node name="quint" type="Button" parent="trans"]
  57. focus/ignore_mouse = false
  58. focus/stop_mouse = true
  59. size_flags/horizontal = 2
  60. size_flags/vertical = 2
  61. margin/left = 0.0
  62. margin/top = 48.0
  63. margin/right = 73.0
  64. margin/bottom = 68.0
  65. toggle_mode = true
  66. enabled_focus_mode = 2
  67. shortcut = null
  68. text = "quint"
  69. flat = false
  70. [node name="quart" type="Button" parent="trans"]
  71. focus/ignore_mouse = false
  72. focus/stop_mouse = true
  73. size_flags/horizontal = 2
  74. size_flags/vertical = 2
  75. margin/left = 0.0
  76. margin/top = 72.0
  77. margin/right = 73.0
  78. margin/bottom = 92.0
  79. toggle_mode = true
  80. enabled_focus_mode = 2
  81. shortcut = null
  82. text = "quart"
  83. flat = false
  84. [node name="quad" type="Button" parent="trans"]
  85. focus/ignore_mouse = false
  86. focus/stop_mouse = true
  87. size_flags/horizontal = 2
  88. size_flags/vertical = 2
  89. margin/left = 0.0
  90. margin/top = 96.0
  91. margin/right = 73.0
  92. margin/bottom = 116.0
  93. toggle_mode = true
  94. enabled_focus_mode = 2
  95. shortcut = null
  96. text = "quad"
  97. flat = false
  98. [node name="expo" type="Button" parent="trans"]
  99. focus/ignore_mouse = false
  100. focus/stop_mouse = true
  101. size_flags/horizontal = 2
  102. size_flags/vertical = 2
  103. margin/left = 0.0
  104. margin/top = 120.0
  105. margin/right = 73.0
  106. margin/bottom = 140.0
  107. toggle_mode = true
  108. enabled_focus_mode = 2
  109. shortcut = null
  110. text = "expo"
  111. flat = false
  112. [node name="elastic" type="Button" parent="trans"]
  113. focus/ignore_mouse = false
  114. focus/stop_mouse = true
  115. size_flags/horizontal = 2
  116. size_flags/vertical = 2
  117. margin/left = 0.0
  118. margin/top = 144.0
  119. margin/right = 73.0
  120. margin/bottom = 164.0
  121. toggle_mode = true
  122. enabled_focus_mode = 2
  123. shortcut = null
  124. text = "elastic"
  125. flat = false
  126. [node name="cubic" type="Button" parent="trans"]
  127. focus/ignore_mouse = false
  128. focus/stop_mouse = true
  129. size_flags/horizontal = 2
  130. size_flags/vertical = 2
  131. margin/left = 0.0
  132. margin/top = 168.0
  133. margin/right = 73.0
  134. margin/bottom = 188.0
  135. toggle_mode = true
  136. enabled_focus_mode = 2
  137. shortcut = null
  138. text = "cubic"
  139. flat = false
  140. [node name="circ" type="Button" parent="trans"]
  141. focus/ignore_mouse = false
  142. focus/stop_mouse = true
  143. size_flags/horizontal = 2
  144. size_flags/vertical = 2
  145. margin/left = 0.0
  146. margin/top = 192.0
  147. margin/right = 73.0
  148. margin/bottom = 212.0
  149. toggle_mode = true
  150. enabled_focus_mode = 2
  151. shortcut = null
  152. text = "circ"
  153. flat = false
  154. [node name="bounce" type="Button" parent="trans"]
  155. focus/ignore_mouse = false
  156. focus/stop_mouse = true
  157. size_flags/horizontal = 2
  158. size_flags/vertical = 2
  159. margin/left = 0.0
  160. margin/top = 216.0
  161. margin/right = 73.0
  162. margin/bottom = 236.0
  163. toggle_mode = true
  164. enabled_focus_mode = 2
  165. shortcut = null
  166. text = "bounce"
  167. flat = false
  168. [node name="back" type="Button" parent="trans"]
  169. focus/ignore_mouse = false
  170. focus/stop_mouse = true
  171. size_flags/horizontal = 2
  172. size_flags/vertical = 2
  173. margin/left = 0.0
  174. margin/top = 240.0
  175. margin/right = 73.0
  176. margin/bottom = 260.0
  177. toggle_mode = true
  178. enabled_focus_mode = 2
  179. shortcut = null
  180. text = "back"
  181. flat = false
  182. [node name="eases" type="VBoxContainer" parent="."]
  183. editor/display_folded = true
  184. focus/ignore_mouse = false
  185. focus/stop_mouse = false
  186. size_flags/horizontal = 2
  187. size_flags/vertical = 2
  188. margin/left = 152.0
  189. margin/top = 288.0
  190. margin/right = 215.0
  191. margin/bottom = 404.0
  192. alignment = 0
  193. [node name="in" type="Button" parent="eases"]
  194. focus/ignore_mouse = false
  195. focus/stop_mouse = true
  196. size_flags/horizontal = 2
  197. size_flags/vertical = 2
  198. margin/left = 0.0
  199. margin/top = 0.0
  200. margin/right = 63.0
  201. margin/bottom = 20.0
  202. toggle_mode = true
  203. enabled_focus_mode = 2
  204. shortcut = null
  205. text = "in"
  206. flat = false
  207. [node name="out" type="Button" parent="eases"]
  208. focus/ignore_mouse = false
  209. focus/stop_mouse = true
  210. size_flags/horizontal = 2
  211. size_flags/vertical = 2
  212. margin/left = 0.0
  213. margin/top = 24.0
  214. margin/right = 63.0
  215. margin/bottom = 44.0
  216. toggle_mode = true
  217. enabled_focus_mode = 2
  218. shortcut = null
  219. text = "out"
  220. flat = false
  221. [node name="in_out" type="Button" parent="eases"]
  222. focus/ignore_mouse = false
  223. focus/stop_mouse = true
  224. size_flags/horizontal = 2
  225. size_flags/vertical = 2
  226. margin/left = 0.0
  227. margin/top = 48.0
  228. margin/right = 63.0
  229. margin/bottom = 68.0
  230. toggle_mode = true
  231. enabled_focus_mode = 2
  232. shortcut = null
  233. text = "in_out"
  234. flat = false
  235. [node name="out_in" type="Button" parent="eases"]
  236. focus/ignore_mouse = false
  237. focus/stop_mouse = true
  238. size_flags/horizontal = 2
  239. size_flags/vertical = 2
  240. margin/left = 0.0
  241. margin/top = 72.0
  242. margin/right = 63.0
  243. margin/bottom = 92.0
  244. toggle_mode = true
  245. enabled_focus_mode = 2
  246. shortcut = null
  247. text = "out_in"
  248. flat = false
  249. [node name="modes" type="VBoxContainer" parent="."]
  250. editor/display_folded = true
  251. focus/ignore_mouse = false
  252. focus/stop_mouse = false
  253. size_flags/horizontal = 2
  254. size_flags/vertical = 2
  255. margin/left = 240.0
  256. margin/top = 288.0
  257. margin/right = 317.0
  258. margin/bottom = 524.0
  259. alignment = 0
  260. [node name="move" type="Button" parent="modes"]
  261. focus/ignore_mouse = false
  262. focus/stop_mouse = true
  263. size_flags/horizontal = 2
  264. size_flags/vertical = 2
  265. margin/left = 0.0
  266. margin/top = 0.0
  267. margin/right = 77.0
  268. margin/bottom = 20.0
  269. toggle_mode = true
  270. enabled_focus_mode = 2
  271. shortcut = null
  272. text = "move"
  273. flat = false
  274. [node name="color" type="Button" parent="modes"]
  275. focus/ignore_mouse = false
  276. focus/stop_mouse = true
  277. size_flags/horizontal = 2
  278. size_flags/vertical = 2
  279. margin/left = 0.0
  280. margin/top = 24.0
  281. margin/right = 77.0
  282. margin/bottom = 44.0
  283. toggle_mode = true
  284. enabled_focus_mode = 2
  285. shortcut = null
  286. text = "color"
  287. flat = false
  288. [node name="scale" type="Button" parent="modes"]
  289. focus/ignore_mouse = false
  290. focus/stop_mouse = true
  291. size_flags/horizontal = 2
  292. size_flags/vertical = 2
  293. margin/left = 0.0
  294. margin/top = 48.0
  295. margin/right = 77.0
  296. margin/bottom = 68.0
  297. toggle_mode = true
  298. enabled_focus_mode = 2
  299. shortcut = null
  300. text = "scale"
  301. flat = false
  302. [node name="rotate" type="Button" parent="modes"]
  303. focus/ignore_mouse = false
  304. focus/stop_mouse = true
  305. size_flags/horizontal = 2
  306. size_flags/vertical = 2
  307. margin/left = 0.0
  308. margin/top = 72.0
  309. margin/right = 77.0
  310. margin/bottom = 92.0
  311. toggle_mode = true
  312. enabled_focus_mode = 2
  313. shortcut = null
  314. text = "rotate"
  315. flat = false
  316. [node name="callback" type="Button" parent="modes"]
  317. focus/ignore_mouse = false
  318. focus/stop_mouse = true
  319. size_flags/horizontal = 2
  320. size_flags/vertical = 2
  321. margin/left = 0.0
  322. margin/top = 96.0
  323. margin/right = 77.0
  324. margin/bottom = 116.0
  325. toggle_mode = true
  326. enabled_focus_mode = 2
  327. shortcut = null
  328. text = "callback"
  329. flat = false
  330. [node name="follow" type="Button" parent="modes"]
  331. focus/ignore_mouse = false
  332. focus/stop_mouse = true
  333. size_flags/horizontal = 2
  334. size_flags/vertical = 2
  335. margin/left = 0.0
  336. margin/top = 120.0
  337. margin/right = 77.0
  338. margin/bottom = 140.0
  339. toggle_mode = true
  340. enabled_focus_mode = 2
  341. shortcut = null
  342. text = "follow"
  343. flat = false
  344. [node name="repeat" type="Button" parent="modes"]
  345. focus/ignore_mouse = false
  346. focus/stop_mouse = true
  347. size_flags/horizontal = 2
  348. size_flags/vertical = 2
  349. margin/left = 0.0
  350. margin/top = 144.0
  351. margin/right = 77.0
  352. margin/bottom = 164.0
  353. toggle_mode = true
  354. enabled_focus_mode = 2
  355. shortcut = null
  356. text = "repeat"
  357. flat = false
  358. [node name="pause" type="Button" parent="modes"]
  359. focus/ignore_mouse = false
  360. focus/stop_mouse = true
  361. size_flags/horizontal = 2
  362. size_flags/vertical = 2
  363. margin/left = 0.0
  364. margin/top = 168.0
  365. margin/right = 77.0
  366. margin/bottom = 188.0
  367. toggle_mode = true
  368. enabled_focus_mode = 2
  369. shortcut = null
  370. text = "pause"
  371. flat = false
  372. [node name="colors" type="HBoxContainer" parent="."]
  373. focus/ignore_mouse = false
  374. focus/stop_mouse = false
  375. size_flags/horizontal = 2
  376. size_flags/vertical = 2
  377. margin/left = 384.0
  378. margin/top = 288.0
  379. margin/right = 424.0
  380. margin/bottom = 328.0
  381. custom_constants/separation = 40
  382. alignment = 0
  383. [node name="color_from" type="VBoxContainer" parent="colors"]
  384. focus/ignore_mouse = false
  385. focus/stop_mouse = false
  386. size_flags/horizontal = 2
  387. size_flags/vertical = 2
  388. margin/left = 0.0
  389. margin/top = 0.0
  390. margin/right = 288.0
  391. margin/bottom = 459.0
  392. alignment = 0
  393. [node name="label" type="Label" parent="colors/color_from"]
  394. focus/ignore_mouse = true
  395. focus/stop_mouse = true
  396. size_flags/horizontal = 2
  397. size_flags/vertical = 0
  398. margin/left = 0.0
  399. margin/top = 0.0
  400. margin/right = 288.0
  401. margin/bottom = 14.0
  402. text = "Color From:"
  403. percent_visible = 1.0
  404. lines_skipped = 0
  405. max_lines_visible = -1
  406. [node name="picker" type="ColorPicker" parent="colors/color_from"]
  407. focus/ignore_mouse = false
  408. focus/stop_mouse = false
  409. size_flags/horizontal = 2
  410. size_flags/vertical = 2
  411. margin/left = 0.0
  412. margin/top = 18.0
  413. margin/right = 288.0
  414. margin/bottom = 459.0
  415. alignment = 0
  416. [node name="color_to" type="VBoxContainer" parent="colors"]
  417. focus/ignore_mouse = false
  418. focus/stop_mouse = false
  419. size_flags/horizontal = 2
  420. size_flags/vertical = 2
  421. margin/left = 328.0
  422. margin/top = 0.0
  423. margin/right = 616.0
  424. margin/bottom = 459.0
  425. alignment = 0
  426. [node name="label" type="Label" parent="colors/color_to"]
  427. focus/ignore_mouse = true
  428. focus/stop_mouse = true
  429. size_flags/horizontal = 2
  430. size_flags/vertical = 0
  431. margin/left = 0.0
  432. margin/top = 0.0
  433. margin/right = 288.0
  434. margin/bottom = 14.0
  435. text = "Color To:"
  436. percent_visible = 1.0
  437. lines_skipped = 0
  438. max_lines_visible = -1
  439. [node name="picker" type="ColorPicker" parent="colors/color_to"]
  440. focus/ignore_mouse = false
  441. focus/stop_mouse = false
  442. size_flags/horizontal = 2
  443. size_flags/vertical = 2
  444. margin/left = 0.0
  445. margin/top = 18.0
  446. margin/right = 288.0
  447. margin/bottom = 459.0
  448. alignment = 0
  449. [node name="tween" type="Tween" parent="."]
  450. playback/process_mode = 1
  451. playback/active = true
  452. playback/repeat = true
  453. playback/speed = 1.0
  454. [node name="area" type="Panel" parent="tween"]
  455. focus/ignore_mouse = false
  456. focus/stop_mouse = true
  457. size_flags/horizontal = 2
  458. size_flags/vertical = 2
  459. margin/left = 32.0
  460. margin/top = 32.0
  461. margin/right = 768.0
  462. margin/bottom = 216.0
  463. [node name="label" type="RichTextLabel" parent="tween/area"]
  464. focus/ignore_mouse = false
  465. focus/stop_mouse = true
  466. size_flags/horizontal = 2
  467. size_flags/vertical = 2
  468. margin/left = 176.0
  469. margin/top = 24.0
  470. margin/right = 552.0
  471. margin/bottom = 160.0
  472. bbcode/enabled = false
  473. bbcode/bbcode = ""
  474. visible_characters = -1
  475. percent_visible = 1.0
  476. [node name="sprite" type="Sprite" parent="tween/area"]
  477. texture = ExtResource( 2 )
  478. [node name="follow" type="Sprite" parent="tween/area"]
  479. transform/pos = Vector2( 0, 184 )
  480. texture = ExtResource( 2 )
  481. [node name="follow_2" type="Sprite" parent="tween/area"]
  482. transform/pos = Vector2( 736, 0 )
  483. texture = ExtResource( 2 )
  484. [node name="timeline" type="HSlider" parent="."]
  485. focus/ignore_mouse = false
  486. focus/stop_mouse = true
  487. size_flags/horizontal = 2
  488. size_flags/vertical = 0
  489. margin/left = 40.0
  490. margin/top = 224.0
  491. margin/right = 760.0
  492. margin/bottom = 240.0
  493. range/min = 0.0
  494. range/max = 100.0
  495. range/step = 1.0
  496. range/page = 0.0
  497. range/value = 1.0
  498. range/exp_edit = false
  499. range/rounded = false
  500. tick_count = 0
  501. ticks_on_borders = false
  502. focus_mode = 2
  503. [connection signal="tween_step" from="tween" to="." method="_on_tween_step"]
  504. [connection signal="value_changed" from="timeline" to="." method="_on_timeline_value_changed"]