summaryrefslogtreecommitdiff
path: root/demos/gui/drag_and_drop/drag_drop_script.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gui/drag_and_drop/drag_drop_script.gd')
-rw-r--r--demos/gui/drag_and_drop/drag_drop_script.gd20
1 files changed, 0 insertions, 20 deletions
diff --git a/demos/gui/drag_and_drop/drag_drop_script.gd b/demos/gui/drag_and_drop/drag_drop_script.gd
deleted file mode 100644
index 719c42fe8f..0000000000
--- a/demos/gui/drag_and_drop/drag_drop_script.gd
+++ /dev/null
@@ -1,20 +0,0 @@
-
-extends ColorPickerButton
-
-
-func get_drag_data(pos):
- # Use another colorpicker as drag preview
- var cpb = ColorPickerButton.new()
- cpb.set_color(get_color())
- cpb.set_size(Vector2(50, 50))
- set_drag_preview(cpb)
- # Return color as drag data
- return get_color()
-
-
-func can_drop_data(pos, data):
- return typeof(data) == TYPE_COLOR
-
-
-func drop_data(pos, data):
- set_color(data)