Show other TID/SID in hover tooltip

This commit is contained in:
Kurt 2018-05-03 22:44:39 -07:00
parent d15b0b439c
commit 676b5905bf

View file

@ -20,6 +20,11 @@ namespace PKHeX.WinForms.Controls
if (tsv < 0) if (tsv < 0)
return; return;
string IDstr = $"TSV: {tsv:d4}"; string IDstr = $"TSV: {tsv:d4}";
var repack = Trainer.SID * 1_000_000 + Trainer.TID;
string supplement = Format < 7
? $"G7ID: ({repack / 1_000_000:D4}){repack % 1_000_000:D6}"
: $"ID: {Trainer.TID:D5}/{Trainer.SID:D5}";
IDstr += Environment.NewLine + supplement;
TSVTooltip.SetToolTip(TB_TID, IDstr); TSVTooltip.SetToolTip(TB_TID, IDstr);
TSVTooltip.SetToolTip(TB_SID, IDstr); TSVTooltip.SetToolTip(TB_SID, IDstr);
TSVTooltip.SetToolTip(TB_TID7, IDstr); TSVTooltip.SetToolTip(TB_TID7, IDstr);