Allows the user to select a file for the Mod (stored in an Archive or a real file)
More...
|
static bool | TryGetPath (string type, string extension, out string path, out bool overwrite) |
| Gets the file path for a game-content file (allowing the user to create a new file) More...
|
|
static bool | TryGetPath (string type, string extension, out string path) |
| Gets the file path for a game-content file (not allowing the user to create a new file) More...
|
|
|
override void | Dispose (bool disposing) |
| Clean up any resources being used. More...
|
|
Allows the user to select a file for the Mod (stored in an Archive or a real file)
◆ Dispose()
override void AlphaFramework.Editor.FileSelectorDialog.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotected |
Clean up any resources being used.
- Parameters
-
disposing | true if managed resources should be disposed; otherwise, false. |
◆ TryGetPath() [1/2]
static bool AlphaFramework.Editor.FileSelectorDialog.TryGetPath |
( |
string |
type, |
|
|
string |
extension, |
|
|
out string |
path, |
|
|
out bool |
overwrite |
|
) |
| |
|
inlinestatic |
Gets the file path for a game-content file (allowing the user to create a new file)
- Parameters
-
type | The type of file you want (e.g. Textures, Sounds, ...) |
extension | The file extension of the file type with a dot, but without a asterisk (e.g. .xml, .png, ...) |
path | The absolute path to the requested content file |
overwrite | Returns whether the user wants an existing file to be overwritten |
- Returns
true
if a file was selected, false
if none was selected
- Exceptions
-
InvalidOperationException | The user didn't select a file. |
◆ TryGetPath() [2/2]
static bool AlphaFramework.Editor.FileSelectorDialog.TryGetPath |
( |
string |
type, |
|
|
string |
extension, |
|
|
out string |
path |
|
) |
| |
|
inlinestatic |
Gets the file path for a game-content file (not allowing the user to create a new file)
- Parameters
-
type | The type of file you want (e.g. Textures, Sounds, ...) |
extension | The file extension of the file type with a dot, but without a asterisk (e.g. .xml, .png, ...) |
path | The absolute path to the requested content file |
- Returns
true
if a file was selected, false
if none was selected
- Exceptions
-
InvalidOperationException | The user didn't select a file. |
The documentation for this class was generated from the following files:
- Editor/FileSelectorDialog.cs
- Editor/FileSelectorDialog.Designer.cs