mirror of
https://github.com/kwsch/PKHeX
synced 2024-09-20 14:21:59 +00:00
Enable Game Start Date Editor For Sword and Shield (#4029)
This commit is contained in:
parent
1c097598e7
commit
176d0d670a
1 changed files with 7 additions and 6 deletions
|
@ -97,12 +97,10 @@ public partial class SAV_Trainer8 : Form
|
||||||
L_LastSaved.Visible = CAL_LastSavedDate.Visible = CAL_LastSavedTime.Visible = false;
|
L_LastSaved.Visible = CAL_LastSavedDate.Visible = CAL_LastSavedTime.Visible = false;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
L_Started.Visible = CAL_AdventureStartDate.Visible = CAL_AdventureStartTime.Visible = false;
|
CAL_AdventureStartTime.Visible = false;
|
||||||
|
CAL_AdventureStartDate.Value = new DateTime(SAV.TrainerCard.StartedYear, SAV.TrainerCard.StartedMonth, SAV.TrainerCard.StartedDay);
|
||||||
|
|
||||||
L_Fame.Visible = CAL_HoFDate.Visible = CAL_HoFTime.Visible = false;
|
L_Fame.Visible = CAL_HoFDate.Visible = CAL_HoFTime.Visible = false;
|
||||||
// DateUtil.GetDateTime2000(SAV.SecondsToStart, out var date, out var time);
|
|
||||||
// CAL_AdventureStartDate.Value = date;
|
|
||||||
// CAL_AdventureStartTime.Value = time;
|
|
||||||
//
|
|
||||||
// DateUtil.GetDateTime2000(SAV.SecondsToFame, out date, out time);
|
// DateUtil.GetDateTime2000(SAV.SecondsToFame, out date, out time);
|
||||||
// CAL_HoFDate.Value = date;
|
// CAL_HoFDate.Value = date;
|
||||||
// CAL_HoFTime.Value = time;
|
// CAL_HoFTime.Value = time;
|
||||||
|
@ -171,7 +169,10 @@ public partial class SAV_Trainer8 : Form
|
||||||
SAV.PlayedMinutes = ushort.Parse(MT_Minutes.Text) % 60;
|
SAV.PlayedMinutes = ushort.Parse(MT_Minutes.Text) % 60;
|
||||||
SAV.PlayedSeconds = ushort.Parse(MT_Seconds.Text) % 60;
|
SAV.PlayedSeconds = ushort.Parse(MT_Seconds.Text) % 60;
|
||||||
|
|
||||||
//SAV.SecondsToStart = (uint)DateUtil.GetSecondsFrom2000(CAL_AdventureStartDate.Value, CAL_AdventureStartTime.Value);
|
SAV.TrainerCard.StartedYear = (ushort)CAL_AdventureStartDate.Value.Year;
|
||||||
|
SAV.TrainerCard.StartedMonth = (byte)CAL_AdventureStartDate.Value.Month;
|
||||||
|
SAV.TrainerCard.StartedDay = (byte)CAL_AdventureStartDate.Value.Day;
|
||||||
|
|
||||||
//SAV.SecondsToFame = (uint)DateUtil.GetSecondsFrom2000(CAL_HoFDate.Value, CAL_HoFTime.Value);
|
//SAV.SecondsToFame = (uint)DateUtil.GetSecondsFrom2000(CAL_HoFDate.Value, CAL_HoFTime.Value);
|
||||||
//
|
//
|
||||||
//if (SAV.Played.LastSavedDate.HasValue)
|
//if (SAV.Played.LastSavedDate.HasValue)
|
||||||
|
|
Loading…
Reference in a new issue