mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-15 09:01:40 +00:00
246f947cba
Fixed: stored windows positions were not checked against current screen bounds, which may have resulted in windows being shown off-screen.
253 lines
No EOL
9.8 KiB
C#
253 lines
No EOL
9.8 KiB
C#
namespace CodeImp.DoomBuilder.BuilderModes.Interface
|
|
{
|
|
partial class PerpendicularLinedefForm
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
System.Windows.Forms.Label label1;
|
|
System.Windows.Forms.Label label2;
|
|
System.Windows.Forms.Label label4;
|
|
System.Windows.Forms.Label label3;
|
|
this.cancel = new System.Windows.Forms.Button();
|
|
this.apply = new System.Windows.Forms.Button();
|
|
this.backwards = new System.Windows.Forms.CheckBox();
|
|
this.createas = new System.Windows.Forms.ComboBox();
|
|
this.distance = new CodeImp.DoomBuilder.Controls.ButtonsNumericTextbox();
|
|
this.tooltip = new System.Windows.Forms.ToolTip();
|
|
this.offsetperc = new CodeImp.DoomBuilder.Controls.ButtonsNumericTextbox();
|
|
this.snapmp = new CodeImp.DoomBuilder.Controls.ButtonsNumericTextbox();
|
|
label1 = new System.Windows.Forms.Label();
|
|
label2 = new System.Windows.Forms.Label();
|
|
label4 = new System.Windows.Forms.Label();
|
|
label3 = new System.Windows.Forms.Label();
|
|
this.SuspendLayout();
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.Location = new System.Drawing.Point(22, 54);
|
|
label1.Name = "label1";
|
|
label1.Size = new System.Drawing.Size(52, 13);
|
|
label1.TabIndex = 2;
|
|
label1.Text = "Distance:";
|
|
this.tooltip.SetToolTip(label1, "Set distance between selected linedef(s) and the end of the perpendicular.");
|
|
//
|
|
// label2
|
|
//
|
|
label2.AutoSize = true;
|
|
label2.Location = new System.Drawing.Point(25, 80);
|
|
label2.Name = "label2";
|
|
label2.Size = new System.Drawing.Size(49, 13);
|
|
label2.TabIndex = 4;
|
|
label2.Text = "Offset %:";
|
|
this.tooltip.SetToolTip(label2, "Sets offset along each linedef of where the perpendicular should intersect.\r\n50% " +
|
|
"means exactly in the center.\r\nUse comma ( , ) for fractional numbers, e.g.: 12,5" +
|
|
"");
|
|
//
|
|
// label4
|
|
//
|
|
label4.AutoSize = true;
|
|
label4.Location = new System.Drawing.Point(17, 128);
|
|
label4.Name = "label4";
|
|
label4.Size = new System.Drawing.Size(57, 13);
|
|
label4.TabIndex = 7;
|
|
label4.Text = "Snap dist.:";
|
|
this.tooltip.SetToolTip(label4, "Adjust snap distance to vertices that already exist in the map so perpendiculars " +
|
|
"get connected to them.\r\nSet to zero to disable snapping.\r\nUse comma ( , ) for fr" +
|
|
"actional number, e.g.: 0,5");
|
|
//
|
|
// label3
|
|
//
|
|
label3.AutoSize = true;
|
|
label3.Location = new System.Drawing.Point(22, 9);
|
|
label3.Name = "label3";
|
|
label3.Size = new System.Drawing.Size(61, 13);
|
|
label3.TabIndex = 0;
|
|
label3.Text = "Create as...";
|
|
this.tooltip.SetToolTip(label3, "Select which type of elements to create.\r\nCheck help (F1) for more information.\r\n" +
|
|
"");
|
|
//
|
|
// cancel
|
|
//
|
|
this.cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.cancel.Location = new System.Drawing.Point(89, 155);
|
|
this.cancel.Name = "cancel";
|
|
this.cancel.Size = new System.Drawing.Size(70, 25);
|
|
this.cancel.TabIndex = 10;
|
|
this.cancel.Text = "Cancel";
|
|
this.cancel.UseVisualStyleBackColor = true;
|
|
this.cancel.Click += new System.EventHandler(this.cancel_Click);
|
|
//
|
|
// apply
|
|
//
|
|
this.apply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.apply.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
this.apply.Location = new System.Drawing.Point(12, 155);
|
|
this.apply.Name = "apply";
|
|
this.apply.Size = new System.Drawing.Size(70, 25);
|
|
this.apply.TabIndex = 9;
|
|
this.apply.Text = "OK";
|
|
this.apply.UseVisualStyleBackColor = true;
|
|
this.apply.Click += new System.EventHandler(this.apply_Click);
|
|
//
|
|
// backwards
|
|
//
|
|
this.backwards.AutoSize = true;
|
|
this.backwards.Location = new System.Drawing.Point(20, 103);
|
|
this.backwards.Name = "backwards";
|
|
this.backwards.Size = new System.Drawing.Size(79, 17);
|
|
this.backwards.TabIndex = 6;
|
|
this.backwards.Text = "Backwards";
|
|
this.tooltip.SetToolTip(this.backwards, "When checked, it creates a perpendicular on the opposite side of where the linede" +
|
|
"fs are facing.");
|
|
this.backwards.UseVisualStyleBackColor = true;
|
|
this.backwards.CheckedChanged += new System.EventHandler(this.ValueChanged);
|
|
//
|
|
// createas
|
|
//
|
|
this.createas.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.createas.FormattingEnabled = true;
|
|
this.createas.Items.AddRange(new object[] {
|
|
"Linked Linedefs",
|
|
"Unlinked Linedefs",
|
|
"Vertices",
|
|
"Vertices with Linedef Split",
|
|
"Things"});
|
|
this.createas.Location = new System.Drawing.Point(12, 25);
|
|
this.createas.Name = "createas";
|
|
this.createas.Size = new System.Drawing.Size(146, 21);
|
|
this.createas.TabIndex = 1;
|
|
this.tooltip.SetToolTip(this.createas, "Select which type of elements to create.\r\nCheck help (F1) for more information.\r\n" +
|
|
"");
|
|
this.createas.SelectedIndexChanged += new System.EventHandler(this.ValueChanged);
|
|
//
|
|
// distance
|
|
//
|
|
this.distance.AllowDecimal = false;
|
|
this.distance.AllowNegative = false;
|
|
this.distance.AllowRelative = false;
|
|
this.distance.ButtonStep = 8;
|
|
this.distance.ButtonStepBig = 64F;
|
|
this.distance.ButtonStepFloat = 1F;
|
|
this.distance.ButtonStepSmall = 1F;
|
|
this.distance.ButtonStepsUseModifierKeys = true;
|
|
this.distance.ButtonStepsWrapAround = false;
|
|
this.distance.Location = new System.Drawing.Point(80, 49);
|
|
this.distance.Name = "distance";
|
|
this.distance.Size = new System.Drawing.Size(72, 24);
|
|
this.distance.StepValues = null;
|
|
this.distance.TabIndex = 3;
|
|
this.distance.WhenTextChanged += new System.EventHandler(this.ValueChanged);
|
|
//
|
|
// tooltip
|
|
//
|
|
this.tooltip.AutoPopDelay = 10000;
|
|
this.tooltip.InitialDelay = 500;
|
|
this.tooltip.ReshowDelay = 100;
|
|
//
|
|
// offsetperc
|
|
//
|
|
this.offsetperc.AllowDecimal = true;
|
|
this.offsetperc.AllowNegative = false;
|
|
this.offsetperc.AllowRelative = false;
|
|
this.offsetperc.ButtonStep = 5;
|
|
this.offsetperc.ButtonStepBig = 25F;
|
|
this.offsetperc.ButtonStepFloat = 1F;
|
|
this.offsetperc.ButtonStepSmall = 1F;
|
|
this.offsetperc.ButtonStepsUseModifierKeys = true;
|
|
this.offsetperc.ButtonStepsWrapAround = false;
|
|
this.offsetperc.Location = new System.Drawing.Point(80, 75);
|
|
this.offsetperc.Name = "offsetperc";
|
|
this.offsetperc.Size = new System.Drawing.Size(72, 24);
|
|
this.offsetperc.StepValues = null;
|
|
this.offsetperc.TabIndex = 5;
|
|
this.offsetperc.WhenTextChanged += new System.EventHandler(this.offsetperc_WhenTextChanged);
|
|
//
|
|
// snapmp
|
|
//
|
|
this.snapmp.AllowDecimal = true;
|
|
this.snapmp.AllowNegative = false;
|
|
this.snapmp.AllowRelative = false;
|
|
this.snapmp.ButtonStep = 1;
|
|
this.snapmp.ButtonStepBig = 1F;
|
|
this.snapmp.ButtonStepFloat = 1F;
|
|
this.snapmp.ButtonStepSmall = 0.1F;
|
|
this.snapmp.ButtonStepsUseModifierKeys = false;
|
|
this.snapmp.ButtonStepsWrapAround = false;
|
|
this.snapmp.Location = new System.Drawing.Point(80, 123);
|
|
this.snapmp.Name = "snapmp";
|
|
this.snapmp.Size = new System.Drawing.Size(72, 24);
|
|
this.snapmp.StepValues = null;
|
|
this.snapmp.TabIndex = 8;
|
|
//
|
|
// PerpendicularLinedefForm
|
|
//
|
|
this.AcceptButton = this.apply;
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.CancelButton = this.cancel;
|
|
this.ClientSize = new System.Drawing.Size(170, 192);
|
|
this.Controls.Add(this.snapmp);
|
|
this.Controls.Add(this.offsetperc);
|
|
this.Controls.Add(this.distance);
|
|
this.Controls.Add(label4);
|
|
this.Controls.Add(this.createas);
|
|
this.Controls.Add(label3);
|
|
this.Controls.Add(label2);
|
|
this.Controls.Add(this.backwards);
|
|
this.Controls.Add(label1);
|
|
this.Controls.Add(this.cancel);
|
|
this.Controls.Add(this.apply);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "PerpendicularLinedefForm";
|
|
this.Opacity = 0;
|
|
this.ShowIcon = false;
|
|
this.ShowInTaskbar = false;
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
|
|
this.Text = "Perpendicular (Linedef)";
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.PerpendicularLinedefForm_FormClosing);
|
|
this.HelpRequested += new System.Windows.Forms.HelpEventHandler(this.PerpendicularLinedefForm_HelpRequested);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Button cancel;
|
|
private System.Windows.Forms.Button apply;
|
|
private System.Windows.Forms.CheckBox backwards;
|
|
private System.Windows.Forms.ComboBox createas;
|
|
private Controls.ButtonsNumericTextbox distance;
|
|
private System.Windows.Forms.ToolTip tooltip;
|
|
private Controls.ButtonsNumericTextbox offsetperc;
|
|
private Controls.ButtonsNumericTextbox snapmp;
|
|
}
|
|
} |