Game Maker: Marketplace
Windows Only [DLL]
In Game Maker you can use get_open_filename to browse for files, but there is no way to browse for folders. This extension allows you to open a folder browser dialog.
There are 2 functions that comes with the extension:
- zdir_get_directory(path, description)
This function opens a folder browser dialog and returns the selected directory.
The first argument, "path", specifies the root folder for the dialog.
The second argument, "description", specifies the description of the dialog.
This function specifies if you want to show the "Make New Folder" button in the dialog.
The argument, "show", can either be true or false.
Note: There are a few things you need to keep in mind when using this extension:
You cannot open the folder browser dialog in the first frame of the game.
If you open the folder browser dialog with a key-press or a mouse-press, make sure to use keyboard_clear/mouse_clear afterwards as Game Maker doesn't clear the key-state automatically for some reason.
If you have any feedback, please let me know!