Add Dive item list & actions for editors

BCSV dump puts Communicator in the list; manually removed. Moved pearl to shells list as it's not able to be donated to museum
This commit is contained in:
Kurt
2020-07-03 12:05:24 -05:00
parent 4d617ce300
commit 4d5e06e373
7 changed files with 201 additions and 102 deletions

View File

@@ -42,15 +42,17 @@ private void InitializeComponent()
this.L_Received = new System.Windows.Forms.Label();
this.L_VariantBody = new System.Windows.Forms.Label();
this.CLB_Remake = new System.Windows.Forms.CheckedListBox();
this.B_AllDive = new System.Windows.Forms.ToolStripMenuItem();
this.CM_Buttons.SuspendLayout();
this.SuspendLayout();
//
// B_Cancel
//
this.B_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.B_Cancel.Location = new System.Drawing.Point(449, 349);
this.B_Cancel.Location = new System.Drawing.Point(599, 430);
this.B_Cancel.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.B_Cancel.Name = "B_Cancel";
this.B_Cancel.Size = new System.Drawing.Size(72, 23);
this.B_Cancel.Size = new System.Drawing.Size(96, 28);
this.B_Cancel.TabIndex = 7;
this.B_Cancel.Text = "Cancel";
this.B_Cancel.UseVisualStyleBackColor = true;
@@ -59,9 +61,10 @@ private void InitializeComponent()
// B_Save
//
this.B_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.B_Save.Location = new System.Drawing.Point(527, 349);
this.B_Save.Location = new System.Drawing.Point(703, 430);
this.B_Save.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.B_Save.Name = "B_Save";
this.B_Save.Size = new System.Drawing.Size(72, 23);
this.B_Save.Size = new System.Drawing.Size(96, 28);
this.B_Save.TabIndex = 6;
this.B_Save.Text = "Save";
this.B_Save.UseVisualStyleBackColor = true;
@@ -73,9 +76,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Left)));
this.CLB_Items.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.CLB_Items.FormattingEnabled = true;
this.CLB_Items.Location = new System.Drawing.Point(12, 27);
this.CLB_Items.Location = new System.Drawing.Point(16, 33);
this.CLB_Items.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.CLB_Items.Name = "CLB_Items";
this.CLB_Items.Size = new System.Drawing.Size(231, 289);
this.CLB_Items.Size = new System.Drawing.Size(307, 346);
this.CLB_Items.TabIndex = 8;
this.CLB_Items.SelectedIndexChanged += new System.EventHandler(this.CLB_Items_SelectedIndexChanged);
//
@@ -86,9 +90,10 @@ private void InitializeComponent()
this.CB_Item.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Item.DropDownWidth = 322;
this.CB_Item.FormattingEnabled = true;
this.CB_Item.Location = new System.Drawing.Point(12, 322);
this.CB_Item.Location = new System.Drawing.Point(16, 396);
this.CB_Item.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.CB_Item.Name = "CB_Item";
this.CB_Item.Size = new System.Drawing.Size(231, 21);
this.CB_Item.Size = new System.Drawing.Size(307, 24);
this.CB_Item.TabIndex = 13;
this.CB_Item.SelectedValueChanged += new System.EventHandler(this.CB_Item_SelectedValueChanged);
//
@@ -96,9 +101,10 @@ private void InitializeComponent()
//
this.B_GiveAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.B_GiveAll.ContextMenuStrip = this.CM_Buttons;
this.B_GiveAll.Location = new System.Drawing.Point(12, 349);
this.B_GiveAll.Location = new System.Drawing.Point(16, 430);
this.B_GiveAll.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.B_GiveAll.Name = "B_GiveAll";
this.B_GiveAll.Size = new System.Drawing.Size(82, 23);
this.B_GiveAll.Size = new System.Drawing.Size(109, 28);
this.B_GiveAll.TabIndex = 14;
this.B_GiveAll.Text = "Give All";
this.B_GiveAll.UseVisualStyleBackColor = true;
@@ -106,57 +112,61 @@ private void InitializeComponent()
//
// CM_Buttons
//
this.CM_Buttons.ImageScalingSize = new System.Drawing.Size(20, 20);
this.CM_Buttons.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.B_AllFish,
this.B_AllBugs,
this.B_AllDive,
this.B_AllArt,
this.B_GiveEverything});
this.CM_Buttons.Name = "CM_Buttons";
this.CM_Buttons.Size = new System.Drawing.Size(144, 92);
this.CM_Buttons.Size = new System.Drawing.Size(166, 124);
//
// B_AllFish
//
this.B_AllFish.Name = "B_AllFish";
this.B_AllFish.Size = new System.Drawing.Size(143, 22);
this.B_AllFish.Size = new System.Drawing.Size(165, 24);
this.B_AllFish.Text = "Give All Fish";
this.B_AllFish.Click += new System.EventHandler(this.B_AllFish_Click);
//
// B_AllBugs
//
this.B_AllBugs.Name = "B_AllBugs";
this.B_AllBugs.Size = new System.Drawing.Size(143, 22);
this.B_AllBugs.Size = new System.Drawing.Size(165, 24);
this.B_AllBugs.Text = "Give All Bugs";
this.B_AllBugs.Click += new System.EventHandler(this.B_AllBugs_Click);
//
// B_AllArt
//
this.B_AllArt.Name = "B_AllArt";
this.B_AllArt.Size = new System.Drawing.Size(143, 22);
this.B_AllArt.Size = new System.Drawing.Size(165, 24);
this.B_AllArt.Text = "Give All Art";
this.B_AllArt.Click += new System.EventHandler(this.B_AllArt_Click);
//
// B_GiveEverything
//
this.B_GiveEverything.Name = "B_GiveEverything";
this.B_GiveEverything.Size = new System.Drawing.Size(143, 22);
this.B_GiveEverything.Size = new System.Drawing.Size(165, 24);
this.B_GiveEverything.Text = "Everything";
this.B_GiveEverything.Click += new System.EventHandler(this.B_GiveEverything_Click);
//
// L_Received
//
this.L_Received.AutoSize = true;
this.L_Received.Location = new System.Drawing.Point(12, 9);
this.L_Received.Location = new System.Drawing.Point(16, 11);
this.L_Received.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.L_Received.Name = "L_Received";
this.L_Received.Size = new System.Drawing.Size(53, 13);
this.L_Received.Size = new System.Drawing.Size(67, 17);
this.L_Received.TabIndex = 15;
this.L_Received.Text = "Received";
//
// L_VariantBody
//
this.L_VariantBody.AutoSize = true;
this.L_VariantBody.Location = new System.Drawing.Point(246, 9);
this.L_VariantBody.Location = new System.Drawing.Point(328, 11);
this.L_VariantBody.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.L_VariantBody.Name = "L_VariantBody";
this.L_VariantBody.Size = new System.Drawing.Size(67, 13);
this.L_VariantBody.Size = new System.Drawing.Size(89, 17);
this.L_VariantBody.TabIndex = 16;
this.L_VariantBody.Text = "Variant Body";
//
@@ -167,16 +177,24 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.CLB_Remake.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.CLB_Remake.FormattingEnabled = true;
this.CLB_Remake.Location = new System.Drawing.Point(249, 27);
this.CLB_Remake.Location = new System.Drawing.Point(332, 33);
this.CLB_Remake.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.CLB_Remake.Name = "CLB_Remake";
this.CLB_Remake.Size = new System.Drawing.Size(350, 289);
this.CLB_Remake.Size = new System.Drawing.Size(465, 346);
this.CLB_Remake.TabIndex = 17;
//
// B_AllDive
//
this.B_AllDive.Name = "B_AllDive";
this.B_AllDive.Size = new System.Drawing.Size(165, 24);
this.B_AllDive.Text = "Give All Dive";
this.B_AllDive.Click += new System.EventHandler(this.B_AllDive_Click);
//
// ItemReceivedEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(611, 384);
this.ClientSize = new System.Drawing.Size(815, 473);
this.Controls.Add(this.CLB_Remake);
this.Controls.Add(this.L_VariantBody);
this.Controls.Add(this.L_Received);
@@ -186,6 +204,7 @@ private void InitializeComponent()
this.Controls.Add(this.B_Cancel);
this.Controls.Add(this.B_Save);
this.Icon = global::NHSE.WinForms.Properties.Resources.icon;
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "ItemReceivedEditor";
@@ -212,5 +231,6 @@ private void InitializeComponent()
private System.Windows.Forms.Label L_Received;
private System.Windows.Forms.Label L_VariantBody;
private System.Windows.Forms.CheckedListBox CLB_Remake;
private System.Windows.Forms.ToolStripMenuItem B_AllDive;
}
}

View File

@@ -122,6 +122,7 @@ private void GiveItem(ushort item, bool value = true)
private void B_AllBugs_Click(object sender, EventArgs e) => GiveAll(GameLists.Bugs, ModifierKeys != Keys.Alt);
private void B_AllFish_Click(object sender, EventArgs e) => GiveAll(GameLists.Fish, ModifierKeys != Keys.Alt);
private void B_AllArt_Click(object sender, EventArgs e) => GiveAll(GameLists.Art, ModifierKeys != Keys.Alt);
private void B_AllDive_Click(object sender, EventArgs e) => GiveAll(GameLists.Dive, ModifierKeys != Keys.Alt);
private void B_GiveEverything_Click(object sender, EventArgs e) => GiveEverything(GameInfo.Strings.itemlist, ModifierKeys != Keys.Alt);
private void B_Cancel_Click(object sender, EventArgs e) => Close();