From 39edd18b71d85d75d9578a5be32f808a8cd97876 Mon Sep 17 00:00:00 2001 From: dexy Date: Thu, 12 Dec 2019 00:35:00 +1100 Subject: [PATCH] Changed Distant LOD Lights checkbox into LOD Lights checkbox --- WorldForm.Designer.cs | 28 ++++++++++++++-------------- WorldForm.cs | 5 +++-- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/WorldForm.Designer.cs b/WorldForm.Designer.cs index 9c00650..24a894d 100644 --- a/WorldForm.Designer.cs +++ b/WorldForm.Designer.cs @@ -190,7 +190,7 @@ namespace CodeWalker this.TimeStartStopButton = new System.Windows.Forms.Button(); this.ArtificialAmbientLightCheckBox = new System.Windows.Forms.CheckBox(); this.NaturalAmbientLightCheckBox = new System.Windows.Forms.CheckBox(); - this.DistantLODLightsCheckBox = new System.Windows.Forms.CheckBox(); + this.LODLightsCheckBox = new System.Windows.Forms.CheckBox(); this.HDRRenderingCheckBox = new System.Windows.Forms.CheckBox(); this.ControlTimeOfDayCheckBox = new System.Windows.Forms.CheckBox(); this.TimeOfDayLabel = new System.Windows.Forms.Label(); @@ -2215,7 +2215,7 @@ namespace CodeWalker this.tabPage10.Controls.Add(this.TimeStartStopButton); this.tabPage10.Controls.Add(this.ArtificialAmbientLightCheckBox); this.tabPage10.Controls.Add(this.NaturalAmbientLightCheckBox); - this.tabPage10.Controls.Add(this.DistantLODLightsCheckBox); + this.tabPage10.Controls.Add(this.LODLightsCheckBox); this.tabPage10.Controls.Add(this.HDRRenderingCheckBox); this.tabPage10.Controls.Add(this.ControlTimeOfDayCheckBox); this.tabPage10.Controls.Add(this.TimeOfDayLabel); @@ -2397,18 +2397,18 @@ namespace CodeWalker this.NaturalAmbientLightCheckBox.UseVisualStyleBackColor = true; this.NaturalAmbientLightCheckBox.CheckedChanged += new System.EventHandler(this.NaturalAmbientLightCheckBox_CheckedChanged); // - // DistantLODLightsCheckBox + // LODLightsCheckBox // - this.DistantLODLightsCheckBox.AutoSize = true; - this.DistantLODLightsCheckBox.Checked = true; - this.DistantLODLightsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; - this.DistantLODLightsCheckBox.Location = new System.Drawing.Point(10, 93); - this.DistantLODLightsCheckBox.Name = "DistantLODLightsCheckBox"; - this.DistantLODLightsCheckBox.Size = new System.Drawing.Size(111, 17); - this.DistantLODLightsCheckBox.TabIndex = 34; - this.DistantLODLightsCheckBox.Text = "Distant LOD lights"; - this.DistantLODLightsCheckBox.UseVisualStyleBackColor = true; - this.DistantLODLightsCheckBox.CheckedChanged += new System.EventHandler(this.DistantLODLightsCheckBox_CheckedChanged); + this.LODLightsCheckBox.AutoSize = true; + this.LODLightsCheckBox.Checked = true; + this.LODLightsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; + this.LODLightsCheckBox.Location = new System.Drawing.Point(10, 93); + this.LODLightsCheckBox.Name = "LODLightsCheckBox"; + this.LODLightsCheckBox.Size = new System.Drawing.Size(75, 17); + this.LODLightsCheckBox.TabIndex = 34; + this.LODLightsCheckBox.Text = "LOD lights"; + this.LODLightsCheckBox.UseVisualStyleBackColor = true; + this.LODLightsCheckBox.CheckedChanged += new System.EventHandler(this.LODLightsCheckBox_CheckedChanged); // // HDRRenderingCheckBox // @@ -3645,7 +3645,7 @@ namespace CodeWalker private System.Windows.Forms.CheckBox HDRRenderingCheckBox; private System.Windows.Forms.CheckBox ArtificialAmbientLightCheckBox; private System.Windows.Forms.CheckBox NaturalAmbientLightCheckBox; - private System.Windows.Forms.CheckBox DistantLODLightsCheckBox; + private System.Windows.Forms.CheckBox LODLightsCheckBox; private System.Windows.Forms.Label TimeSpeedLabel; private System.Windows.Forms.Label label20; private System.Windows.Forms.TrackBar TimeSpeedTrackBar; diff --git a/WorldForm.cs b/WorldForm.cs index dcce853..853c561 100644 --- a/WorldForm.cs +++ b/WorldForm.cs @@ -7429,9 +7429,10 @@ namespace CodeWalker //Monitor.Exit(rendersyncroot); } - private void DistantLODLightsCheckBox_CheckedChanged(object sender, EventArgs e) + private void LODLightsCheckBox_CheckedChanged(object sender, EventArgs e) { - Renderer.renderdistlodlights = DistantLODLightsCheckBox.Checked; + Renderer.renderdistlodlights = LODLightsCheckBox.Checked; + Renderer.renderlodlights = LODLightsCheckBox.Checked; } private void NaturalAmbientLightCheckBox_CheckedChanged(object sender, EventArgs e)