GuiDirectoryFileListCtrl
A control that displays a list of files from within a single directory in the game file system.
Public Attributes
string
Tab-delimited list of file name patterns. Only matched files will be displayed.
Public Functions
Detailed Description
A control that displays a list of files from within a single directory in the game file system.
new GuiDirectoryFileListCtrl() { filePath = "art/shapes"; fileFilter = "*.dts" TAB "*.dae"; //Properties not specific to this control have been omitted from this example. };
Public Attributes
string fileFilter
Tab-delimited list of file name patterns. Only matched files will be displayed.
string filePath
Path in game directory from which to list files.
Public Functions
getSelectedFile()
Get the currently selected filename.
The filename of the currently selected file
getSelectedFiles()
Get the list of selected files.
A space separated list of selected files
reload()
Update the file list.
setFilter(string filter)
Set the file filter.
Parameters:
filter | Tab-delimited list of file name patterns. Only matched files will be displayed. |
setPath(string path, string filter)
Set the search path and file filter.
Parameters:
path | Path in game directory from which to list files. |
filter | Tab-delimited list of file name patterns. Only matched files will be displayed. |