From 6cb9ecfd6f6c863cd873a1b5e77972d542dfb1bc Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 24 Nov 2021 23:50:05 -0500 Subject: Added a file dialog; Hopefully it can play audio soon --- App.gd | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 App.gd (limited to 'App.gd') diff --git a/App.gd b/App.gd new file mode 100644 index 0000000..1986e1d --- /dev/null +++ b/App.gd @@ -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 + -- cgit v1.2.3