mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-19 00:21:01 +00:00
44bf0b9588
Angle control (the newer, photoshop-like one): left-clicking inside the control now clamps angle to 45-degree increments. Right-clicking inside the control sets precise angle. Thing Edit Form: replaced angle control with newer one. Classic modes: fixed minor rendering artifacts when drawing thing direction arrow.
52 lines
1.8 KiB
C#
52 lines
1.8 KiB
C#
namespace CodeImp.DoomBuilder.GZBuilder.Controls
|
|
{
|
|
partial class AngleControl
|
|
{
|
|
/// <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 Component 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() {
|
|
this.components = new System.ComponentModel.Container();
|
|
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
|
this.SuspendLayout();
|
|
//
|
|
// AngleControl
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.Name = "AngleControl";
|
|
this.Size = new System.Drawing.Size(40, 40);
|
|
this.toolTip.SetToolTip(this, "Left-click (and drag) to set angle snapped to 45-degree increment.\r\nRight-click (" +
|
|
"and drag) to set precise angle.");
|
|
this.Load += new System.EventHandler(this.AngleSelector_Load);
|
|
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.AngleSelector_MouseMove);
|
|
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.AngleSelector_MouseDown);
|
|
this.SizeChanged += new System.EventHandler(this.AngleSelector_SizeChanged);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.ToolTip toolTip;
|
|
}
|
|
}
|