- _actionPressed
void _actionPressed()
- _cancelPressed
void _cancelPressed()
- _dirEntered
void _dirEntered(String arg0)
- _fileEntered
void _fileEntered(String arg0)
- _filterSelected
void _filterSelected(long arg0)
- _goUp
void _goUp()
- _makeDir
void _makeDir()
- _makeDirConfirm
void _makeDirConfirm()
- _saveConfirmPressed
void _saveConfirmPressed()
- _selectDrive
void _selectDrive(long arg0)
- _treeItemActivated
void _treeItemActivated()
- _treeMultiSelected
void _treeMultiSelected(GodotObject arg0, long arg1, bool arg2)
- _treeSelected
void _treeSelected()
- _unhandledInput
void _unhandledInput(InputEvent arg0)
- _updateDir
void _updateDir()
- _updateFileList
void _updateFileList()
- _updateFileName
void _updateFileName()
- addFilter
void addFilter(String filter)
Adds filter as a custom filter; filter should be of the form "filename.extension ; Description". For example, "*.png ; PNG Images".
- clearFilters
void clearFilters()
Clear all the added filters in the dialog.
- deselectItems
void deselectItems()
Clear currently selected items in the dialog.
- getAccess
FileDialog.Access getAccess()
- getCurrentDir
String getCurrentDir()
- getCurrentFile
String getCurrentFile()
- getCurrentPath
String getCurrentPath()
- getFilters
PoolStringArray getFilters()
- getLineEdit
LineEdit getLineEdit()
Returns the LineEdit for the selected file.
- getMode
FileDialog.Mode getMode()
- getVbox
VBoxContainer getVbox()
Returns the vertical box container of the dialog, custom controls can be added to it.
- invalidate
void invalidate()
Invalidate and update the current dialog content list.
- isModeOverridingTitle
bool isModeOverridingTitle()
- isShowingHiddenFiles
bool isShowingHiddenFiles()
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(FileDialog other)
- opEquals
bool opEquals(typeof(null) n)
- setAccess
void setAccess(long access)
- setCurrentDir
void setCurrentDir(String dir)
- setCurrentFile
void setCurrentFile(String file)
- setCurrentPath
void setCurrentPath(String path)
- setFilters
void setFilters(PoolStringArray filters)
- setMode
void setMode(long mode)
- setModeOverridesTitle
void setModeOverridesTitle(bool _override)
- setShowHiddenFiles
void setShowHiddenFiles(bool show)
- toHash
size_t toHash()
- access
FileDialog.Access access [@property getter]
long access [@property setter]
The file system access scope. See enum Access constants.
Warning: Currently, in sandboxed environments such as HTML5 builds or sandboxed macOS apps, FileDialog cannot access the host file system. See url=https://github.com/godotengine/godot-proposals/issues/1123godot-proposals#1123/url.
- currentDir
String currentDir [@property getter]
String currentDir [@property setter]
The current working directory of the file dialog.
- currentFile
String currentFile [@property getter]
String currentFile [@property setter]
The currently selected file of the file dialog.
- currentPath
String currentPath [@property getter]
String currentPath [@property setter]
The currently selected file path of the file dialog.
- filters
PoolStringArray filters [@property getter]
PoolStringArray filters [@property setter]
The available file type filters. For example, this shows only .png and .gd files: set_filters(PoolStringArray($(D "*.png ; PNG Images","*.gd ; GDScript Files"))).
- mode
FileDialog.Mode mode [@property getter]
long mode [@property setter]
The dialog's open or save mode, which affects the selection behavior. See enum Mode constants.
- modeOverridesTitle
bool modeOverridesTitle [@property getter]
bool modeOverridesTitle [@property setter]
If true, changing the Mode property will set the window title accordingly (e.g. setting mode to constant MODE_OPEN_FILE will change the window title to "Open a File").
- showHiddenFiles
bool showHiddenFiles [@property getter]
bool showHiddenFiles [@property setter]
If true, the dialog will show hidden files.
Dialog for selecting files or directories in the filesystem.
FileDialog is a preset dialog used to choose files and directories in the filesystem. It supports filter masks. The FileDialog automatically sets its window title according to the mode. If you want to use a custom title, disable this by setting modeOverridesTitle to false.