mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-11 21:01:22 +00:00
99f3ba2844
Texture browser form: added "Long texture names" check-box. It can be used to toggle between displaying long and short texture names. Texture browser form: added "Show image size" check-box. Texture browser form: image size is now shown differently. Image Selector: added a button to toggle between long and short texture name. Linedef info panel: long texture names are now displayed properly. Sector info panel: long texture names are now displayed properly. Fixed: "Save Screenshot" and "Save Edit Area Screenshot" actions were triggered multiple times when a child window was open. Fixed: used textures should be always updated after using "Change map in current WAD" action. Fixed, "Change map in current WAD": fixed a crash when trying to switch from a map with missing game configuration path. Updated ZDoom_ACS.cfg.
148 lines
6.3 KiB
C#
148 lines
6.3 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.timer = new System.Windows.Forms.Timer(this.components);
|
|
this.tooltip = new System.Windows.Forms.ToolTip(this.components);
|
|
this.togglefullname = new System.Windows.Forms.Button();
|
|
this.name = new CodeImp.DoomBuilder.Controls.AutoSelectTextbox();
|
|
this.imagebox = new CodeImp.DoomBuilder.Controls.ConfigurablePictureBox();
|
|
this.preview.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.imagebox)).BeginInit();
|
|
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.FixedSingle;
|
|
this.preview.Controls.Add(this.togglefullname);
|
|
this.preview.Controls.Add(this.labelSize);
|
|
this.preview.Controls.Add(this.imagebox);
|
|
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;
|
|
//
|
|
// labelSize
|
|
//
|
|
this.labelSize.AutoSize = true;
|
|
this.labelSize.BackColor = System.Drawing.SystemColors.ControlText;
|
|
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.SystemColors.HighlightText;
|
|
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;
|
|
//
|
|
// timer
|
|
//
|
|
this.timer.Tick += new System.EventHandler(this.timer_Tick);
|
|
//
|
|
// togglefullname
|
|
//
|
|
this.togglefullname.BackColor = System.Drawing.Color.Transparent;
|
|
this.togglefullname.Image = global::CodeImp.DoomBuilder.Properties.Resources.Collapse;
|
|
this.togglefullname.Location = new System.Drawing.Point(43, 35);
|
|
this.togglefullname.Name = "togglefullname";
|
|
this.togglefullname.Size = new System.Drawing.Size(20, 20);
|
|
this.togglefullname.TabIndex = 3;
|
|
this.togglefullname.UseVisualStyleBackColor = false;
|
|
this.togglefullname.Visible = false;
|
|
this.togglefullname.Click += new System.EventHandler(this.togglefullname_Click);
|
|
//
|
|
// name
|
|
//
|
|
this.name.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
|
|
this.name.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
|
|
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);
|
|
//
|
|
// imagebox
|
|
//
|
|
this.imagebox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
|
this.imagebox.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.Default;
|
|
this.imagebox.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.imagebox.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
|
|
this.imagebox.Location = new System.Drawing.Point(0, 0);
|
|
this.imagebox.Name = "imagebox";
|
|
this.imagebox.PageUnit = System.Drawing.GraphicsUnit.Pixel;
|
|
this.imagebox.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.None;
|
|
this.imagebox.Size = new System.Drawing.Size(66, 58);
|
|
this.imagebox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
|
this.imagebox.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.Default;
|
|
this.imagebox.TabIndex = 3;
|
|
this.imagebox.TabStop = false;
|
|
this.imagebox.MouseLeave += new System.EventHandler(this.preview_MouseLeave);
|
|
this.imagebox.Click += new System.EventHandler(this.preview_Click);
|
|
this.imagebox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.preview_MouseDown);
|
|
this.imagebox.MouseEnter += new System.EventHandler(this.preview_MouseEnter);
|
|
//
|
|
// 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();
|
|
((System.ComponentModel.ISupportInitialize)(this.imagebox)).EndInit();
|
|
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;
|
|
private System.Windows.Forms.ToolTip tooltip;
|
|
private ConfigurablePictureBox imagebox;
|
|
private System.Windows.Forms.Button togglefullname;
|
|
|
|
}
|
|
}
|