move file dialog to unloaded scene
This commit is contained in:
parent
8b1fe0a9be
commit
b2c9bbf9a2
4 changed files with 22 additions and 23 deletions
12
godot/unloaded.gd
Normal file
12
godot/unloaded.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
extends CenterContainer
|
||||
|
||||
func _ready():
|
||||
$FileDialog.mode = FileDialog.FILE_MODE_OPEN_FILE
|
||||
$FileDialog.access = FileDialog.ACCESS_FILESYSTEM
|
||||
$FileDialog.use_native_dialog = true
|
||||
|
||||
func _on_button_pressed():
|
||||
$FileDialog.show()
|
||||
|
||||
func _on_file_dialog_file_selected(path):
|
||||
Global.load_db(path)
|
||||
Loading…
Add table
Add a link
Reference in a new issue