drag_and_drop.tscn 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. [gd_scene load_steps=2 format=2]
  2. [ext_resource path="res://drag_drop_script.gd" type="Script" id=1]
  3. [node name="Control" type="Control" index="0"]
  4. anchor_left = 0.0
  5. anchor_top = 0.0
  6. anchor_right = 1.0
  7. anchor_bottom = 1.0
  8. rect_pivot_offset = Vector2( 0, 0 )
  9. mouse_filter = 0
  10. mouse_default_cursor_shape = 0
  11. size_flags_horizontal = 2
  12. size_flags_vertical = 2
  13. __meta__ = {
  14. "__editor_plugin_screen__": "2D"
  15. }
  16. [node name="ColorPickerButton0" type="ColorPickerButton" parent="." index="0"]
  17. anchor_left = 0.0
  18. anchor_top = 0.0
  19. anchor_right = 0.0
  20. anchor_bottom = 0.0
  21. margin_left = 64.0
  22. margin_top = 64.0
  23. margin_right = 160.0
  24. margin_bottom = 128.0
  25. rect_pivot_offset = Vector2( 0, 0 )
  26. focus_mode = 2
  27. mouse_filter = 0
  28. mouse_default_cursor_shape = 0
  29. size_flags_horizontal = 2
  30. size_flags_vertical = 2
  31. toggle_mode = false
  32. enabled_focus_mode = 2
  33. shortcut = null
  34. group = null
  35. flat = false
  36. align = 1
  37. color = Color( 0.671032, 0.605183, 0, 1 )
  38. edit_alpha = true
  39. script = ExtResource( 1 )
  40. [node name="ColorPickerButton1" type="ColorPickerButton" parent="." index="1"]
  41. anchor_left = 0.0
  42. anchor_top = 0.0
  43. anchor_right = 0.0
  44. anchor_bottom = 0.0
  45. margin_left = 224.0
  46. margin_top = 64.0
  47. margin_right = 320.0
  48. margin_bottom = 128.0
  49. rect_pivot_offset = Vector2( 0, 0 )
  50. focus_mode = 2
  51. mouse_filter = 0
  52. mouse_default_cursor_shape = 0
  53. size_flags_horizontal = 2
  54. size_flags_vertical = 2
  55. toggle_mode = false
  56. enabled_focus_mode = 2
  57. shortcut = null
  58. group = null
  59. flat = false
  60. align = 1
  61. color = Color( 0, 0.797347, 0.741037, 1 )
  62. edit_alpha = true
  63. script = ExtResource( 1 )
  64. [node name="ColorPickerButton2" type="ColorPickerButton" parent="." index="2"]
  65. anchor_left = 0.0
  66. anchor_top = 0.0
  67. anchor_right = 0.0
  68. anchor_bottom = 0.0
  69. margin_left = 384.0
  70. margin_top = 64.0
  71. margin_right = 480.0
  72. margin_bottom = 128.0
  73. rect_pivot_offset = Vector2( 0, 0 )
  74. focus_mode = 2
  75. mouse_filter = 0
  76. mouse_default_cursor_shape = 0
  77. size_flags_horizontal = 2
  78. size_flags_vertical = 2
  79. toggle_mode = false
  80. enabled_focus_mode = 2
  81. shortcut = null
  82. group = null
  83. flat = false
  84. align = 1
  85. color = Color( 0.443924, 0, 0.632923, 1 )
  86. edit_alpha = true
  87. script = ExtResource( 1 )
  88. [node name="ColorPickerButton3" type="ColorPickerButton" parent="." index="3"]
  89. anchor_left = 0.0
  90. anchor_top = 0.0
  91. anchor_right = 0.0
  92. anchor_bottom = 0.0
  93. margin_left = 64.0
  94. margin_top = 160.0
  95. margin_right = 160.0
  96. margin_bottom = 224.0
  97. rect_pivot_offset = Vector2( 0, 0 )
  98. focus_mode = 2
  99. mouse_filter = 0
  100. mouse_default_cursor_shape = 0
  101. size_flags_horizontal = 2
  102. size_flags_vertical = 2
  103. toggle_mode = false
  104. enabled_focus_mode = 2
  105. shortcut = null
  106. group = null
  107. flat = false
  108. align = 1
  109. color = Color( 1, 1, 1, 1 )
  110. edit_alpha = true
  111. script = ExtResource( 1 )
  112. [node name="ColorPickerButton4" type="ColorPickerButton" parent="." index="4"]
  113. anchor_left = 0.0
  114. anchor_top = 0.0
  115. anchor_right = 0.0
  116. anchor_bottom = 0.0
  117. margin_left = 224.0
  118. margin_top = 160.0
  119. margin_right = 320.0
  120. margin_bottom = 224.0
  121. rect_pivot_offset = Vector2( 0, 0 )
  122. focus_mode = 2
  123. mouse_filter = 0
  124. mouse_default_cursor_shape = 0
  125. size_flags_horizontal = 2
  126. size_flags_vertical = 2
  127. toggle_mode = false
  128. enabled_focus_mode = 2
  129. shortcut = null
  130. group = null
  131. flat = false
  132. align = 1
  133. color = Color( 1, 0.933842, 0, 1 )
  134. edit_alpha = true
  135. script = ExtResource( 1 )
  136. [node name="ColorPickerButton5" type="ColorPickerButton" parent="." index="5"]
  137. anchor_left = 0.0
  138. anchor_top = 0.0
  139. anchor_right = 0.0
  140. anchor_bottom = 0.0
  141. margin_left = 384.0
  142. margin_top = 160.0
  143. margin_right = 480.0
  144. margin_bottom = 224.0
  145. rect_pivot_offset = Vector2( 0, 0 )
  146. focus_mode = 2
  147. mouse_filter = 0
  148. mouse_default_cursor_shape = 0
  149. size_flags_horizontal = 2
  150. size_flags_vertical = 2
  151. toggle_mode = false
  152. enabled_focus_mode = 2
  153. shortcut = null
  154. group = null
  155. flat = false
  156. align = 1
  157. color = Color( 0.287293, 0.886362, 0.122933, 1 )
  158. edit_alpha = true
  159. script = ExtResource( 1 )
  160. [node name="ColorPickerButton6" type="ColorPickerButton" parent="." index="6"]
  161. anchor_left = 0.0
  162. anchor_top = 0.0
  163. anchor_right = 0.0
  164. anchor_bottom = 0.0
  165. margin_left = 64.0
  166. margin_top = 256.0
  167. margin_right = 160.0
  168. margin_bottom = 320.0
  169. rect_pivot_offset = Vector2( 0, 0 )
  170. focus_mode = 2
  171. mouse_filter = 0
  172. mouse_default_cursor_shape = 0
  173. size_flags_horizontal = 2
  174. size_flags_vertical = 2
  175. toggle_mode = false
  176. enabled_focus_mode = 2
  177. shortcut = null
  178. group = null
  179. flat = false
  180. align = 1
  181. color = Color( 0.908461, 0, 0.88789, 1 )
  182. edit_alpha = true
  183. script = ExtResource( 1 )
  184. [node name="ColorPickerButton7" type="ColorPickerButton" parent="." index="7"]
  185. anchor_left = 0.0
  186. anchor_top = 0.0
  187. anchor_right = 0.0
  188. anchor_bottom = 0.0
  189. margin_left = 224.0
  190. margin_top = 256.0
  191. margin_right = 320.0
  192. margin_bottom = 320.0
  193. rect_pivot_offset = Vector2( 0, 0 )
  194. focus_mode = 2
  195. mouse_filter = 0
  196. mouse_default_cursor_shape = 0
  197. size_flags_horizontal = 2
  198. size_flags_vertical = 2
  199. toggle_mode = false
  200. enabled_focus_mode = 2
  201. shortcut = null
  202. group = null
  203. flat = false
  204. align = 1
  205. color = Color( 0, 0.283703, 0, 1 )
  206. edit_alpha = true
  207. script = ExtResource( 1 )
  208. [node name="ColorPickerButton8" type="ColorPickerButton" parent="." index="8"]
  209. anchor_left = 0.0
  210. anchor_top = 0.0
  211. anchor_right = 0.0
  212. anchor_bottom = 0.0
  213. margin_left = 384.0
  214. margin_top = 256.0
  215. margin_right = 480.0
  216. margin_bottom = 320.0
  217. rect_pivot_offset = Vector2( 0, 0 )
  218. focus_mode = 2
  219. mouse_filter = 0
  220. mouse_default_cursor_shape = 0
  221. size_flags_horizontal = 2
  222. size_flags_vertical = 2
  223. toggle_mode = false
  224. enabled_focus_mode = 2
  225. shortcut = null
  226. group = null
  227. flat = false
  228. align = 1
  229. color = Color( 0, 0, 0.178211, 1 )
  230. edit_alpha = true
  231. script = ExtResource( 1 )
  232. [node name="Label" type="Label" parent="." index="9"]
  233. anchor_left = 0.0
  234. anchor_top = 0.0
  235. anchor_right = 0.0
  236. anchor_bottom = 0.0
  237. margin_left = 10.0
  238. margin_top = 11.0
  239. margin_right = 470.0
  240. margin_bottom = 24.0
  241. rect_pivot_offset = Vector2( 0, 0 )
  242. mouse_filter = 2
  243. mouse_default_cursor_shape = 0
  244. size_flags_horizontal = 2
  245. size_flags_vertical = 0
  246. text = "Drag colors from button to button, or change button colors and drag them again."
  247. percent_visible = 1.0
  248. lines_skipped = 0
  249. max_lines_visible = -1