init
This commit is contained in:
commit
f389e4e807
186 changed files with 10853 additions and 0 deletions
15
addons/AsepriteWizard/interface/shared/source_drop_button.gd
Normal file
15
addons/AsepriteWizard/interface/shared/source_drop_button.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@tool
|
||||
extends Button
|
||||
|
||||
signal aseprite_file_dropped(path)
|
||||
|
||||
func _can_drop_data(_pos, data):
|
||||
if data.type == "files":
|
||||
var extension = data.files[0].get_extension()
|
||||
return extension == "ase" or extension == "aseprite"
|
||||
return false
|
||||
|
||||
|
||||
func _drop_data(_pos, data):
|
||||
var path = data.files[0]
|
||||
aseprite_file_dropped.emit(path)
|
||||
Loading…
Add table
Add a link
Reference in a new issue