private void ReloadQRData(PK7 pk7) { var box = (int)NUD_Box.Value - 1; var slot = (int)NUD_Slot.Value - 1; var copies = (int)NUD_Copies.Value; extraText = $" (Box {box + 1}, Slot {slot + 1}, {copies} cop{(copies > 1 ? "ies" : "y")})"; qr = QREncode.GenerateQRCode7(pk7, box, slot, copies); }
public static Bitmap GetFullQR(PKM pkm) { var icon = GetSprite(pkm); var qr = pkm is PK7 pk7?QREncode.GenerateQRCode7(pk7) : QREncode.GenerateQRCode(pkm); var lines = pkm.GetQRLines(); var tag = $"PKHeX Discord - {DateTime.Now:yy/MM/dd} ({pkm.GetType().Name})"; return(QRImageUtil.GetQRImageExtended(font, qr, icon, Math.Max(qr.Width, 370), qr.Height + 56, lines, tag)); }