mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Fixed some file browser regexps
This commit is contained in:
parent
39fddcb7c5
commit
8e068aad5b
4 changed files with 7 additions and 7 deletions
|
@ -115,7 +115,7 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
filterall += exts;
|
||||
}
|
||||
}
|
||||
openfile.Filter = "Script files|" + filterall + "|" + filterseperate + "|All files|*.*";
|
||||
openfile.Filter = "Script files|" + filterall + "|" + filterseperate + "|All files|*";
|
||||
|
||||
// Load the script lumps
|
||||
ScriptDocumentTab activetab = null; //mxd
|
||||
|
@ -974,7 +974,7 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
{
|
||||
// Setup save dialog
|
||||
string scriptfilter = t.Config.Description + "|*." + string.Join(";*.", t.Config.Extensions);
|
||||
savefile.Filter = scriptfilter + "|All files|*.*";
|
||||
savefile.Filter = scriptfilter + "|All files|*";
|
||||
if (savefile.ShowDialog(this.ParentForm) == DialogResult.OK)
|
||||
{
|
||||
// Save to new filename
|
||||
|
|
|
@ -1178,7 +1178,7 @@ namespace CodeImp.DoomBuilder
|
|||
|
||||
// Open map file dialog
|
||||
OpenFileDialog openfile = new OpenFileDialog();
|
||||
openfile.Filter = "WAD Files (*.wad)|*.wad|All Files|*.*";
|
||||
openfile.Filter = "WAD Files (*.wad)|*.wad|All Files|*";
|
||||
openfile.Title = "Open Map";
|
||||
if(!string.IsNullOrEmpty(settings.LastUsedMapFolder) && Directory.Exists(settings.LastUsedMapFolder)) //mxd
|
||||
openfile.InitialDirectory = settings.LastUsedMapFolder; //mxd
|
||||
|
@ -1455,7 +1455,7 @@ namespace CodeImp.DoomBuilder
|
|||
|
||||
// Show save as dialog
|
||||
SaveFileDialog savefile = new SaveFileDialog();
|
||||
savefile.Filter = "WAD Files (*.wad)|*.wad|All Files|*.*";
|
||||
savefile.Filter = "WAD Files (*.wad)|*.wad|All Files|*";
|
||||
savefile.Title = "Save Map As";
|
||||
savefile.AddExtension = true;
|
||||
savefile.CheckPathExists = true;
|
||||
|
@ -1527,7 +1527,7 @@ namespace CodeImp.DoomBuilder
|
|||
|
||||
// Show save as dialog
|
||||
SaveFileDialog savefile = new SaveFileDialog();
|
||||
savefile.Filter = "WAD Files (*.wad)|*.wad|All Files|*.*";
|
||||
savefile.Filter = "WAD Files (*.wad)|*.wad|All Files|*";
|
||||
savefile.Title = "Save Map Into";
|
||||
savefile.AddExtension = true;
|
||||
savefile.CheckPathExists = true;
|
||||
|
|
2
Source/Core/Windows/GridSetupForm.Designer.cs
generated
2
Source/Core/Windows/GridSetupForm.Designer.cs
generated
|
@ -270,7 +270,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
//
|
||||
// browsefile
|
||||
//
|
||||
this.browsefile.Filter = "All supported images|*.bmp;*.gif;*.png|All Files|*.*";
|
||||
this.browsefile.Filter = "All supported images|*.bmp;*.gif;*.png|All Files|*";
|
||||
this.browsefile.RestoreDirectory = true;
|
||||
this.browsefile.Title = "Select Background Image File";
|
||||
//
|
||||
|
|
|
@ -303,7 +303,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
//
|
||||
// wadfiledialog
|
||||
//
|
||||
this.wadfiledialog.Filter = "WAD Files (*.wad;*.srb)|*.wad;*srb|TopDown Files (*.td)|*.td|All Files|*.*";
|
||||
this.wadfiledialog.Filter = "WAD Files (*.wad;*.srb)|*.wad;*.srb|TopDown Files (*.td)|*.td|All Files|*";
|
||||
this.wadfiledialog.Title = "Browse WAD File";
|
||||
//
|
||||
// dirdialog
|
||||
|
|
Loading…
Reference in a new issue