Skip to content

You can now specify dialog title in FileDialog#51

Open
swordcube wants to merge 1 commit intoFunkinCrew:mobile/mainfrom
swordcubes-grave-of-shite:mobile/main
Open

You can now specify dialog title in FileDialog#51
swordcube wants to merge 1 commit intoFunkinCrew:mobile/mainfrom
swordcubes-grave-of-shite:mobile/main

Conversation

@swordcube
Copy link

Dialog title can now be (optionally) specified as the last argument when opening any file dialog

There are default titles provided for each dialog type if none is specified:
openDirectory(...) -> "Open Directory"
openFile(...) -> "Open File"
saveFile(...) -> "Save File"

Example code:

FileDialog.saveFile(FlxG.stage.window, (file, filter) -> trace(file), [{name: "Any File", pattern: "*"}], null, "My Custom Title");

Example image:
image


Currently only tested on Linux, I will test on Windows as soon as possible, as for macOS, I cannot test it since I do not own a device with macOS installed on it

`openFile`, and `saveFile` respectively)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant