From f3b1c8ae44a13856a15108c764df8efd15e4aa49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Santilio?= Date: Mon, 24 Aug 2020 13:46:32 +0200 Subject: [PATCH] --- addons/github-integration/scripts/Repos.gd | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 addons/github-integration/scripts/Repos.gd diff --git a/addons/github-integration/scripts/Repos.gd b/addons/github-integration/scripts/Repos.gd deleted file mode 100644 index 520af46..0000000 --- a/addons/github-integration/scripts/Repos.gd +++ /dev/null @@ -1,26 +0,0 @@ -tool -extends Tree - -signal moved(item, to_item, shift) - - -func get_drag_data(position): # begin drag - set_drop_mode_flags(DROP_MODE_INBETWEEN | DROP_MODE_ON_ITEM) - - var preview = Label.new() - preview.text = get_selected().get_text(0) - set_drag_preview(preview) # not necessary - - return get_selected() # TreeItem - - -func can_drop_data(position, data): - return data is TreeItem # you shall not pass! - - -func drop_data(position, item): # end drag - var to_item = get_item_at_position(position) - var shift = get_drop_section_at_position(position) - # shift == 0 if dropping on item, -1, +1 if in between - - emit_signal('moved', item, to_item, shift)