Add arrows to move mail slots for gen2/3

#3470
This commit is contained in:
Kurt
2022-04-02 23:36:39 -07:00
parent cec408e62a
commit 13eb244bbd
2 changed files with 211 additions and 128 deletions

View File

@@ -90,6 +90,10 @@ private void InitializeComponent()
this.NUD_Misc1 = new System.Windows.Forms.NumericUpDown();
this.NUD_Misc2 = new System.Windows.Forms.NumericUpDown();
this.NUD_Misc3 = new System.Windows.Forms.NumericUpDown();
this.B_PartyUp = new System.Windows.Forms.Button();
this.B_PartyDown = new System.Windows.Forms.Button();
this.B_BoxDown = new System.Windows.Forms.Button();
this.B_BoxUp = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.NUD_AuthorTID)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.NUD_AuthorSID)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.NUD_BoxSize)).BeginInit();
@@ -124,9 +128,9 @@ private void InitializeComponent()
// 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(425, 371);
this.B_Cancel.Location = new System.Drawing.Point(477, 402);
this.B_Cancel.Name = "B_Cancel";
this.B_Cancel.Size = new System.Drawing.Size(75, 23);
this.B_Cancel.Size = new System.Drawing.Size(75, 25);
this.B_Cancel.TabIndex = 0;
this.B_Cancel.Text = "Cancel";
this.B_Cancel.UseVisualStyleBackColor = true;
@@ -135,9 +139,9 @@ 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(509, 371);
this.B_Save.Location = new System.Drawing.Point(561, 402);
this.B_Save.Name = "B_Save";
this.B_Save.Size = new System.Drawing.Size(75, 23);
this.B_Save.Size = new System.Drawing.Size(75, 25);
this.B_Save.TabIndex = 1;
this.B_Save.Text = "Save";
this.B_Save.UseVisualStyleBackColor = true;
@@ -147,10 +151,9 @@ private void InitializeComponent()
//
this.LB_PartyHeld.FormattingEnabled = true;
this.LB_PartyHeld.IntegralHeight = false;
this.LB_PartyHeld.ItemHeight = 12;
this.LB_PartyHeld.Location = new System.Drawing.Point(15, 36);
this.LB_PartyHeld.Location = new System.Drawing.Point(15, 39);
this.LB_PartyHeld.Name = "LB_PartyHeld";
this.LB_PartyHeld.Size = new System.Drawing.Size(120, 82);
this.LB_PartyHeld.Size = new System.Drawing.Size(120, 88);
this.LB_PartyHeld.TabIndex = 2;
this.LB_PartyHeld.SelectedIndexChanged += new System.EventHandler(this.EntryControl);
//
@@ -160,18 +163,17 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Left)));
this.LB_PCBOX.FormattingEnabled = true;
this.LB_PCBOX.IntegralHeight = false;
this.LB_PCBOX.ItemHeight = 12;
this.LB_PCBOX.Location = new System.Drawing.Point(15, 154);
this.LB_PCBOX.Location = new System.Drawing.Point(15, 167);
this.LB_PCBOX.Name = "LB_PCBOX";
this.LB_PCBOX.Size = new System.Drawing.Size(120, 190);
this.LB_PCBOX.Size = new System.Drawing.Size(120, 206);
this.LB_PCBOX.TabIndex = 3;
this.LB_PCBOX.SelectedIndexChanged += new System.EventHandler(this.EntryControl);
//
// B_Delete
//
this.B_Delete.Location = new System.Drawing.Point(330, 15);
this.B_Delete.Location = new System.Drawing.Point(383, 16);
this.B_Delete.Name = "B_Delete";
this.B_Delete.Size = new System.Drawing.Size(75, 23);
this.B_Delete.Size = new System.Drawing.Size(75, 25);
this.B_Delete.TabIndex = 4;
this.B_Delete.Text = "Delete";
this.B_Delete.UseVisualStyleBackColor = true;
@@ -180,50 +182,50 @@ private void InitializeComponent()
// L_BoxSize
//
this.L_BoxSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.L_BoxSize.Location = new System.Drawing.Point(12, 350);
this.L_BoxSize.Location = new System.Drawing.Point(12, 379);
this.L_BoxSize.Name = "L_BoxSize";
this.L_BoxSize.Size = new System.Drawing.Size(129, 18);
this.L_BoxSize.Size = new System.Drawing.Size(129, 20);
this.L_BoxSize.TabIndex = 5;
this.L_BoxSize.Text = "MailBox (PC) Served:";
this.L_BoxSize.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// TB_MessageBody21
//
this.TB_MessageBody21.Location = new System.Drawing.Point(9, 21);
this.TB_MessageBody21.Location = new System.Drawing.Point(9, 23);
this.TB_MessageBody21.MaxLength = 16;
this.TB_MessageBody21.Name = "TB_MessageBody21";
this.TB_MessageBody21.Size = new System.Drawing.Size(160, 19);
this.TB_MessageBody21.Size = new System.Drawing.Size(160, 20);
this.TB_MessageBody21.TabIndex = 7;
this.TB_MessageBody21.Text = "MMMMMMMMMMMMMMMM";
//
// TB_MessageBody22
//
this.TB_MessageBody22.Location = new System.Drawing.Point(9, 49);
this.TB_MessageBody22.Location = new System.Drawing.Point(9, 53);
this.TB_MessageBody22.MaxLength = 16;
this.TB_MessageBody22.Name = "TB_MessageBody22";
this.TB_MessageBody22.Size = new System.Drawing.Size(160, 19);
this.TB_MessageBody22.Size = new System.Drawing.Size(160, 20);
this.TB_MessageBody22.TabIndex = 8;
this.TB_MessageBody22.Text = "MMMMMMMMMMMMMMMM";
//
// TB_AuthorName
//
this.TB_AuthorName.Location = new System.Drawing.Point(9, 21);
this.TB_AuthorName.Location = new System.Drawing.Point(9, 23);
this.TB_AuthorName.MaxLength = 7;
this.TB_AuthorName.Name = "TB_AuthorName";
this.TB_AuthorName.Size = new System.Drawing.Size(83, 19);
this.TB_AuthorName.Size = new System.Drawing.Size(83, 20);
this.TB_AuthorName.TabIndex = 9;
this.TB_AuthorName.Text = "MMMMMMM";
//
// NUD_AuthorTID
//
this.NUD_AuthorTID.Location = new System.Drawing.Point(9, 49);
this.NUD_AuthorTID.Location = new System.Drawing.Point(9, 53);
this.NUD_AuthorTID.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_AuthorTID.Name = "NUD_AuthorTID";
this.NUD_AuthorTID.Size = new System.Drawing.Size(54, 19);
this.NUD_AuthorTID.Size = new System.Drawing.Size(54, 20);
this.NUD_AuthorTID.TabIndex = 10;
this.NUD_AuthorTID.Value = new decimal(new int[] {
65535,
@@ -235,30 +237,30 @@ private void InitializeComponent()
//
this.CB_AppearPKM1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CB_AppearPKM1.FormattingEnabled = true;
this.CB_AppearPKM1.Location = new System.Drawing.Point(235, 304);
this.CB_AppearPKM1.Location = new System.Drawing.Point(235, 329);
this.CB_AppearPKM1.Name = "CB_AppearPKM1";
this.CB_AppearPKM1.Size = new System.Drawing.Size(107, 20);
this.CB_AppearPKM1.Size = new System.Drawing.Size(107, 21);
this.CB_AppearPKM1.TabIndex = 11;
//
// CB_MailType
//
this.CB_MailType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CB_MailType.FormattingEnabled = true;
this.CB_MailType.Location = new System.Drawing.Point(235, 275);
this.CB_MailType.Location = new System.Drawing.Point(235, 298);
this.CB_MailType.Name = "CB_MailType";
this.CB_MailType.Size = new System.Drawing.Size(107, 20);
this.CB_MailType.Size = new System.Drawing.Size(107, 21);
this.CB_MailType.TabIndex = 12;
//
// NUD_AuthorSID
//
this.NUD_AuthorSID.Location = new System.Drawing.Point(72, 49);
this.NUD_AuthorSID.Location = new System.Drawing.Point(72, 53);
this.NUD_AuthorSID.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_AuthorSID.Name = "NUD_AuthorSID";
this.NUD_AuthorSID.Size = new System.Drawing.Size(54, 19);
this.NUD_AuthorSID.Size = new System.Drawing.Size(54, 20);
this.NUD_AuthorSID.TabIndex = 13;
this.NUD_AuthorSID.Value = new decimal(new int[] {
65535,
@@ -269,14 +271,14 @@ private void InitializeComponent()
// NUD_BoxSize
//
this.NUD_BoxSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.NUD_BoxSize.Location = new System.Drawing.Point(90, 371);
this.NUD_BoxSize.Location = new System.Drawing.Point(90, 402);
this.NUD_BoxSize.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.NUD_BoxSize.Name = "NUD_BoxSize";
this.NUD_BoxSize.Size = new System.Drawing.Size(37, 19);
this.NUD_BoxSize.Size = new System.Drawing.Size(37, 20);
this.NUD_BoxSize.TabIndex = 14;
this.NUD_BoxSize.Value = new decimal(new int[] {
10,
@@ -289,9 +291,9 @@ private void InitializeComponent()
//
this.GB_MessageTB.Controls.Add(this.TB_MessageBody21);
this.GB_MessageTB.Controls.Add(this.TB_MessageBody22);
this.GB_MessageTB.Location = new System.Drawing.Point(144, 47);
this.GB_MessageTB.Location = new System.Drawing.Point(162, 51);
this.GB_MessageTB.Name = "GB_MessageTB";
this.GB_MessageTB.Size = new System.Drawing.Size(178, 77);
this.GB_MessageTB.Size = new System.Drawing.Size(178, 83);
this.GB_MessageTB.TabIndex = 15;
this.GB_MessageTB.TabStop = false;
this.GB_MessageTB.Text = "Message";
@@ -311,23 +313,23 @@ private void InitializeComponent()
this.GB_MessageNUD.Controls.Add(this.NUD_Message02);
this.GB_MessageNUD.Controls.Add(this.NUD_Message01);
this.GB_MessageNUD.Controls.Add(this.NUD_Message00);
this.GB_MessageNUD.Location = new System.Drawing.Point(144, 47);
this.GB_MessageNUD.Location = new System.Drawing.Point(162, 51);
this.GB_MessageNUD.Name = "GB_MessageNUD";
this.GB_MessageNUD.Size = new System.Drawing.Size(261, 133);
this.GB_MessageNUD.Size = new System.Drawing.Size(261, 144);
this.GB_MessageNUD.TabIndex = 16;
this.GB_MessageNUD.TabStop = false;
this.GB_MessageNUD.Text = "Message";
//
// NUD_MessageEnding
//
this.NUD_MessageEnding.Location = new System.Drawing.Point(9, 105);
this.NUD_MessageEnding.Location = new System.Drawing.Point(9, 114);
this.NUD_MessageEnding.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_MessageEnding.Name = "NUD_MessageEnding";
this.NUD_MessageEnding.Size = new System.Drawing.Size(54, 19);
this.NUD_MessageEnding.Size = new System.Drawing.Size(54, 20);
this.NUD_MessageEnding.TabIndex = 12;
this.NUD_MessageEnding.Value = new decimal(new int[] {
65535,
@@ -337,14 +339,14 @@ private void InitializeComponent()
//
// NUD_Message23
//
this.NUD_Message23.Location = new System.Drawing.Point(198, 77);
this.NUD_Message23.Location = new System.Drawing.Point(198, 83);
this.NUD_Message23.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message23.Name = "NUD_Message23";
this.NUD_Message23.Size = new System.Drawing.Size(54, 19);
this.NUD_Message23.Size = new System.Drawing.Size(54, 20);
this.NUD_Message23.TabIndex = 11;
this.NUD_Message23.Value = new decimal(new int[] {
65535,
@@ -354,14 +356,14 @@ private void InitializeComponent()
//
// NUD_Message13
//
this.NUD_Message13.Location = new System.Drawing.Point(198, 49);
this.NUD_Message13.Location = new System.Drawing.Point(198, 53);
this.NUD_Message13.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message13.Name = "NUD_Message13";
this.NUD_Message13.Size = new System.Drawing.Size(54, 19);
this.NUD_Message13.Size = new System.Drawing.Size(54, 20);
this.NUD_Message13.TabIndex = 7;
this.NUD_Message13.Value = new decimal(new int[] {
65535,
@@ -371,14 +373,14 @@ private void InitializeComponent()
//
// NUD_Message03
//
this.NUD_Message03.Location = new System.Drawing.Point(198, 21);
this.NUD_Message03.Location = new System.Drawing.Point(198, 23);
this.NUD_Message03.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message03.Name = "NUD_Message03";
this.NUD_Message03.Size = new System.Drawing.Size(54, 19);
this.NUD_Message03.Size = new System.Drawing.Size(54, 20);
this.NUD_Message03.TabIndex = 3;
this.NUD_Message03.Value = new decimal(new int[] {
65535,
@@ -388,14 +390,14 @@ private void InitializeComponent()
//
// NUD_Message22
//
this.NUD_Message22.Location = new System.Drawing.Point(135, 77);
this.NUD_Message22.Location = new System.Drawing.Point(135, 83);
this.NUD_Message22.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message22.Name = "NUD_Message22";
this.NUD_Message22.Size = new System.Drawing.Size(54, 19);
this.NUD_Message22.Size = new System.Drawing.Size(54, 20);
this.NUD_Message22.TabIndex = 10;
this.NUD_Message22.Value = new decimal(new int[] {
65535,
@@ -405,14 +407,14 @@ private void InitializeComponent()
//
// NUD_Message21
//
this.NUD_Message21.Location = new System.Drawing.Point(72, 77);
this.NUD_Message21.Location = new System.Drawing.Point(72, 83);
this.NUD_Message21.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message21.Name = "NUD_Message21";
this.NUD_Message21.Size = new System.Drawing.Size(54, 19);
this.NUD_Message21.Size = new System.Drawing.Size(54, 20);
this.NUD_Message21.TabIndex = 9;
this.NUD_Message21.Value = new decimal(new int[] {
65535,
@@ -422,14 +424,14 @@ private void InitializeComponent()
//
// NUD_Message20
//
this.NUD_Message20.Location = new System.Drawing.Point(9, 77);
this.NUD_Message20.Location = new System.Drawing.Point(9, 83);
this.NUD_Message20.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message20.Name = "NUD_Message20";
this.NUD_Message20.Size = new System.Drawing.Size(54, 19);
this.NUD_Message20.Size = new System.Drawing.Size(54, 20);
this.NUD_Message20.TabIndex = 8;
this.NUD_Message20.Value = new decimal(new int[] {
65535,
@@ -439,14 +441,14 @@ private void InitializeComponent()
//
// NUD_Message12
//
this.NUD_Message12.Location = new System.Drawing.Point(135, 49);
this.NUD_Message12.Location = new System.Drawing.Point(135, 53);
this.NUD_Message12.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message12.Name = "NUD_Message12";
this.NUD_Message12.Size = new System.Drawing.Size(54, 19);
this.NUD_Message12.Size = new System.Drawing.Size(54, 20);
this.NUD_Message12.TabIndex = 6;
this.NUD_Message12.Value = new decimal(new int[] {
65535,
@@ -456,14 +458,14 @@ private void InitializeComponent()
//
// NUD_Message11
//
this.NUD_Message11.Location = new System.Drawing.Point(72, 49);
this.NUD_Message11.Location = new System.Drawing.Point(72, 53);
this.NUD_Message11.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message11.Name = "NUD_Message11";
this.NUD_Message11.Size = new System.Drawing.Size(54, 19);
this.NUD_Message11.Size = new System.Drawing.Size(54, 20);
this.NUD_Message11.TabIndex = 5;
this.NUD_Message11.Value = new decimal(new int[] {
65535,
@@ -473,14 +475,14 @@ private void InitializeComponent()
//
// NUD_Message10
//
this.NUD_Message10.Location = new System.Drawing.Point(9, 49);
this.NUD_Message10.Location = new System.Drawing.Point(9, 53);
this.NUD_Message10.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message10.Name = "NUD_Message10";
this.NUD_Message10.Size = new System.Drawing.Size(54, 19);
this.NUD_Message10.Size = new System.Drawing.Size(54, 20);
this.NUD_Message10.TabIndex = 4;
this.NUD_Message10.Value = new decimal(new int[] {
65535,
@@ -490,14 +492,14 @@ private void InitializeComponent()
//
// NUD_Message02
//
this.NUD_Message02.Location = new System.Drawing.Point(135, 21);
this.NUD_Message02.Location = new System.Drawing.Point(135, 23);
this.NUD_Message02.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message02.Name = "NUD_Message02";
this.NUD_Message02.Size = new System.Drawing.Size(54, 19);
this.NUD_Message02.Size = new System.Drawing.Size(54, 20);
this.NUD_Message02.TabIndex = 2;
this.NUD_Message02.Value = new decimal(new int[] {
65535,
@@ -507,14 +509,14 @@ private void InitializeComponent()
//
// NUD_Message01
//
this.NUD_Message01.Location = new System.Drawing.Point(72, 21);
this.NUD_Message01.Location = new System.Drawing.Point(72, 23);
this.NUD_Message01.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message01.Name = "NUD_Message01";
this.NUD_Message01.Size = new System.Drawing.Size(54, 19);
this.NUD_Message01.Size = new System.Drawing.Size(54, 20);
this.NUD_Message01.TabIndex = 1;
this.NUD_Message01.Value = new decimal(new int[] {
65535,
@@ -524,14 +526,14 @@ private void InitializeComponent()
//
// NUD_Message00
//
this.NUD_Message00.Location = new System.Drawing.Point(9, 21);
this.NUD_Message00.Location = new System.Drawing.Point(9, 23);
this.NUD_Message00.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Message00.Name = "NUD_Message00";
this.NUD_Message00.Size = new System.Drawing.Size(54, 19);
this.NUD_Message00.Size = new System.Drawing.Size(54, 20);
this.NUD_Message00.TabIndex = 0;
this.NUD_Message00.Value = new decimal(new int[] {
65535,
@@ -547,9 +549,9 @@ private void InitializeComponent()
this.GB_Author.Controls.Add(this.TB_AuthorName);
this.GB_Author.Controls.Add(this.NUD_AuthorTID);
this.GB_Author.Controls.Add(this.NUD_AuthorSID);
this.GB_Author.Location = new System.Drawing.Point(144, 189);
this.GB_Author.Location = new System.Drawing.Point(162, 205);
this.GB_Author.Name = "GB_Author";
this.GB_Author.Size = new System.Drawing.Size(261, 77);
this.GB_Author.Size = new System.Drawing.Size(261, 83);
this.GB_Author.TabIndex = 17;
this.GB_Author.TabStop = false;
this.GB_Author.Text = "Author";
@@ -558,26 +560,26 @@ private void InitializeComponent()
//
this.CB_AuthorVersion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CB_AuthorVersion.FormattingEnabled = true;
this.CB_AuthorVersion.Location = new System.Drawing.Point(135, 48);
this.CB_AuthorVersion.Location = new System.Drawing.Point(135, 52);
this.CB_AuthorVersion.Name = "CB_AuthorVersion";
this.CB_AuthorVersion.Size = new System.Drawing.Size(117, 20);
this.CB_AuthorVersion.Size = new System.Drawing.Size(117, 21);
this.CB_AuthorVersion.TabIndex = 60;
//
// CB_AuthorLang
//
this.CB_AuthorLang.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CB_AuthorLang.FormattingEnabled = true;
this.CB_AuthorLang.Location = new System.Drawing.Point(135, 19);
this.CB_AuthorLang.Location = new System.Drawing.Point(135, 21);
this.CB_AuthorLang.Name = "CB_AuthorLang";
this.CB_AuthorLang.Size = new System.Drawing.Size(117, 20);
this.CB_AuthorLang.Size = new System.Drawing.Size(117, 21);
this.CB_AuthorLang.TabIndex = 59;
//
// Label_OTGender
//
this.Label_OTGender.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Label_OTGender.Location = new System.Drawing.Point(101, 19);
this.Label_OTGender.Location = new System.Drawing.Point(101, 21);
this.Label_OTGender.Name = "Label_OTGender";
this.Label_OTGender.Size = new System.Drawing.Size(20, 20);
this.Label_OTGender.Size = new System.Drawing.Size(20, 22);
this.Label_OTGender.TabIndex = 58;
this.Label_OTGender.Text = "G";
this.Label_OTGender.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -585,18 +587,18 @@ private void InitializeComponent()
//
// L_MailType
//
this.L_MailType.Location = new System.Drawing.Point(157, 275);
this.L_MailType.Location = new System.Drawing.Point(157, 298);
this.L_MailType.Name = "L_MailType";
this.L_MailType.Size = new System.Drawing.Size(72, 18);
this.L_MailType.Size = new System.Drawing.Size(72, 20);
this.L_MailType.TabIndex = 18;
this.L_MailType.Text = "Mail Type:";
this.L_MailType.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// L_AppearPKM
//
this.L_AppearPKM.Location = new System.Drawing.Point(144, 304);
this.L_AppearPKM.Location = new System.Drawing.Point(144, 329);
this.L_AppearPKM.Name = "L_AppearPKM";
this.L_AppearPKM.Size = new System.Drawing.Size(85, 18);
this.L_AppearPKM.Size = new System.Drawing.Size(85, 20);
this.L_AppearPKM.TabIndex = 19;
this.L_AppearPKM.Text = "Appear PKM:";
this.L_AppearPKM.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -622,25 +624,25 @@ private void InitializeComponent()
this.GB_PKM.Controls.Add(this.L_HeldItem1);
this.GB_PKM.Controls.Add(this.NUD_MailID1);
this.GB_PKM.Controls.Add(this.L_PKM1);
this.GB_PKM.Location = new System.Drawing.Point(414, 15);
this.GB_PKM.Location = new System.Drawing.Point(466, 16);
this.GB_PKM.Name = "GB_PKM";
this.GB_PKM.Size = new System.Drawing.Size(170, 242);
this.GB_PKM.Size = new System.Drawing.Size(170, 262);
this.GB_PKM.TabIndex = 20;
this.GB_PKM.TabStop = false;
this.GB_PKM.Text = "Held MailID";
//
// L_HeldItem6
//
this.L_HeldItem6.Location = new System.Drawing.Point(9, 218);
this.L_HeldItem6.Location = new System.Drawing.Point(9, 236);
this.L_HeldItem6.Name = "L_HeldItem6";
this.L_HeldItem6.Size = new System.Drawing.Size(100, 18);
this.L_HeldItem6.Size = new System.Drawing.Size(100, 20);
this.L_HeldItem6.TabIndex = 17;
this.L_HeldItem6.Text = "(Mail)";
this.L_HeldItem6.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// NUD_MailID6
//
this.NUD_MailID6.Location = new System.Drawing.Point(118, 201);
this.NUD_MailID6.Location = new System.Drawing.Point(118, 218);
this.NUD_MailID6.Maximum = new decimal(new int[] {
5,
0,
@@ -652,7 +654,7 @@ private void InitializeComponent()
0,
-2147483648});
this.NUD_MailID6.Name = "NUD_MailID6";
this.NUD_MailID6.Size = new System.Drawing.Size(43, 19);
this.NUD_MailID6.Size = new System.Drawing.Size(43, 20);
this.NUD_MailID6.TabIndex = 16;
this.NUD_MailID6.Value = new decimal(new int[] {
5,
@@ -663,25 +665,25 @@ private void InitializeComponent()
//
// L_PKM6
//
this.L_PKM6.Location = new System.Drawing.Point(9, 200);
this.L_PKM6.Location = new System.Drawing.Point(9, 217);
this.L_PKM6.Name = "L_PKM6";
this.L_PKM6.Size = new System.Drawing.Size(100, 18);
this.L_PKM6.Size = new System.Drawing.Size(100, 20);
this.L_PKM6.TabIndex = 15;
this.L_PKM6.Text = "Bulbasaur:";
this.L_PKM6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// L_HeldItem5
//
this.L_HeldItem5.Location = new System.Drawing.Point(9, 182);
this.L_HeldItem5.Location = new System.Drawing.Point(9, 197);
this.L_HeldItem5.Name = "L_HeldItem5";
this.L_HeldItem5.Size = new System.Drawing.Size(100, 18);
this.L_HeldItem5.Size = new System.Drawing.Size(100, 20);
this.L_HeldItem5.TabIndex = 14;
this.L_HeldItem5.Text = "(Mail)";
this.L_HeldItem5.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// NUD_MailID5
//
this.NUD_MailID5.Location = new System.Drawing.Point(118, 165);
this.NUD_MailID5.Location = new System.Drawing.Point(118, 179);
this.NUD_MailID5.Maximum = new decimal(new int[] {
5,
0,
@@ -693,7 +695,7 @@ private void InitializeComponent()
0,
-2147483648});
this.NUD_MailID5.Name = "NUD_MailID5";
this.NUD_MailID5.Size = new System.Drawing.Size(43, 19);
this.NUD_MailID5.Size = new System.Drawing.Size(43, 20);
this.NUD_MailID5.TabIndex = 13;
this.NUD_MailID5.Value = new decimal(new int[] {
5,
@@ -704,25 +706,25 @@ private void InitializeComponent()
//
// L_PKM5
//
this.L_PKM5.Location = new System.Drawing.Point(9, 164);
this.L_PKM5.Location = new System.Drawing.Point(9, 178);
this.L_PKM5.Name = "L_PKM5";
this.L_PKM5.Size = new System.Drawing.Size(100, 18);
this.L_PKM5.Size = new System.Drawing.Size(100, 20);
this.L_PKM5.TabIndex = 12;
this.L_PKM5.Text = "Bulbasaur:";
this.L_PKM5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// L_HeldItem4
//
this.L_HeldItem4.Location = new System.Drawing.Point(9, 146);
this.L_HeldItem4.Location = new System.Drawing.Point(9, 158);
this.L_HeldItem4.Name = "L_HeldItem4";
this.L_HeldItem4.Size = new System.Drawing.Size(100, 18);
this.L_HeldItem4.Size = new System.Drawing.Size(100, 20);
this.L_HeldItem4.TabIndex = 11;
this.L_HeldItem4.Text = "(Mail)";
this.L_HeldItem4.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// NUD_MailID4
//
this.NUD_MailID4.Location = new System.Drawing.Point(118, 129);
this.NUD_MailID4.Location = new System.Drawing.Point(118, 140);
this.NUD_MailID4.Maximum = new decimal(new int[] {
5,
0,
@@ -734,7 +736,7 @@ private void InitializeComponent()
0,
-2147483648});
this.NUD_MailID4.Name = "NUD_MailID4";
this.NUD_MailID4.Size = new System.Drawing.Size(43, 19);
this.NUD_MailID4.Size = new System.Drawing.Size(43, 20);
this.NUD_MailID4.TabIndex = 10;
this.NUD_MailID4.Value = new decimal(new int[] {
5,
@@ -745,25 +747,25 @@ private void InitializeComponent()
//
// L_PKM4
//
this.L_PKM4.Location = new System.Drawing.Point(9, 128);
this.L_PKM4.Location = new System.Drawing.Point(9, 139);
this.L_PKM4.Name = "L_PKM4";
this.L_PKM4.Size = new System.Drawing.Size(100, 18);
this.L_PKM4.Size = new System.Drawing.Size(100, 20);
this.L_PKM4.TabIndex = 9;
this.L_PKM4.Text = "Bulbasaur:";
this.L_PKM4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// L_HeldItem3
//
this.L_HeldItem3.Location = new System.Drawing.Point(9, 110);
this.L_HeldItem3.Location = new System.Drawing.Point(9, 119);
this.L_HeldItem3.Name = "L_HeldItem3";
this.L_HeldItem3.Size = new System.Drawing.Size(100, 18);
this.L_HeldItem3.Size = new System.Drawing.Size(100, 20);
this.L_HeldItem3.TabIndex = 8;
this.L_HeldItem3.Text = "(Mail)";
this.L_HeldItem3.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// NUD_MailID3
//
this.NUD_MailID3.Location = new System.Drawing.Point(118, 93);
this.NUD_MailID3.Location = new System.Drawing.Point(118, 101);
this.NUD_MailID3.Maximum = new decimal(new int[] {
5,
0,
@@ -775,7 +777,7 @@ private void InitializeComponent()
0,
-2147483648});
this.NUD_MailID3.Name = "NUD_MailID3";
this.NUD_MailID3.Size = new System.Drawing.Size(43, 19);
this.NUD_MailID3.Size = new System.Drawing.Size(43, 20);
this.NUD_MailID3.TabIndex = 7;
this.NUD_MailID3.Value = new decimal(new int[] {
5,
@@ -786,25 +788,25 @@ private void InitializeComponent()
//
// L_PKM3
//
this.L_PKM3.Location = new System.Drawing.Point(9, 92);
this.L_PKM3.Location = new System.Drawing.Point(9, 100);
this.L_PKM3.Name = "L_PKM3";
this.L_PKM3.Size = new System.Drawing.Size(100, 18);
this.L_PKM3.Size = new System.Drawing.Size(100, 20);
this.L_PKM3.TabIndex = 6;
this.L_PKM3.Text = "Bulbasaur:";
this.L_PKM3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// L_HeldItem2
//
this.L_HeldItem2.Location = new System.Drawing.Point(9, 74);
this.L_HeldItem2.Location = new System.Drawing.Point(9, 80);
this.L_HeldItem2.Name = "L_HeldItem2";
this.L_HeldItem2.Size = new System.Drawing.Size(100, 18);
this.L_HeldItem2.Size = new System.Drawing.Size(100, 20);
this.L_HeldItem2.TabIndex = 5;
this.L_HeldItem2.Text = "(Mail)";
this.L_HeldItem2.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// NUD_MailID2
//
this.NUD_MailID2.Location = new System.Drawing.Point(118, 57);
this.NUD_MailID2.Location = new System.Drawing.Point(118, 62);
this.NUD_MailID2.Maximum = new decimal(new int[] {
5,
0,
@@ -816,7 +818,7 @@ private void InitializeComponent()
0,
-2147483648});
this.NUD_MailID2.Name = "NUD_MailID2";
this.NUD_MailID2.Size = new System.Drawing.Size(43, 19);
this.NUD_MailID2.Size = new System.Drawing.Size(43, 20);
this.NUD_MailID2.TabIndex = 4;
this.NUD_MailID2.Value = new decimal(new int[] {
5,
@@ -827,25 +829,25 @@ private void InitializeComponent()
//
// L_PKM2
//
this.L_PKM2.Location = new System.Drawing.Point(9, 56);
this.L_PKM2.Location = new System.Drawing.Point(9, 61);
this.L_PKM2.Name = "L_PKM2";
this.L_PKM2.Size = new System.Drawing.Size(100, 18);
this.L_PKM2.Size = new System.Drawing.Size(100, 20);
this.L_PKM2.TabIndex = 3;
this.L_PKM2.Text = "Bulbasaur:";
this.L_PKM2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// L_HeldItem1
//
this.L_HeldItem1.Location = new System.Drawing.Point(9, 38);
this.L_HeldItem1.Location = new System.Drawing.Point(9, 41);
this.L_HeldItem1.Name = "L_HeldItem1";
this.L_HeldItem1.Size = new System.Drawing.Size(100, 18);
this.L_HeldItem1.Size = new System.Drawing.Size(100, 20);
this.L_HeldItem1.TabIndex = 2;
this.L_HeldItem1.Text = "(Mail)";
this.L_HeldItem1.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// NUD_MailID1
//
this.NUD_MailID1.Location = new System.Drawing.Point(118, 21);
this.NUD_MailID1.Location = new System.Drawing.Point(118, 23);
this.NUD_MailID1.Maximum = new decimal(new int[] {
5,
0,
@@ -857,7 +859,7 @@ private void InitializeComponent()
0,
-2147483648});
this.NUD_MailID1.Name = "NUD_MailID1";
this.NUD_MailID1.Size = new System.Drawing.Size(43, 19);
this.NUD_MailID1.Size = new System.Drawing.Size(43, 20);
this.NUD_MailID1.TabIndex = 1;
this.NUD_MailID1.Value = new decimal(new int[] {
5,
@@ -868,27 +870,27 @@ private void InitializeComponent()
//
// L_PKM1
//
this.L_PKM1.Location = new System.Drawing.Point(9, 20);
this.L_PKM1.Location = new System.Drawing.Point(9, 22);
this.L_PKM1.Name = "L_PKM1";
this.L_PKM1.Size = new System.Drawing.Size(100, 18);
this.L_PKM1.Size = new System.Drawing.Size(100, 20);
this.L_PKM1.TabIndex = 0;
this.L_PKM1.Text = "Bulbasaur:";
this.L_PKM1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// L_PartyHeld
//
this.L_PartyHeld.Location = new System.Drawing.Point(15, 12);
this.L_PartyHeld.Location = new System.Drawing.Point(15, 13);
this.L_PartyHeld.Name = "L_PartyHeld";
this.L_PartyHeld.Size = new System.Drawing.Size(100, 18);
this.L_PartyHeld.Size = new System.Drawing.Size(100, 20);
this.L_PartyHeld.TabIndex = 21;
this.L_PartyHeld.Text = "MailBox (Party)";
this.L_PartyHeld.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// L_PCBOX
//
this.L_PCBOX.Location = new System.Drawing.Point(15, 130);
this.L_PCBOX.Location = new System.Drawing.Point(15, 141);
this.L_PCBOX.Name = "L_PCBOX";
this.L_PCBOX.Size = new System.Drawing.Size(88, 18);
this.L_PCBOX.Size = new System.Drawing.Size(88, 20);
this.L_PCBOX.TabIndex = 22;
this.L_PCBOX.Text = "MailBox (PC)";
this.L_PCBOX.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -897,39 +899,39 @@ private void InitializeComponent()
//
this.CB_AppearPKM2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CB_AppearPKM2.FormattingEnabled = true;
this.CB_AppearPKM2.Location = new System.Drawing.Point(351, 304);
this.CB_AppearPKM2.Location = new System.Drawing.Point(351, 329);
this.CB_AppearPKM2.Name = "CB_AppearPKM2";
this.CB_AppearPKM2.Size = new System.Drawing.Size(107, 20);
this.CB_AppearPKM2.Size = new System.Drawing.Size(107, 21);
this.CB_AppearPKM2.TabIndex = 23;
//
// CB_AppearPKM3
//
this.CB_AppearPKM3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CB_AppearPKM3.FormattingEnabled = true;
this.CB_AppearPKM3.Location = new System.Drawing.Point(464, 304);
this.CB_AppearPKM3.Location = new System.Drawing.Point(464, 329);
this.CB_AppearPKM3.Name = "CB_AppearPKM3";
this.CB_AppearPKM3.Size = new System.Drawing.Size(107, 20);
this.CB_AppearPKM3.Size = new System.Drawing.Size(107, 21);
this.CB_AppearPKM3.TabIndex = 24;
//
// L_MiscValue
//
this.L_MiscValue.Location = new System.Drawing.Point(183, 304);
this.L_MiscValue.Location = new System.Drawing.Point(183, 329);
this.L_MiscValue.Name = "L_MiscValue";
this.L_MiscValue.Size = new System.Drawing.Size(46, 18);
this.L_MiscValue.Size = new System.Drawing.Size(46, 20);
this.L_MiscValue.TabIndex = 25;
this.L_MiscValue.Text = "Misc:";
this.L_MiscValue.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// NUD_Misc1
//
this.NUD_Misc1.Location = new System.Drawing.Point(235, 305);
this.NUD_Misc1.Location = new System.Drawing.Point(235, 330);
this.NUD_Misc1.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Misc1.Name = "NUD_Misc1";
this.NUD_Misc1.Size = new System.Drawing.Size(54, 19);
this.NUD_Misc1.Size = new System.Drawing.Size(54, 20);
this.NUD_Misc1.TabIndex = 26;
this.NUD_Misc1.Value = new decimal(new int[] {
65535,
@@ -939,14 +941,14 @@ private void InitializeComponent()
//
// NUD_Misc2
//
this.NUD_Misc2.Location = new System.Drawing.Point(298, 305);
this.NUD_Misc2.Location = new System.Drawing.Point(298, 330);
this.NUD_Misc2.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Misc2.Name = "NUD_Misc2";
this.NUD_Misc2.Size = new System.Drawing.Size(54, 19);
this.NUD_Misc2.Size = new System.Drawing.Size(54, 20);
this.NUD_Misc2.TabIndex = 27;
this.NUD_Misc2.Value = new decimal(new int[] {
65535,
@@ -956,14 +958,14 @@ private void InitializeComponent()
//
// NUD_Misc3
//
this.NUD_Misc3.Location = new System.Drawing.Point(361, 305);
this.NUD_Misc3.Location = new System.Drawing.Point(361, 330);
this.NUD_Misc3.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.NUD_Misc3.Name = "NUD_Misc3";
this.NUD_Misc3.Size = new System.Drawing.Size(54, 19);
this.NUD_Misc3.Size = new System.Drawing.Size(54, 20);
this.NUD_Misc3.TabIndex = 28;
this.NUD_Misc3.Value = new decimal(new int[] {
65535,
@@ -971,11 +973,59 @@ private void InitializeComponent()
0,
0});
//
// B_PartyUp
//
this.B_PartyUp.Location = new System.Drawing.Point(137, 39);
this.B_PartyUp.Name = "B_PartyUp";
this.B_PartyUp.Size = new System.Drawing.Size(19, 24);
this.B_PartyUp.TabIndex = 29;
this.B_PartyUp.Text = "^";
this.B_PartyUp.UseVisualStyleBackColor = true;
this.B_PartyUp.Visible = false;
this.B_PartyUp.Click += new System.EventHandler(this.B_PartyUp_Click);
//
// B_PartyDown
//
this.B_PartyDown.Location = new System.Drawing.Point(137, 69);
this.B_PartyDown.Name = "B_PartyDown";
this.B_PartyDown.Size = new System.Drawing.Size(19, 24);
this.B_PartyDown.TabIndex = 30;
this.B_PartyDown.Text = "v";
this.B_PartyDown.UseVisualStyleBackColor = true;
this.B_PartyDown.Visible = false;
this.B_PartyDown.Click += new System.EventHandler(this.B_PartyDown_Click);
//
// B_BoxDown
//
this.B_BoxDown.Location = new System.Drawing.Point(137, 197);
this.B_BoxDown.Name = "B_BoxDown";
this.B_BoxDown.Size = new System.Drawing.Size(19, 24);
this.B_BoxDown.TabIndex = 32;
this.B_BoxDown.Text = "v";
this.B_BoxDown.UseVisualStyleBackColor = true;
this.B_BoxDown.Visible = false;
this.B_BoxDown.Click += new System.EventHandler(this.B_BoxDown_Click);
//
// B_BoxUp
//
this.B_BoxUp.Location = new System.Drawing.Point(137, 167);
this.B_BoxUp.Name = "B_BoxUp";
this.B_BoxUp.Size = new System.Drawing.Size(19, 24);
this.B_BoxUp.TabIndex = 31;
this.B_BoxUp.Text = "^";
this.B_BoxUp.UseVisualStyleBackColor = true;
this.B_BoxUp.Visible = false;
this.B_BoxUp.Click += new System.EventHandler(this.B_BoxUp_Click);
//
// SAV_MailBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(599, 409);
this.ClientSize = new System.Drawing.Size(651, 443);
this.Controls.Add(this.B_BoxDown);
this.Controls.Add(this.B_BoxUp);
this.Controls.Add(this.B_PartyDown);
this.Controls.Add(this.B_PartyUp);
this.Controls.Add(this.NUD_Misc3);
this.Controls.Add(this.NUD_Misc2);
this.Controls.Add(this.NUD_Misc1);
@@ -1102,5 +1152,9 @@ private void InitializeComponent()
private System.Windows.Forms.NumericUpDown NUD_Misc1;
private System.Windows.Forms.NumericUpDown NUD_Misc2;
private System.Windows.Forms.NumericUpDown NUD_Misc3;
private System.Windows.Forms.Button B_PartyUp;
private System.Windows.Forms.Button B_PartyDown;
private System.Windows.Forms.Button B_BoxDown;
private System.Windows.Forms.Button B_BoxUp;
}
}

View File

@@ -106,6 +106,7 @@ public SAV_MailBox(SaveFile sav)
CB_AppearPKM1.Items.Clear();
CB_AppearPKM1.InitializeBinding();
CB_AppearPKM1.DataSource = new BindingSource(GameInfo.FilteredSources.Species.ToList(), null);
B_PartyUp.Visible = B_PartyDown.Visible = B_BoxUp.Visible = B_BoxDown.Visible = true;
}
else if (Gen is 4 or 5)
{
@@ -565,5 +566,33 @@ private void NUD_MailIDn_ValueChanged(object sender, EventArgs e)
if (index < 0 || index >= p.Count) return;
((PK3)p[index]).HeldMailID = (sbyte)PKMNUDs[index].Value;
}
private void B_PartyUp_Click(object sender, EventArgs e) => SwapSlots(LB_PartyHeld, false);
private void B_PartyDown_Click(object sender, EventArgs e) => SwapSlots(LB_PartyHeld, true);
private void B_BoxUp_Click(object sender, EventArgs e) => SwapSlots(LB_PCBOX, false);
private void B_BoxDown_Click(object sender, EventArgs e) => SwapSlots(LB_PCBOX, true);
private void SwapSlots(ListControl lb, bool down)
{
int index = lb.SelectedIndex;
if (index <= 0)
{
System.Media.SystemSounds.Asterisk.Play();
return;
}
bool isBox = lb == LB_PCBOX;
if (isBox)
index += PartyBoxCount;
editing = true;
var otherIndex = index + (down ? 1 : -1);
(m[otherIndex], m[index]) = (m[index], m[otherIndex]); // swap mail objects
if (entry >= PartyBoxCount == isBox)
entry = otherIndex;
LoadList(); // reset labels
lb.SelectedIndex = otherIndex; // move selection to new spot
editing = false;
}
}
}