HoF Upgrayedd

This commit is contained in:
Kurt
2014-12-08 19:06:55 -08:00
parent 850510171c
commit e2b273b009
2 changed files with 197 additions and 498 deletions

View File

@@ -34,7 +34,7 @@ private void InitializeComponent()
this.B_Close = new System.Windows.Forms.Button();
this.bpkx = new System.Windows.Forms.PictureBox();
this.NUP_PartyIndex = new System.Windows.Forms.NumericUpDown();
this.label1 = new System.Windows.Forms.Label();
this.L_PartyNum = new System.Windows.Forms.Label();
this.CB_Species = new System.Windows.Forms.ComboBox();
this.Label_Species = new System.Windows.Forms.Label();
this.CHK_Nicknamed = new System.Windows.Forms.CheckBox();
@@ -55,7 +55,7 @@ private void InitializeComponent()
this.Label_OT = new System.Windows.Forms.Label();
this.Label_SID = new System.Windows.Forms.Label();
this.Label_TID = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.L_Victory = new System.Windows.Forms.Label();
this.TB_VN = new System.Windows.Forms.MaskedTextBox();
this.CAL_MetDate = new System.Windows.Forms.DateTimePicker();
this.Label_MetDate = new System.Windows.Forms.Label();
@@ -64,9 +64,10 @@ private void InitializeComponent()
this.CB_Form = new System.Windows.Forms.ComboBox();
this.Label_Form = new System.Windows.Forms.Label();
this.CHK_Shiny = new System.Windows.Forms.CheckBox();
this.label3 = new System.Windows.Forms.Label();
this.L_Shiny = new System.Windows.Forms.Label();
this.TB_Level = new System.Windows.Forms.MaskedTextBox();
this.label4 = new System.Windows.Forms.Label();
this.L_Level = new System.Windows.Forms.Label();
this.B_CopyText = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.bpkx)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.NUP_PartyIndex)).BeginInit();
this.GB_CurrentMoves.SuspendLayout();
@@ -75,8 +76,8 @@ private void InitializeComponent()
//
// listBox1
//
this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.listBox1.FormattingEnabled = true;
this.listBox1.Items.AddRange(new object[] {
"First",
@@ -103,14 +104,14 @@ private void InitializeComponent()
//
// RTB
//
this.RTB.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.RTB.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.RTB.Font = new System.Drawing.Font("Arial Narrow", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.RTB.Location = new System.Drawing.Point(72, 16);
this.RTB.Name = "RTB";
this.RTB.ReadOnly = true;
this.RTB.Size = new System.Drawing.Size(214, 281);
this.RTB.Size = new System.Drawing.Size(220, 287);
this.RTB.TabIndex = 1;
this.RTB.Text = "";
this.RTB.WordWrap = false;
@@ -118,7 +119,7 @@ private void InitializeComponent()
// B_Close
//
this.B_Close.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.B_Close.Location = new System.Drawing.Point(520, 274);
this.B_Close.Location = new System.Drawing.Point(529, 270);
this.B_Close.Name = "B_Close";
this.B_Close.Size = new System.Drawing.Size(76, 23);
this.B_Close.TabIndex = 3;
@@ -129,7 +130,7 @@ private void InitializeComponent()
// bpkx
//
this.bpkx.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.bpkx.Location = new System.Drawing.Point(310, 89);
this.bpkx.Location = new System.Drawing.Point(308, 99);
this.bpkx.Name = "bpkx";
this.bpkx.Size = new System.Drawing.Size(42, 32);
this.bpkx.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
@@ -138,7 +139,7 @@ private void InitializeComponent()
//
// NUP_PartyIndex
//
this.NUP_PartyIndex.Location = new System.Drawing.Point(549, 58);
this.NUP_PartyIndex.Location = new System.Drawing.Point(369, 47);
this.NUP_PartyIndex.Maximum = new decimal(new int[] {
6,
0,
@@ -150,7 +151,7 @@ private void InitializeComponent()
0,
0});
this.NUP_PartyIndex.Name = "NUP_PartyIndex";
this.NUP_PartyIndex.Size = new System.Drawing.Size(50, 20);
this.NUP_PartyIndex.Size = new System.Drawing.Size(28, 20);
this.NUP_PartyIndex.TabIndex = 32;
this.NUP_PartyIndex.Value = new decimal(new int[] {
1,
@@ -159,38 +160,38 @@ private void InitializeComponent()
0});
this.NUP_PartyIndex.ValueChanged += new System.EventHandler(this.NUP_PartyIndex_ValueChanged);
//
// label1
// L_PartyNum
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(484, 60);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(63, 13);
this.label1.TabIndex = 33;
this.label1.Text = "Party Index:";
this.L_PartyNum.AutoSize = true;
this.L_PartyNum.Location = new System.Drawing.Point(300, 49);
this.L_PartyNum.Name = "L_PartyNum";
this.L_PartyNum.Size = new System.Drawing.Size(63, 13);
this.L_PartyNum.TabIndex = 33;
this.L_PartyNum.Text = "Party Index:";
//
// CB_Species
//
this.CB_Species.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.CB_Species.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Species.FormattingEnabled = true;
this.CB_Species.Location = new System.Drawing.Point(468, 89);
this.CB_Species.Location = new System.Drawing.Point(483, 46);
this.CB_Species.Name = "CB_Species";
this.CB_Species.Size = new System.Drawing.Size(122, 21);
this.CB_Species.TabIndex = 35;
this.CB_Species.SelectedValueChanged += new System.EventHandler(this.Write_Entry);
this.CB_Species.SelectedValueChanged += new System.EventHandler(this.updateSpecies);
//
// Label_Species
//
this.Label_Species.Location = new System.Drawing.Point(388, 92);
this.Label_Species.Location = new System.Drawing.Point(428, 49);
this.Label_Species.Name = "Label_Species";
this.Label_Species.Size = new System.Drawing.Size(77, 13);
this.Label_Species.Size = new System.Drawing.Size(50, 13);
this.Label_Species.TabIndex = 34;
this.Label_Species.Text = "Species:";
this.Label_Species.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CHK_Nicknamed
//
this.CHK_Nicknamed.Location = new System.Drawing.Point(388, 116);
this.CHK_Nicknamed.Location = new System.Drawing.Point(403, 73);
this.CHK_Nicknamed.Name = "CHK_Nicknamed";
this.CHK_Nicknamed.Size = new System.Drawing.Size(80, 17);
this.CHK_Nicknamed.TabIndex = 36;
@@ -202,7 +203,7 @@ private void InitializeComponent()
// TB_Nickname
//
this.TB_Nickname.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_Nickname.Location = new System.Drawing.Point(468, 114);
this.TB_Nickname.Location = new System.Drawing.Point(483, 71);
this.TB_Nickname.MaxLength = 11;
this.TB_Nickname.Name = "TB_Nickname";
this.TB_Nickname.Size = new System.Drawing.Size(122, 20);
@@ -213,7 +214,7 @@ private void InitializeComponent()
//
this.TB_EC.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_EC.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.TB_EC.Location = new System.Drawing.Point(414, 57);
this.TB_EC.Location = new System.Drawing.Point(545, 150);
this.TB_EC.MaxLength = 8;
this.TB_EC.Name = "TB_EC";
this.TB_EC.Size = new System.Drawing.Size(60, 20);
@@ -223,7 +224,7 @@ private void InitializeComponent()
//
// Label_EncryptionConstant
//
this.Label_EncryptionConstant.Location = new System.Drawing.Point(307, 60);
this.Label_EncryptionConstant.Location = new System.Drawing.Point(438, 153);
this.Label_EncryptionConstant.Name = "Label_EncryptionConstant";
this.Label_EncryptionConstant.Size = new System.Drawing.Size(105, 13);
this.Label_EncryptionConstant.TabIndex = 62;
@@ -236,7 +237,7 @@ private void InitializeComponent()
this.GB_CurrentMoves.Controls.Add(this.CB_Move3);
this.GB_CurrentMoves.Controls.Add(this.CB_Move2);
this.GB_CurrentMoves.Controls.Add(this.CB_Move1);
this.GB_CurrentMoves.Location = new System.Drawing.Point(293, 184);
this.GB_CurrentMoves.Location = new System.Drawing.Point(299, 185);
this.GB_CurrentMoves.Name = "GB_CurrentMoves";
this.GB_CurrentMoves.Size = new System.Drawing.Size(139, 112);
this.GB_CurrentMoves.TabIndex = 64;
@@ -289,7 +290,7 @@ private void InitializeComponent()
//
// Label_HeldItem
//
this.Label_HeldItem.Location = new System.Drawing.Point(388, 142);
this.Label_HeldItem.Location = new System.Drawing.Point(403, 99);
this.Label_HeldItem.Name = "Label_HeldItem";
this.Label_HeldItem.Size = new System.Drawing.Size(77, 13);
this.Label_HeldItem.TabIndex = 66;
@@ -301,7 +302,7 @@ private void InitializeComponent()
this.CB_HeldItem.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.CB_HeldItem.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_HeldItem.FormattingEnabled = true;
this.CB_HeldItem.Location = new System.Drawing.Point(468, 139);
this.CB_HeldItem.Location = new System.Drawing.Point(483, 96);
this.CB_HeldItem.Name = "CB_HeldItem";
this.CB_HeldItem.Size = new System.Drawing.Size(122, 21);
this.CB_HeldItem.TabIndex = 65;
@@ -315,7 +316,7 @@ private void InitializeComponent()
this.GB_OT.Controls.Add(this.Label_OT);
this.GB_OT.Controls.Add(this.Label_SID);
this.GB_OT.Controls.Add(this.Label_TID);
this.GB_OT.Location = new System.Drawing.Point(438, 193);
this.GB_OT.Location = new System.Drawing.Point(444, 185);
this.GB_OT.Name = "GB_OT";
this.GB_OT.Size = new System.Drawing.Size(161, 75);
this.GB_OT.TabIndex = 67;
@@ -384,19 +385,19 @@ private void InitializeComponent()
this.Label_TID.Text = "TID:";
this.Label_TID.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label2
// L_Victory
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(307, 23);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(82, 13);
this.label2.TabIndex = 68;
this.label2.Text = "Victory Number:";
this.L_Victory.AutoSize = true;
this.L_Victory.Location = new System.Drawing.Point(300, 15);
this.L_Victory.Name = "L_Victory";
this.L_Victory.Size = new System.Drawing.Size(82, 13);
this.L_Victory.TabIndex = 68;
this.L_Victory.Text = "Victory Number:";
//
// TB_VN
//
this.TB_VN.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_VN.Location = new System.Drawing.Point(395, 21);
this.TB_VN.Location = new System.Drawing.Point(388, 12);
this.TB_VN.Mask = "000";
this.TB_VN.Name = "TB_VN";
this.TB_VN.Size = new System.Drawing.Size(30, 20);
@@ -409,7 +410,7 @@ private void InitializeComponent()
//
this.CAL_MetDate.CustomFormat = "MM/dd/yyyy";
this.CAL_MetDate.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.CAL_MetDate.Location = new System.Drawing.Point(487, 20);
this.CAL_MetDate.Location = new System.Drawing.Point(496, 12);
this.CAL_MetDate.MaxDate = new System.DateTime(2099, 12, 31, 0, 0, 0, 0);
this.CAL_MetDate.MinDate = new System.DateTime(2000, 1, 1, 0, 0, 0, 0);
this.CAL_MetDate.Name = "CAL_MetDate";
@@ -420,7 +421,7 @@ private void InitializeComponent()
//
// Label_MetDate
//
this.Label_MetDate.Location = new System.Drawing.Point(426, 23);
this.Label_MetDate.Location = new System.Drawing.Point(441, 15);
this.Label_MetDate.Name = "Label_MetDate";
this.Label_MetDate.Size = new System.Drawing.Size(55, 13);
this.Label_MetDate.TabIndex = 69;
@@ -430,7 +431,7 @@ 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(437, 274);
this.B_Cancel.Location = new System.Drawing.Point(447, 270);
this.B_Cancel.Name = "B_Cancel";
this.B_Cancel.Size = new System.Drawing.Size(76, 23);
this.B_Cancel.TabIndex = 71;
@@ -441,13 +442,13 @@ private void InitializeComponent()
// Label_Gender
//
this.Label_Gender.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Label_Gender.Location = new System.Drawing.Point(396, 92);
this.Label_Gender.Location = new System.Drawing.Point(363, 138);
this.Label_Gender.Name = "Label_Gender";
this.Label_Gender.Size = new System.Drawing.Size(16, 13);
this.Label_Gender.TabIndex = 72;
this.Label_Gender.Text = "-";
this.Label_Gender.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.Label_Gender.Click += new System.EventHandler(this.Label_Gender_Click);
this.Label_Gender.Click += new System.EventHandler(this.updateGender);
//
// CB_Form
//
@@ -455,7 +456,7 @@ private void InitializeComponent()
this.CB_Form.DropDownWidth = 85;
this.CB_Form.Enabled = false;
this.CB_Form.FormattingEnabled = true;
this.CB_Form.Location = new System.Drawing.Point(468, 166);
this.CB_Form.Location = new System.Drawing.Point(483, 123);
this.CB_Form.Name = "CB_Form";
this.CB_Form.Size = new System.Drawing.Size(122, 21);
this.CB_Form.TabIndex = 74;
@@ -464,7 +465,7 @@ private void InitializeComponent()
// Label_Form
//
this.Label_Form.AutoSize = true;
this.Label_Form.Location = new System.Drawing.Point(432, 169);
this.Label_Form.Location = new System.Drawing.Point(447, 126);
this.Label_Form.Name = "Label_Form";
this.Label_Form.Size = new System.Drawing.Size(33, 13);
this.Label_Form.TabIndex = 73;
@@ -473,26 +474,26 @@ private void InitializeComponent()
// CHK_Shiny
//
this.CHK_Shiny.AutoSize = true;
this.CHK_Shiny.Location = new System.Drawing.Point(367, 141);
this.CHK_Shiny.Location = new System.Drawing.Point(347, 139);
this.CHK_Shiny.Name = "CHK_Shiny";
this.CHK_Shiny.Size = new System.Drawing.Size(15, 14);
this.CHK_Shiny.TabIndex = 75;
this.CHK_Shiny.UseVisualStyleBackColor = true;
this.CHK_Shiny.CheckedChanged += new System.EventHandler(this.Write_Entry);
this.CHK_Shiny.CheckedChanged += new System.EventHandler(this.updateShiny);
//
// label3
// L_Shiny
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(325, 141);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(36, 13);
this.label3.TabIndex = 76;
this.label3.Text = "Shiny:";
this.L_Shiny.AutoSize = true;
this.L_Shiny.Location = new System.Drawing.Point(305, 138);
this.L_Shiny.Name = "L_Shiny";
this.L_Shiny.Size = new System.Drawing.Size(36, 13);
this.L_Shiny.TabIndex = 76;
this.L_Shiny.Text = "Shiny:";
//
// TB_Level
//
this.TB_Level.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_Level.Location = new System.Drawing.Point(367, 161);
this.TB_Level.Location = new System.Drawing.Point(347, 157);
this.TB_Level.Mask = "000";
this.TB_Level.Name = "TB_Level";
this.TB_Level.Size = new System.Drawing.Size(30, 20);
@@ -501,23 +502,35 @@ private void InitializeComponent()
this.TB_Level.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.TB_Level.TextChanged += new System.EventHandler(this.Write_Entry);
//
// label4
// L_Level
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(325, 164);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(36, 13);
this.label4.TabIndex = 78;
this.label4.Text = "Level:";
this.L_Level.AutoSize = true;
this.L_Level.Location = new System.Drawing.Point(305, 159);
this.L_Level.Name = "L_Level";
this.L_Level.Size = new System.Drawing.Size(36, 13);
this.L_Level.TabIndex = 78;
this.L_Level.Text = "Level:";
//
// B_CopyText
//
this.B_CopyText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.B_CopyText.Location = new System.Drawing.Point(7, 280);
this.B_CopyText.Name = "B_CopyText";
this.B_CopyText.Size = new System.Drawing.Size(59, 23);
this.B_CopyText.TabIndex = 79;
this.B_CopyText.Text = "Copy txt";
this.B_CopyText.UseVisualStyleBackColor = true;
this.B_CopyText.Click += new System.EventHandler(this.B_CopyText_Click);
//
// SAV_HallOfFame
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(608, 305);
this.ClientSize = new System.Drawing.Size(614, 312);
this.Controls.Add(this.B_CopyText);
this.Controls.Add(this.TB_Level);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.L_Level);
this.Controls.Add(this.L_Shiny);
this.Controls.Add(this.CHK_Shiny);
this.Controls.Add(this.CB_Form);
this.Controls.Add(this.Label_Form);
@@ -526,7 +539,7 @@ private void InitializeComponent()
this.Controls.Add(this.CAL_MetDate);
this.Controls.Add(this.Label_MetDate);
this.Controls.Add(this.TB_VN);
this.Controls.Add(this.label2);
this.Controls.Add(this.L_Victory);
this.Controls.Add(this.GB_OT);
this.Controls.Add(this.Label_HeldItem);
this.Controls.Add(this.CB_HeldItem);
@@ -537,17 +550,18 @@ private void InitializeComponent()
this.Controls.Add(this.TB_Nickname);
this.Controls.Add(this.CB_Species);
this.Controls.Add(this.Label_Species);
this.Controls.Add(this.label1);
this.Controls.Add(this.L_PartyNum);
this.Controls.Add(this.NUP_PartyIndex);
this.Controls.Add(this.bpkx);
this.Controls.Add(this.B_Close);
this.Controls.Add(this.RTB);
this.Controls.Add(this.listBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(624, 344);
this.MaximumSize = new System.Drawing.Size(620, 340);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(624, 344);
this.MinimumSize = new System.Drawing.Size(620, 340);
this.Name = "SAV_HallOfFame";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Hall of Fame Viewer";
@@ -568,7 +582,7 @@ private void InitializeComponent()
private System.Windows.Forms.Button B_Close;
private System.Windows.Forms.PictureBox bpkx;
private System.Windows.Forms.NumericUpDown NUP_PartyIndex;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label L_PartyNum;
public System.Windows.Forms.ComboBox CB_Species;
private System.Windows.Forms.Label Label_Species;
private System.Windows.Forms.CheckBox CHK_Nicknamed;
@@ -589,7 +603,7 @@ private void InitializeComponent()
private System.Windows.Forms.Label Label_OT;
private System.Windows.Forms.Label Label_SID;
private System.Windows.Forms.Label Label_TID;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label L_Victory;
private System.Windows.Forms.MaskedTextBox TB_VN;
private System.Windows.Forms.DateTimePicker CAL_MetDate;
private System.Windows.Forms.Label Label_MetDate;
@@ -598,8 +612,9 @@ private void InitializeComponent()
private System.Windows.Forms.ComboBox CB_Form;
private System.Windows.Forms.Label Label_Form;
private System.Windows.Forms.CheckBox CHK_Shiny;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label L_Shiny;
private System.Windows.Forms.MaskedTextBox TB_Level;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label L_Level;
private System.Windows.Forms.Button B_CopyText;
}
}

View File

@@ -33,10 +33,10 @@ public SAV_HallOfFame(Form1 frm1)
CAL_MetDate,
CHK_Nicknamed,
CHK_Shiny,
label1,
label2,
label3,
label4,
L_PartyNum,
L_Victory,
L_Shiny,
L_Level,
Label_TID,
Label_Form,
Label_Gender,
@@ -46,7 +46,9 @@ public SAV_HallOfFame(Form1 frm1)
Label_SID,
Label_Species,
TB_Level,
NUP_PartyIndex
NUP_PartyIndex,
Label_EncryptionConstant,
Label_MetDate,
};
listBox1.SelectedIndex = 0;
NUP_PartyIndex_ValueChanged(null, null);
@@ -61,7 +63,6 @@ public SAV_HallOfFame(Form1 frm1)
private string[] types = Form1.types;
private string[] forms = Form1.forms;
private string[] gendersymbols = Form1.gendersymbols;
private byte[] data = new byte[0x1B40];
private object[] editor_spec;
@@ -101,7 +102,6 @@ private void Setup()
CB_Species.DataSource = species_list;
}
#endregion
#region Moves
{
string[] movelist = Form1.movelist;
@@ -136,7 +136,6 @@ private void Setup()
CB_Move4.DataSource = move4_list;
}
#endregion
#region Items
{
string[] itemlist = Form1.itemlist;
@@ -193,12 +192,10 @@ private void Setup()
}
#endregion
}
private void B_Cancel_Click(object sender, EventArgs e)
{
Close();
}
private void B_Close_Click(object sender, EventArgs e)
{
Array.Copy(data, 0, m_parent.savefile, shiftval + data_offset, data.Length);
@@ -208,7 +205,7 @@ private void displayEntry(object sender, EventArgs e)
{
editing = false;
RTB.Font = new Font("Courier New", 8);
RTB.Text = "";
string s = "";
RTB.LanguageOption = RichTextBoxLanguageOptions.DualFont;
int index = listBox1.SelectedIndex;
int offset = index * 0x1B4;
@@ -216,31 +213,28 @@ private void displayEntry(object sender, EventArgs e)
uint vnd = BitConverter.ToUInt32(data, offset + 0x1B0);
uint vn = vnd & 0xFF;
TB_VN.Text = vn.ToString("000");
RTB.Text = "Entry #" + vn + "\r\n";
s = "Entry #" + vn + "\r\n";
uint date = (vnd >> 14) & 0x1FFFF;
uint year = (date & 0xFF) + 2000;
uint month = (date >> 8) & 0xF;
uint day = (date >> 12);
if (day == 0)
{
RTB.Text += "No records in this slot.";
s += "No records in this slot.";
for (int i = 0; i < editor_spec.Length; i++)
{
((Control)editor_spec[i]).Enabled = false;
}
editing = false;
NUP_PartyIndex_ValueChanged(sender, e);
return;
goto end;
}
else
{
for (int i = 0; i < editor_spec.Length; i++)
{
((Control)editor_spec[i]).Enabled = true;
}
}
RTB.Text += "Date: " + year.ToString() + "/" + month.ToString() + "/" + day.ToString() + "\r\n\r\n";
s += "Date: " + year.ToString() + "/" + month.ToString() + "/" + day.ToString() + "\r\n\r\n";
CAL_MetDate.Value = new DateTime((int)year, (int)month, (int)day);
int moncount = 0;
for (int i = 0; i < 6; i++)
@@ -266,9 +260,8 @@ private void displayEntry(object sender, EventArgs e)
string OTname = Util.TrimFromZero(Encoding.Unicode.GetString(data, offset + 0x30, 22));
if (species == 0)
{
continue;
}
moncount++;
string genderstr="";
switch (gender)
@@ -283,63 +276,34 @@ private void displayEntry(object sender, EventArgs e)
genderstr = "G";
break;
}
string shinystr = "";
if (shiny == 0)
{
shinystr = "No";
}
else shinystr = "Yes";
string shinystr = (shiny == 0) ? "Yes" : "No";
RTB.Text += "Name: " + nickname;
RTB.Text += " (" + Form1.specieslist[species] + " - " + genderstr + ")\r\n";
RTB.Text += "Level: " + level.ToString() + "\r\n";
RTB.Text += "Shiny: " + shinystr + "\r\n";
RTB.Text += "Held Item: " + Form1.itemlist[helditem] + "\r\n";
RTB.Text += "Move 1: " + Form1.movelist[move1] + "\r\n";
RTB.Text += "Move 2: " + Form1.movelist[move2] + "\r\n";
RTB.Text += "Move 3: " + Form1.movelist[move3] + "\r\n";
RTB.Text += "Move 4: " + Form1.movelist[move4] + "\r\n";
RTB.Text += "OT: " + OTname + " (" + TID.ToString() + "/" + SID.ToString() + ")\r\n";
RTB.Text += "\r\n";
s += "Name: " + nickname;
s += " (" + Form1.specieslist[species] + " - " + genderstr + ")\r\n";
s += "Level: " + level.ToString() + "\r\n";
s += "Shiny: " + shinystr + "\r\n";
s += "Held Item: " + Form1.itemlist[helditem] + "\r\n";
s += "Move 1: " + Form1.movelist[move1] + "\r\n";
s += "Move 2: " + Form1.movelist[move2] + "\r\n";
s += "Move 3: " + Form1.movelist[move3] + "\r\n";
s += "Move 4: " + Form1.movelist[move4] + "\r\n";
s += "OT: " + OTname + " (" + TID.ToString() + "/" + SID.ToString() + ")\r\n";
s += "\r\n";
offset += 0x48;
}
RTB.Text = RTB.Text;
if (sender != null)
{
NUP_PartyIndex.Maximum = moncount;
NUP_PartyIndex.Value = 1;
NUP_PartyIndex_ValueChanged(sender, e);
}
else editing = true;
end:
RTB.Text = s;
RTB.Font = new Font("Courier New", 8);
NUP_PartyIndex.Maximum = moncount;
NUP_PartyIndex.Value = 1;
NUP_PartyIndex_ValueChanged(sender, e);
}
private void UpdateImage(int species, int form, int item, int gender)
{
string file = "";
if (species == 0)
{ bpkx.Image = (Image)Properties.Resources.ResourceManager.GetObject("_0"); }
else
{
file = "_" + species.ToString();
if (form > 0) // Alt Form Handling
file = file + "_" + form.ToString();
else if ((gender == 1) && (species == 521 || species == 668)) // Unfezant & Pyroar
file = file = "_" + species.ToString() + "f";
}
Image baseImage = (Image)Properties.Resources.ResourceManager.GetObject(file);
if (CB_HeldItem.SelectedIndex > 0)
{
// Has Item
Image itemimg = (Image)Properties.Resources.ResourceManager.GetObject("item_" + item.ToString());
if (itemimg == null) itemimg = Properties.Resources.helditem;
// Redraw
baseImage = PKHeX.Util.LayerImage(baseImage, itemimg, 22 + (15 - itemimg.Width) / 2, 15 + (15 - itemimg.Height), 1);
}
bpkx.Image = baseImage;
editing = true;
}
private void NUP_PartyIndex_ValueChanged(object sender, EventArgs e)
{
editing = false;
@@ -381,23 +345,18 @@ private void NUP_PartyIndex_ValueChanged(object sender, EventArgs e)
CHK_Nicknamed.Checked = nick == 1;
setForms(species, CB_Form);
m_parent.setForms(species, CB_Form);
CB_Form.SelectedIndex = (int)form;
setGenderLabel((int)gender);
updateNickname(sender, e);
UpdateImage(species, (int)form, item, (int)gender);
UpdateImage(species, (int)form, item, (int)gender, CHK_Shiny.Checked);
}
private void Write_Entry(object sender, EventArgs e)
{
if (!editing)
{
return; //Don't do writing until shit gets loaded
}
return; //Don't do writing until loaded
Validate_TextBoxes();
byte[] StringBuffer = new byte[22]; //Mimic in-game behavior of not clearing strings. It's awful, but accuracy > good.
string[] text_writes = new string[6 * 2]; //2 strings per mon, 6 mons
@@ -440,16 +399,15 @@ private void Write_Entry(object sender, EventArgs e)
{
Array.Copy(Encoding.Unicode.GetBytes(text_writes[i * 2]), StringBuffer, text_writes[i*2].Length*2);
int pos = text_writes[i * 2].Length * 2;
if (pos<StringBuffer.Length){
if (pos<StringBuffer.Length)
StringBuffer[pos] = 0;
}
Array.Copy(StringBuffer, 0, data, ofs + 0x18, 22);
Array.Copy(Encoding.Unicode.GetBytes(text_writes[i * 2 + 1]), StringBuffer, text_writes[i * 2 + 1].Length * 2);
pos = text_writes[i * 2 + 1].Length * 2;
if (pos < StringBuffer.Length)
{
StringBuffer[pos] = 0;
}
Array.Copy(StringBuffer, 0, data, ofs + 0x30, 22);
ofs += 0x48;
}
@@ -462,9 +420,8 @@ private void Write_Entry(object sender, EventArgs e)
slgf |= (uint)((PKX.getGender(Label_Gender.Text) & 0x3) << 5);
slgf |= (uint)((Convert.ToUInt16(TB_Level.Text) & 0x7F) << 7);
if (CHK_Shiny.Checked)
{
slgf |= 1 << 14;
}
slgf |= (rawslgf & 0x8000);
Array.Copy(BitConverter.GetBytes(slgf), 0, data, offset + 0x014, 2);
@@ -478,37 +435,25 @@ private void Write_Entry(object sender, EventArgs e)
uint vnd = 0;
uint date = 0;
vnd |= (Convert.ToUInt32(TB_VN.Text) & 0xFF);
date |= (uint)((CAL_MetDate.Value.Year-2000) & 0xFF);
date |= (uint)((CAL_MetDate.Value.Year - 2000) & 0xFF);
date |= (uint)((CAL_MetDate.Value.Month & 0xF) << 8);
date |= (uint)((CAL_MetDate.Value.Day & 0x1F) << 12);
vnd |= ((date & 0x1FFFF) << 14);
//Fix for top bit
uint rawvnd = BitConverter.ToUInt32(data, offset + 0x1B0);
vnd |= (rawvnd & 0x80000000);
Array.Copy(BitConverter.GetBytes(vnd), 0, data, offset + 0x1B0, 4);
/*
* uint vnd = BitConverter.ToUInt32(data, offset + 0x1B0);
uint vn = vnd & 0xFF;
TB_VN.Text = vn.ToString("000");
RTB.Text = "Entry #" + vn + "\r\n";
uint date = (vnd >> 14) & 0x1FFFF;
uint year = (date & 0xFF) + 2000;
uint month = (date >> 8) & 0xF;
uint day = (date >> 12);
* */
UpdateImage((int)CB_Species.SelectedValue, (int)(CB_Form.SelectedIndex & 0x1F), (int)CB_HeldItem.SelectedValue, (int)PKX.getGender(Label_Gender.Text));
UpdateImage((int)CB_Species.SelectedValue, (int)(CB_Form.SelectedIndex & 0x1F), (int)CB_HeldItem.SelectedValue, (int)PKX.getGender(Label_Gender.Text), CHK_Shiny.Checked);
displayEntry(null, null); // refresh text view
}
private void setGenderLabel(int gender)
private void Validate_TextBoxes()
{
if (gender == 0)
Label_Gender.Text = gendersymbols[0]; // Male
else if (gender == 1)
Label_Gender.Text = gendersymbols[1]; // Female
else
Label_Gender.Text = gendersymbols[2]; // Genderless
Write_Entry(null,null);
TB_Level.Text = Math.Min(Util.ToInt32(TB_Level.Text), 100).ToString();
TB_VN.Text = Math.Min(Util.ToInt32(TB_VN.Text), 255).ToString();
TB_TID.Text = Math.Min(Util.ToInt32(TB_TID.Text), 65535).ToString();
TB_SID.Text = Math.Min(Util.ToInt32(TB_SID.Text), 65535).ToString();
}
private void updateNickname(object sender, EventArgs e)
{
if (!CHK_Nicknamed.Checked)
@@ -528,28 +473,18 @@ private void updateNickname(object sender, EventArgs e)
Write_Entry(null, null);
}
private void Validate_TextBoxes()
private void updateSpecies(object sender, EventArgs e)
{
if (Convert.ToInt32(TB_Level.Text) > 255)
{
TB_Level.Text = "100";
}
if (Convert.ToInt32(TB_VN.Text) > 255)
{
TB_VN.Text = "255";
}
if (Convert.ToUInt32(TB_TID.Text) > 65535)
{
TB_TID.Text = "65535";
}
if (Convert.ToUInt32(TB_SID.Text) > 65535)
{
TB_SID.Text = "65535";
}
int species = Util.getIndex(CB_Species);
m_parent.setForms(species, CB_Form);
Write_Entry(null, null);
}
private void Label_Gender_Click(object sender, EventArgs e)
private void updateShiny(object sender, EventArgs e)
{
UpdateImage((int)CB_Species.SelectedValue, (int)(CB_Form.SelectedIndex & 0x1F), (int)CB_HeldItem.SelectedValue, (int)PKX.getGender(Label_Gender.Text), CHK_Shiny.Checked);
Write_Entry(null, null);
}
private void updateGender(object sender, EventArgs e)
{
// Get Gender Threshold
int species = Util.getIndex(CB_Species);
@@ -577,305 +512,54 @@ private void Label_Gender_Click(object sender, EventArgs e)
Write_Entry(null, null);
}
public void setForms(int species, ComboBox cb)
private void setGenderLabel(int gender)
{
// Form Tables
//
var form_unown = new[] {
new { Text = "A", Value = 0 },
new { Text = "B", Value = 1 },
new { Text = "C", Value = 2 },
new { Text = "D", Value = 3 },
new { Text = "E", Value = 4 },
new { Text = "F", Value = 5 },
new { Text = "G", Value = 6 },
new { Text = "H", Value = 7 },
new { Text = "I", Value = 8 },
new { Text = "J", Value = 9 },
new { Text = "K", Value = 10 },
new { Text = "L", Value = 11 },
new { Text = "M", Value = 12 },
new { Text = "N", Value = 13 },
new { Text = "O", Value = 14 },
new { Text = "P", Value = 15 },
new { Text = "Q", Value = 16 },
new { Text = "R", Value = 17 },
new { Text = "S", Value = 18 },
new { Text = "T", Value = 19 },
new { Text = "U", Value = 20 },
new { Text = "V", Value = 21 },
new { Text = "W", Value = 22 },
new { Text = "X", Value = 23 },
new { Text = "Y", Value = 24 },
new { Text = "Z", Value = 25 },
new { Text = "!", Value = 26 },
new { Text = "?", Value = 27 },
};
var form_castform = new[] {
new { Text = types[0], Value = 0 }, // Normal
new { Text = forms[789], Value = 1 }, // Sunny
new { Text = forms[790], Value = 2 }, // Rainy
new { Text = forms[791], Value = 3 }, // Snowy
};
var form_shellos = new[] {
new { Text = forms[422], Value = 0 }, // West
new { Text = forms[811], Value = 1 }, // East
};
var form_deoxys = new[] {
new { Text = types[0], Value = 0 }, // Normal
new { Text = forms[802], Value = 1 }, // Attack
new { Text = forms[803], Value = 2 }, // Defense
new { Text = forms[804], Value = 3 }, // Speed
};
var form_burmy = new[] {
new { Text = forms[412], Value = 0 }, // Plant
new { Text = forms[805], Value = 1 }, // Sandy
new { Text = forms[806], Value = 2 }, // Trash
};
var form_cherrim = new[] {
new { Text = forms[421], Value = 0 }, // Overcast
new { Text = forms[809], Value = 1 }, // Sunshine
};
var form_rotom = new[] {
new { Text = types[0], Value = 0 }, // Normal
new { Text = forms[817], Value = 1 }, // Heat
new { Text = forms[818], Value = 2 }, // Wash
new { Text = forms[819], Value = 3 }, // Frost
new { Text = forms[820], Value = 4 }, // Fan
new { Text = forms[821], Value = 5 }, // Mow
};
var form_giratina = new[] {
new { Text = forms[487], Value = 0 }, // Altered
new { Text = forms[822], Value = 1 }, // Origin
};
var form_shaymin = new[] {
new { Text = forms[492], Value = 0 }, // Land
new { Text = forms[823], Value = 1 }, // Sky
};
var form_arceus = new[] {
new { Text = types[0], Value = 0 }, // Normal
new { Text = types[1], Value = 1 }, // Fighting
new { Text = types[2], Value = 2 }, // Flying
new { Text = types[3], Value = 3 }, // Poison
new { Text = types[4], Value = 4 }, // etc
new { Text = types[5], Value = 5 },
new { Text = types[6], Value = 6 },
new { Text = types[7], Value = 7 },
new { Text = types[8], Value = 8 },
new { Text = types[9], Value = 9 },
new { Text = types[10], Value = 10 },
new { Text = types[11], Value = 11 },
new { Text = types[12], Value = 12 },
new { Text = types[13], Value = 13 },
new { Text = types[14], Value = 14 },
new { Text = types[15], Value = 15 },
new { Text = types[16], Value = 16 },
new { Text = types[17], Value = 17 },
};
var form_basculin = new[] {
new { Text = forms[550], Value = 0 }, // Red
new { Text = forms[842], Value = 1 }, // Blue
};
var form_darmanitan = new[] {
new { Text = forms[555], Value = 0 }, // Standard
new { Text = forms[843], Value = 1 }, // Zen
};
var form_deerling = new[] {
new { Text = forms[585], Value = 0 }, // Spring
new { Text = forms[844], Value = 1 }, // Summer
new { Text = forms[845], Value = 2 }, // Autumn
new { Text = forms[846], Value = 3 }, // Winter
};
var form_gender = new[] {
new { Text = gendersymbols[0], Value = 0 }, // Male
new { Text = gendersymbols[1], Value = 1 }, // Female
};
var form_therian = new[] {
new { Text = forms[641], Value = 0 }, // Incarnate
new { Text = forms[852], Value = 1 }, // Therian
};
var form_kyurem = new[] {
new { Text = types[0], Value = 0 }, // Normal
new { Text = forms[853], Value = 1 }, // White
new { Text = forms[854], Value = 2 }, // Black
};
var form_keldeo = new[] {
new { Text = forms[647], Value = 0 }, // Ordinary
new { Text = forms[855], Value = 1 }, // Resolute
};
var form_meloetta = new[] {
new { Text = forms[648], Value = 0 }, // Aria
new { Text = forms[856], Value = 1 }, // Pirouette
};
var form_genesect = new[] {
new { Text = types[0], Value = 0 }, // Normal
new { Text = types[10], Value = 1 }, // Douse
new { Text = types[12], Value = 2 }, // Shock
new { Text = types[9], Value = 3 }, // Burn
new { Text = types[14], Value = 4 }, // Chill
};
var form_flabebe = new[] {
new { Text = forms[669], Value = 0 }, // Red
new { Text = forms[884], Value = 1 }, // Yellow
new { Text = forms[885], Value = 2 }, // Orange
new { Text = forms[886], Value = 3 }, // Blue
new { Text = forms[887], Value = 4 }, // White
};
var form_floette = new[] {
new { Text = forms[669], Value = 0 }, // Red
new { Text = forms[884], Value = 1 }, // Yellow
new { Text = forms[885], Value = 2 }, // Orange
new { Text = forms[886], Value = 3 }, // Blue
new { Text = forms[887], Value = 4 }, // White
new { Text = forms[888], Value = 5 }, // Eternal
};
var form_furfrou = new[] {
new { Text = forms[676], Value = 0 }, // Natural
new { Text = forms[893], Value = 1 }, // Heart
new { Text = forms[894], Value = 2 }, // Star
new { Text = forms[895], Value = 3 }, // Diamond
new { Text = forms[896], Value = 4 }, // Deputante
new { Text = forms[897], Value = 5 }, // Matron
new { Text = forms[898], Value = 6 }, // Dandy
new { Text = forms[899], Value = 7 }, // La Reine
new { Text = forms[900], Value = 8 }, // Kabuki
new { Text = forms[901], Value = 9 }, // Pharaoh
};
var form_aegislash = new[] {
new { Text = forms[681], Value = 0 }, // Shield
new { Text = forms[903], Value = 1 }, // Blade
};
var form_butterfly = new[] {
new { Text = forms[666], Value = 0 }, // Icy Snow
new { Text = forms[861], Value = 1 }, // Polar
new { Text = forms[862], Value = 2 }, // Tundra
new { Text = forms[863], Value = 3 }, // Continental
new { Text = forms[864], Value = 4 }, // Garden
new { Text = forms[865], Value = 5 }, // Elegant
new { Text = forms[866], Value = 6 }, // Meadow
new { Text = forms[867], Value = 7 }, // Modern
new { Text = forms[868], Value = 8 }, // Marine
new { Text = forms[869], Value = 9 }, // Archipelago
new { Text = forms[870], Value = 10 }, // High-Plains
new { Text = forms[871], Value = 11 }, // Sandstorm
new { Text = forms[872], Value = 12 }, // River
new { Text = forms[873], Value = 13 }, // Monsoon
new { Text = forms[874], Value = 14 }, // Savannah
new { Text = forms[875], Value = 15 }, // Sun
new { Text = forms[876], Value = 16 }, // Ocean
new { Text = forms[877], Value = 17 }, // Jungle
new { Text = forms[878], Value = 18 }, // Fancy
new { Text = forms[879], Value = 19 }, // Poké Ball
};
var form_list = new[] {
new { Text = "", Value = 0}, // None
};
var form_pump = new[] {
new { Text = forms[904], Value = 0 }, // Small
new { Text = forms[710], Value = 1 }, // Average
new { Text = forms[905], Value = 2 }, // Large
new { Text = forms[907], Value = 3 }, // Super
};
var form_mega = new[] {
new { Text = types[0], Value = 0}, // Normal
new { Text = forms[723], Value = 1}, // Mega
};
var form_megaxy = new[] {
new { Text = types[0], Value = 0}, // Normal
new { Text = forms[724], Value = 1}, // Mega X
new { Text = forms[725], Value = 2}, // Mega Y
};
if (gender == 0)
Label_Gender.Text = gendersymbols[0]; // Male
else if (gender == 1)
Label_Gender.Text = gendersymbols[1]; // Female
else
Label_Gender.Text = gendersymbols[2]; // Genderless
var form_primal = new[] {
new { Text = types[0], Value = 0},
new { Text = forms[800], Value = 1},
};
var form_hoopa = new[] {
new { Text = types[0], Value = 0},
new { Text = forms[912], Value = 1},
};
var form_pikachu = new[] {
new { Text = types[0], Value = 0}, // Normal
new { Text = forms[729], Value = 1}, // Rockstar
new { Text = forms[730], Value = 2}, // Belle
new { Text = forms[731], Value = 3}, // Pop
new { Text = forms[732], Value = 4}, // PhD
new { Text = forms[733], Value = 5}, // Libre
new { Text = forms[734], Value = 6}, // Cosplay
};
cb.DataSource = form_list;
cb.DisplayMember = "Text";
cb.ValueMember = "Value";
// Mega List
int[] mspec = { // XY
003, 009, 065, 094, 115, 127, 130, 142, 181, 212, 214, 229, 248, 257, 282, 303, 306, 308, 310, 354, 359, 380, 381, 445, 448, 460,
// ORAS
015, 018, 080, 208, 254, 260, 302, 319, 323, 334, 362, 373, 376, 384, 428, 475, 531, 719,
};
for (int i = 0; i < mspec.Length; i++)
{
if (mspec[i] == species)
{
cb.DataSource = form_mega;
cb.Enabled = true; // Mega Form Selection
return;
}
}
// MegaXY List
if ((species == 6) || (species == 150))
{
cb.DataSource = form_megaxy;
cb.Enabled = true; // Mega Form Selection
return;
}
// Regular Form List
if (species == 025) { form_list = form_pikachu; }
else if (species == 201) { form_list = form_unown; }
else if (species == 351) { form_list = form_castform; }
else if (species == 386) { form_list = form_deoxys; }
else if (species == 421) { form_list = form_cherrim; }
else if (species == 479) { form_list = form_rotom; }
else if (species == 487) { form_list = form_giratina; }
else if (species == 492) { form_list = form_shaymin; }
else if (species == 493) { form_list = form_arceus; }
else if (species == 550) { form_list = form_basculin; }
else if (species == 555) { form_list = form_darmanitan; }
else if (species == 646) { form_list = form_kyurem; }
else if (species == 647) { form_list = form_keldeo; }
else if (species == 648) { form_list = form_meloetta; }
else if (species == 649) { form_list = form_genesect; }
else if (species == 676) { form_list = form_furfrou; }
else if (species == 681) { form_list = form_aegislash; }
else if (species == 670) { form_list = form_floette; }
else if ((species == 669) || (species == 671)) { form_list = form_flabebe; }
else if ((species == 412) || (species == 413)) { form_list = form_burmy; }
else if ((species == 422) || (species == 423)) { form_list = form_shellos; }
else if ((species == 585) || (species == 586)) { form_list = form_deerling; }
else if ((species == 710) || (species == 711)) { form_list = form_pump; }
else if ((species == 666) || (species == 665) || (species == 664)) { form_list = form_butterfly; }
else if ((species == 592) || (species == 593) || (species == 678)) { form_list = form_gender; }
else if ((species == 641) || (species == 642) || (species == 645)) { form_list = form_therian; }
// ORAS
else if (species == 382 || species == 383) { form_list = form_primal; }
else if (species == 720) { form_list = form_hoopa; }
Write_Entry(null, null);
}
private void UpdateImage(int species, int form, int item, int gender, bool shiny)
{
string file = "";
if (species == 0)
{ bpkx.Image = (Image)Properties.Resources.ResourceManager.GetObject("_0"); }
else
{
cb.Enabled = false;
return;
};
file = "_" + species.ToString();
if (form > 0) // Alt Form Handling
file = file + "_" + form.ToString();
else if ((gender == 1) && (species == 521 || species == 668)) // Unfezant & Pyroar
file = file = "_" + species.ToString() + "f";
}
cb.DataSource = form_list;
cb.Enabled = true;
Image baseImage = (Image)Properties.Resources.ResourceManager.GetObject(file);
if (shiny)
{ // Is Shiny
// Redraw our image
baseImage = PKHeX.Util.LayerImage(baseImage, Properties.Resources.rare_icon, 0, 0, 0.7);
}
if (item > 0)
{
// Has Item
Image itemimg = (Image)Properties.Resources.ResourceManager.GetObject("item_" + item.ToString());
if (itemimg == null) itemimg = Properties.Resources.helditem;
// Redraw
baseImage = PKHeX.Util.LayerImage(baseImage, itemimg, 22 + (15 - itemimg.Width) / 2, 15 + (15 - itemimg.Height), 1);
}
bpkx.Image = baseImage;
editing = true;
}
private void B_CopyText_Click(object sender, EventArgs e)
{
try { Clipboard.SetText(RTB.Text); }
catch { };
}
}
}