main.tscn 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. [gd_scene load_steps=3 format=2]
  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. anchor_left = 0.5
  6. anchor_top = 0.5
  7. anchor_right = 0.5
  8. anchor_bottom = 0.5
  9. margin_left = -512.0
  10. margin_top = -384.0
  11. margin_right = 512.0
  12. margin_bottom = 384.0
  13. size_flags_horizontal = 2
  14. size_flags_vertical = 2
  15. script = ExtResource( 1 )
  16. __meta__ = {
  17. "_edit_use_anchors_": false
  18. }
  19. [node name="Trans" type="VBoxContainer" parent="."]
  20. margin_left = 56.0
  21. margin_top = 288.0
  22. margin_right = 129.0
  23. margin_bottom = 614.0
  24. size_flags_horizontal = 2
  25. size_flags_vertical = 2
  26. [node name="Linear" type="Button" parent="Trans"]
  27. margin_right = 48.0
  28. margin_bottom = 20.0
  29. size_flags_horizontal = 2
  30. size_flags_vertical = 2
  31. toggle_mode = true
  32. text = "linear"
  33. [node name="Sine" type="Button" parent="Trans"]
  34. margin_top = 30.0
  35. margin_right = 39.0
  36. margin_bottom = 50.0
  37. size_flags_horizontal = 2
  38. size_flags_vertical = 2
  39. toggle_mode = true
  40. text = "sine"
  41. [node name="Quint" type="Button" parent="Trans"]
  42. margin_top = 60.0
  43. margin_right = 45.0
  44. margin_bottom = 80.0
  45. size_flags_horizontal = 2
  46. size_flags_vertical = 2
  47. toggle_mode = true
  48. text = "quint"
  49. [node name="Quart" type="Button" parent="Trans"]
  50. margin_top = 90.0
  51. margin_right = 45.0
  52. margin_bottom = 110.0
  53. size_flags_horizontal = 2
  54. size_flags_vertical = 2
  55. toggle_mode = true
  56. text = "quart"
  57. [node name="Quad" type="Button" parent="Trans"]
  58. margin_top = 120.0
  59. margin_right = 43.0
  60. margin_bottom = 140.0
  61. size_flags_horizontal = 2
  62. size_flags_vertical = 2
  63. toggle_mode = true
  64. text = "quad"
  65. [node name="Expo" type="Button" parent="Trans"]
  66. margin_top = 150.0
  67. margin_right = 43.0
  68. margin_bottom = 170.0
  69. size_flags_horizontal = 2
  70. size_flags_vertical = 2
  71. toggle_mode = true
  72. text = "expo"
  73. [node name="Elastic" type="Button" parent="Trans"]
  74. margin_top = 180.0
  75. margin_right = 54.0
  76. margin_bottom = 200.0
  77. size_flags_horizontal = 2
  78. size_flags_vertical = 2
  79. toggle_mode = true
  80. text = "elastic"
  81. [node name="Cubic" type="Button" parent="Trans"]
  82. margin_top = 210.0
  83. margin_right = 46.0
  84. margin_bottom = 230.0
  85. size_flags_horizontal = 2
  86. size_flags_vertical = 2
  87. toggle_mode = true
  88. text = "cubic"
  89. [node name="Circ" type="Button" parent="Trans"]
  90. margin_top = 240.0
  91. margin_right = 35.0
  92. margin_bottom = 260.0
  93. size_flags_horizontal = 2
  94. size_flags_vertical = 2
  95. toggle_mode = true
  96. text = "circ"
  97. [node name="Bounce" type="Button" parent="Trans"]
  98. margin_top = 270.0
  99. margin_right = 59.0
  100. margin_bottom = 290.0
  101. size_flags_horizontal = 2
  102. size_flags_vertical = 2
  103. toggle_mode = true
  104. text = "bounce"
  105. [node name="Back" type="Button" parent="Trans"]
  106. margin_top = 300.0
  107. margin_right = 41.0
  108. margin_bottom = 320.0
  109. size_flags_horizontal = 2
  110. size_flags_vertical = 2
  111. toggle_mode = true
  112. text = "back"
  113. [node name="Eases" type="VBoxContainer" parent="."]
  114. margin_left = 152.0
  115. margin_top = 288.0
  116. margin_right = 215.0
  117. margin_bottom = 404.0
  118. size_flags_horizontal = 2
  119. size_flags_vertical = 2
  120. [node name="In" type="Button" parent="Eases"]
  121. margin_right = 24.0
  122. margin_bottom = 20.0
  123. size_flags_horizontal = 2
  124. size_flags_vertical = 2
  125. toggle_mode = true
  126. text = "in"
  127. [node name="Out" type="Button" parent="Eases"]
  128. margin_top = 30.0
  129. margin_right = 33.0
  130. margin_bottom = 50.0
  131. size_flags_horizontal = 2
  132. size_flags_vertical = 2
  133. toggle_mode = true
  134. text = "out"
  135. [node name="InOut" type="Button" parent="Eases"]
  136. margin_top = 60.0
  137. margin_right = 51.0
  138. margin_bottom = 80.0
  139. size_flags_horizontal = 2
  140. size_flags_vertical = 2
  141. toggle_mode = true
  142. text = "in_out"
  143. [node name="OutIn" type="Button" parent="Eases"]
  144. margin_top = 90.0
  145. margin_right = 51.0
  146. margin_bottom = 110.0
  147. size_flags_horizontal = 2
  148. size_flags_vertical = 2
  149. toggle_mode = true
  150. text = "out_in"
  151. [node name="Modes" type="VBoxContainer" parent="."]
  152. margin_left = 240.0
  153. margin_top = 288.0
  154. margin_right = 317.0
  155. margin_bottom = 524.0
  156. size_flags_horizontal = 2
  157. size_flags_vertical = 2
  158. [node name="Move" type="Button" parent="Modes"]
  159. margin_right = 48.0
  160. margin_bottom = 20.0
  161. size_flags_horizontal = 2
  162. size_flags_vertical = 2
  163. toggle_mode = true
  164. text = "move"
  165. [node name="Color" type="Button" parent="Modes"]
  166. margin_top = 30.0
  167. margin_right = 44.0
  168. margin_bottom = 50.0
  169. size_flags_horizontal = 2
  170. size_flags_vertical = 2
  171. toggle_mode = true
  172. text = "color"
  173. [node name="Scale" type="Button" parent="Modes"]
  174. margin_top = 60.0
  175. margin_right = 45.0
  176. margin_bottom = 80.0
  177. size_flags_horizontal = 2
  178. size_flags_vertical = 2
  179. toggle_mode = true
  180. text = "scale"
  181. [node name="Rotate" type="Button" parent="Modes"]
  182. margin_top = 90.0
  183. margin_right = 50.0
  184. margin_bottom = 110.0
  185. size_flags_horizontal = 2
  186. size_flags_vertical = 2
  187. toggle_mode = true
  188. text = "rotate"
  189. [node name="Callback" type="Button" parent="Modes"]
  190. margin_top = 120.0
  191. margin_right = 63.0
  192. margin_bottom = 140.0
  193. size_flags_horizontal = 2
  194. size_flags_vertical = 2
  195. toggle_mode = true
  196. text = "callback"
  197. [node name="Follow" type="Button" parent="Modes"]
  198. margin_top = 150.0
  199. margin_right = 50.0
  200. margin_bottom = 170.0
  201. size_flags_horizontal = 2
  202. size_flags_vertical = 2
  203. toggle_mode = true
  204. text = "follow"
  205. [node name="Repeat" type="Button" parent="Modes"]
  206. margin_top = 180.0
  207. margin_right = 53.0
  208. margin_bottom = 200.0
  209. size_flags_horizontal = 2
  210. size_flags_vertical = 2
  211. toggle_mode = true
  212. text = "repeat"
  213. [node name="Pause" type="Button" parent="Modes"]
  214. margin_top = 210.0
  215. margin_right = 50.0
  216. margin_bottom = 230.0
  217. size_flags_horizontal = 2
  218. size_flags_vertical = 2
  219. toggle_mode = true
  220. text = "pause"
  221. [node name="Colors" type="HBoxContainer" parent="."]
  222. margin_left = 352.0
  223. margin_top = 273.0
  224. margin_right = 1008.0
  225. margin_bottom = 753.0
  226. size_flags_horizontal = 2
  227. size_flags_vertical = 2
  228. custom_constants/separation = 40
  229. __meta__ = {
  230. "_edit_use_anchors_": false
  231. }
  232. [node name="ColorFrom" type="VBoxContainer" parent="Colors"]
  233. margin_right = 290.0
  234. margin_bottom = 480.0
  235. rect_min_size = Vector2( 0, 320 )
  236. size_flags_horizontal = 2
  237. size_flags_vertical = 2
  238. [node name="Label" type="Label" parent="Colors/ColorFrom"]
  239. margin_right = 74.0
  240. margin_bottom = 14.0
  241. size_flags_horizontal = 2
  242. size_flags_vertical = 0
  243. text = "Color From:"
  244. [node name="Picker" type="ColorPicker" parent="Colors/ColorFrom"]
  245. margin_top = 18.0
  246. margin_right = 290.0
  247. margin_bottom = 480.0
  248. rect_min_size = Vector2( 0, 320 )
  249. size_flags_horizontal = 2
  250. size_flags_vertical = 2
  251. [node name="ColorTo" type="VBoxContainer" parent="Colors"]
  252. margin_left = 348.0
  253. margin_right = 638.0
  254. margin_bottom = 480.0
  255. rect_min_size = Vector2( 0, 320 )
  256. size_flags_horizontal = 2
  257. size_flags_vertical = 2
  258. [node name="Label" type="Label" parent="Colors/ColorTo"]
  259. margin_right = 56.0
  260. margin_bottom = 14.0
  261. size_flags_horizontal = 2
  262. size_flags_vertical = 0
  263. text = "Color To:"
  264. [node name="Picker" type="ColorPicker" parent="Colors/ColorTo"]
  265. margin_top = 18.0
  266. margin_right = 290.0
  267. margin_bottom = 480.0
  268. rect_min_size = Vector2( 0, 320 )
  269. size_flags_horizontal = 2
  270. size_flags_vertical = 2
  271. [node name="Tween" type="Tween" parent="."]
  272. repeat = true
  273. playback/repeat = true
  274. [node name="Area" type="Panel" parent="Tween"]
  275. anchor_left = 0.5
  276. anchor_top = 0.5
  277. anchor_right = 0.5
  278. anchor_bottom = 0.5
  279. margin_left = -420.0
  280. margin_top = -352.0
  281. margin_right = 444.0
  282. margin_bottom = -152.0
  283. size_flags_horizontal = 2
  284. size_flags_vertical = 2
  285. [node name="Label" type="RichTextLabel" parent="Tween/Area"]
  286. margin_left = 176.0
  287. margin_top = 24.0
  288. margin_right = 552.0
  289. margin_bottom = 160.0
  290. size_flags_horizontal = 2
  291. size_flags_vertical = 2
  292. [node name="Sprite" type="Sprite" parent="Tween/Area"]
  293. texture = ExtResource( 2 )
  294. [node name="Follow" type="Sprite" parent="Tween/Area"]
  295. position = Vector2( 0, 184 )
  296. texture = ExtResource( 2 )
  297. [node name="Follow2" type="Sprite" parent="Tween/Area"]
  298. position = Vector2( 736, 0 )
  299. texture = ExtResource( 2 )
  300. [node name="Timeline" type="HSlider" parent="."]
  301. anchor_left = 0.5
  302. anchor_top = 0.5
  303. anchor_right = 0.5
  304. anchor_bottom = 0.5
  305. margin_left = -416.0
  306. margin_top = -144.0
  307. margin_right = 416.0
  308. margin_bottom = -128.0
  309. size_flags_horizontal = 2
  310. value = 1.0
  311. ticks_on_borders = true
  312. __meta__ = {
  313. "_edit_use_anchors_": false
  314. }
  315. [connection signal="tween_step" from="Tween" to="." method="_on_tween_step"]
  316. [connection signal="value_changed" from="Timeline" to="." method="_on_timeline_value_changed"]