diff options
Diffstat (limited to 'demos/gui/drag_and_drop')
-rw-r--r-- | demos/gui/drag_and_drop/drag_and_drop.scn | bin | 2947 -> 0 bytes | |||
-rw-r--r-- | demos/gui/drag_and_drop/drag_drop_script.gd | 20 | ||||
-rw-r--r-- | demos/gui/drag_and_drop/engine.cfg | 5 | ||||
-rw-r--r-- | demos/gui/drag_and_drop/icon.png | bin | 806 -> 0 bytes |
4 files changed, 0 insertions, 25 deletions
diff --git a/demos/gui/drag_and_drop/drag_and_drop.scn b/demos/gui/drag_and_drop/drag_and_drop.scn Binary files differdeleted file mode 100644 index 9dec254ef7..0000000000 --- a/demos/gui/drag_and_drop/drag_and_drop.scn +++ /dev/null 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) diff --git a/demos/gui/drag_and_drop/engine.cfg b/demos/gui/drag_and_drop/engine.cfg deleted file mode 100644 index 49b9b93512..0000000000 --- a/demos/gui/drag_and_drop/engine.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[application] - -name="Drag & Drop (GUI)" -main_scene="res://drag_and_drop.scn" -icon="res://icon.png" diff --git a/demos/gui/drag_and_drop/icon.png b/demos/gui/drag_and_drop/icon.png Binary files differdeleted file mode 100644 index f900d8d4a3..0000000000 --- a/demos/gui/drag_and_drop/icon.png +++ /dev/null |