mirror of
https://github.com/kwsch/NHSE.git
synced 2026-09-28 21:06:30 -05:00
Show terrain map behind field item view
Adds a transparency slider to have the field items fade so you can see the underlying terrain tile. Not really optimized (allocates every time), but it should be fine for now. Make the None item transparent, so that the entire map bleeds through (clear clarity).
This commit is contained in:
@@ -65,12 +65,14 @@ private void InitializeComponent()
|
||||
this.B_RemoveObjects = new System.Windows.Forms.Button();
|
||||
this.GB_Remove = new System.Windows.Forms.GroupBox();
|
||||
this.B_RemovePlacedItems = new System.Windows.Forms.Button();
|
||||
this.TR_Transparency = new System.Windows.Forms.TrackBar();
|
||||
this.CM_Click.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PB_Map)).BeginInit();
|
||||
this.CM_Picture.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_Layer)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PB_Acre)).BeginInit();
|
||||
this.GB_Remove.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.TR_Transparency)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// B_Cancel
|
||||
@@ -420,11 +422,23 @@ private void InitializeComponent()
|
||||
this.B_RemovePlacedItems.UseVisualStyleBackColor = true;
|
||||
this.B_RemovePlacedItems.Click += new System.EventHandler(this.B_RemovePlacedItems_Click);
|
||||
//
|
||||
// TR_Transparency
|
||||
//
|
||||
this.TR_Transparency.Location = new System.Drawing.Point(535, 250);
|
||||
this.TR_Transparency.Maximum = 100;
|
||||
this.TR_Transparency.Name = "TR_Transparency";
|
||||
this.TR_Transparency.Size = new System.Drawing.Size(226, 45);
|
||||
this.TR_Transparency.TabIndex = 36;
|
||||
this.TR_Transparency.TickFrequency = 10;
|
||||
this.TR_Transparency.Value = 90;
|
||||
this.TR_Transparency.Scroll += new System.EventHandler(this.TR_Transparency_Scroll);
|
||||
//
|
||||
// FieldItemEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(981, 537);
|
||||
this.Controls.Add(this.TR_Transparency);
|
||||
this.Controls.Add(this.GB_Remove);
|
||||
this.Controls.Add(this.PB_Acre);
|
||||
this.Controls.Add(this.L_Layer);
|
||||
@@ -458,6 +472,7 @@ private void InitializeComponent()
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_Layer)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PB_Acre)).EndInit();
|
||||
this.GB_Remove.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.TR_Transparency)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -499,5 +514,6 @@ private void InitializeComponent()
|
||||
private System.Windows.Forms.Button B_RemoveObjects;
|
||||
private System.Windows.Forms.GroupBox GB_Remove;
|
||||
private System.Windows.Forms.Button B_RemovePlacedItems;
|
||||
private System.Windows.Forms.TrackBar TR_Transparency;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user