aboutsummaryrefslogtreecommitdiff
path: root/App.gd
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2021-11-24 23:50:05 -0500
committerAndrew Lee <alee14498@protonmail.com>2021-11-24 23:50:05 -0500
commit6cb9ecfd6f6c863cd873a1b5e77972d542dfb1bc (patch)
tree19062c133ad787bf309eddd3461f99e7a0f2c915 /App.gd
parent52d2ad6538ef1cfa31295bfdd7b1a7dd5d31dfed (diff)
downloaderable-godot-godot.tar.gz
erable-godot-godot.tar.bz2
erable-godot-godot.zip
Added a file dialog; Hopefully it can play audio soongodot
Diffstat (limited to 'App.gd')
-rw-r--r--App.gd27
1 files changed, 27 insertions, 0 deletions
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
+