- 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:
codeimp 2009-08-19 13:14:55 +00:00
parent b1c23198d9
commit 3ca0b615aa
9 changed files with 23 additions and 2 deletions

View file

@ -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();
}
}
}

View file

@ -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

View file

@ -50,6 +50,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
#region ================== Properties
public override Presentation RenderPresentation { get { return Presentation.Things; } }
#endregion
#region ================== Constructor / Destructor

View file

@ -50,6 +50,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
#region ================== Properties
public override Presentation RenderPresentation { get { return Presentation.Things; } }
#endregion
#region ================== Constructor / Destructor

View file

@ -51,6 +51,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
#region ================== Properties
public override Presentation RenderPresentation { get { return Presentation.Things; } }
#endregion
#region ================== Constructor / Destructor

View file

@ -50,6 +50,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
#region ================== Properties
public override Presentation RenderPresentation { get { return Presentation.Things; } }
#endregion
#region ================== Constructor / Destructor

View file

@ -51,6 +51,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
#region ================== Properties
public override Presentation RenderPresentation { get { return Presentation.Things; } }
#endregion
#region ================== Constructor / Destructor

View file

@ -50,6 +50,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
#region ================== Properties
public override Presentation RenderPresentation { get { return Presentation.Things; } }
#endregion
#region ================== Constructor / Destructor

View file

@ -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();
}