diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-11-24 23:50:05 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-11-24 23:50:05 -0500 |
| commit | 6cb9ecfd6f6c863cd873a1b5e77972d542dfb1bc (patch) | |
| tree | 19062c133ad787bf309eddd3461f99e7a0f2c915 /App.gd | |
| parent | 52d2ad6538ef1cfa31295bfdd7b1a7dd5d31dfed (diff) | |
| download | erable-godot-6cb9ecfd6f6c863cd873a1b5e77972d542dfb1bc.tar.gz erable-godot-6cb9ecfd6f6c863cd873a1b5e77972d542dfb1bc.tar.bz2 erable-godot-6cb9ecfd6f6c863cd873a1b5e77972d542dfb1bc.zip | |
Added a file dialog; Hopefully it can play audio soongodot
Diffstat (limited to 'App.gd')
| -rw-r--r-- | App.gd | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +extends Control + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + +var audio; + +# Called when the node enters the scene tree for the first time. +func _ready(): + print("Erable is ready") + pass # Replace with function body. + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass + +func _on_PlayButton_pressed(): + pass # Replace with function body. + +func _on_BrowseButton_pressed(): + $FileDialog.popup() + +func _on_FileDialog_file_selected(path): + print(path) + audio = path + |
