Previous Things mode highlight fix was a bit rushed...

This commit is contained in:
MaxED 2015-08-06 22:16:12 +00:00
parent 18af297d9d
commit 1d6cbb7098

View file

@ -134,6 +134,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
General.Interface.RemoveButton(BuilderPlug.Me.MenusForm.SeparatorCopyPaste); //mxd
General.Interface.RemoveButton(BuilderPlug.Me.MenusForm.AlignThingsToWall); //mxd
//mxd. Do some highlight management...
if(highlighted != null) highlighted.Highlighted = false;
// Going to EditSelectionMode?
if(General.Editing.NewMode is EditSelectionMode)
{
@ -149,10 +152,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
}
}
else if(highlighted != null) //mxd
{
highlighted.Highlighted = false;
}
// Hide highlight info and tooltip
General.Interface.HideInfo();
@ -706,14 +705,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
return base.OnCopyBegin();
}
//mxd. Needs more highlight management...
public override bool OnPasteBegin(PasteOptions options)
{
bool result = base.OnPasteBegin(options);
if(result && highlighted != null) highlighted.Highlighted = false;
return result;
}
//mxd
public override void UpdateSelectionInfo()
{