|
A control that displays a list of files from within a single directory in the game file system. More...
Public Member Functions | |
string | getSelectedFile () |
Get the currently selected filename. | |
string | getSelectedFiles () |
Get the list of selected files. | |
void | reload () |
Update the file list. | |
void | setFilter (string filter) |
Set the file filter. | |
bool | setPath (string path, string filter) |
Set the search path and file filter. | |
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. |
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. };
string GuiDirectoryFileListCtrl::getSelectedFile | ( | ) |
Get the currently selected filename.
string GuiDirectoryFileListCtrl::getSelectedFiles | ( | ) |
Get the list of selected files.
void GuiDirectoryFileListCtrl::reload | ( | ) |
Update the file list.
void GuiDirectoryFileListCtrl::setFilter | ( | string | filter | ) |
Set the file filter.
filter | Tab-delimited list of file name patterns. Only matched files will be displayed. |
bool GuiDirectoryFileListCtrl::setPath | ( | string | path, | |
string | filter | |||
) |
Set the search path and file filter.
path | Path in game directory from which to list files. | |
filter | Tab-delimited list of file name patterns. Only matched files will be displayed. |
Tab-delimited list of file name patterns. Only matched files will be displayed.
Path in game directory from which to list files.