drag_and_drop.tscn 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. [gd_scene load_steps=2 format=3 uid="uid://bfrbj2aq7xqe4"]
  2. [ext_resource type="Script" path="res://drag_drop_script.gd" id="1"]
  3. [node name="DragAndDrop" type="Control"]
  4. layout_mode = 3
  5. anchors_preset = 15
  6. anchor_right = 1.0
  7. anchor_bottom = 1.0
  8. grow_horizontal = 2
  9. grow_vertical = 2
  10. pivot_offset = Vector2(512, 300)
  11. size_flags_horizontal = 2
  12. size_flags_vertical = 2
  13. [node name="Information" type="Label" parent="."]
  14. layout_mode = 0
  15. anchor_left = 0.5
  16. anchor_top = 0.5
  17. anchor_right = 0.5
  18. anchor_bottom = 0.5
  19. offset_left = -300.0
  20. offset_top = -180.0
  21. offset_right = 300.0
  22. offset_bottom = -150.0
  23. size_flags_horizontal = 2
  24. size_flags_vertical = 0
  25. text = "Drag colors from button to button, or change button colors and drag them again."
  26. [node name="GridContainer" type="GridContainer" parent="."]
  27. layout_mode = 0
  28. anchor_left = 0.5
  29. anchor_top = 0.5
  30. anchor_right = 0.5
  31. anchor_bottom = 0.5
  32. offset_left = -250.0
  33. offset_top = -150.0
  34. offset_right = 250.0
  35. offset_bottom = 200.0
  36. columns = 3
  37. [node name="ColorPickerButton0" type="ColorPickerButton" parent="GridContainer"]
  38. custom_minimum_size = Vector2(96, 64)
  39. layout_mode = 2
  40. size_flags_horizontal = 6
  41. size_flags_vertical = 6
  42. color = Color(0.937255, 0.266667, 0.266667, 1)
  43. script = ExtResource("1")
  44. [node name="ColorPickerButton1" type="ColorPickerButton" parent="GridContainer"]
  45. custom_minimum_size = Vector2(96, 64)
  46. layout_mode = 2
  47. size_flags_horizontal = 6
  48. size_flags_vertical = 6
  49. color = Color(0.960784, 0.619608, 0.0431373, 1)
  50. script = ExtResource("1")
  51. [node name="ColorPickerButton2" type="ColorPickerButton" parent="GridContainer"]
  52. custom_minimum_size = Vector2(96, 64)
  53. layout_mode = 2
  54. size_flags_horizontal = 6
  55. size_flags_vertical = 6
  56. color = Color(0.517647, 0.8, 0.0862745, 1)
  57. script = ExtResource("1")
  58. [node name="ColorPickerButton3" type="ColorPickerButton" parent="GridContainer"]
  59. custom_minimum_size = Vector2(96, 64)
  60. layout_mode = 2
  61. size_flags_horizontal = 6
  62. size_flags_vertical = 6
  63. color = Color(0.0627451, 0.72549, 0.505882, 1)
  64. script = ExtResource("1")
  65. [node name="ColorPickerButton4" type="ColorPickerButton" parent="GridContainer"]
  66. custom_minimum_size = Vector2(96, 64)
  67. layout_mode = 2
  68. size_flags_horizontal = 6
  69. size_flags_vertical = 6
  70. color = Color(0.0235294, 0.713726, 0.831373, 1)
  71. script = ExtResource("1")
  72. [node name="ColorPickerButton5" type="ColorPickerButton" parent="GridContainer"]
  73. custom_minimum_size = Vector2(96, 64)
  74. layout_mode = 2
  75. size_flags_horizontal = 6
  76. size_flags_vertical = 6
  77. color = Color(0.231373, 0.509804, 0.964706, 1)
  78. script = ExtResource("1")
  79. [node name="ColorPickerButton6" type="ColorPickerButton" parent="GridContainer"]
  80. custom_minimum_size = Vector2(96, 64)
  81. layout_mode = 2
  82. size_flags_horizontal = 6
  83. size_flags_vertical = 6
  84. color = Color(0.545098, 0.360784, 0.964706, 1)
  85. script = ExtResource("1")
  86. [node name="ColorPickerButton7" type="ColorPickerButton" parent="GridContainer"]
  87. custom_minimum_size = Vector2(96, 64)
  88. layout_mode = 2
  89. size_flags_horizontal = 6
  90. size_flags_vertical = 6
  91. color = Color(0.85098, 0.27451, 0.937255, 1)
  92. script = ExtResource("1")
  93. [node name="ColorPickerButton8" type="ColorPickerButton" parent="GridContainer"]
  94. custom_minimum_size = Vector2(96, 64)
  95. layout_mode = 2
  96. size_flags_horizontal = 6
  97. size_flags_vertical = 6
  98. color = Color(0.470588, 0.443137, 0.423529, 1)
  99. script = ExtResource("1")