main.tscn 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. [gd_scene load_steps=6 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. [ext_resource path="res://noto_sans_ui_regular.ttf" type="DynamicFontData" id=3]
  5. [sub_resource type="DynamicFont" id=1]
  6. font_data = ExtResource( 3 )
  7. [sub_resource type="Theme" id=2]
  8. default_font = SubResource( 1 )
  9. [node name="Main" type="VBoxContainer"]
  10. anchor_right = 1.0
  11. anchor_bottom = 1.0
  12. theme = SubResource( 2 )
  13. alignment = 1
  14. script = ExtResource( 1 )
  15. __meta__ = {
  16. "_edit_use_anchors_": false
  17. }
  18. [node name="Tween" type="Tween" parent="."]
  19. repeat = true
  20. playback/repeat = true
  21. [node name="Top" type="VBoxContainer" parent="."]
  22. margin_left = 112.0
  23. margin_right = 912.0
  24. margin_bottom = 230.0
  25. rect_min_size = Vector2( 800, 230 )
  26. size_flags_horizontal = 6
  27. alignment = 2
  28. [node name="Area" type="Panel" parent="Top"]
  29. margin_top = 18.0
  30. margin_right = 800.0
  31. margin_bottom = 178.0
  32. rect_min_size = Vector2( 800, 160 )
  33. __meta__ = {
  34. "_edit_use_anchors_": false
  35. }
  36. [node name="RichTextLabel" type="RichTextLabel" parent="Top/Area"]
  37. anchor_left = 0.5
  38. anchor_top = 0.5
  39. anchor_right = 0.5
  40. anchor_bottom = 0.5
  41. margin_left = -120.0
  42. margin_top = -60.0
  43. margin_right = 120.0
  44. margin_bottom = 60.0
  45. size_flags_horizontal = 2
  46. size_flags_vertical = 2
  47. __meta__ = {
  48. "_edit_use_anchors_": false
  49. }
  50. [node name="Sprite" type="Sprite" parent="Top/Area"]
  51. z_index = 1
  52. texture = ExtResource( 2 )
  53. [node name="Follow" type="Sprite" parent="Top/Area"]
  54. position = Vector2( 0, 160 )
  55. z_index = 1
  56. texture = ExtResource( 2 )
  57. [node name="Follow2" type="Sprite" parent="Top/Area"]
  58. position = Vector2( 800, 0 )
  59. z_index = 1
  60. texture = ExtResource( 2 )
  61. [node name="Timeline" type="HSlider" parent="Top"]
  62. margin_top = 182.0
  63. margin_right = 800.0
  64. margin_bottom = 230.0
  65. rect_min_size = Vector2( 0, 48 )
  66. size_flags_horizontal = 3
  67. value = 1.0
  68. ticks_on_borders = true
  69. __meta__ = {
  70. "_edit_use_anchors_": false
  71. }
  72. [node name="Controls" type="HBoxContainer" parent="."]
  73. margin_top = 234.0
  74. margin_right = 1024.0
  75. margin_bottom = 804.0
  76. rect_min_size = Vector2( 1000, 550 )
  77. custom_constants/separation = 20
  78. alignment = 1
  79. [node name="Modes" type="VBoxContainer" parent="Controls"]
  80. margin_left = 37.0
  81. margin_right = 110.0
  82. margin_bottom = 383.0
  83. rect_min_size = Vector2( 70, 0 )
  84. size_flags_vertical = 0
  85. custom_constants/separation = 16
  86. [node name="ModesLabel" type="Label" parent="Controls/Modes"]
  87. margin_right = 73.0
  88. margin_bottom = 23.0
  89. size_flags_horizontal = 3
  90. text = "Modes"
  91. align = 1
  92. [node name="Move" type="Button" parent="Controls/Modes"]
  93. margin_top = 39.0
  94. margin_right = 73.0
  95. margin_bottom = 68.0
  96. size_flags_horizontal = 3
  97. size_flags_vertical = 2
  98. toggle_mode = true
  99. text = "move"
  100. [node name="Color" type="Button" parent="Controls/Modes"]
  101. margin_top = 84.0
  102. margin_right = 73.0
  103. margin_bottom = 113.0
  104. size_flags_horizontal = 3
  105. size_flags_vertical = 2
  106. toggle_mode = true
  107. text = "color"
  108. [node name="Scale" type="Button" parent="Controls/Modes"]
  109. margin_top = 129.0
  110. margin_right = 73.0
  111. margin_bottom = 158.0
  112. size_flags_horizontal = 3
  113. size_flags_vertical = 2
  114. toggle_mode = true
  115. text = "scale"
  116. [node name="Rotate" type="Button" parent="Controls/Modes"]
  117. margin_top = 174.0
  118. margin_right = 73.0
  119. margin_bottom = 203.0
  120. size_flags_horizontal = 3
  121. size_flags_vertical = 2
  122. toggle_mode = true
  123. text = "rotate"
  124. [node name="Callback" type="Button" parent="Controls/Modes"]
  125. margin_top = 219.0
  126. margin_right = 73.0
  127. margin_bottom = 248.0
  128. size_flags_horizontal = 3
  129. size_flags_vertical = 2
  130. toggle_mode = true
  131. text = "callback"
  132. [node name="Follow" type="Button" parent="Controls/Modes"]
  133. margin_top = 264.0
  134. margin_right = 73.0
  135. margin_bottom = 293.0
  136. size_flags_horizontal = 3
  137. size_flags_vertical = 2
  138. toggle_mode = true
  139. text = "follow"
  140. [node name="Repeat" type="Button" parent="Controls/Modes"]
  141. margin_top = 309.0
  142. margin_right = 73.0
  143. margin_bottom = 338.0
  144. size_flags_horizontal = 3
  145. size_flags_vertical = 2
  146. toggle_mode = true
  147. text = "repeat"
  148. [node name="Pause" type="Button" parent="Controls/Modes"]
  149. margin_top = 354.0
  150. margin_right = 73.0
  151. margin_bottom = 383.0
  152. size_flags_horizontal = 3
  153. size_flags_vertical = 2
  154. toggle_mode = true
  155. text = "pause"
  156. [node name="Transitions" type="VBoxContainer" parent="Controls"]
  157. margin_left = 130.0
  158. margin_right = 215.0
  159. margin_bottom = 518.0
  160. rect_min_size = Vector2( 70, 0 )
  161. size_flags_vertical = 0
  162. custom_constants/separation = 16
  163. __meta__ = {
  164. "_edit_use_anchors_": false
  165. }
  166. [node name="TransLabel" type="Label" parent="Controls/Transitions"]
  167. margin_right = 85.0
  168. margin_bottom = 23.0
  169. text = "Transitions"
  170. align = 1
  171. [node name="Linear" type="Button" parent="Controls/Transitions"]
  172. margin_top = 39.0
  173. margin_right = 85.0
  174. margin_bottom = 68.0
  175. size_flags_vertical = 2
  176. toggle_mode = true
  177. text = "linear"
  178. [node name="Sine" type="Button" parent="Controls/Transitions"]
  179. margin_top = 84.0
  180. margin_right = 85.0
  181. margin_bottom = 113.0
  182. size_flags_vertical = 2
  183. toggle_mode = true
  184. text = "sine"
  185. [node name="Quint" type="Button" parent="Controls/Transitions"]
  186. margin_top = 129.0
  187. margin_right = 85.0
  188. margin_bottom = 158.0
  189. size_flags_vertical = 2
  190. toggle_mode = true
  191. text = "quint"
  192. [node name="Quart" type="Button" parent="Controls/Transitions"]
  193. margin_top = 174.0
  194. margin_right = 85.0
  195. margin_bottom = 203.0
  196. size_flags_vertical = 2
  197. toggle_mode = true
  198. text = "quart"
  199. [node name="Quad" type="Button" parent="Controls/Transitions"]
  200. margin_top = 219.0
  201. margin_right = 85.0
  202. margin_bottom = 248.0
  203. size_flags_vertical = 2
  204. toggle_mode = true
  205. text = "quad"
  206. [node name="Expo" type="Button" parent="Controls/Transitions"]
  207. margin_top = 264.0
  208. margin_right = 85.0
  209. margin_bottom = 293.0
  210. size_flags_vertical = 2
  211. toggle_mode = true
  212. text = "expo"
  213. [node name="Elastic" type="Button" parent="Controls/Transitions"]
  214. margin_top = 309.0
  215. margin_right = 85.0
  216. margin_bottom = 338.0
  217. size_flags_vertical = 2
  218. toggle_mode = true
  219. text = "elastic"
  220. [node name="Cubic" type="Button" parent="Controls/Transitions"]
  221. margin_top = 354.0
  222. margin_right = 85.0
  223. margin_bottom = 383.0
  224. size_flags_vertical = 2
  225. toggle_mode = true
  226. text = "cubic"
  227. [node name="Circ" type="Button" parent="Controls/Transitions"]
  228. margin_top = 399.0
  229. margin_right = 85.0
  230. margin_bottom = 428.0
  231. size_flags_vertical = 2
  232. toggle_mode = true
  233. text = "circ"
  234. [node name="Bounce" type="Button" parent="Controls/Transitions"]
  235. margin_top = 444.0
  236. margin_right = 85.0
  237. margin_bottom = 473.0
  238. size_flags_vertical = 2
  239. toggle_mode = true
  240. text = "bounce"
  241. [node name="Back" type="Button" parent="Controls/Transitions"]
  242. margin_top = 489.0
  243. margin_right = 85.0
  244. margin_bottom = 518.0
  245. size_flags_vertical = 2
  246. toggle_mode = true
  247. text = "back"
  248. [node name="Eases" type="VBoxContainer" parent="Controls"]
  249. margin_left = 235.0
  250. margin_right = 305.0
  251. margin_bottom = 203.0
  252. rect_min_size = Vector2( 70, 0 )
  253. size_flags_vertical = 0
  254. custom_constants/separation = 16
  255. [node name="EasesLabel" type="Label" parent="Controls/Eases"]
  256. margin_right = 70.0
  257. margin_bottom = 23.0
  258. size_flags_horizontal = 3
  259. text = "Eases"
  260. align = 1
  261. [node name="In" type="Button" parent="Controls/Eases"]
  262. margin_top = 39.0
  263. margin_right = 70.0
  264. margin_bottom = 68.0
  265. size_flags_horizontal = 3
  266. size_flags_vertical = 2
  267. toggle_mode = true
  268. text = "in"
  269. [node name="Out" type="Button" parent="Controls/Eases"]
  270. margin_top = 84.0
  271. margin_right = 70.0
  272. margin_bottom = 113.0
  273. size_flags_horizontal = 3
  274. size_flags_vertical = 2
  275. toggle_mode = true
  276. text = "out"
  277. [node name="InOut" type="Button" parent="Controls/Eases"]
  278. margin_top = 129.0
  279. margin_right = 70.0
  280. margin_bottom = 158.0
  281. size_flags_horizontal = 3
  282. size_flags_vertical = 2
  283. toggle_mode = true
  284. text = "in_out"
  285. [node name="OutIn" type="Button" parent="Controls/Eases"]
  286. margin_top = 174.0
  287. margin_right = 70.0
  288. margin_bottom = 203.0
  289. size_flags_horizontal = 3
  290. size_flags_vertical = 2
  291. toggle_mode = true
  292. text = "out_in"
  293. [node name="ColorFrom" type="VBoxContainer" parent="Controls"]
  294. margin_left = 325.0
  295. margin_right = 646.0
  296. margin_bottom = 570.0
  297. rect_min_size = Vector2( 320, 570 )
  298. size_flags_vertical = 0
  299. [node name="Label" type="Label" parent="Controls/ColorFrom"]
  300. margin_right = 89.0
  301. margin_bottom = 23.0
  302. size_flags_horizontal = 2
  303. size_flags_vertical = 0
  304. text = "Color From:"
  305. [node name="ColorPicker" type="ColorPicker" parent="Controls/ColorFrom"]
  306. margin_top = 27.0
  307. margin_right = 321.0
  308. margin_bottom = 539.0
  309. size_flags_horizontal = 2
  310. size_flags_vertical = 2
  311. __meta__ = {
  312. "_edit_use_anchors_": false
  313. }
  314. [node name="ColorTo" type="VBoxContainer" parent="Controls"]
  315. margin_left = 666.0
  316. margin_right = 987.0
  317. margin_bottom = 570.0
  318. rect_min_size = Vector2( 320, 570 )
  319. rect_clip_content = true
  320. size_flags_vertical = 0
  321. [node name="Label" type="Label" parent="Controls/ColorTo"]
  322. margin_right = 68.0
  323. margin_bottom = 23.0
  324. size_flags_horizontal = 2
  325. size_flags_vertical = 0
  326. text = "Color To:"
  327. [node name="ColorPicker" type="ColorPicker" parent="Controls/ColorTo"]
  328. margin_top = 27.0
  329. margin_right = 321.0
  330. margin_bottom = 539.0
  331. size_flags_horizontal = 2
  332. size_flags_vertical = 2
  333. __meta__ = {
  334. "_edit_use_anchors_": false
  335. }
  336. [connection signal="tween_step" from="Tween" to="." method="_on_Tween_tween_step"]
  337. [connection signal="value_changed" from="Top/Timeline" to="." method="_on_Timeline_value_changed"]
  338. [connection signal="color_changed" from="Controls/ColorFrom/ColorPicker" to="." method="_on_ColorPicker_color_changed"]
  339. [connection signal="color_changed" from="Controls/ColorTo/ColorPicker" to="." method="_on_ColorPicker_color_changed"]