taqin/src/ImagePicker.gd

14 lines
295 B
GDScript
Raw Normal View History

2020-06-16 19:28:50 +02:00
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)