Changed, Visual mode: "Paste Selection" action (Ctrl-V) can now paste both copied textures and things, based on what was copied last.

Changed, Map Analysis mode: the view is now much more zoomed after clocking on a "Check very short linedefs" error check result.
Removed single testing engine launchable by the editor at once limitation (it worked properly only when using Test map actions anyway).
Fixed: re-did the fix for invalid geometry created when drawing very large grids from R2653, because it caused other issues.
This commit is contained in:
MaxED 2016-06-19 00:09:53 +00:00
parent af4f40389f
commit cb1eb1de83
8 changed files with 91 additions and 59 deletions

View file

@ -2702,7 +2702,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
public void TextureCopy()
{
PreActionNoChange();
GetTargetEventReceiver(true).OnCopyTexture(); //mxd
IVisualEventReceiver i = GetTargetEventReceiver(true);
i.OnCopyTexture(); //mxd
if(!(i is VisualThing)) copybuffer.Clear(); //mxd. Not copying things any more...
PostAction();
}
@ -3119,7 +3121,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
VisualThing vt = (VisualThing)i;
if(vt != null) copybuffer.Add(new ThingCopyData(vt.Thing));
}
General.Interface.DisplayStatus(StatusType.Info, "Copied " + copybuffer.Count + " Things");
string rest = copybuffer.Count + (copybuffer.Count > 1 ? " things." : " thing.");
General.Interface.DisplayStatus(StatusType.Info, "Copied " + rest);
}
//mxd
@ -3129,7 +3133,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
CopySelection();
//Create undo
string rest = copybuffer.Count + " thing" + (copybuffer.Count > 1 ? "s." : ".");
string rest = copybuffer.Count + (copybuffer.Count > 1 ? " things." : " thing.");
CreateUndo("Cut " + rest);
General.Interface.DisplayStatus(StatusType.Info, "Cut " + rest);
@ -3155,7 +3159,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
{
if(copybuffer.Count == 0)
{
General.Interface.DisplayStatus(StatusType.Warning, "Nothing to paste, cut or copy some Things first!");
TexturePaste(); // I guess we may paste a texture or two instead
return;
}
@ -3167,7 +3171,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
return;
}
string rest = copybuffer.Count + " thing" + (copybuffer.Count > 1 ? "s" : "");
string rest = copybuffer.Count + (copybuffer.Count > 1 ? " things." : " thing.");
General.Map.UndoRedo.CreateUndo("Paste " + rest);
General.Interface.DisplayStatus(StatusType.Info, "Pasted " + rest);