- map changed fixes

- toolbar buttons fixed
This commit is contained in:
codeimp 2008-05-18 11:56:45 +00:00
parent 12eb6fdaf2
commit 11151c36cc
9 changed files with 22 additions and 9 deletions

View file

@ -157,6 +157,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Update caches
General.Map.Map.Update();
General.Map.IsChanged = true;
// Return to base mode
General.Map.ChangeMode(basemode);

View file

@ -431,6 +431,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
foreach(Linedef ld in selected) ld.Dispose();
// Update cache values
General.Map.IsChanged = true;
General.Map.Map.Update();
// Invoke a new mousemove so that the highlighted item updates
@ -484,6 +485,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
// Update cache values
General.Map.IsChanged = true;
General.Map.Map.Update();
// Redraw screen
@ -536,6 +538,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
// Redraw
General.Map.IsChanged = true;
General.Interface.RedrawDisplay();
}
}
@ -560,6 +563,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
// Redraw
General.Map.IsChanged = true;
General.Interface.RedrawDisplay();
}
}

View file

@ -575,6 +575,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
// Update cache values
General.Map.IsChanged = true;
General.Map.Map.Update();
// Redraw screen
@ -599,7 +600,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Deselect
General.Map.Map.ClearSelectedSectors();
General.Map.Map.ClearSelectedLinedefs();
General.Map.IsChanged = true;
// Redraw display
General.Interface.RedrawDisplay();
}
@ -622,6 +624,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Deselect
General.Map.Map.ClearSelectedSectors();
General.Map.Map.ClearSelectedLinedefs();
General.Map.IsChanged = true;
// Redraw display
General.Interface.RedrawDisplay();

View file

@ -390,6 +390,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
foreach(Thing t in selected) t.Dispose();
// Update cache values
General.Map.IsChanged = true;
General.Map.Map.Update();
// Invoke a new mousemove so that the highlighted item updates

View file

@ -404,6 +404,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
foreach(Vertex v in selected) v.Dispose();
// Update cache values
General.Map.IsChanged = true;
General.Map.Map.Update();
// Invoke a new mousemove so that the highlighted item updates

View file

@ -322,6 +322,7 @@ namespace CodeImp.DoomBuilder.Interface
}
// Done
General.Map.IsChanged = true;
this.DialogResult = DialogResult.OK;
this.Close();
}

View file

@ -461,7 +461,7 @@ namespace CodeImp.DoomBuilder.Interface
this.buttonnewmap.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonnewmap.Name = "buttonnewmap";
this.buttonnewmap.Size = new System.Drawing.Size(23, 22);
this.buttonnewmap.Tag = "newmap";
this.buttonnewmap.Tag = "builder_newmap";
this.buttonnewmap.Text = "New Map";
this.buttonnewmap.Click += new System.EventHandler(this.InvokeTaggedAction);
//
@ -472,7 +472,7 @@ namespace CodeImp.DoomBuilder.Interface
this.buttonopenmap.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonopenmap.Name = "buttonopenmap";
this.buttonopenmap.Size = new System.Drawing.Size(23, 22);
this.buttonopenmap.Tag = "openmap";
this.buttonopenmap.Tag = "builder_openmap";
this.buttonopenmap.Text = "Open Map";
this.buttonopenmap.Click += new System.EventHandler(this.InvokeTaggedAction);
//
@ -483,7 +483,7 @@ namespace CodeImp.DoomBuilder.Interface
this.buttonsavemap.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonsavemap.Name = "buttonsavemap";
this.buttonsavemap.Size = new System.Drawing.Size(23, 22);
this.buttonsavemap.Tag = "savemap";
this.buttonsavemap.Tag = "builder_savemap";
this.buttonsavemap.Text = "Save Map";
this.buttonsavemap.Click += new System.EventHandler(this.InvokeTaggedAction);
//
@ -494,7 +494,7 @@ namespace CodeImp.DoomBuilder.Interface
this.buttonmapoptions.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonmapoptions.Name = "buttonmapoptions";
this.buttonmapoptions.Size = new System.Drawing.Size(23, 22);
this.buttonmapoptions.Tag = "mapoptions";
this.buttonmapoptions.Tag = "builder_mapoptions";
this.buttonmapoptions.Text = "Map Options";
this.buttonmapoptions.Click += new System.EventHandler(this.InvokeTaggedAction);
//
@ -505,7 +505,7 @@ namespace CodeImp.DoomBuilder.Interface
this.buttonundo.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonundo.Name = "buttonundo";
this.buttonundo.Size = new System.Drawing.Size(23, 22);
this.buttonundo.Tag = "undo";
this.buttonundo.Tag = "builder_undo";
this.buttonundo.Text = "Undo";
this.buttonundo.Click += new System.EventHandler(this.InvokeTaggedAction);
//
@ -516,7 +516,7 @@ namespace CodeImp.DoomBuilder.Interface
this.buttonredo.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonredo.Name = "buttonredo";
this.buttonredo.Size = new System.Drawing.Size(23, 22);
this.buttonredo.Tag = "redo";
this.buttonredo.Tag = "builder_redo";
this.buttonredo.Text = "Redo";
this.buttonredo.Click += new System.EventHandler(this.InvokeTaggedAction);
//
@ -559,7 +559,7 @@ namespace CodeImp.DoomBuilder.Interface
this.buttonsnaptogrid.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonsnaptogrid.Name = "buttonsnaptogrid";
this.buttonsnaptogrid.Size = new System.Drawing.Size(23, 22);
this.buttonsnaptogrid.Tag = "togglesnap";
this.buttonsnaptogrid.Tag = "builder_togglesnap";
this.buttonsnaptogrid.Text = "Snap to Grid";
this.buttonsnaptogrid.Click += new System.EventHandler(this.InvokeTaggedAction);
//
@ -572,7 +572,7 @@ namespace CodeImp.DoomBuilder.Interface
this.buttonautomerge.ImageTransparentColor = System.Drawing.Color.Magenta;
this.buttonautomerge.Name = "buttonautomerge";
this.buttonautomerge.Size = new System.Drawing.Size(23, 22);
this.buttonautomerge.Tag = "toggleautomerge";
this.buttonautomerge.Tag = "builder_toggleautomerge";
this.buttonautomerge.Text = "Merge Geometry";
this.buttonautomerge.Click += new System.EventHandler(this.InvokeTaggedAction);
//

View file

@ -133,6 +133,7 @@ namespace CodeImp.DoomBuilder.Interface
}
// Done
General.Map.IsChanged = true;
this.DialogResult = DialogResult.OK;
this.Close();
}

View file

@ -336,6 +336,7 @@ namespace CodeImp.DoomBuilder.Interface
}
// Done
General.Map.IsChanged = true;
this.DialogResult = DialogResult.OK;
this.Close();
}