Fix an issue with the Stair Sector Builder and improve the default settings.

This commit is contained in:
sphere 2021-05-09 21:14:44 +02:00
parent 2afc9eb7e4
commit ae0812145b
2 changed files with 13 additions and 18 deletions

View file

@ -393,7 +393,7 @@ namespace CodeImp.DoomBuilder.StairSectorBuilderMode
private void StairSectorBuilderForm_Load(object sender, EventArgs e)
{
sectordepth.Text = "32";
sectordepth.Text = General.Map.Grid.GridSize.ToString();
spacing.Text = "0";
numberofsectors.Text = "1";
autocurveinnervertexmultiplier.Text = "1";
@ -892,15 +892,6 @@ namespace CodeImp.DoomBuilder.StairSectorBuilderMode
ceilingbase.Text = originalceilingbase.ToString();
}
private void prefabs_DoubleClick(object sender, EventArgs e)
{
if (prefabs.SelectedIndices.Count == 0) return;
LoadPrefab(prefabs.SelectedIndices[0]);
DoRedrawDisplay();
}
private void distinctsectors_CheckedChanged(object sender, EventArgs e)
{
DoRedrawDisplay();

View file

@ -721,9 +721,10 @@
//
// lowerunpegged
//
this.lowerunpegged.Enabled = false;
this.lowerunpegged.AutoSize = true;
this.lowerunpegged.Checked = true;
this.lowerunpegged.CheckState = System.Windows.Forms.CheckState.Checked;
this.lowerunpegged.Checked = false;
this.lowerunpegged.CheckState = System.Windows.Forms.CheckState.Unchecked;
this.lowerunpegged.Location = new System.Drawing.Point(9, 156);
this.lowerunpegged.Name = "lowerunpegged";
this.lowerunpegged.Size = new System.Drawing.Size(75, 18);
@ -733,6 +734,7 @@
//
// lowertexturetexture
//
this.lowertexturetexture.Enabled = false;
this.lowertexturetexture.Location = new System.Drawing.Point(8, 23);
this.lowertexturetexture.MultipleTextures = false;
this.lowertexturetexture.Name = "lowertexturetexture";
@ -744,8 +746,8 @@
// lowertexture
//
this.lowertexture.AutoSize = true;
this.lowertexture.Checked = true;
this.lowertexture.CheckState = System.Windows.Forms.CheckState.Checked;
this.lowertexture.Checked = false;
this.lowertexture.CheckState = System.Windows.Forms.CheckState.Unchecked;
this.lowertexture.Location = new System.Drawing.Point(9, -1);
this.lowertexture.Name = "lowertexture";
this.lowertexture.Size = new System.Drawing.Size(95, 18);
@ -767,9 +769,10 @@
//
// upperunpegged
//
this.upperunpegged.Enabled = false;
this.upperunpegged.AutoSize = true;
this.upperunpegged.Checked = true;
this.upperunpegged.CheckState = System.Windows.Forms.CheckState.Checked;
this.upperunpegged.Checked = false;
this.upperunpegged.CheckState = System.Windows.Forms.CheckState.Unchecked;
this.upperunpegged.Location = new System.Drawing.Point(9, 156);
this.upperunpegged.Name = "upperunpegged";
this.upperunpegged.Size = new System.Drawing.Size(75, 18);
@ -779,6 +782,7 @@
//
// uppertexturetexture
//
this.uppertexturetexture.Enabled = false;
this.uppertexturetexture.Location = new System.Drawing.Point(8, 23);
this.uppertexturetexture.MultipleTextures = false;
this.uppertexturetexture.Name = "uppertexturetexture";
@ -790,8 +794,8 @@
// uppertexture
//
this.uppertexture.AutoSize = true;
this.uppertexture.Checked = true;
this.uppertexture.CheckState = System.Windows.Forms.CheckState.Checked;
this.uppertexture.Checked = false;
this.uppertexture.CheckState = System.Windows.Forms.CheckState.Unchecked;
this.uppertexture.Location = new System.Drawing.Point(9, -1);
this.uppertexture.Name = "uppertexture";
this.uppertexture.Size = new System.Drawing.Size(92, 18);