From f305e872bac2a998269da970a954cb483c084c74 Mon Sep 17 00:00:00 2001 From: Cupcak3 Date: Thu, 1 Feb 2024 22:10:17 -0800 Subject: [PATCH] Simplified error messages. --- InventoryKamera/InventoryKamera.csproj | 4 +- InventoryKamera/ui/main/MainForm.Designer.cs | 57 ++++++++++---------- InventoryKamera/ui/main/MainForm.cs | 2 +- 3 files changed, 32 insertions(+), 31 deletions(-) diff --git a/InventoryKamera/InventoryKamera.csproj b/InventoryKamera/InventoryKamera.csproj index a3fd5b7..6f62003 100644 --- a/InventoryKamera/InventoryKamera.csproj +++ b/InventoryKamera/InventoryKamera.csproj @@ -51,7 +51,7 @@ AnyCPU - embedded + none true bin\Release\ TRACE @@ -62,7 +62,7 @@ false - true + false $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=X:\ diff --git a/InventoryKamera/ui/main/MainForm.Designer.cs b/InventoryKamera/ui/main/MainForm.Designer.cs index d1d19ed..97b0c53 100644 --- a/InventoryKamera/ui/main/MainForm.Designer.cs +++ b/InventoryKamera/ui/main/MainForm.Designer.cs @@ -96,13 +96,13 @@ private void InitializeComponent() this.label1 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.equipWeaponToolTip = new System.Windows.Forms.ToolTip(this.components); - this.EquipWeaponsCheckBox = new System.Windows.Forms.CheckBox(); this.equipArtifactsToolTip = new System.Windows.Forms.ToolTip(this.components); - this.EquipArtifactsCheckBox = new System.Windows.Forms.CheckBox(); this.screenshotsToolTip = new System.Windows.Forms.ToolTip(this.components); - this.LogScreenshotsCheckBox = new System.Windows.Forms.CheckBox(); this.wandererNameTextBox = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms.TextBox(); + this.EquipWeaponsCheckBox = new System.Windows.Forms.CheckBox(); + this.EquipArtifactsCheckBox = new System.Windows.Forms.CheckBox(); + this.LogScreenshotsCheckBox = new System.Windows.Forms.CheckBox(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.MinimumWeaponLevelControl = new System.Windows.Forms.NumericUpDown(); this.ArtifactRarityControl = new System.Windows.Forms.NumericUpDown(); @@ -429,14 +429,15 @@ private void InitializeComponent() // ErrorLog_Label // this.ErrorLog_Label.AutoSize = true; + this.ErrorLog_Label.BackColor = System.Drawing.SystemColors.Desktop; this.ErrorLog_Label.Cursor = System.Windows.Forms.Cursors.Hand; - this.ErrorLog_Label.ForeColor = System.Drawing.SystemColors.MenuHighlight; + this.ErrorLog_Label.ForeColor = System.Drawing.Color.Red; this.ErrorLog_Label.Location = new System.Drawing.Point(7, 221); this.ErrorLog_Label.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.ErrorLog_Label.Name = "ErrorLog_Label"; - this.ErrorLog_Label.Size = new System.Drawing.Size(122, 13); + this.ErrorLog_Label.Size = new System.Drawing.Size(136, 13); this.ErrorLog_Label.TabIndex = 54; - this.ErrorLog_Label.Text = "Error Log: ( scroll/click )"; + this.ErrorLog_Label.Text = "Error Log: ( scroll/click me)"; this.ErrorLog_Label.Click += new System.EventHandler(this.ErrorLog_Label_Click); // // ErrorReport_Label @@ -815,6 +816,28 @@ private void InitializeComponent() this.label4.TabIndex = 106; this.label4.Text = "Wanderer\'s Name:"; // + // screenshotsToolTip + // + this.screenshotsToolTip.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Warning; + // + // wandererNameTextBox + // + this.wandererNameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::InventoryKamera.Properties.Settings.Default, "WandererName", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); + this.wandererNameTextBox.Location = new System.Drawing.Point(328, 145); + this.wandererNameTextBox.Name = "wandererNameTextBox"; + this.wandererNameTextBox.Size = new System.Drawing.Size(169, 20); + this.wandererNameTextBox.TabIndex = 105; + this.wandererNameTextBox.Text = global::InventoryKamera.Properties.Settings.Default.WandererName; + // + // textBox1 + // + this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::InventoryKamera.Properties.Settings.Default, "TravelerName", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); + this.textBox1.Location = new System.Drawing.Point(328, 111); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(169, 20); + this.textBox1.TabIndex = 101; + this.textBox1.Text = global::InventoryKamera.Properties.Settings.Default.TravelerName; + // // EquipWeaponsCheckBox // this.EquipWeaponsCheckBox.AutoSize = true; @@ -843,10 +866,6 @@ private void InitializeComponent() this.equipArtifactsToolTip.SetToolTip(this.EquipArtifactsCheckBox, "Keeps artifacts equipped to characters in export"); this.EquipArtifactsCheckBox.UseVisualStyleBackColor = true; // - // screenshotsToolTip - // - this.screenshotsToolTip.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Warning; - // // LogScreenshotsCheckBox // this.LogScreenshotsCheckBox.AutoSize = true; @@ -861,24 +880,6 @@ private void InitializeComponent() "enshots will be cleared when a new scan is started.\r\n"); this.LogScreenshotsCheckBox.UseVisualStyleBackColor = true; // - // wandererNameTextBox - // - this.wandererNameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::InventoryKamera.Properties.Settings.Default, "WandererName", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); - this.wandererNameTextBox.Location = new System.Drawing.Point(328, 145); - this.wandererNameTextBox.Name = "wandererNameTextBox"; - this.wandererNameTextBox.Size = new System.Drawing.Size(169, 20); - this.wandererNameTextBox.TabIndex = 105; - this.wandererNameTextBox.Text = global::InventoryKamera.Properties.Settings.Default.WandererName; - // - // textBox1 - // - this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::InventoryKamera.Properties.Settings.Default, "TravelerName", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); - this.textBox1.Location = new System.Drawing.Point(328, 111); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(169, 20); - this.textBox1.TabIndex = 101; - this.textBox1.Text = global::InventoryKamera.Properties.Settings.Default.TravelerName; - // // numericUpDown1 // this.numericUpDown1.DataBindings.Add(new System.Windows.Forms.Binding("Value", global::InventoryKamera.Properties.Settings.Default, "MinimumArtifactLevel", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); diff --git a/InventoryKamera/ui/main/MainForm.cs b/InventoryKamera/ui/main/MainForm.cs index 1897556..7c04def 100644 --- a/InventoryKamera/ui/main/MainForm.cs +++ b/InventoryKamera/ui/main/MainForm.cs @@ -262,7 +262,7 @@ private void StartButton_Clicked(object sender, EventArgs e) } catch (NotImplementedException ex) { - UserInterface.AddError(ex.Message); + UserInterface.AddError(ex.ToString()); } catch (Exception ex) {