From 452948adae5d5c0b9962c1e6466bcda53baecc71 Mon Sep 17 00:00:00 2001 From: soul4soul <5142635+soul4soul@users.noreply.github.com> Date: Sat, 4 Sep 2021 11:57:23 -0400 Subject: [PATCH] Add allow distance read checkout to UI Fixes #7 --- Source/MainForm.Designer.cs | 388 ++++++++++++++++++++++++------------ Source/MainForm.cs | 1 + 2 files changed, 256 insertions(+), 133 deletions(-) diff --git a/Source/MainForm.Designer.cs b/Source/MainForm.Designer.cs index f58b9e1..2230ea1 100644 --- a/Source/MainForm.Designer.cs +++ b/Source/MainForm.Designer.cs @@ -36,6 +36,8 @@ private void InitializeComponent() this.candidatesButton = new DarkUI.Controls.DarkButton(); this.currentSpriteLabel = new DarkUI.Controls.DarkLabel(); this.previousLabel = new DarkUI.Controls.DarkLabel(); + this.previousPictureBox = new ItemEditor.Controls.ClientItemView(); + this.pictureBox = new ItemEditor.Controls.ClientItemView(); this.serverIdLbl = new DarkUI.Controls.DarkLabel(); this.clientIdUpDown = new DarkUI.Controls.DarkNumericUpDown(); this.sidLabel = new DarkUI.Controls.DarkLabel(); @@ -43,6 +45,7 @@ private void InitializeComponent() this.typeCombo = new DarkUI.Controls.DarkComboBox(); this.typeLabel = new DarkUI.Controls.DarkLabel(); this.optionsGroupBox = new DarkUI.Controls.DarkGroupBox(); + this.forceUseCheckBox = new DarkUI.Controls.DarkCheckBox(); this.stackOrderComboBox = new DarkUI.Controls.DarkComboBox(); this.stackOrderLabel = new DarkUI.Controls.DarkLabel(); this.wareIdText = new DarkUI.Controls.DarkTextBox(); @@ -91,10 +94,10 @@ private void InitializeComponent() this.editCreateItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.editDuplicateItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.editReloadItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.editFindItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.separatorMenuItem4 = new System.Windows.Forms.ToolStripSeparator(); this.editCreateMissingItemsMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.editFindItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.viewMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.viewShowOnlyMismatchedMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.viewShowDecaptedItemsMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -120,21 +123,19 @@ private void InitializeComponent() this.toolStripCompareButton = new System.Windows.Forms.ToolStripButton(); this.toolStripFindItemButton = new System.Windows.Forms.ToolStripButton(); this.candidatesTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); + this.candidatesPictureBox1 = new ItemEditor.Controls.ClientItemView(); + this.candidatesPictureBox2 = new ItemEditor.Controls.ClientItemView(); + this.candidatesPictureBox3 = new ItemEditor.Controls.ClientItemView(); + this.candidatesPictureBox4 = new ItemEditor.Controls.ClientItemView(); + this.candidatesPictureBox5 = new ItemEditor.Controls.ClientItemView(); this.candidatesDropDown = new System.Windows.Forms.ToolStripDropDown(); this.newItemButton = new DarkUI.Controls.DarkButton(); this.duplicateItemButton = new DarkUI.Controls.DarkButton(); this.reloadItemButton = new DarkUI.Controls.DarkButton(); this.findItemButton = new DarkUI.Controls.DarkButton(); this.label1 = new DarkUI.Controls.DarkLabel(); - this.forceUseCheckBox = new DarkUI.Controls.DarkCheckBox(); - this.previousPictureBox = new ItemEditor.Controls.ClientItemView(); - this.pictureBox = new ItemEditor.Controls.ClientItemView(); this.serverItemListBox = new ItemEditor.Controls.ServerItemListBox(); - this.candidatesPictureBox1 = new ItemEditor.Controls.ClientItemView(); - this.candidatesPictureBox2 = new ItemEditor.Controls.ClientItemView(); - this.candidatesPictureBox3 = new ItemEditor.Controls.ClientItemView(); - this.candidatesPictureBox4 = new ItemEditor.Controls.ClientItemView(); - this.candidatesPictureBox5 = new ItemEditor.Controls.ClientItemView(); + this.allowDistanceReadCheck = new DarkUI.Controls.DarkCheckBox(); this.appearanceGroupBox.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.clientIdUpDown)).BeginInit(); this.optionsGroupBox.SuspendLayout(); @@ -159,6 +160,7 @@ private void InitializeComponent() // // appearanceGroupBox // + this.appearanceGroupBox.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); this.appearanceGroupBox.Controls.Add(this.candidatesButton); this.appearanceGroupBox.Controls.Add(this.currentSpriteLabel); this.appearanceGroupBox.Controls.Add(this.previousLabel); @@ -181,6 +183,7 @@ private void InitializeComponent() this.candidatesButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); this.candidatesButton.Location = new System.Drawing.Point(11, 277); this.candidatesButton.Name = "candidatesButton"; + this.candidatesButton.Padding = new System.Windows.Forms.Padding(5); this.candidatesButton.Size = new System.Drawing.Size(68, 22); this.candidatesButton.TabIndex = 17; this.candidatesButton.Text = "Candidates"; @@ -190,6 +193,7 @@ private void InitializeComponent() // this.currentSpriteLabel.AutoSize = true; this.currentSpriteLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); + this.currentSpriteLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.currentSpriteLabel.Location = new System.Drawing.Point(11, 105); this.currentSpriteLabel.Name = "currentSpriteLabel"; this.currentSpriteLabel.Size = new System.Drawing.Size(44, 13); @@ -200,16 +204,42 @@ private void InitializeComponent() // this.previousLabel.AutoSize = true; this.previousLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); + this.previousLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.previousLabel.Location = new System.Drawing.Point(11, 20); this.previousLabel.Name = "previousLabel"; this.previousLabel.Size = new System.Drawing.Size(51, 13); this.previousLabel.TabIndex = 14; this.previousLabel.Text = "Previous:"; // + // previousPictureBox + // + this.previousPictureBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43))))); + this.previousPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.previousPictureBox.ClientItem = null; + this.previousPictureBox.Location = new System.Drawing.Point(13, 36); + this.previousPictureBox.Margin = new System.Windows.Forms.Padding(0); + this.previousPictureBox.Name = "previousPictureBox"; + this.previousPictureBox.Size = new System.Drawing.Size(64, 64); + this.previousPictureBox.TabIndex = 13; + this.previousPictureBox.TabStop = false; + // + // pictureBox + // + this.pictureBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43))))); + this.pictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pictureBox.ClientItem = null; + this.pictureBox.Location = new System.Drawing.Point(13, 121); + this.pictureBox.Margin = new System.Windows.Forms.Padding(0); + this.pictureBox.Name = "pictureBox"; + this.pictureBox.Size = new System.Drawing.Size(64, 64); + this.pictureBox.TabIndex = 0; + this.pictureBox.TabStop = false; + // // serverIdLbl // - this.serverIdLbl.BackColor = DarkUI.Config.Colors.DarkBackground; + this.serverIdLbl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43))))); this.serverIdLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.serverIdLbl.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.serverIdLbl.Location = new System.Drawing.Point(12, 206); this.serverIdLbl.Name = "serverIdLbl"; this.serverIdLbl.Size = new System.Drawing.Size(66, 20); @@ -229,6 +259,7 @@ private void InitializeComponent() // this.sidLabel.AutoSize = true; this.sidLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); + this.sidLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.sidLabel.Location = new System.Drawing.Point(10, 190); this.sidLabel.Name = "sidLabel"; this.sidLabel.Size = new System.Drawing.Size(55, 13); @@ -239,6 +270,7 @@ private void InitializeComponent() // this.cidLabel.AutoSize = true; this.cidLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); + this.cidLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.cidLabel.Location = new System.Drawing.Point(11, 232); this.cidLabel.Name = "cidLabel"; this.cidLabel.Size = new System.Drawing.Size(50, 13); @@ -247,8 +279,7 @@ private void InitializeComponent() // // typeCombo // - this.typeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.typeCombo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.typeCombo.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable; this.typeCombo.FormattingEnabled = true; this.typeCombo.Location = new System.Drawing.Point(268, 278); this.typeCombo.Name = "typeCombo"; @@ -259,6 +290,7 @@ private void InitializeComponent() // typeLabel // this.typeLabel.AutoSize = true; + this.typeLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.typeLabel.Location = new System.Drawing.Point(228, 282); this.typeLabel.Name = "typeLabel"; this.typeLabel.Size = new System.Drawing.Size(34, 13); @@ -267,6 +299,8 @@ private void InitializeComponent() // // optionsGroupBox // + this.optionsGroupBox.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.optionsGroupBox.Controls.Add(this.allowDistanceReadCheck); this.optionsGroupBox.Controls.Add(this.forceUseCheckBox); this.optionsGroupBox.Controls.Add(this.stackOrderComboBox); this.optionsGroupBox.Controls.Add(this.stackOrderLabel); @@ -311,10 +345,19 @@ private void InitializeComponent() this.optionsGroupBox.TabStop = false; this.optionsGroupBox.Text = "Attributes"; // + // forceUseCheckBox + // + this.forceUseCheckBox.AutoSize = true; + this.forceUseCheckBox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); + this.forceUseCheckBox.Location = new System.Drawing.Point(14, 162); + this.forceUseCheckBox.Name = "forceUseCheckBox"; + this.forceUseCheckBox.Size = new System.Drawing.Size(75, 17); + this.forceUseCheckBox.TabIndex = 52; + this.forceUseCheckBox.Text = "Force Use"; + // // stackOrderComboBox // - this.stackOrderComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.stackOrderComboBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.stackOrderComboBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable; this.stackOrderComboBox.FormattingEnabled = true; this.stackOrderComboBox.Location = new System.Drawing.Point(268, 219); this.stackOrderComboBox.Name = "stackOrderComboBox"; @@ -325,6 +368,7 @@ private void InitializeComponent() // stackOrderLabel // this.stackOrderLabel.AutoSize = true; + this.stackOrderLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.stackOrderLabel.Location = new System.Drawing.Point(195, 222); this.stackOrderLabel.Name = "stackOrderLabel"; this.stackOrderLabel.Size = new System.Drawing.Size(67, 13); @@ -333,6 +377,9 @@ private void InitializeComponent() // // wareIdText // + this.wareIdText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(99)))), ((int)(((byte)(99))))); + this.wareIdText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.wareIdText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.wareIdText.Location = new System.Drawing.Point(360, 133); this.wareIdText.Name = "wareIdText"; this.wareIdText.Size = new System.Drawing.Size(55, 20); @@ -342,6 +389,7 @@ private void InitializeComponent() // wareIdLabel // this.wareIdLabel.AutoSize = true; + this.wareIdLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.wareIdLabel.Location = new System.Drawing.Point(306, 137); this.wareIdLabel.Name = "wareIdLabel"; this.wareIdLabel.Size = new System.Drawing.Size(50, 13); @@ -350,6 +398,9 @@ private void InitializeComponent() // // nameText // + this.nameText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(99)))), ((int)(((byte)(99))))); + this.nameText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.nameText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.nameText.Location = new System.Drawing.Point(268, 249); this.nameText.Name = "nameText"; this.nameText.Size = new System.Drawing.Size(147, 20); @@ -358,6 +409,7 @@ private void InitializeComponent() // nameLabel // this.nameLabel.AutoSize = true; + this.nameLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.nameLabel.Location = new System.Drawing.Point(224, 252); this.nameLabel.Name = "nameLabel"; this.nameLabel.Size = new System.Drawing.Size(38, 13); @@ -367,6 +419,7 @@ private void InitializeComponent() // maxReadWriteCharsLabel // this.maxReadWriteCharsLabel.AutoSize = true; + this.maxReadWriteCharsLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.maxReadWriteCharsLabel.Location = new System.Drawing.Point(248, 192); this.maxReadWriteCharsLabel.Name = "maxReadWriteCharsLabel"; this.maxReadWriteCharsLabel.Size = new System.Drawing.Size(108, 13); @@ -375,6 +428,9 @@ private void InitializeComponent() // // maxReadWriteCharsText // + this.maxReadWriteCharsText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(99)))), ((int)(((byte)(99))))); + this.maxReadWriteCharsText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.maxReadWriteCharsText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.maxReadWriteCharsText.Location = new System.Drawing.Point(360, 188); this.maxReadWriteCharsText.Name = "maxReadWriteCharsText"; this.maxReadWriteCharsText.Size = new System.Drawing.Size(55, 20); @@ -384,6 +440,7 @@ private void InitializeComponent() // maxReadCharsLabel // this.maxReadCharsLabel.AutoSize = true; + this.maxReadCharsLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.maxReadCharsLabel.Location = new System.Drawing.Point(284, 164); this.maxReadCharsLabel.Name = "maxReadCharsLabel"; this.maxReadCharsLabel.Size = new System.Drawing.Size(72, 13); @@ -392,6 +449,9 @@ private void InitializeComponent() // // maxReadCharsText // + this.maxReadCharsText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(99)))), ((int)(((byte)(99))))); + this.maxReadCharsText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.maxReadCharsText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.maxReadCharsText.Location = new System.Drawing.Point(360, 160); this.maxReadCharsText.Name = "maxReadCharsText"; this.maxReadCharsText.Size = new System.Drawing.Size(55, 20); @@ -401,6 +461,7 @@ private void InitializeComponent() // minimapColorLabel // this.minimapColorLabel.AutoSize = true; + this.minimapColorLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.minimapColorLabel.Location = new System.Drawing.Point(280, 57); this.minimapColorLabel.Name = "minimapColorLabel"; this.minimapColorLabel.Size = new System.Drawing.Size(76, 13); @@ -409,6 +470,9 @@ private void InitializeComponent() // // minimapColorText // + this.minimapColorText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(99)))), ((int)(((byte)(99))))); + this.minimapColorText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.minimapColorText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.minimapColorText.Location = new System.Drawing.Point(359, 53); this.minimapColorText.Name = "minimapColorText"; this.minimapColorText.Size = new System.Drawing.Size(56, 20); @@ -418,6 +482,7 @@ private void InitializeComponent() // lightColorLabel // this.lightColorLabel.AutoSize = true; + this.lightColorLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.lightColorLabel.Location = new System.Drawing.Point(296, 111); this.lightColorLabel.Name = "lightColorLabel"; this.lightColorLabel.Size = new System.Drawing.Size(60, 13); @@ -426,6 +491,9 @@ private void InitializeComponent() // // lightColorText // + this.lightColorText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(99)))), ((int)(((byte)(99))))); + this.lightColorText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.lightColorText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.lightColorText.Location = new System.Drawing.Point(359, 107); this.lightColorText.Name = "lightColorText"; this.lightColorText.Size = new System.Drawing.Size(56, 20); @@ -435,6 +503,7 @@ private void InitializeComponent() // lightLevelLabel // this.lightLevelLabel.AutoSize = true; + this.lightLevelLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.lightLevelLabel.Location = new System.Drawing.Point(294, 84); this.lightLevelLabel.Name = "lightLevelLabel"; this.lightLevelLabel.Size = new System.Drawing.Size(62, 13); @@ -443,6 +512,9 @@ private void InitializeComponent() // // lightLevelText // + this.lightLevelText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(99)))), ((int)(((byte)(99))))); + this.lightLevelText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.lightLevelText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.lightLevelText.Location = new System.Drawing.Point(359, 80); this.lightLevelText.Name = "lightLevelText"; this.lightLevelText.Size = new System.Drawing.Size(56, 20); @@ -452,6 +524,7 @@ private void InitializeComponent() // groundSpeedLabel // this.groundSpeedLabel.AutoSize = true; + this.groundSpeedLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.groundSpeedLabel.Location = new System.Drawing.Point(277, 30); this.groundSpeedLabel.Name = "groundSpeedLabel"; this.groundSpeedLabel.Size = new System.Drawing.Size(79, 13); @@ -460,6 +533,9 @@ private void InitializeComponent() // // groundSpeedText // + this.groundSpeedText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(99)))), ((int)(((byte)(99))))); + this.groundSpeedText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.groundSpeedText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.groundSpeedText.Location = new System.Drawing.Point(359, 26); this.groundSpeedText.Name = "groundSpeedText"; this.groundSpeedText.Size = new System.Drawing.Size(56, 20); @@ -469,6 +545,7 @@ private void InitializeComponent() // ignoreLookCheck // this.ignoreLookCheck.AutoSize = true; + this.ignoreLookCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.ignoreLookCheck.Location = new System.Drawing.Point(134, 49); this.ignoreLookCheck.Name = "ignoreLookCheck"; this.ignoreLookCheck.Size = new System.Drawing.Size(83, 17); @@ -478,6 +555,7 @@ private void InitializeComponent() // readableCheck // this.readableCheck.AutoSize = true; + this.readableCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.readableCheck.Location = new System.Drawing.Point(134, 72); this.readableCheck.Name = "readableCheck"; this.readableCheck.Size = new System.Drawing.Size(72, 17); @@ -487,6 +565,7 @@ private void InitializeComponent() // stackableCheck // this.stackableCheck.AutoSize = true; + this.stackableCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.stackableCheck.Location = new System.Drawing.Point(14, 140); this.stackableCheck.Name = "stackableCheck"; this.stackableCheck.Size = new System.Drawing.Size(74, 17); @@ -496,6 +575,7 @@ private void InitializeComponent() // hookEastCheck // this.hookEastCheck.AutoSize = true; + this.hookEastCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.hookEastCheck.Location = new System.Drawing.Point(14, 279); this.hookEastCheck.Name = "hookEastCheck"; this.hookEastCheck.Size = new System.Drawing.Size(76, 17); @@ -505,6 +585,7 @@ private void InitializeComponent() // rotatableCheck // this.rotatableCheck.AutoSize = true; + this.rotatableCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.rotatableCheck.Location = new System.Drawing.Point(14, 210); this.rotatableCheck.Name = "rotatableCheck"; this.rotatableCheck.Size = new System.Drawing.Size(72, 17); @@ -514,6 +595,7 @@ private void InitializeComponent() // useableCheck // this.useableCheck.AutoSize = true; + this.useableCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.useableCheck.Location = new System.Drawing.Point(14, 187); this.useableCheck.Name = "useableCheck"; this.useableCheck.Size = new System.Drawing.Size(70, 17); @@ -523,6 +605,7 @@ private void InitializeComponent() // hangableCheck // this.hangableCheck.AutoSize = true; + this.hangableCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.hangableCheck.Location = new System.Drawing.Point(14, 233); this.hangableCheck.Name = "hangableCheck"; this.hangableCheck.Size = new System.Drawing.Size(72, 17); @@ -532,6 +615,7 @@ private void InitializeComponent() // hasElevationCheck // this.hasElevationCheck.AutoSize = true; + this.hasElevationCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.hasElevationCheck.Location = new System.Drawing.Point(134, 26); this.hasElevationCheck.Name = "hasElevationCheck"; this.hasElevationCheck.Size = new System.Drawing.Size(92, 17); @@ -541,6 +625,7 @@ private void InitializeComponent() // movableCheck // this.movableCheck.AutoSize = true; + this.movableCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.movableCheck.Location = new System.Drawing.Point(14, 49); this.movableCheck.Name = "movableCheck"; this.movableCheck.Size = new System.Drawing.Size(67, 17); @@ -550,6 +635,7 @@ private void InitializeComponent() // blockPathfinderCheck // this.blockPathfinderCheck.AutoSize = true; + this.blockPathfinderCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.blockPathfinderCheck.Location = new System.Drawing.Point(14, 95); this.blockPathfinderCheck.Name = "blockPathfinderCheck"; this.blockPathfinderCheck.Size = new System.Drawing.Size(104, 17); @@ -559,6 +645,7 @@ private void InitializeComponent() // hookSouthCheck // this.hookSouthCheck.AutoSize = true; + this.hookSouthCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.hookSouthCheck.Location = new System.Drawing.Point(14, 256); this.hookSouthCheck.Name = "hookSouthCheck"; this.hookSouthCheck.Size = new System.Drawing.Size(83, 17); @@ -568,6 +655,7 @@ private void InitializeComponent() // fullGroundCheck // this.fullGroundCheck.AutoSize = true; + this.fullGroundCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.fullGroundCheck.Location = new System.Drawing.Point(134, 95); this.fullGroundCheck.Name = "fullGroundCheck"; this.fullGroundCheck.Size = new System.Drawing.Size(80, 17); @@ -577,6 +665,7 @@ private void InitializeComponent() // pickupableCheck // this.pickupableCheck.AutoSize = true; + this.pickupableCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.pickupableCheck.Location = new System.Drawing.Point(14, 118); this.pickupableCheck.Name = "pickupableCheck"; this.pickupableCheck.Size = new System.Drawing.Size(79, 17); @@ -586,6 +675,7 @@ private void InitializeComponent() // blockMissilesCheck // this.blockMissilesCheck.AutoSize = true; + this.blockMissilesCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.blockMissilesCheck.Location = new System.Drawing.Point(14, 72); this.blockMissilesCheck.Name = "blockMissilesCheck"; this.blockMissilesCheck.Size = new System.Drawing.Size(92, 17); @@ -595,6 +685,7 @@ private void InitializeComponent() // unpassableCheck // this.unpassableCheck.AutoSize = true; + this.unpassableCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.unpassableCheck.Location = new System.Drawing.Point(14, 26); this.unpassableCheck.Name = "unpassableCheck"; this.unpassableCheck.Size = new System.Drawing.Size(82, 17); @@ -603,15 +694,22 @@ private void InitializeComponent() // // statusBar // + this.statusBar.AutoSize = false; + this.statusBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); + this.statusBar.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.statusBar.Location = new System.Drawing.Point(0, 539); this.statusBar.Name = "statusBar"; + this.statusBar.Padding = new System.Windows.Forms.Padding(0, 5, 0, 3); this.statusBar.Size = new System.Drawing.Size(784, 22); + this.statusBar.SizingGrip = false; this.statusBar.Stretch = false; this.statusBar.TabIndex = 2; this.statusBar.Text = "statusBar"; // // menuBar // + this.menuBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); + this.menuBar.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.menuBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileMenuItem, this.editMenuItem, @@ -621,12 +719,14 @@ private void InitializeComponent() this.menuBar.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow; this.menuBar.Location = new System.Drawing.Point(0, 0); this.menuBar.Name = "menuBar"; + this.menuBar.Padding = new System.Windows.Forms.Padding(3, 2, 0, 2); this.menuBar.Size = new System.Drawing.Size(784, 24); this.menuBar.TabIndex = 3; this.menuBar.Text = "menuStrip"; // // fileMenuItem // + this.fileMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.fileMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileNewMenuItem, this.fileOpenMenuItem, @@ -636,6 +736,7 @@ private void InitializeComponent() this.filePreferencesMenuItem, this.separatorMenuItem1, this.fileExitMenuItem}); + this.fileMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.fileMenuItem.Name = "fileMenuItem"; this.fileMenuItem.Size = new System.Drawing.Size(37, 20); this.fileMenuItem.Text = "&File"; @@ -706,6 +807,7 @@ private void InitializeComponent() // // editMenuItem // + this.editMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.editMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.editCreateItemMenuItem, this.editDuplicateItemMenuItem, @@ -714,6 +816,7 @@ private void InitializeComponent() this.editCreateMissingItemsMenuItem, this.toolStripSeparator2, this.editFindItemMenuItem}); + this.editMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.editMenuItem.Name = "editMenuItem"; this.editMenuItem.Size = new System.Drawing.Size(39, 20); this.editMenuItem.Text = "&Edit"; @@ -748,6 +851,19 @@ private void InitializeComponent() this.editReloadItemMenuItem.Text = "&Reload Item"; this.editReloadItemMenuItem.Click += new System.EventHandler(this.EditReloadItemMenuItem_Click); // + // separatorMenuItem4 + // + this.separatorMenuItem4.Name = "separatorMenuItem4"; + this.separatorMenuItem4.Size = new System.Drawing.Size(190, 6); + // + // editCreateMissingItemsMenuItem + // + this.editCreateMissingItemsMenuItem.Enabled = false; + this.editCreateMissingItemsMenuItem.Name = "editCreateMissingItemsMenuItem"; + this.editCreateMissingItemsMenuItem.Size = new System.Drawing.Size(193, 22); + this.editCreateMissingItemsMenuItem.Text = "Create Missing Items"; + this.editCreateMissingItemsMenuItem.Click += new System.EventHandler(this.EditCreateMissingItemsMenu_Click); + // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; @@ -763,25 +879,14 @@ private void InitializeComponent() this.editFindItemMenuItem.Text = "&Find Item"; this.editFindItemMenuItem.Click += new System.EventHandler(this.FindItemButton_Click); // - // toolStripSeparator4 - // - this.separatorMenuItem4.Name = "separatorMenuItem4"; - this.separatorMenuItem4.Size = new System.Drawing.Size(190, 6); - // - // editCreateMissingItemsMenuItem - // - this.editCreateMissingItemsMenuItem.Enabled = false; - this.editCreateMissingItemsMenuItem.Name = "editCreateMissingItemsMenuItem"; - this.editCreateMissingItemsMenuItem.Size = new System.Drawing.Size(193, 22); - this.editCreateMissingItemsMenuItem.Text = "Create Missing Items"; - this.editCreateMissingItemsMenuItem.Click += new System.EventHandler(this.EditCreateMissingItemsMenu_Click); - // // viewMenuItem // + this.viewMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.viewMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.viewShowOnlyMismatchedMenuItem, this.viewShowDecaptedItemsMenuItem, this.viewUpdateItemsListMenuItem}); + this.viewMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.viewMenuItem.Name = "viewMenuItem"; this.viewMenuItem.Size = new System.Drawing.Size(44, 20); this.viewMenuItem.Text = "&View"; @@ -814,13 +919,15 @@ private void InitializeComponent() // // toolsMenuItem // + this.toolsMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.toolsMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolsReloadItemAttributesMenuItem, this.separatorMenuItem2, this.toolsCompareOtbFilesMenuItem, this.toolsUpdateVersionMenuItem}); + this.toolsMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.toolsMenuItem.Name = "toolsMenuItem"; - this.toolsMenuItem.Size = new System.Drawing.Size(48, 20); + this.toolsMenuItem.Size = new System.Drawing.Size(46, 20); this.toolsMenuItem.Text = "&Tools"; // // toolsReloadItemAttributesMenuItem @@ -854,8 +961,10 @@ private void InitializeComponent() // // helpMenuItem // + this.helpMenuItem.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.helpMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.helpAboutMenuItem}); + this.helpMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.helpMenuItem.Name = "helpMenuItem"; this.helpMenuItem.Size = new System.Drawing.Size(44, 20); this.helpMenuItem.Text = "&Help"; @@ -870,6 +979,9 @@ private void InitializeComponent() // // outputTextBox // + this.outputTextBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(99)))), ((int)(((byte)(99))))); + this.outputTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.outputTextBox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.outputTextBox.Location = new System.Drawing.Point(251, 371); this.outputTextBox.MaxLength = 20032767; this.outputTextBox.Multiline = true; @@ -889,6 +1001,7 @@ private void InitializeComponent() // // itemsCountLabel // + this.itemsCountLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.itemsCountLabel.Location = new System.Drawing.Point(6, 544); this.itemsCountLabel.Name = "itemsCountLabel"; this.itemsCountLabel.Size = new System.Drawing.Size(74, 13); @@ -900,6 +1013,7 @@ private void InitializeComponent() // this.separatorLabel1.AutoSize = true; this.separatorLabel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.separatorLabel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.separatorLabel1.Location = new System.Drawing.Point(90, 543); this.separatorLabel1.Name = "separatorLabel1"; this.separatorLabel1.Size = new System.Drawing.Size(2, 15); @@ -909,6 +1023,7 @@ private void InitializeComponent() // this.separatorLabel2.AutoSize = true; this.separatorLabel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.separatorLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.separatorLabel2.Location = new System.Drawing.Point(201, 543); this.separatorLabel2.Name = "separatorLabel2"; this.separatorLabel2.Size = new System.Drawing.Size(2, 15); @@ -916,6 +1031,9 @@ private void InitializeComponent() // // toolStrip // + this.toolStrip.AutoSize = false; + this.toolStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); + this.toolStrip.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripNewButton, this.toolStripOpenButton, @@ -926,12 +1044,15 @@ private void InitializeComponent() this.toolStripFindItemButton}); this.toolStrip.Location = new System.Drawing.Point(0, 24); this.toolStrip.Name = "toolStrip"; + this.toolStrip.Padding = new System.Windows.Forms.Padding(5, 0, 1, 0); this.toolStrip.Size = new System.Drawing.Size(784, 25); this.toolStrip.TabIndex = 30; // // toolStripNewButton // + this.toolStripNewButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.toolStripNewButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripNewButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.toolStripNewButton.Image = global::ItemEditor.Properties.Resources.NewIcon; this.toolStripNewButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripNewButton.Name = "toolStripNewButton"; @@ -941,7 +1062,9 @@ private void InitializeComponent() // // toolStripOpenButton // + this.toolStripOpenButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.toolStripOpenButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripOpenButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.toolStripOpenButton.Image = global::ItemEditor.Properties.Resources.OpenIcon; this.toolStripOpenButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripOpenButton.Name = "toolStripOpenButton"; @@ -951,8 +1074,10 @@ private void InitializeComponent() // // toolStripSaveButton // + this.toolStripSaveButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.toolStripSaveButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripSaveButton.Enabled = false; + this.toolStripSaveButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.toolStripSaveButton.Image = global::ItemEditor.Properties.Resources.SaveIcon; this.toolStripSaveButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripSaveButton.Name = "toolStripSaveButton"; @@ -962,8 +1087,10 @@ private void InitializeComponent() // // toolStripSaveAsButton // + this.toolStripSaveAsButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.toolStripSaveAsButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripSaveAsButton.Enabled = false; + this.toolStripSaveAsButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.toolStripSaveAsButton.Image = global::ItemEditor.Properties.Resources.SaveAsIcon; this.toolStripSaveAsButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripSaveAsButton.Name = "toolStripSaveAsButton"; @@ -973,12 +1100,17 @@ private void InitializeComponent() // // toolStripSeparator1 // + this.toolStripSeparator1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); + this.toolStripSeparator1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); + this.toolStripSeparator1.Margin = new System.Windows.Forms.Padding(0, 0, 2, 0); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // toolStripCompareButton // + this.toolStripCompareButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.toolStripCompareButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripCompareButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.toolStripCompareButton.Image = global::ItemEditor.Properties.Resources.FormIcon; this.toolStripCompareButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripCompareButton.Name = "toolStripCompareButton"; @@ -988,8 +1120,10 @@ private void InitializeComponent() // // toolStripFindItemButton // + this.toolStripFindItemButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.toolStripFindItemButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripFindItemButton.Enabled = false; + this.toolStripFindItemButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.toolStripFindItemButton.Image = global::ItemEditor.Properties.Resources.FindIcon; this.toolStripFindItemButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripFindItemButton.Name = "toolStripFindItemButton"; @@ -1022,6 +1156,76 @@ private void InitializeComponent() this.candidatesTableLayoutPanel.Size = new System.Drawing.Size(320, 64); this.candidatesTableLayoutPanel.TabIndex = 0; // + // candidatesPictureBox1 + // + this.candidatesPictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43))))); + this.candidatesPictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.candidatesPictureBox1.ClientItem = null; + this.candidatesPictureBox1.Location = new System.Drawing.Point(0, 0); + this.candidatesPictureBox1.Margin = new System.Windows.Forms.Padding(0); + this.candidatesPictureBox1.Name = "candidatesPictureBox1"; + this.candidatesPictureBox1.Size = new System.Drawing.Size(64, 64); + this.candidatesPictureBox1.TabIndex = 0; + this.candidatesPictureBox1.TabStop = false; + this.candidatesPictureBox1.Tag = "1"; + this.candidatesPictureBox1.Click += new System.EventHandler(this.CandidatePictureBox_Click); + // + // candidatesPictureBox2 + // + this.candidatesPictureBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43))))); + this.candidatesPictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.candidatesPictureBox2.ClientItem = null; + this.candidatesPictureBox2.Location = new System.Drawing.Point(64, 0); + this.candidatesPictureBox2.Margin = new System.Windows.Forms.Padding(0); + this.candidatesPictureBox2.Name = "candidatesPictureBox2"; + this.candidatesPictureBox2.Size = new System.Drawing.Size(64, 64); + this.candidatesPictureBox2.TabIndex = 1; + this.candidatesPictureBox2.TabStop = false; + this.candidatesPictureBox2.Tag = "2"; + this.candidatesPictureBox2.Click += new System.EventHandler(this.CandidatePictureBox_Click); + // + // candidatesPictureBox3 + // + this.candidatesPictureBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43))))); + this.candidatesPictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.candidatesPictureBox3.ClientItem = null; + this.candidatesPictureBox3.Location = new System.Drawing.Point(128, 0); + this.candidatesPictureBox3.Margin = new System.Windows.Forms.Padding(0); + this.candidatesPictureBox3.Name = "candidatesPictureBox3"; + this.candidatesPictureBox3.Size = new System.Drawing.Size(64, 64); + this.candidatesPictureBox3.TabIndex = 2; + this.candidatesPictureBox3.TabStop = false; + this.candidatesPictureBox3.Tag = "3"; + this.candidatesPictureBox3.Click += new System.EventHandler(this.CandidatePictureBox_Click); + // + // candidatesPictureBox4 + // + this.candidatesPictureBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43))))); + this.candidatesPictureBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.candidatesPictureBox4.ClientItem = null; + this.candidatesPictureBox4.Location = new System.Drawing.Point(192, 0); + this.candidatesPictureBox4.Margin = new System.Windows.Forms.Padding(0); + this.candidatesPictureBox4.Name = "candidatesPictureBox4"; + this.candidatesPictureBox4.Size = new System.Drawing.Size(64, 64); + this.candidatesPictureBox4.TabIndex = 3; + this.candidatesPictureBox4.TabStop = false; + this.candidatesPictureBox4.Tag = "4"; + this.candidatesPictureBox4.Click += new System.EventHandler(this.CandidatePictureBox_Click); + // + // candidatesPictureBox5 + // + this.candidatesPictureBox5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43))))); + this.candidatesPictureBox5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.candidatesPictureBox5.ClientItem = null; + this.candidatesPictureBox5.Location = new System.Drawing.Point(256, 0); + this.candidatesPictureBox5.Margin = new System.Windows.Forms.Padding(0); + this.candidatesPictureBox5.Name = "candidatesPictureBox5"; + this.candidatesPictureBox5.Size = new System.Drawing.Size(64, 64); + this.candidatesPictureBox5.TabIndex = 4; + this.candidatesPictureBox5.TabStop = false; + this.candidatesPictureBox5.Tag = "5"; + this.candidatesPictureBox5.Click += new System.EventHandler(this.CandidatePictureBox_Click); + // // candidatesDropDown // this.candidatesDropDown.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; @@ -1034,6 +1238,7 @@ private void InitializeComponent() this.newItemButton.Image = global::ItemEditor.Properties.Resources.NewIcon; this.newItemButton.Location = new System.Drawing.Point(10, 506); this.newItemButton.Name = "newItemButton"; + this.newItemButton.Padding = new System.Windows.Forms.Padding(5); this.newItemButton.Size = new System.Drawing.Size(25, 25); this.newItemButton.TabIndex = 36; this.newItemButton.Click += new System.EventHandler(this.NewItemButton_Click); @@ -1044,6 +1249,7 @@ private void InitializeComponent() this.duplicateItemButton.Image = global::ItemEditor.Properties.Resources.DuplicateIcon; this.duplicateItemButton.Location = new System.Drawing.Point(40, 506); this.duplicateItemButton.Name = "duplicateItemButton"; + this.duplicateItemButton.Padding = new System.Windows.Forms.Padding(5); this.duplicateItemButton.Size = new System.Drawing.Size(25, 25); this.duplicateItemButton.TabIndex = 37; this.duplicateItemButton.Click += new System.EventHandler(this.DuplicateItemButton_Click); @@ -1054,6 +1260,7 @@ private void InitializeComponent() this.reloadItemButton.Image = global::ItemEditor.Properties.Resources.ReloadIcon; this.reloadItemButton.Location = new System.Drawing.Point(71, 506); this.reloadItemButton.Name = "reloadItemButton"; + this.reloadItemButton.Padding = new System.Windows.Forms.Padding(5); this.reloadItemButton.Size = new System.Drawing.Size(25, 25); this.reloadItemButton.TabIndex = 38; this.reloadItemButton.Click += new System.EventHandler(this.ReloadItemButton_Click); @@ -1064,6 +1271,7 @@ private void InitializeComponent() this.findItemButton.Image = global::ItemEditor.Properties.Resources.FindIcon; this.findItemButton.Location = new System.Drawing.Point(114, 506); this.findItemButton.Name = "findItemButton"; + this.findItemButton.Padding = new System.Windows.Forms.Padding(5); this.findItemButton.Size = new System.Drawing.Size(25, 25); this.findItemButton.TabIndex = 40; this.findItemButton.Click += new System.EventHandler(this.FindItemButton_Click); @@ -1071,126 +1279,39 @@ private void InitializeComponent() // label1 // this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); this.label1.Location = new System.Drawing.Point(104, 509); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(2, 20); this.label1.TabIndex = 41; // - // forceUseCheckBox - // - this.forceUseCheckBox.AutoSize = true; - this.forceUseCheckBox.Location = new System.Drawing.Point(14, 162); - this.forceUseCheckBox.Name = "forceUseCheckBox"; - this.forceUseCheckBox.Size = new System.Drawing.Size(75, 17); - this.forceUseCheckBox.TabIndex = 52; - this.forceUseCheckBox.Text = "Force Use"; - // - // previousPictureBox - // - this.previousPictureBox.BackColor = DarkUI.Config.Colors.DarkBackground; - this.previousPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.previousPictureBox.ClientItem = null; - this.previousPictureBox.Location = new System.Drawing.Point(13, 36); - this.previousPictureBox.Margin = new System.Windows.Forms.Padding(0); - this.previousPictureBox.Name = "previousPictureBox"; - this.previousPictureBox.Size = new System.Drawing.Size(64, 64); - this.previousPictureBox.TabIndex = 13; - this.previousPictureBox.TabStop = false; - // - // pictureBox - // - this.pictureBox.BackColor = DarkUI.Config.Colors.DarkBackground; - this.pictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBox.ClientItem = null; - this.pictureBox.Location = new System.Drawing.Point(13, 121); - this.pictureBox.Margin = new System.Windows.Forms.Padding(0); - this.pictureBox.Name = "pictureBox"; - this.pictureBox.Size = new System.Drawing.Size(64, 64); - this.pictureBox.TabIndex = 0; - this.pictureBox.TabStop = false; - // // serverItemListBox // - this.serverItemListBox.BackColor = DarkUI.Config.Colors.DarkBackground; + this.serverItemListBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43))))); this.serverItemListBox.ContextMenuStrip = this.itemsListBoxContextMenu; this.serverItemListBox.Enabled = false; + this.serverItemListBox.HorizontalScrollBarHidden = true; + this.serverItemListBox.ItemSize = 42; this.serverItemListBox.Location = new System.Drawing.Point(10, 59); + this.serverItemListBox.MultiSelect = false; this.serverItemListBox.Name = "serverItemListBox"; this.serverItemListBox.Plugin = null; + this.serverItemListBox.SelectedIndex = -1; + this.serverItemListBox.SelectedItem = null; this.serverItemListBox.Size = new System.Drawing.Size(232, 440); this.serverItemListBox.TabIndex = 0; - this.serverItemListBox.SelectedIndexChanged += ItemsListBox_SelectedIndexChanged; + this.serverItemListBox.Ticks = 42; this.serverItemListBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ItemsListBox_MouseDown); // - // candidatesPictureBox1 + // allowDistanceReadCheck // - this.candidatesPictureBox1.BackColor = DarkUI.Config.Colors.DarkBackground; - this.candidatesPictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.candidatesPictureBox1.ClientItem = null; - this.candidatesPictureBox1.Location = new System.Drawing.Point(0, 0); - this.candidatesPictureBox1.Margin = new System.Windows.Forms.Padding(0); - this.candidatesPictureBox1.Name = "candidatesPictureBox1"; - this.candidatesPictureBox1.Size = new System.Drawing.Size(64, 64); - this.candidatesPictureBox1.TabIndex = 0; - this.candidatesPictureBox1.TabStop = false; - this.candidatesPictureBox1.Tag = "1"; - this.candidatesPictureBox1.Click += new System.EventHandler(this.CandidatePictureBox_Click); - // - // candidatesPictureBox2 - // - this.candidatesPictureBox2.BackColor = DarkUI.Config.Colors.DarkBackground; - this.candidatesPictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.candidatesPictureBox2.ClientItem = null; - this.candidatesPictureBox2.Location = new System.Drawing.Point(64, 0); - this.candidatesPictureBox2.Margin = new System.Windows.Forms.Padding(0); - this.candidatesPictureBox2.Name = "candidatesPictureBox2"; - this.candidatesPictureBox2.Size = new System.Drawing.Size(64, 64); - this.candidatesPictureBox2.TabIndex = 1; - this.candidatesPictureBox2.TabStop = false; - this.candidatesPictureBox2.Tag = "2"; - this.candidatesPictureBox2.Click += new System.EventHandler(this.CandidatePictureBox_Click); - // - // candidatesPictureBox3 - // - this.candidatesPictureBox3.BackColor = DarkUI.Config.Colors.DarkBackground; - this.candidatesPictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.candidatesPictureBox3.ClientItem = null; - this.candidatesPictureBox3.Location = new System.Drawing.Point(128, 0); - this.candidatesPictureBox3.Margin = new System.Windows.Forms.Padding(0); - this.candidatesPictureBox3.Name = "candidatesPictureBox3"; - this.candidatesPictureBox3.Size = new System.Drawing.Size(64, 64); - this.candidatesPictureBox3.TabIndex = 2; - this.candidatesPictureBox3.TabStop = false; - this.candidatesPictureBox3.Tag = "3"; - this.candidatesPictureBox3.Click += new System.EventHandler(this.CandidatePictureBox_Click); - // - // candidatesPictureBox4 - // - this.candidatesPictureBox4.BackColor = DarkUI.Config.Colors.DarkBackground; - this.candidatesPictureBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.candidatesPictureBox4.ClientItem = null; - this.candidatesPictureBox4.Location = new System.Drawing.Point(192, 0); - this.candidatesPictureBox4.Margin = new System.Windows.Forms.Padding(0); - this.candidatesPictureBox4.Name = "candidatesPictureBox4"; - this.candidatesPictureBox4.Size = new System.Drawing.Size(64, 64); - this.candidatesPictureBox4.TabIndex = 3; - this.candidatesPictureBox4.TabStop = false; - this.candidatesPictureBox4.Tag = "4"; - this.candidatesPictureBox4.Click += new System.EventHandler(this.CandidatePictureBox_Click); - // - // candidatesPictureBox5 - // - this.candidatesPictureBox5.BackColor = DarkUI.Config.Colors.DarkBackground; - this.candidatesPictureBox5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.candidatesPictureBox5.ClientItem = null; - this.candidatesPictureBox5.Location = new System.Drawing.Point(256, 0); - this.candidatesPictureBox5.Margin = new System.Windows.Forms.Padding(0); - this.candidatesPictureBox5.Name = "candidatesPictureBox5"; - this.candidatesPictureBox5.Size = new System.Drawing.Size(64, 64); - this.candidatesPictureBox5.TabIndex = 4; - this.candidatesPictureBox5.TabStop = false; - this.candidatesPictureBox5.Tag = "5"; - this.candidatesPictureBox5.Click += new System.EventHandler(this.CandidatePictureBox_Click); + this.allowDistanceReadCheck.AutoSize = true; + this.allowDistanceReadCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(223)))), ((int)(((byte)(223))))); + this.allowDistanceReadCheck.Location = new System.Drawing.Point(134, 118); + this.allowDistanceReadCheck.Name = "allowDistanceReadCheck"; + this.allowDistanceReadCheck.Size = new System.Drawing.Size(125, 17); + this.allowDistanceReadCheck.TabIndex = 53; + this.allowDistanceReadCheck.Text = "Allow Distance Read"; // // MainForm // @@ -1325,7 +1446,6 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem viewShowDecaptedItemsMenuItem; private DarkUI.Controls.DarkLabel previousLabel; private ItemEditor.Controls.ClientItemView previousPictureBox; - private System.Windows.Forms.Label currentSpriteLabel; private System.Windows.Forms.TableLayoutPanel candidatesTableLayoutPanel; private System.Windows.Forms.ToolStripDropDown candidatesDropDown; private ItemEditor.Controls.ClientItemView candidatesPictureBox1; @@ -1345,5 +1465,7 @@ private void InitializeComponent() private DarkUI.Controls.DarkComboBox stackOrderComboBox; private DarkUI.Controls.DarkLabel stackOrderLabel; private DarkUI.Controls.DarkCheckBox forceUseCheckBox; + private DarkUI.Controls.DarkCheckBox allowDistanceReadCheck; + private DarkUI.Controls.DarkLabel currentSpriteLabel; } } diff --git a/Source/MainForm.cs b/Source/MainForm.cs index 79660a4..1dd2143 100644 --- a/Source/MainForm.cs +++ b/Source/MainForm.cs @@ -612,6 +612,7 @@ private bool EditItem(ServerItem item) this.AddBinding(this.minimapColorText, "Text", item, "MinimapColor", item.MinimapColor, clientItem.MinimapColor, true); this.AddBinding(this.wareIdText, "Text", item, "TradeAs", item.TradeAs, clientItem.TradeAs, true); this.AddBinding(this.nameText, "Text", item, "Name", item.Name, clientItem.Name, true); + this.AddBinding(this.allowDistanceReadCheck, "Checked", item, "AllowDistanceRead", item.AllowDistanceRead, clientItem.AllowDistanceRead, true); this.candidatesButton.Enabled = false; for (int i = 0; i < this.candidatesTableLayoutPanel.ColumnCount; ++i)