From 104bebe1bda64b6f1e6ea4a4fe8220d0fa6dfc76 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 8 Jun 2017 13:22:43 +0200 Subject: Update LuaDialog example script to include File/Folder selection --- scripts/_dialog_test.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/_dialog_test.lua b/scripts/_dialog_test.lua index 87156826a7..cc02f82a46 100644 --- a/scripts/_dialog_test.lua +++ b/scripts/_dialog_test.lua @@ -76,7 +76,11 @@ function factory () return function () { type = "heading", title = "Heading" }, - { type = "number", key = "number", title = "Whatever", min = 0, max = 10, step = 1, digits = 2 } + { type = "number", key = "number", title = "Whatever", min = 0, max = 10, step = 1, digits = 2 }, + + { type = "file", key = "file", title = "Select a File", path = ARDOUR.LuaAPI.build_filename (Session:path (), Session:name () .. ".ardour") }, + + { type = "folder", key = "folder", title = "Select a Folder", path = Session:path() } } local od = LuaDialog.Dialog ("title", dialog_options) -- cgit v1.2.3