add custom image picker
This commit is contained in:
parent
42fd81b914
commit
e90eb40630
12 changed files with 310 additions and 43 deletions
13
src/ImagePicker.gd
Normal file
13
src/ImagePicker.gd
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue