Revision number is now also added to screenshot's filename.

Fixed a typo in the Preferences form.
This commit is contained in:
MaxED 2014-08-06 14:48:25 +00:00
parent 95a57dc72a
commit 948dda0406
2 changed files with 3 additions and 3 deletions

View file

@ -2928,7 +2928,8 @@ namespace CodeImp.DoomBuilder.Windows
//create path //create path
string date = DateTime.Now.ToString("dd.MM.yyyy HH-mm-ss"); string date = DateTime.Now.ToString("dd.MM.yyyy HH-mm-ss");
string path = Path.Combine(folder, name + date + ".jpg"); string revision = "[r" + General.ThisAssembly.GetName().Version.MinorRevision + "]";
string path = Path.Combine(folder, name + date + " " + revision + ".jpg");
//save image //save image
using(Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height)) { using(Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height)) {
@ -2940,7 +2941,6 @@ namespace CodeImp.DoomBuilder.Windows
//gather some info //gather some info
string info = string.Empty; string info = string.Empty;
string revision = "[r" + General.ThisAssembly.GetName().Version.MinorRevision + "]";
if (editAreaOnly && General.Editing.Mode != null) { if (editAreaOnly && General.Editing.Mode != null) {
//get map coordinates //get map coordinates
if (General.Editing.Mode is ClassicMode) { if (General.Editing.Mode is ClassicMode) {

View file

@ -241,7 +241,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
this.syncSelection.Name = "syncSelection"; this.syncSelection.Name = "syncSelection";
this.syncSelection.Size = new System.Drawing.Size(306, 18); this.syncSelection.Size = new System.Drawing.Size(306, 18);
this.syncSelection.TabIndex = 10; this.syncSelection.TabIndex = 10;
this.syncSelection.Text = "Synhcronise selection between Visual and Classic modes"; this.syncSelection.Text = "Synchronise selection between Visual and Classic modes";
this.syncSelection.UseVisualStyleBackColor = true; this.syncSelection.UseVisualStyleBackColor = true;
// //
// dontMoveGeometryOutsideBounds // dontMoveGeometryOutsideBounds