File Dialogs

Dialogs to get a path to open/save files and or folders.

openFileDialog
opens a native open file dialog
openFilesFoldersDialog
opens a native open file and folder dialog
openFolderDialog
opens a native open folder dialog
saveFileDialog
opens a native save file dialog

examples

// Default dialogs to open and save files/folders
function ShowOpenFileDialog()
{
    var r = openFileDialog("select a file", folders.content, "*.mp4;*.mpg");
    echo("file path: " + r);
}

function ShowSaveFilesDialog()
{
    var r = saveFileDialog("select a file", folders.output, "*.mp4;*.mpg");
    echo("file path: " + r);
}

function ShowFolderDialog()
{
    var r = openFolderDialog("select folder", folders.home);
    echo("folder path: " + r);
}

function ShowOpenFilesFoldersDialog()
{
    var r = openFilesFoldersDialog("select files", folders.home, "*.mp4;*.mpg");
    for(var i=0;i<r.length;i++)
    {
        echo("file path " + i + ": " + r[i]);
    }
}