14 lines
295 B
GDScript
14 lines
295 B
GDScript
|
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)
|