diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen3/SAV_RTC3.Designer.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen3/SAV_RTC3.Designer.cs index 0f65b931b..0082ce9a2 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen3/SAV_RTC3.Designer.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen3/SAV_RTC3.Designer.cs @@ -50,6 +50,7 @@ private void InitializeComponent() this.NUD_IMinute = new System.Windows.Forms.NumericUpDown(); this.NUD_IHour = new System.Windows.Forms.NumericUpDown(); this.NUD_IDay = new System.Windows.Forms.NumericUpDown(); + this.B_BerryFix = new System.Windows.Forms.Button(); this.GB_Passed.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.NUD_ESecond)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.NUD_EMinute)).BeginInit(); @@ -329,11 +330,23 @@ private void InitializeComponent() this.NUD_IDay.TabIndex = 14; this.NUD_IDay.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // + // B_BerryFix + // + this.B_BerryFix.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.B_BerryFix.Location = new System.Drawing.Point(93, 141); + this.B_BerryFix.Name = "B_BerryFix"; + this.B_BerryFix.Size = new System.Drawing.Size(66, 23); + this.B_BerryFix.TabIndex = 78; + this.B_BerryFix.Text = "Berry Fix"; + this.B_BerryFix.UseVisualStyleBackColor = true; + this.B_BerryFix.Click += new System.EventHandler(this.B_BerryFix_Click); + // // SAV_RTC3 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(331, 176); + this.Controls.Add(this.B_BerryFix); this.Controls.Add(this.B_Reset); this.Controls.Add(this.GB_Passed); this.Controls.Add(this.GB_Initial); @@ -385,5 +398,6 @@ private void InitializeComponent() private System.Windows.Forms.NumericUpDown NUD_IDay; private System.Windows.Forms.Label L_IDay; private System.Windows.Forms.Label L_IHour; + private System.Windows.Forms.Button B_BerryFix; } } diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen3/SAV_RTC3.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen3/SAV_RTC3.cs index 99f142472..3f680a5d2 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen3/SAV_RTC3.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen3/SAV_RTC3.cs @@ -64,6 +64,13 @@ private void B_Reset_Click(object sender, EventArgs e) { NUD_IDay.Value = NUD_IHour.Value = NUD_IMinute.Value = NUD_ISecond.Value = 0; NUD_EDay.Value = NUD_EHour.Value = NUD_EMinute.Value = NUD_ESecond.Value = 0; + System.Media.SystemSounds.Asterisk.Play(); + } + + private void B_BerryFix_Click(object sender, EventArgs e) + { + NUD_EDay.Value = Math.Max(2*366 + 2, NUD_EDay.Value); // advance + System.Media.SystemSounds.Asterisk.Play(); } } }