mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-30 07:31:36 +00:00
Previous Things mode highlight fix was a bit rushed...
This commit is contained in:
parent
18af297d9d
commit
1d6cbb7098
1 changed files with 3 additions and 12 deletions
|
@ -134,6 +134,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
General.Interface.RemoveButton(BuilderPlug.Me.MenusForm.SeparatorCopyPaste); //mxd
|
General.Interface.RemoveButton(BuilderPlug.Me.MenusForm.SeparatorCopyPaste); //mxd
|
||||||
General.Interface.RemoveButton(BuilderPlug.Me.MenusForm.AlignThingsToWall); //mxd
|
General.Interface.RemoveButton(BuilderPlug.Me.MenusForm.AlignThingsToWall); //mxd
|
||||||
|
|
||||||
|
//mxd. Do some highlight management...
|
||||||
|
if(highlighted != null) highlighted.Highlighted = false;
|
||||||
|
|
||||||
// Going to EditSelectionMode?
|
// Going to EditSelectionMode?
|
||||||
if(General.Editing.NewMode is 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
|
// Hide highlight info and tooltip
|
||||||
General.Interface.HideInfo();
|
General.Interface.HideInfo();
|
||||||
|
@ -706,14 +705,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
return base.OnCopyBegin();
|
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
|
//mxd
|
||||||
public override void UpdateSelectionInfo()
|
public override void UpdateSelectionInfo()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue