drag_and_drop.tscn 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. [gd_scene load_steps=2 format=2]
  2. [ext_resource path="res://drag_drop_script.gd" type="Script" id=1]
  3. [node name="DragAndDrop" type="Control"]
  4. anchor_left = 0.5
  5. anchor_top = 0.5
  6. anchor_right = 0.5
  7. anchor_bottom = 0.5
  8. margin_left = -512.0
  9. margin_top = -300.0
  10. margin_right = 512.0
  11. margin_bottom = 300.0
  12. rect_pivot_offset = Vector2( 512, 300 )
  13. size_flags_horizontal = 2
  14. size_flags_vertical = 2
  15. __meta__ = {
  16. "__editor_plugin_screen__": "2D",
  17. "_edit_use_anchors_": false
  18. }
  19. [node name="Information" type="Label" parent="."]
  20. anchor_left = 0.5
  21. anchor_top = 0.5
  22. anchor_right = 0.5
  23. anchor_bottom = 0.5
  24. margin_left = -300.0
  25. margin_top = -180.0
  26. margin_right = 300.0
  27. margin_bottom = -150.0
  28. size_flags_horizontal = 2
  29. size_flags_vertical = 0
  30. text = "Drag colors from button to button, or change button colors and drag them again."
  31. align = 1
  32. __meta__ = {
  33. "_edit_use_anchors_": false
  34. }
  35. [node name="GridContainer" type="GridContainer" parent="."]
  36. anchor_left = 0.5
  37. anchor_top = 0.5
  38. anchor_right = 0.5
  39. anchor_bottom = 0.5
  40. margin_left = -250.0
  41. margin_top = -150.0
  42. margin_right = 250.0
  43. margin_bottom = 200.0
  44. columns = 3
  45. __meta__ = {
  46. "_edit_use_anchors_": false
  47. }
  48. [node name="ColorPickerButton0" type="ColorPickerButton" parent="GridContainer"]
  49. margin_left = 34.0
  50. margin_top = 25.0
  51. margin_right = 130.0
  52. margin_bottom = 89.0
  53. rect_min_size = Vector2( 96, 64 )
  54. size_flags_horizontal = 6
  55. size_flags_vertical = 6
  56. color = Color( 0.671032, 0.605183, 0, 1 )
  57. script = ExtResource( 1 )
  58. __meta__ = {
  59. "_edit_use_anchors_": false
  60. }
  61. [node name="ColorPickerButton1" type="ColorPickerButton" parent="GridContainer"]
  62. margin_left = 202.0
  63. margin_top = 25.0
  64. margin_right = 298.0
  65. margin_bottom = 89.0
  66. rect_min_size = Vector2( 96, 64 )
  67. size_flags_horizontal = 6
  68. size_flags_vertical = 6
  69. color = Color( 0, 0.797347, 0.741037, 1 )
  70. script = ExtResource( 1 )
  71. [node name="ColorPickerButton2" type="ColorPickerButton" parent="GridContainer"]
  72. margin_left = 370.0
  73. margin_top = 25.0
  74. margin_right = 466.0
  75. margin_bottom = 89.0
  76. rect_min_size = Vector2( 96, 64 )
  77. size_flags_horizontal = 6
  78. size_flags_vertical = 6
  79. color = Color( 0.443924, 0, 0.632923, 1 )
  80. script = ExtResource( 1 )
  81. [node name="ColorPickerButton3" type="ColorPickerButton" parent="GridContainer"]
  82. margin_left = 34.0
  83. margin_top = 143.0
  84. margin_right = 130.0
  85. margin_bottom = 207.0
  86. rect_min_size = Vector2( 96, 64 )
  87. size_flags_horizontal = 6
  88. size_flags_vertical = 6
  89. color = Color( 1, 1, 1, 1 )
  90. script = ExtResource( 1 )
  91. [node name="ColorPickerButton4" type="ColorPickerButton" parent="GridContainer"]
  92. margin_left = 202.0
  93. margin_top = 143.0
  94. margin_right = 298.0
  95. margin_bottom = 207.0
  96. rect_min_size = Vector2( 96, 64 )
  97. size_flags_horizontal = 6
  98. size_flags_vertical = 6
  99. color = Color( 1, 0.933842, 0, 1 )
  100. script = ExtResource( 1 )
  101. [node name="ColorPickerButton5" type="ColorPickerButton" parent="GridContainer"]
  102. margin_left = 370.0
  103. margin_top = 143.0
  104. margin_right = 466.0
  105. margin_bottom = 207.0
  106. rect_min_size = Vector2( 96, 64 )
  107. size_flags_horizontal = 6
  108. size_flags_vertical = 6
  109. color = Color( 0.287293, 0.886362, 0.122933, 1 )
  110. script = ExtResource( 1 )
  111. [node name="ColorPickerButton6" type="ColorPickerButton" parent="GridContainer"]
  112. margin_left = 34.0
  113. margin_top = 261.0
  114. margin_right = 130.0
  115. margin_bottom = 325.0
  116. rect_min_size = Vector2( 96, 64 )
  117. size_flags_horizontal = 6
  118. size_flags_vertical = 6
  119. color = Color( 0.908461, 0, 0.88789, 1 )
  120. script = ExtResource( 1 )
  121. [node name="ColorPickerButton7" type="ColorPickerButton" parent="GridContainer"]
  122. margin_left = 202.0
  123. margin_top = 261.0
  124. margin_right = 298.0
  125. margin_bottom = 325.0
  126. rect_min_size = Vector2( 96, 64 )
  127. size_flags_horizontal = 6
  128. size_flags_vertical = 6
  129. color = Color( 0, 0.283703, 0, 1 )
  130. script = ExtResource( 1 )
  131. [node name="ColorPickerButton8" type="ColorPickerButton" parent="GridContainer"]
  132. margin_left = 370.0
  133. margin_top = 261.0
  134. margin_right = 466.0
  135. margin_bottom = 325.0
  136. rect_min_size = Vector2( 96, 64 )
  137. size_flags_horizontal = 6
  138. size_flags_vertical = 6
  139. color = Color( 0, 0, 0.178211, 1 )
  140. script = ExtResource( 1 )