fabapp/godot/main.gd
Fabien Freling 1959852747 add godot
2023-12-04 14:07:36 +01:00

16 lines
365 B
GDScript

extends Control
# Called when the node enters the scene tree for the first time.
func _ready():
$FileDialog.access = FileDialog.ACCESS_FILESYSTEM
$FileDialog.use_native_dialog = true
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_button_pressed():
$FileDialog.show()
print("button pressed")