mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-27 00:24:11 -05:00
Add report exporting to clipboard
Closes #1141 cleaner look maybe in the future (colorized)
This commit is contained in:
@@ -2980,7 +2980,15 @@ private void showLegality(PKM pk, bool tabs, bool verbose, bool skipMoveRepop =
|
||||
}
|
||||
if (tabs)
|
||||
updateLegality(la, skipMoveRepop);
|
||||
WinFormsUtil.Alert(la.Report(verbose));
|
||||
var report = la.Report(verbose);
|
||||
if (verbose)
|
||||
{
|
||||
var dr = WinFormsUtil.Prompt(MessageBoxButtons.YesNo, report, "Copy report to Clipboard?");
|
||||
if (dr == DialogResult.Yes)
|
||||
Clipboard.SetText(report);
|
||||
}
|
||||
else
|
||||
WinFormsUtil.Alert(report);
|
||||
}
|
||||
private void updateLegality(LegalityAnalysis la = null, bool skipMoveRepop = false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user