diff options
author | Robin Gareus <robin@gareus.org> | 2017-06-08 13:22:43 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-06-08 13:22:43 +0200 |
commit | 104bebe1bda64b6f1e6ea4a4fe8220d0fa6dfc76 (patch) | |
tree | 227098e0c69ef2441b7079e3fd5a7e5227cf6d96 /scripts | |
parent | ed5761a8b46459a24c6c74bb0be312c761de4f59 (diff) |
Update LuaDialog example script to include File/Folder selection
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/_dialog_test.lua | 6 |
1 files changed, 5 insertions, 1 deletions
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) |