Skip to content
Snippets Groups Projects
Commit 3ca0b615 authored by codeimp's avatar codeimp
Browse files

- 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
parent b1c23198
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment