add godot
This commit is contained in:
parent
0e0e900048
commit
1959852747
7 changed files with 120 additions and 0 deletions
15
godot/main.gd
Normal file
15
godot/main.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue