add custom image picker

This commit is contained in:
Fabien Freling 2020-06-16 19:28:50 +02:00
parent 42fd81b914
commit e90eb40630
12 changed files with 310 additions and 43 deletions

13
src/ImagePicker.gd Normal file
View file

@ -0,0 +1,13 @@
tool
class_name ImagePicker
extends Panel
signal file_selected(path)
onready var fs_list := $VBoxContainer/TabContainer/Filesystem/FileList
func _ready():
fs_list.populate(OS.get_system_dir(OS.SYSTEM_DIR_PICTURES))
func _on_FileList_file_selected(path):
emit_signal("file_selected", path)