Add export to showdown for tab viewer

This commit is contained in:
Kurt
2015-12-09 19:44:43 -08:00
parent 5cf880250f
commit 8fa502832a

View File

@@ -1782,7 +1782,22 @@ private void updateNatureModification(object sender, EventArgs e)
}
private void updateNickname(object sender, EventArgs e)
{
if (fieldsInitialized && ModifierKeys == Keys.Control) { getShowdownSet(); return; }
if (fieldsInitialized && ModifierKeys == Keys.Control) // Import Showdown
{
getShowdownSet();
return;
}
if (fieldsInitialized && ModifierKeys == Keys.Alt) // Export Showdown
{
if (!verifiedPKX())
{
Util.Alert("Fix data before exporting.");
return;
}
Clipboard.SetText(new PK6(preparepkx()).ShowdownText);
Util.Alert("Exported Showdown Set to Clipboard:", Clipboard.GetText());
return;
}
if (!fieldsInitialized || (CHK_Nicknamed.Checked)) return;
// Fetch Current Species and set it as Nickname Text