mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
- Things browser no longer closes when double-clicked on a category
- Find & Replace mode now changes render presentation to show Things on-top when a Things search is performed
This commit is contained in:
parent
b1c23198d9
commit
3ca0b615aa
9 changed files with 23 additions and 2 deletions
|
@ -148,9 +148,14 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
// List double-clicked
|
||||
private void typelist_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
if((typelist.SelectedNode != null) && (typeid.Text.Length > 0))
|
||||
if(typelist.SelectedNode != null)
|
||||
{
|
||||
if(OnTypeDoubleClicked != null) OnTypeDoubleClicked();
|
||||
// Node is a child node?
|
||||
TreeNode n = typelist.SelectedNode;
|
||||
if((n.Nodes.Count == 0) && (n.Tag != null) && (n.Tag is ThingTypeInfo))
|
||||
{
|
||||
if((OnTypeDoubleClicked != null) && (typeid.Text.Length > 0)) OnTypeDoubleClicked();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
public FindReplaceAttribute Attributes { get { return attribs; } }
|
||||
public bool AllowDelete { get { return false; } }
|
||||
public virtual Presentation RenderPresentation { get { return Presentation.Standard; } }
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -50,6 +50,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
#region ================== Properties
|
||||
|
||||
public override Presentation RenderPresentation { get { return Presentation.Things; } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Constructor / Destructor
|
||||
|
|
|
@ -50,6 +50,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
#region ================== Properties
|
||||
|
||||
public override Presentation RenderPresentation { get { return Presentation.Things; } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Constructor / Destructor
|
||||
|
|
|
@ -51,6 +51,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
#region ================== Properties
|
||||
|
||||
public override Presentation RenderPresentation { get { return Presentation.Things; } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Constructor / Destructor
|
||||
|
|
|
@ -50,6 +50,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
#region ================== Properties
|
||||
|
||||
public override Presentation RenderPresentation { get { return Presentation.Things; } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Constructor / Destructor
|
||||
|
|
|
@ -51,6 +51,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
#region ================== Properties
|
||||
|
||||
public override Presentation RenderPresentation { get { return Presentation.Things; } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Constructor / Destructor
|
||||
|
|
|
@ -50,6 +50,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
#region ================== Properties
|
||||
|
||||
public override Presentation RenderPresentation { get { return Presentation.Things; } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Constructor / Destructor
|
||||
|
|
|
@ -203,6 +203,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
editbutton.Enabled = (resultslist.SelectedIndex > -1);
|
||||
deletebutton.Enabled = (resultslist.SelectedIndex > -1);
|
||||
|
||||
// Set correct presentation mode
|
||||
General.Map.Renderer2D.SetPresentation(finder.RenderPresentation);
|
||||
|
||||
// Redraw the screen, this will show the selection
|
||||
General.Interface.RedrawDisplay();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue