Show SID7 on hover

Closes #1494
This commit is contained in:
Kurt 2017-09-26 23:14:29 -07:00
parent 8b02f05bd5
commit c270479bf9
2 changed files with 2 additions and 1 deletions

View file

@ -287,6 +287,7 @@ namespace PKHeX.Core
public virtual bool IsShiny => TSV == PSV; public virtual bool IsShiny => TSV == PSV;
public virtual bool Locked { get => false; set { } } public virtual bool Locked { get => false; set { } }
public int TrainerID7 => (int)((uint)(TID | (SID << 16)) % 1000000); public int TrainerID7 => (int)((uint)(TID | (SID << 16)) % 1000000);
public int TrainerSID7 => (int)((uint)(TID | (SID << 16)) / 1000000);
public bool VC2 => Version >= 39 && Version <= 41; public bool VC2 => Version >= 39 && Version <= 41;
public bool VC1 => Version >= 35 && Version <= 38; public bool VC1 => Version >= 35 && Version <= 38;
public bool Horohoro => Version == 34; public bool Horohoro => Version == 34;

View file

@ -1619,7 +1619,7 @@ namespace PKHeX.WinForms.Controls
string IDstr = $"TSV: {pkm.TSV:d4}"; string IDstr = $"TSV: {pkm.TSV:d4}";
if (pkm.Format > 6) if (pkm.Format > 6)
IDstr += Environment.NewLine + $"G7TID: {pkm.TrainerID7:d6}"; IDstr += Environment.NewLine + $"G7TID: ({pkm.TrainerSID7:d4}){pkm.TrainerID7:d6}";
Tip1.SetToolTip(TB_TID, IDstr); Tip1.SetToolTip(TB_TID, IDstr);
Tip2.SetToolTip(TB_SID, IDstr); Tip2.SetToolTip(TB_SID, IDstr);