(Formerly known as ListBoxDirList, which is now obsolete)
ListBox.FillDirList(string filemask)
Fills the list box with a list of filenames matching FILEMASK in
the current directory. This could be useful if you have various
data files and the player can choose which one to load.
FILEMASK is a standard DOS/Windows search expression such as "*.dat"
or "data*.*"
This command supports the special tag $SAVEGAMEDIR$, which allows
you to access files in the save game directory. This is especially important with
the move to Windows Vista, in which you may not have access to the main game folder.
Example:
lstSaveGames.FillDirList("agssave.*");
will fill the listbox with the list of the saved games. Note that actually for this
task you would use FillSaveGameList instead.
See Also: ListBox.AddItem, ListBox.Clear,
ListBox.FillSaveGameList
|