mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-19 08:11:16 -05:00
parent
86796cd67a
commit
f208df4070
|
|
@ -93,6 +93,8 @@ private void InitializeComponent()
|
|||
this.L_SinglesC = new System.Windows.Forms.Label();
|
||||
this.TC_Editor = new System.Windows.Forms.TabControl();
|
||||
this.Tab_Overview = new System.Windows.Forms.TabPage();
|
||||
this.TB_TrainerCardName = new System.Windows.Forms.TextBox();
|
||||
this.L_TRCardName = new System.Windows.Forms.Label();
|
||||
this.GB_Stats = new System.Windows.Forms.GroupBox();
|
||||
this.NUD_BP = new System.Windows.Forms.NumericUpDown();
|
||||
this.L_BP = new System.Windows.Forms.Label();
|
||||
|
|
@ -173,6 +175,7 @@ private void InitializeComponent()
|
|||
this.L_TrainerName.Size = new System.Drawing.Size(87, 16);
|
||||
this.L_TrainerName.TabIndex = 3;
|
||||
this.L_TrainerName.Text = "Trainer Name:";
|
||||
this.L_TrainerName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// MT_Money
|
||||
//
|
||||
|
|
@ -643,6 +646,8 @@ private void InitializeComponent()
|
|||
//
|
||||
// Tab_Overview
|
||||
//
|
||||
this.Tab_Overview.Controls.Add(this.TB_TrainerCardName);
|
||||
this.Tab_Overview.Controls.Add(this.L_TRCardName);
|
||||
this.Tab_Overview.Controls.Add(this.GB_Stats);
|
||||
this.Tab_Overview.Controls.Add(this.trainerID1);
|
||||
this.Tab_Overview.Controls.Add(this.GB_Adventure);
|
||||
|
|
@ -663,6 +668,27 @@ private void InitializeComponent()
|
|||
this.Tab_Overview.Text = "Overview";
|
||||
this.Tab_Overview.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// TB_TrainerCardName
|
||||
//
|
||||
this.TB_TrainerCardName.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.TB_TrainerCardName.Location = new System.Drawing.Point(331, 7);
|
||||
this.TB_TrainerCardName.MaxLength = 12;
|
||||
this.TB_TrainerCardName.Name = "TB_TrainerCardName";
|
||||
this.TB_TrainerCardName.Size = new System.Drawing.Size(93, 20);
|
||||
this.TB_TrainerCardName.TabIndex = 68;
|
||||
this.TB_TrainerCardName.Text = "WWWWWWWWWWWW";
|
||||
this.TB_TrainerCardName.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.TB_TrainerCardName.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ClickOT);
|
||||
//
|
||||
// L_TRCardName
|
||||
//
|
||||
this.L_TRCardName.Location = new System.Drawing.Point(209, 9);
|
||||
this.L_TRCardName.Name = "L_TRCardName";
|
||||
this.L_TRCardName.Size = new System.Drawing.Size(117, 16);
|
||||
this.L_TRCardName.TabIndex = 69;
|
||||
this.L_TRCardName.Text = "Trainer Card Name:";
|
||||
this.L_TRCardName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// GB_Stats
|
||||
//
|
||||
this.GB_Stats.Controls.Add(this.NUD_BP);
|
||||
|
|
@ -1113,5 +1139,7 @@ private void InitializeComponent()
|
|||
private Subforms.Save_Editors.TrainerStat TrainerStats;
|
||||
private System.Windows.Forms.NumericUpDown NUD_BP;
|
||||
private System.Windows.Forms.Label L_BP;
|
||||
private System.Windows.Forms.TextBox TB_TrainerCardName;
|
||||
private System.Windows.Forms.Label L_TRCardName;
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ public SAV_Trainer8(SaveFile sav)
|
|||
//Loading = true;
|
||||
if (Main.Unicode)
|
||||
{
|
||||
TB_OTName.Font = FontUtil.GetPKXFont();
|
||||
TB_OTName.Font = TB_TrainerCardName.Font = FontUtil.GetPKXFont();
|
||||
}
|
||||
|
||||
B_MaxCash.Click += (sender, e) => MT_Money.Text = SAV.MaxMoney.ToString();
|
||||
|
|
@ -54,6 +54,7 @@ private void GetTextBoxes()
|
|||
|
||||
// Display Data
|
||||
TB_OTName.Text = SAV.OT;
|
||||
TB_TrainerCardName.Text = SAV.Blocks.TrainerCard.OT;
|
||||
trainerID1.LoadIDValues(SAV);
|
||||
MT_Money.Text = SAV.Money.ToString();
|
||||
CB_Language.SelectedValue = SAV.Language;
|
||||
|
|
@ -108,6 +109,7 @@ private void SaveTrainerInfo()
|
|||
SAV.Money = Util.ToUInt32(MT_Money.Text);
|
||||
SAV.Language = WinFormsUtil.GetIndex(CB_Language);
|
||||
SAV.OT = TB_OTName.Text;
|
||||
SAV.Blocks.TrainerCard.OT = TB_TrainerCardName.Text;
|
||||
|
||||
SAV.Misc.BP = (int)NUD_BP.Value;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user