mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 20:32:34 +00:00
1adf313a91
Fixed: texture size label's visibility was inconsistent in ImageSelectorControls.
114 lines
4.5 KiB
C#
114 lines
4.5 KiB
C#
namespace CodeImp.DoomBuilder.Controls
|
|
{
|
|
partial class ImageSelectorControl
|
|
{
|
|
/// <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))
|
|
{
|
|
if(bmp != null) bmp.Dispose();
|
|
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.preview = new System.Windows.Forms.Panel();
|
|
this.labelSize = new System.Windows.Forms.Label();
|
|
this.name = new CodeImp.DoomBuilder.Controls.AutoSelectTextbox();
|
|
this.timer = new System.Windows.Forms.Timer(this.components);
|
|
this.preview.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// preview
|
|
//
|
|
this.preview.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
|
this.preview.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
|
this.preview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
|
this.preview.Controls.Add(this.labelSize);
|
|
this.preview.Location = new System.Drawing.Point(0, 0);
|
|
this.preview.Name = "preview";
|
|
this.preview.Size = new System.Drawing.Size(68, 60);
|
|
this.preview.TabIndex = 1;
|
|
this.preview.MouseLeave += new System.EventHandler(this.preview_MouseLeave);
|
|
this.preview.MouseMove += new System.Windows.Forms.MouseEventHandler(this.preview_MouseMove);
|
|
this.preview.Click += new System.EventHandler(this.preview_Click);
|
|
this.preview.MouseDown += new System.Windows.Forms.MouseEventHandler(this.preview_MouseDown);
|
|
this.preview.MouseUp += new System.Windows.Forms.MouseEventHandler(this.preview_MouseUp);
|
|
this.preview.MouseEnter += new System.EventHandler(this.preview_MouseEnter);
|
|
//
|
|
// labelSize
|
|
//
|
|
this.labelSize.AutoSize = true;
|
|
this.labelSize.BackColor = System.Drawing.Color.Black;
|
|
this.labelSize.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
this.labelSize.ForeColor = System.Drawing.Color.White;
|
|
this.labelSize.Location = new System.Drawing.Point(1, 1);
|
|
this.labelSize.MaximumSize = new System.Drawing.Size(0, 13);
|
|
this.labelSize.Name = "labelSize";
|
|
this.labelSize.Size = new System.Drawing.Size(48, 13);
|
|
this.labelSize.TabIndex = 0;
|
|
this.labelSize.Text = "128x128";
|
|
this.labelSize.Visible = false;
|
|
//
|
|
// name
|
|
//
|
|
this.name.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
|
|
this.name.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
|
|
this.name.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
|
|
this.name.Location = new System.Drawing.Point(0, 64);
|
|
this.name.MaxLength = 8;
|
|
this.name.Name = "name";
|
|
this.name.Size = new System.Drawing.Size(68, 20);
|
|
this.name.TabIndex = 2;
|
|
this.name.TextChanged += new System.EventHandler(this.name_TextChanged);
|
|
//
|
|
// timer
|
|
//
|
|
this.timer.Interval = 1000;
|
|
this.timer.Tick += new System.EventHandler(this.timer_Tick);
|
|
//
|
|
// ImageSelectorControl
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.Controls.Add(this.name);
|
|
this.Controls.Add(this.preview);
|
|
this.Name = "ImageSelectorControl";
|
|
this.Size = new System.Drawing.Size(115, 136);
|
|
this.Layout += new System.Windows.Forms.LayoutEventHandler(this.ImageSelectorControl_Layout);
|
|
this.Resize += new System.EventHandler(this.ImageSelectorControl_Resize);
|
|
this.EnabledChanged += new System.EventHandler(this.ImageSelectorControl_EnabledChanged);
|
|
this.preview.ResumeLayout(false);
|
|
this.preview.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
protected System.Windows.Forms.Panel preview;
|
|
protected CodeImp.DoomBuilder.Controls.AutoSelectTextbox name;
|
|
private System.Windows.Forms.Label labelSize;
|
|
protected System.Windows.Forms.Timer timer;
|
|
|
|
}
|
|
}
|