diff --git a/PKX/f1-Main.Designer.cs b/PKX/f1-Main.Designer.cs
index 3b7b3625a..f1503c2e0 100644
--- a/PKX/f1-Main.Designer.cs
+++ b/PKX/f1-Main.Designer.cs
@@ -98,6 +98,12 @@ public void InitializeComponent()
this.CAL_MetDate = new System.Windows.Forms.DateTimePicker();
this.CB_EncounterType = new System.Windows.Forms.ComboBox();
this.Tab_Stats = new System.Windows.Forms.TabPage();
+ this.Stat_SPE = new System.Windows.Forms.MaskedTextBox();
+ this.Stat_SPD = new System.Windows.Forms.MaskedTextBox();
+ this.Stat_SPA = new System.Windows.Forms.MaskedTextBox();
+ this.Stat_DEF = new System.Windows.Forms.MaskedTextBox();
+ this.Stat_ATK = new System.Windows.Forms.MaskedTextBox();
+ this.Stat_HP = new System.Windows.Forms.MaskedTextBox();
this.CB_HPType = new System.Windows.Forms.ComboBox();
this.CHK_HackedStats = new System.Windows.Forms.CheckBox();
this.Label_CharacteristicPrefix = new System.Windows.Forms.Label();
@@ -143,12 +149,6 @@ public void InitializeComponent()
this.Label_ATK = new System.Windows.Forms.Label();
this.Label_HP = new System.Windows.Forms.Label();
this.TB_EVTotal = new System.Windows.Forms.TextBox();
- this.Stat_SPE = new System.Windows.Forms.TextBox();
- this.Stat_SPD = new System.Windows.Forms.TextBox();
- this.Stat_SPA = new System.Windows.Forms.TextBox();
- this.Stat_DEF = new System.Windows.Forms.TextBox();
- this.Stat_ATK = new System.Windows.Forms.TextBox();
- this.Stat_HP = new System.Windows.Forms.TextBox();
this.Tab_Attacks = new System.Windows.Forms.TabPage();
this.GB_RelearnMoves = new System.Windows.Forms.GroupBox();
this.CB_RelearnMove4 = new System.Windows.Forms.ComboBox();
@@ -212,12 +212,26 @@ public void InitializeComponent()
this.Menu_File = new System.Windows.Forms.ToolStripMenuItem();
this.Menu_Open = new System.Windows.Forms.ToolStripMenuItem();
this.Menu_Save = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_ExportSAV = new System.Windows.Forms.ToolStripMenuItem();
this.Menu_Exit = new System.Windows.Forms.ToolStripMenuItem();
this.Menu_Tools = new System.Windows.Forms.ToolStripMenuItem();
- this.Menu_ToggleBoxUI = new System.Windows.Forms.ToolStripMenuItem();
- this.Menu_BoxIO = new System.Windows.Forms.ToolStripMenuItem();
- this.reportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.codeGeneratorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_Showdown = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_ShowdownImportPK6 = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_ShowdownExportPK6 = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_ShowdownExportParty = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_ShowdownExportBattleBox = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_CyberGadget = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_CodeGenerator = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_OpenTemp = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_OpenCache = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_Data = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_LoadBoxes = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_DumpBoxes = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_Report = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_Database = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_Other = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_OpenSDF = new System.Windows.Forms.ToolStripMenuItem();
+ this.Menu_OpenSDB = new System.Windows.Forms.ToolStripMenuItem();
this.Menu_Options = new System.Windows.Forms.ToolStripMenuItem();
this.Menu_Language = new System.Windows.Forms.ToolStripMenuItem();
this.CB_MainLanguage = new System.Windows.Forms.ToolStripComboBox();
@@ -312,14 +326,15 @@ public void InitializeComponent()
this.subepkx2 = new System.Windows.Forms.PictureBox();
this.subepkx3 = new System.Windows.Forms.PictureBox();
this.Tab_SAV = new System.Windows.Forms.TabPage();
- this.B_OpenDB = new System.Windows.Forms.Button();
- this.B_3DSSETemp = new System.Windows.Forms.Button();
+ this.L_Secure2 = new System.Windows.Forms.Label();
+ this.TB_Secure2 = new System.Windows.Forms.TextBox();
+ this.L_Secure1 = new System.Windows.Forms.Label();
+ this.TB_Secure1 = new System.Windows.Forms.TextBox();
this.B_JPEG = new System.Windows.Forms.Button();
this.L_GameSync = new System.Windows.Forms.Label();
this.TB_GameSync = new System.Windows.Forms.TextBox();
this.B_SaveBoxBin = new System.Windows.Forms.Button();
this.B_VerifyCHK = new System.Windows.Forms.Button();
- this.B_ExportSAV = new System.Windows.Forms.Button();
this.B_OpenHallofFame = new System.Windows.Forms.Button();
this.B_OUTPasserby = new System.Windows.Forms.Button();
this.B_OpenPokepuffs = new System.Windows.Forms.Button();
@@ -335,10 +350,6 @@ public void InitializeComponent()
this.B_OpenSuperTraining = new System.Windows.Forms.Button();
this.dragout = new System.Windows.Forms.PictureBox();
this.L_QR = new System.Windows.Forms.Label();
- this.L_Secure1 = new System.Windows.Forms.Label();
- this.TB_Secure1 = new System.Windows.Forms.TextBox();
- this.L_Secure2 = new System.Windows.Forms.Label();
- this.TB_Secure2 = new System.Windows.Forms.TextBox();
this.tabMain.SuspendLayout();
this.Tab_Main.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Label_IsShiny)).BeginInit();
@@ -639,6 +650,7 @@ public void InitializeComponent()
this.TB_Friendship.Name = "TB_Friendship";
this.TB_Friendship.Size = new System.Drawing.Size(22, 20);
this.TB_Friendship.TabIndex = 11;
+ this.TB_Friendship.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.TB_Friendship.TextChanged += new System.EventHandler(this.update255_MTB);
//
// TB_Level
@@ -1231,6 +1243,12 @@ public void InitializeComponent()
// Tab_Stats
//
this.Tab_Stats.AllowDrop = true;
+ this.Tab_Stats.Controls.Add(this.Stat_SPE);
+ this.Tab_Stats.Controls.Add(this.Stat_SPD);
+ this.Tab_Stats.Controls.Add(this.Stat_SPA);
+ this.Tab_Stats.Controls.Add(this.Stat_DEF);
+ this.Tab_Stats.Controls.Add(this.Stat_ATK);
+ this.Tab_Stats.Controls.Add(this.Stat_HP);
this.Tab_Stats.Controls.Add(this.CB_HPType);
this.Tab_Stats.Controls.Add(this.CHK_HackedStats);
this.Tab_Stats.Controls.Add(this.Label_CharacteristicPrefix);
@@ -1276,12 +1294,6 @@ public void InitializeComponent()
this.Tab_Stats.Controls.Add(this.Label_ATK);
this.Tab_Stats.Controls.Add(this.Label_HP);
this.Tab_Stats.Controls.Add(this.TB_EVTotal);
- this.Tab_Stats.Controls.Add(this.Stat_SPE);
- this.Tab_Stats.Controls.Add(this.Stat_SPD);
- this.Tab_Stats.Controls.Add(this.Stat_SPA);
- this.Tab_Stats.Controls.Add(this.Stat_DEF);
- this.Tab_Stats.Controls.Add(this.Stat_ATK);
- this.Tab_Stats.Controls.Add(this.Stat_HP);
this.Tab_Stats.Location = new System.Drawing.Point(4, 22);
this.Tab_Stats.Name = "Tab_Stats";
this.Tab_Stats.Padding = new System.Windows.Forms.Padding(3);
@@ -1290,6 +1302,79 @@ public void InitializeComponent()
this.Tab_Stats.Text = "Stats";
this.Tab_Stats.UseVisualStyleBackColor = true;
//
+ // Stat_SPE
+ //
+ this.Stat_SPE.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.Stat_SPE.Enabled = false;
+ this.Stat_SPE.Location = new System.Drawing.Point(167, 129);
+ this.Stat_SPE.Mask = "00000";
+ this.Stat_SPE.Name = "Stat_SPE";
+ this.Stat_SPE.PromptChar = ' ';
+ this.Stat_SPE.Size = new System.Drawing.Size(31, 20);
+ this.Stat_SPE.TabIndex = 50;
+ this.Stat_SPE.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // Stat_SPD
+ //
+ this.Stat_SPD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.Stat_SPD.Enabled = false;
+ this.Stat_SPD.Location = new System.Drawing.Point(167, 107);
+ this.Stat_SPD.Mask = "00000";
+ this.Stat_SPD.Name = "Stat_SPD";
+ this.Stat_SPD.PromptChar = ' ';
+ this.Stat_SPD.Size = new System.Drawing.Size(31, 20);
+ this.Stat_SPD.TabIndex = 49;
+ this.Stat_SPD.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // Stat_SPA
+ //
+ this.Stat_SPA.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.Stat_SPA.Enabled = false;
+ this.Stat_SPA.Location = new System.Drawing.Point(167, 85);
+ this.Stat_SPA.Mask = "00000";
+ this.Stat_SPA.Name = "Stat_SPA";
+ this.Stat_SPA.PromptChar = ' ';
+ this.Stat_SPA.Size = new System.Drawing.Size(31, 20);
+ this.Stat_SPA.TabIndex = 48;
+ this.Stat_SPA.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // Stat_DEF
+ //
+ this.Stat_DEF.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.Stat_DEF.Enabled = false;
+ this.Stat_DEF.Location = new System.Drawing.Point(167, 63);
+ this.Stat_DEF.Mask = "00000";
+ this.Stat_DEF.Name = "Stat_DEF";
+ this.Stat_DEF.PromptChar = ' ';
+ this.Stat_DEF.Size = new System.Drawing.Size(31, 20);
+ this.Stat_DEF.TabIndex = 47;
+ this.Stat_DEF.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // Stat_ATK
+ //
+ this.Stat_ATK.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.Stat_ATK.Enabled = false;
+ this.Stat_ATK.Location = new System.Drawing.Point(167, 41);
+ this.Stat_ATK.Mask = "00000";
+ this.Stat_ATK.Name = "Stat_ATK";
+ this.Stat_ATK.PromptChar = ' ';
+ this.Stat_ATK.Size = new System.Drawing.Size(31, 20);
+ this.Stat_ATK.TabIndex = 46;
+ this.Stat_ATK.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // Stat_HP
+ //
+ this.Stat_HP.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.Stat_HP.Enabled = false;
+ this.Stat_HP.Location = new System.Drawing.Point(167, 19);
+ this.Stat_HP.Mask = "00000";
+ this.Stat_HP.Name = "Stat_HP";
+ this.Stat_HP.PromptChar = ' ';
+ this.Stat_HP.Size = new System.Drawing.Size(31, 20);
+ this.Stat_HP.TabIndex = 45;
+ this.Stat_HP.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.Stat_HP.TextChanged += new System.EventHandler(this.updateHackedStatText);
+ //
// CB_HPType
//
this.CB_HPType.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
@@ -1763,72 +1848,6 @@ public void InitializeComponent()
this.TB_EVTotal.TabIndex = 18;
this.TB_EVTotal.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
- // Stat_SPE
- //
- this.Stat_SPE.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Stat_SPE.Enabled = false;
- this.Stat_SPE.Location = new System.Drawing.Point(167, 129);
- this.Stat_SPE.MaxLength = 5;
- this.Stat_SPE.Name = "Stat_SPE";
- this.Stat_SPE.Size = new System.Drawing.Size(31, 20);
- this.Stat_SPE.TabIndex = 17;
- this.Stat_SPE.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // Stat_SPD
- //
- this.Stat_SPD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Stat_SPD.Enabled = false;
- this.Stat_SPD.Location = new System.Drawing.Point(167, 107);
- this.Stat_SPD.MaxLength = 5;
- this.Stat_SPD.Name = "Stat_SPD";
- this.Stat_SPD.Size = new System.Drawing.Size(31, 20);
- this.Stat_SPD.TabIndex = 16;
- this.Stat_SPD.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // Stat_SPA
- //
- this.Stat_SPA.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Stat_SPA.Enabled = false;
- this.Stat_SPA.Location = new System.Drawing.Point(167, 85);
- this.Stat_SPA.MaxLength = 5;
- this.Stat_SPA.Name = "Stat_SPA";
- this.Stat_SPA.Size = new System.Drawing.Size(31, 20);
- this.Stat_SPA.TabIndex = 15;
- this.Stat_SPA.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // Stat_DEF
- //
- this.Stat_DEF.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Stat_DEF.Enabled = false;
- this.Stat_DEF.Location = new System.Drawing.Point(167, 63);
- this.Stat_DEF.MaxLength = 5;
- this.Stat_DEF.Name = "Stat_DEF";
- this.Stat_DEF.Size = new System.Drawing.Size(31, 20);
- this.Stat_DEF.TabIndex = 14;
- this.Stat_DEF.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // Stat_ATK
- //
- this.Stat_ATK.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Stat_ATK.Enabled = false;
- this.Stat_ATK.Location = new System.Drawing.Point(167, 41);
- this.Stat_ATK.MaxLength = 5;
- this.Stat_ATK.Name = "Stat_ATK";
- this.Stat_ATK.Size = new System.Drawing.Size(31, 20);
- this.Stat_ATK.TabIndex = 13;
- this.Stat_ATK.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // Stat_HP
- //
- this.Stat_HP.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.Stat_HP.Enabled = false;
- this.Stat_HP.Location = new System.Drawing.Point(167, 19);
- this.Stat_HP.MaxLength = 5;
- this.Stat_HP.Name = "Stat_HP";
- this.Stat_HP.Size = new System.Drawing.Size(31, 20);
- this.Stat_HP.TabIndex = 12;
- this.Stat_HP.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
// Tab_Attacks
//
this.Tab_Attacks.AllowDrop = true;
@@ -2603,6 +2622,7 @@ public void InitializeComponent()
this.Menu_File.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Menu_Open,
this.Menu_Save,
+ this.Menu_ExportSAV,
this.Menu_Exit});
this.Menu_File.Name = "Menu_File";
this.Menu_File.Size = new System.Drawing.Size(37, 20);
@@ -2613,7 +2633,7 @@ public void InitializeComponent()
this.Menu_Open.Name = "Menu_Open";
this.Menu_Open.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
this.Menu_Open.ShowShortcutKeys = false;
- this.Menu_Open.Size = new System.Drawing.Size(114, 22);
+ this.Menu_Open.Size = new System.Drawing.Size(133, 22);
this.Menu_Open.Text = "&Open...";
this.Menu_Open.Click += new System.EventHandler(this.mainMenuOpen);
//
@@ -2622,57 +2642,174 @@ public void InitializeComponent()
this.Menu_Save.Name = "Menu_Save";
this.Menu_Save.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
this.Menu_Save.ShowShortcutKeys = false;
- this.Menu_Save.Size = new System.Drawing.Size(114, 22);
- this.Menu_Save.Text = "&Save as...";
+ this.Menu_Save.Size = new System.Drawing.Size(133, 22);
+ this.Menu_Save.Text = "&Save PK6...";
this.Menu_Save.Click += new System.EventHandler(this.mainMenuSave);
//
+ // Menu_ExportSAV
+ //
+ this.Menu_ExportSAV.Name = "Menu_ExportSAV";
+ this.Menu_ExportSAV.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.E)));
+ this.Menu_ExportSAV.ShowShortcutKeys = false;
+ this.Menu_ExportSAV.Size = new System.Drawing.Size(133, 22);
+ this.Menu_ExportSAV.Text = "&Export SAV...";
+ this.Menu_ExportSAV.Click += new System.EventHandler(this.clickExportSAV);
+ //
// Menu_Exit
//
this.Menu_Exit.Name = "Menu_Exit";
- this.Menu_Exit.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.E)));
+ this.Menu_Exit.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q)));
this.Menu_Exit.ShowShortcutKeys = false;
- this.Menu_Exit.Size = new System.Drawing.Size(114, 22);
- this.Menu_Exit.Text = "&Exit";
+ this.Menu_Exit.Size = new System.Drawing.Size(133, 22);
+ this.Menu_Exit.Text = "&Quit";
this.Menu_Exit.Click += new System.EventHandler(this.mainMenuExit);
//
// Menu_Tools
//
this.Menu_Tools.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.Menu_ToggleBoxUI,
- this.Menu_BoxIO,
- this.reportToolStripMenuItem,
- this.codeGeneratorToolStripMenuItem});
+ this.Menu_Showdown,
+ this.Menu_CyberGadget,
+ this.Menu_Data,
+ this.Menu_Other});
this.Menu_Tools.Name = "Menu_Tools";
this.Menu_Tools.Size = new System.Drawing.Size(48, 20);
this.Menu_Tools.Text = "Tools";
//
- // Menu_ToggleBoxUI
+ // Menu_Showdown
//
- this.Menu_ToggleBoxUI.Name = "Menu_ToggleBoxUI";
- this.Menu_ToggleBoxUI.Size = new System.Drawing.Size(182, 22);
- this.Menu_ToggleBoxUI.Text = "Toggle Box Interface";
- this.Menu_ToggleBoxUI.Click += new System.EventHandler(this.mainMenuWiden);
+ this.Menu_Showdown.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.Menu_ShowdownImportPK6,
+ this.Menu_ShowdownExportPK6,
+ this.Menu_ShowdownExportParty,
+ this.Menu_ShowdownExportBattleBox});
+ this.Menu_Showdown.Name = "Menu_Showdown";
+ this.Menu_Showdown.Size = new System.Drawing.Size(152, 22);
+ this.Menu_Showdown.Text = "Showdown";
//
- // Menu_BoxIO
+ // Menu_ShowdownImportPK6
//
- this.Menu_BoxIO.Name = "Menu_BoxIO";
- this.Menu_BoxIO.Size = new System.Drawing.Size(182, 22);
- this.Menu_BoxIO.Text = "Load/Dump Boxes";
- this.Menu_BoxIO.Click += new System.EventHandler(this.mainMenuBoxDumpLoad);
+ this.Menu_ShowdownImportPK6.Name = "Menu_ShowdownImportPK6";
+ this.Menu_ShowdownImportPK6.Size = new System.Drawing.Size(231, 22);
+ this.Menu_ShowdownImportPK6.Text = "Import Set from Clipboard";
+ this.Menu_ShowdownImportPK6.Click += new System.EventHandler(this.clickShowdownImportPK6);
//
- // reportToolStripMenuItem
+ // Menu_ShowdownExportPK6
//
- this.reportToolStripMenuItem.Name = "reportToolStripMenuItem";
- this.reportToolStripMenuItem.Size = new System.Drawing.Size(182, 22);
- this.reportToolStripMenuItem.Text = "Box Data Report";
- this.reportToolStripMenuItem.Click += new System.EventHandler(this.mainMenuBoxReport);
+ this.Menu_ShowdownExportPK6.Name = "Menu_ShowdownExportPK6";
+ this.Menu_ShowdownExportPK6.Size = new System.Drawing.Size(231, 22);
+ this.Menu_ShowdownExportPK6.Text = "Export Set to Clipboard";
+ this.Menu_ShowdownExportPK6.Click += new System.EventHandler(this.clickShowdownExportPK6);
//
- // codeGeneratorToolStripMenuItem
+ // Menu_ShowdownExportParty
//
- this.codeGeneratorToolStripMenuItem.Name = "codeGeneratorToolStripMenuItem";
- this.codeGeneratorToolStripMenuItem.Size = new System.Drawing.Size(182, 22);
- this.codeGeneratorToolStripMenuItem.Text = "Code Generator";
- this.codeGeneratorToolStripMenuItem.Click += new System.EventHandler(this.mainMenuCodeGen);
+ this.Menu_ShowdownExportParty.Name = "Menu_ShowdownExportParty";
+ this.Menu_ShowdownExportParty.Size = new System.Drawing.Size(231, 22);
+ this.Menu_ShowdownExportParty.Text = "Export Party to Clipboard";
+ this.Menu_ShowdownExportParty.Click += new System.EventHandler(this.clickShowdownExportParty);
+ //
+ // Menu_ShowdownExportBattleBox
+ //
+ this.Menu_ShowdownExportBattleBox.Name = "Menu_ShowdownExportBattleBox";
+ this.Menu_ShowdownExportBattleBox.Size = new System.Drawing.Size(231, 22);
+ this.Menu_ShowdownExportBattleBox.Text = "Export Battle Box to Clipboard";
+ this.Menu_ShowdownExportBattleBox.Click += new System.EventHandler(this.clickShowdownExportBattleBox);
+ //
+ // Menu_CyberGadget
+ //
+ this.Menu_CyberGadget.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.Menu_CodeGenerator,
+ this.Menu_OpenTemp,
+ this.Menu_OpenCache});
+ this.Menu_CyberGadget.Name = "Menu_CyberGadget";
+ this.Menu_CyberGadget.Size = new System.Drawing.Size(152, 22);
+ this.Menu_CyberGadget.Text = "CyberGadget";
+ //
+ // Menu_CodeGenerator
+ //
+ this.Menu_CodeGenerator.Name = "Menu_CodeGenerator";
+ this.Menu_CodeGenerator.Size = new System.Drawing.Size(175, 22);
+ this.Menu_CodeGenerator.Text = "Code Generator";
+ this.Menu_CodeGenerator.Click += new System.EventHandler(this.mainMenuCodeGen);
+ //
+ // Menu_OpenTemp
+ //
+ this.Menu_OpenTemp.Name = "Menu_OpenTemp";
+ this.Menu_OpenTemp.Size = new System.Drawing.Size(175, 22);
+ this.Menu_OpenTemp.Text = "Open Temp Folder";
+ this.Menu_OpenTemp.Click += new System.EventHandler(this.clickOpenTempFolder);
+ //
+ // Menu_OpenCache
+ //
+ this.Menu_OpenCache.Name = "Menu_OpenCache";
+ this.Menu_OpenCache.Size = new System.Drawing.Size(175, 22);
+ this.Menu_OpenCache.Text = "Open Cache Folder";
+ this.Menu_OpenCache.Click += new System.EventHandler(this.clickOpenCacheFolder);
+ //
+ // Menu_Data
+ //
+ this.Menu_Data.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.Menu_LoadBoxes,
+ this.Menu_DumpBoxes,
+ this.Menu_Report,
+ this.Menu_Database});
+ this.Menu_Data.Name = "Menu_Data";
+ this.Menu_Data.Size = new System.Drawing.Size(152, 22);
+ this.Menu_Data.Text = "Data";
+ //
+ // Menu_LoadBoxes
+ //
+ this.Menu_LoadBoxes.Name = "Menu_LoadBoxes";
+ this.Menu_LoadBoxes.Size = new System.Drawing.Size(152, 22);
+ this.Menu_LoadBoxes.Text = "Load Boxes";
+ this.Menu_LoadBoxes.Click += new System.EventHandler(this.mainMenuBoxLoad);
+ //
+ // Menu_DumpBoxes
+ //
+ this.Menu_DumpBoxes.Name = "Menu_DumpBoxes";
+ this.Menu_DumpBoxes.Size = new System.Drawing.Size(152, 22);
+ this.Menu_DumpBoxes.Text = "Dump Boxes";
+ this.Menu_DumpBoxes.Click += new System.EventHandler(this.mainMenuBoxDump);
+ //
+ // Menu_Report
+ //
+ this.Menu_Report.Name = "Menu_Report";
+ this.Menu_Report.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R)));
+ this.Menu_Report.ShowShortcutKeys = false;
+ this.Menu_Report.Size = new System.Drawing.Size(152, 22);
+ this.Menu_Report.Text = "Box Data &Report";
+ this.Menu_Report.Click += new System.EventHandler(this.mainMenuBoxReport);
+ //
+ // Menu_Database
+ //
+ this.Menu_Database.Name = "Menu_Database";
+ this.Menu_Database.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D)));
+ this.Menu_Database.ShowShortcutKeys = false;
+ this.Menu_Database.Size = new System.Drawing.Size(152, 22);
+ this.Menu_Database.Text = "PK6 &Database";
+ this.Menu_Database.Click += new System.EventHandler(this.B_OpenDB_Click);
+ //
+ // Menu_Other
+ //
+ this.Menu_Other.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.Menu_OpenSDF,
+ this.Menu_OpenSDB});
+ this.Menu_Other.Name = "Menu_Other";
+ this.Menu_Other.Size = new System.Drawing.Size(152, 22);
+ this.Menu_Other.Text = "Other";
+ //
+ // Menu_OpenSDF
+ //
+ this.Menu_OpenSDF.Name = "Menu_OpenSDF";
+ this.Menu_OpenSDF.Size = new System.Drawing.Size(229, 22);
+ this.Menu_OpenSDF.Text = "Open SaveDataFiler Folder";
+ this.Menu_OpenSDF.Click += new System.EventHandler(this.clickOpenSDFFolder);
+ //
+ // Menu_OpenSDB
+ //
+ this.Menu_OpenSDB.Name = "Menu_OpenSDB";
+ this.Menu_OpenSDB.Size = new System.Drawing.Size(229, 22);
+ this.Menu_OpenSDB.Text = "Open SaveDataBackup Folder";
+ this.Menu_OpenSDB.Click += new System.EventHandler(this.clickOpenSDBFolder);
//
// Menu_Options
//
@@ -3472,7 +3609,7 @@ public void InitializeComponent()
this.L_BattleBox.Size = new System.Drawing.Size(58, 13);
this.L_BattleBox.TabIndex = 1;
this.L_BattleBox.Text = "Battle Box:";
- this.L_BattleBox.DoubleClick += new System.EventHandler(this.clickExportBattleBox);
+ this.L_BattleBox.DoubleClick += new System.EventHandler(this.clickShowdownExportBattleBox);
//
// L_Party
//
@@ -3482,7 +3619,7 @@ public void InitializeComponent()
this.L_Party.Size = new System.Drawing.Size(34, 13);
this.L_Party.TabIndex = 0;
this.L_Party.Text = "Party:";
- this.L_Party.DoubleClick += new System.EventHandler(this.clickExportParty);
+ this.L_Party.DoubleClick += new System.EventHandler(this.clickShowdownExportParty);
//
// PAN_Party
//
@@ -3824,14 +3961,11 @@ public void InitializeComponent()
this.Tab_SAV.Controls.Add(this.TB_Secure2);
this.Tab_SAV.Controls.Add(this.L_Secure1);
this.Tab_SAV.Controls.Add(this.TB_Secure1);
- this.Tab_SAV.Controls.Add(this.B_OpenDB);
- this.Tab_SAV.Controls.Add(this.B_3DSSETemp);
this.Tab_SAV.Controls.Add(this.B_JPEG);
this.Tab_SAV.Controls.Add(this.L_GameSync);
this.Tab_SAV.Controls.Add(this.TB_GameSync);
this.Tab_SAV.Controls.Add(this.B_SaveBoxBin);
this.Tab_SAV.Controls.Add(this.B_VerifyCHK);
- this.Tab_SAV.Controls.Add(this.B_ExportSAV);
this.Tab_SAV.Location = new System.Drawing.Point(4, 22);
this.Tab_SAV.Name = "Tab_SAV";
this.Tab_SAV.Size = new System.Drawing.Size(302, 199);
@@ -3839,30 +3973,52 @@ public void InitializeComponent()
this.Tab_SAV.Text = "SAV";
this.Tab_SAV.UseVisualStyleBackColor = true;
//
- // B_OpenDB
+ // L_Secure2
//
- this.B_OpenDB.Location = new System.Drawing.Point(116, 135);
- this.B_OpenDB.Name = "B_OpenDB";
- this.B_OpenDB.Size = new System.Drawing.Size(75, 45);
- this.B_OpenDB.TabIndex = 14;
- this.B_OpenDB.Text = "Open PK6 Database";
- this.B_OpenDB.UseVisualStyleBackColor = true;
- this.B_OpenDB.Click += new System.EventHandler(this.B_OpenDB_Click);
+ this.L_Secure2.Location = new System.Drawing.Point(33, 113);
+ this.L_Secure2.Name = "L_Secure2";
+ this.L_Secure2.Size = new System.Drawing.Size(115, 20);
+ this.L_Secure2.TabIndex = 18;
+ this.L_Secure2.Text = "Secure Value 2:";
+ this.L_Secure2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
- // B_3DSSETemp
+ // TB_Secure2
//
- this.B_3DSSETemp.Location = new System.Drawing.Point(32, 135);
- this.B_3DSSETemp.Name = "B_3DSSETemp";
- this.B_3DSSETemp.Size = new System.Drawing.Size(75, 45);
- this.B_3DSSETemp.TabIndex = 13;
- this.B_3DSSETemp.Text = "Open Temp 3DSSE ";
- this.B_3DSSETemp.UseVisualStyleBackColor = true;
- this.B_3DSSETemp.Click += new System.EventHandler(this.clickOpenTempFolder);
+ this.TB_Secure2.Enabled = false;
+ this.TB_Secure2.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.TB_Secure2.Location = new System.Drawing.Point(151, 113);
+ this.TB_Secure2.MaxLength = 16;
+ this.TB_Secure2.Name = "TB_Secure2";
+ this.TB_Secure2.Size = new System.Drawing.Size(120, 20);
+ this.TB_Secure2.TabIndex = 17;
+ this.TB_Secure2.Text = "0000000000000000";
+ this.TB_Secure2.TextChanged += new System.EventHandler(this.updateSecure2);
+ //
+ // L_Secure1
+ //
+ this.L_Secure1.Location = new System.Drawing.Point(33, 91);
+ this.L_Secure1.Name = "L_Secure1";
+ this.L_Secure1.Size = new System.Drawing.Size(115, 20);
+ this.L_Secure1.TabIndex = 16;
+ this.L_Secure1.Text = "Secure Value 1:";
+ this.L_Secure1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // TB_Secure1
+ //
+ this.TB_Secure1.Enabled = false;
+ this.TB_Secure1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.TB_Secure1.Location = new System.Drawing.Point(151, 91);
+ this.TB_Secure1.MaxLength = 16;
+ this.TB_Secure1.Name = "TB_Secure1";
+ this.TB_Secure1.Size = new System.Drawing.Size(120, 20);
+ this.TB_Secure1.TabIndex = 15;
+ this.TB_Secure1.Text = "0000000000000000";
+ this.TB_Secure1.TextChanged += new System.EventHandler(this.updateSecure1);
//
// B_JPEG
//
this.B_JPEG.Enabled = false;
- this.B_JPEG.Location = new System.Drawing.Point(198, 135);
+ this.B_JPEG.Location = new System.Drawing.Point(198, 20);
this.B_JPEG.Name = "B_JPEG";
this.B_JPEG.Size = new System.Drawing.Size(75, 45);
this.B_JPEG.TabIndex = 12;
@@ -3912,17 +4068,6 @@ public void InitializeComponent()
this.B_VerifyCHK.UseVisualStyleBackColor = true;
this.B_VerifyCHK.Click += new System.EventHandler(this.clickVerifyCHK);
//
- // B_ExportSAV
- //
- this.B_ExportSAV.Enabled = false;
- this.B_ExportSAV.Location = new System.Drawing.Point(198, 20);
- this.B_ExportSAV.Name = "B_ExportSAV";
- this.B_ExportSAV.Size = new System.Drawing.Size(75, 45);
- this.B_ExportSAV.TabIndex = 4;
- this.B_ExportSAV.Text = "Export SAV";
- this.B_ExportSAV.UseVisualStyleBackColor = true;
- this.B_ExportSAV.Click += new System.EventHandler(this.clickExportSAV);
- //
// B_OpenHallofFame
//
this.B_OpenHallofFame.Location = new System.Drawing.Point(230, 41);
@@ -4091,48 +4236,6 @@ public void InitializeComponent()
this.L_QR.Visible = false;
this.L_QR.Click += new System.EventHandler(this.clickQR);
//
- // L_Secure1
- //
- this.L_Secure1.Location = new System.Drawing.Point(33, 91);
- this.L_Secure1.Name = "L_Secure1";
- this.L_Secure1.Size = new System.Drawing.Size(115, 20);
- this.L_Secure1.TabIndex = 16;
- this.L_Secure1.Text = "Secure Value 1:";
- this.L_Secure1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // TB_Secure1
- //
- this.TB_Secure1.Enabled = false;
- this.TB_Secure1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.TB_Secure1.Location = new System.Drawing.Point(151, 91);
- this.TB_Secure1.MaxLength = 16;
- this.TB_Secure1.Name = "TB_Secure1";
- this.TB_Secure1.Size = new System.Drawing.Size(120, 20);
- this.TB_Secure1.TabIndex = 15;
- this.TB_Secure1.Text = "0000000000000000";
- this.TB_Secure1.TextChanged += new System.EventHandler(this.updateSecure1);
- //
- // L_Secure2
- //
- this.L_Secure2.Location = new System.Drawing.Point(33, 113);
- this.L_Secure2.Name = "L_Secure2";
- this.L_Secure2.Size = new System.Drawing.Size(115, 20);
- this.L_Secure2.TabIndex = 18;
- this.L_Secure2.Text = "Secure Value 2:";
- this.L_Secure2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // TB_Secure2
- //
- this.TB_Secure2.Enabled = false;
- this.TB_Secure2.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.TB_Secure2.Location = new System.Drawing.Point(151, 113);
- this.TB_Secure2.MaxLength = 16;
- this.TB_Secure2.Name = "TB_Secure2";
- this.TB_Secure2.Size = new System.Drawing.Size(120, 20);
- this.TB_Secure2.TabIndex = 17;
- this.TB_Secure2.Text = "0000000000000000";
- this.TB_Secure2.TextChanged += new System.EventHandler(this.updateSecure2);
- //
// Main
//
this.AllowDrop = true;
@@ -4349,12 +4452,6 @@ public void InitializeComponent()
private System.Windows.Forms.Label Label_ATK;
private System.Windows.Forms.Label Label_HP;
private System.Windows.Forms.TextBox TB_EVTotal;
- private System.Windows.Forms.TextBox Stat_SPE;
- private System.Windows.Forms.TextBox Stat_SPD;
- private System.Windows.Forms.TextBox Stat_SPA;
- private System.Windows.Forms.TextBox Stat_DEF;
- private System.Windows.Forms.TextBox Stat_ATK;
- private System.Windows.Forms.TextBox Stat_HP;
private System.Windows.Forms.Label Label_PrevOT;
private System.Windows.Forms.ComboBox CB_EncounterType;
private System.Windows.Forms.GroupBox GB_EggConditions;
@@ -4488,7 +4585,6 @@ public void InitializeComponent()
private System.Windows.Forms.Label L_ReadOnlyOther;
private System.Windows.Forms.GroupBox GB_Daycare;
private System.Windows.Forms.TabPage Tab_SAV;
- private System.Windows.Forms.Button B_ExportSAV;
private System.Windows.Forms.Button B_VerifyCHK;
private System.Windows.Forms.Button B_BoxRight;
private System.Windows.Forms.Button B_BoxLeft;
@@ -4505,12 +4601,10 @@ public void InitializeComponent()
private System.Windows.Forms.ComboBox CB_EggLocation;
private System.Windows.Forms.Label Label_CharacteristicPrefix;
private System.Windows.Forms.ToolStripMenuItem Menu_Tools;
- private System.Windows.Forms.ToolStripMenuItem Menu_ToggleBoxUI;
private System.Windows.Forms.ToolStripMenuItem Menu_Options;
private System.Windows.Forms.ToolStripMenuItem Menu_Language;
private System.Windows.Forms.ToolStripComboBox CB_MainLanguage;
private System.Windows.Forms.ToolStripMenuItem Menu_About;
- private System.Windows.Forms.ToolStripMenuItem Menu_BoxIO;
public System.Windows.Forms.ComboBox CB_MetLocation;
private System.Windows.Forms.Label Label_CTGender;
private System.Windows.Forms.Label Label_OTGender;
@@ -4528,8 +4622,6 @@ public void InitializeComponent()
private System.Windows.Forms.TextBox TB_PP3;
private System.Windows.Forms.TextBox TB_PP2;
private System.Windows.Forms.TextBox TB_PP1;
- private System.Windows.Forms.ToolStripMenuItem codeGeneratorToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem reportToolStripMenuItem;
private System.Windows.Forms.Panel PAN_Party;
private System.Windows.Forms.Panel PAN_BattleBox;
private System.Windows.Forms.Button B_OpenSuperTraining;
@@ -4568,14 +4660,36 @@ public void InitializeComponent()
private System.Windows.Forms.ToolStripMenuItem mnu2View;
private System.Windows.Forms.Label L_GameSync;
private System.Windows.Forms.TextBox TB_GameSync;
- private System.Windows.Forms.Button B_OpenDB;
- private System.Windows.Forms.Button B_3DSSETemp;
private System.Windows.Forms.Button B_JPEG;
private System.Windows.Forms.PictureBox PB_Locked;
private System.Windows.Forms.Label L_Secure2;
private System.Windows.Forms.TextBox TB_Secure2;
private System.Windows.Forms.Label L_Secure1;
private System.Windows.Forms.TextBox TB_Secure1;
+ private System.Windows.Forms.ToolStripMenuItem Menu_ExportSAV;
+ private System.Windows.Forms.ToolStripMenuItem Menu_Showdown;
+ private System.Windows.Forms.ToolStripMenuItem Menu_ShowdownExportPK6;
+ private System.Windows.Forms.ToolStripMenuItem Menu_ShowdownImportPK6;
+ private System.Windows.Forms.ToolStripMenuItem Menu_ShowdownExportParty;
+ private System.Windows.Forms.ToolStripMenuItem Menu_ShowdownExportBattleBox;
+ private System.Windows.Forms.ToolStripMenuItem Menu_CyberGadget;
+ private System.Windows.Forms.ToolStripMenuItem Menu_CodeGenerator;
+ private System.Windows.Forms.ToolStripMenuItem Menu_OpenTemp;
+ private System.Windows.Forms.ToolStripMenuItem Menu_OpenCache;
+ private System.Windows.Forms.ToolStripMenuItem Menu_Data;
+ private System.Windows.Forms.ToolStripMenuItem Menu_LoadBoxes;
+ private System.Windows.Forms.ToolStripMenuItem Menu_Report;
+ private System.Windows.Forms.ToolStripMenuItem Menu_Database;
+ private System.Windows.Forms.ToolStripMenuItem Menu_Other;
+ private System.Windows.Forms.ToolStripMenuItem Menu_OpenSDF;
+ private System.Windows.Forms.ToolStripMenuItem Menu_OpenSDB;
+ private System.Windows.Forms.MaskedTextBox Stat_SPE;
+ private System.Windows.Forms.MaskedTextBox Stat_SPD;
+ private System.Windows.Forms.MaskedTextBox Stat_SPA;
+ private System.Windows.Forms.MaskedTextBox Stat_DEF;
+ private System.Windows.Forms.MaskedTextBox Stat_ATK;
+ private System.Windows.Forms.MaskedTextBox Stat_HP;
+ private System.Windows.Forms.ToolStripMenuItem Menu_DumpBoxes;
}
}
diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs
index 646055d49..989ed6a00 100644
--- a/PKX/f1-Main.cs
+++ b/PKX/f1-Main.cs
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
-using System.ComponentModel;
+using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
@@ -15,13 +15,12 @@ public partial class Main : Form
public Main()
{
#region Pop open a splash screen while we load up.
- Thread SplashSCR = new Thread(() => new SplashScreen().ShowDialog());
- SplashSCR.Start();
+ new Thread(() => new SplashScreen().ShowDialog()).Start();
#endregion
#region Initialize Form
pk6.RefreshChecksum();
InitializeComponent();
- string filename = Path.GetFileNameWithoutExtension(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName);
+ string filename = Path.GetFileNameWithoutExtension(Process.GetCurrentProcess().MainModule.FileName);
// Initialize SAV-Set Parameters in case compilation settings were changed.
SAV6.SetUpdateDex = Menu_ModifyDex.Checked;
SAV6.SetUpdatePK6 = Menu_ModifyPK6.Checked;
@@ -41,11 +40,6 @@ public Main()
defaultControlText = Label_Species.ForeColor;
CB_ExtraBytes.SelectedIndex = 0;
- // Resize Main Window to PKX Editing Mode
- largeWidth = Width;
- shortWidth = (Width*306)/620; // 306 = small, 620 = large
- Width = shortWidth;
-
// Initialize Boxes
for (int i = 0; i < 30*31; i++)
SAV.setData(blankEK6, SAV.Box + i*PK6.SIZE_STORED);
@@ -153,7 +147,6 @@ public Main()
public static Image mixedHighlight = Util.LayerImage(Properties.Resources.slotSet, Properties.Resources.slotView, 0, 0, 0.5);
public static Image colorizedcolor;
public static int colorizedslot;
- public static int largeWidth, shortWidth;
public static string eggname = "";
public static string DatabasePath = "db";
public static string[] lang_val = { "en", "ja", "fr", "it", "de", "es", "ko", "zh", "pt" };
@@ -285,19 +278,7 @@ private void mainMenuAbout(object sender, EventArgs e)
// Open a new form with the About details.
new About().ShowDialog();
}
- private void mainMenuWiden(object sender, EventArgs e)
- {
- int newwidth;
- if (Width < Height)
- {
- newwidth = largeWidth;
- tabBoxMulti.SelectedIndex = 0;
- }
- else
- newwidth = shortWidth;
-
- Width = newwidth;
- }
+ // Sub Menu Options
private void mainMenuCodeGen(object sender, EventArgs e)
{
// Open Code Generator
@@ -354,64 +335,196 @@ private void mainMenuModifyPK6(object sender, EventArgs e)
{
SAV6.SetUpdatePK6 = Menu_ModifyPK6.Checked;
}
- private void mainMenuBoxDumpLoad(object sender, EventArgs e)
+ private void mainMenuBoxLoad(object sender, EventArgs e)
{
- DialogResult dr = Util.Prompt(MessageBoxButtons.YesNoCancel, "Press Yes to Import All from Folder." + Environment.NewLine + "Press No to Dump All to Folder.", "Press Cancel to Abort.");
- if (dr == DialogResult.Cancel) return;
string path = "";
- bool dumptoboxes = false;
+ if (Directory.Exists(DatabasePath))
{
- if (dr == DialogResult.Yes) // Import
+ DialogResult ld = Util.Prompt(MessageBoxButtons.YesNo, "Load from PKHeX's database?");
+ if (ld == DialogResult.Yes)
+ path = DatabasePath;
+ else if (ld == DialogResult.No)
{
- if (Directory.Exists(DatabasePath))
- {
- DialogResult ld = Util.Prompt(MessageBoxButtons.YesNo, "Load from PKHeX's database?");
- if (ld == DialogResult.Yes)
- path = DatabasePath;
- else if (ld == DialogResult.No)
- {
- // open folder dialog
- FolderBrowserDialog fbd = new FolderBrowserDialog();
- if (fbd.ShowDialog() == DialogResult.OK)
- path = fbd.SelectedPath;
- }
- else return;
- }
- else
- {
- // open folder dialog
- FolderBrowserDialog fbd = new FolderBrowserDialog();
- if (fbd.ShowDialog() == DialogResult.OK)
- path = fbd.SelectedPath;
- }
- loadBoxesFromDB(path);
- }
- else if (dr == DialogResult.No)
- {
- // Dump all of box content to files.
- DialogResult ld = Util.Prompt(MessageBoxButtons.YesNo, "Save to PKHeX's database?");
- if (ld == DialogResult.Yes)
- {
- path = DatabasePath;
- if (!Directory.Exists(path))
- Directory.CreateDirectory(path);
- }
- else if (ld == DialogResult.No)
- {
- dumptoboxes = DialogResult.Yes == Util.Prompt(MessageBoxButtons.YesNo, "Save each box separately?");
-
- // open folder dialog
- FolderBrowserDialog fbd = new FolderBrowserDialog();
- if (fbd.ShowDialog() != DialogResult.OK)
- return;
-
+ // open folder dialog
+ FolderBrowserDialog fbd = new FolderBrowserDialog();
+ if (fbd.ShowDialog() == DialogResult.OK)
path = fbd.SelectedPath;
- }
- else return;
-
- dumpBoxesToDB(path, dumptoboxes);
}
+ else return;
}
+ else
+ {
+ // open folder dialog
+ FolderBrowserDialog fbd = new FolderBrowserDialog();
+ if (fbd.ShowDialog() == DialogResult.OK)
+ path = fbd.SelectedPath;
+ }
+ loadBoxesFromDB(path);
+ }
+ private void mainMenuBoxDump(object sender, EventArgs e)
+ {
+ string path;
+ bool dumptoboxes = false;
+ // Dump all of box content to files.
+ DialogResult ld = Util.Prompt(MessageBoxButtons.YesNo, "Save to PKHeX's database?");
+ if (ld == DialogResult.Yes)
+ {
+ path = DatabasePath;
+ if (!Directory.Exists(path))
+ Directory.CreateDirectory(path);
+ }
+ else if (ld == DialogResult.No)
+ {
+ dumptoboxes = DialogResult.Yes == Util.Prompt(MessageBoxButtons.YesNo, "Save each box separately?");
+
+ // open folder dialog
+ FolderBrowserDialog fbd = new FolderBrowserDialog();
+ if (fbd.ShowDialog() != DialogResult.OK)
+ return;
+
+ path = fbd.SelectedPath;
+ }
+ else return;
+
+ dumpBoxesToDB(path, dumptoboxes);
+ }
+ // Misc Options
+ private void clickShowdownImportPK6(object sender, EventArgs e)
+ {
+ if (!Clipboard.ContainsText())
+ { Util.Alert("Clipboard does not contain text."); return; }
+
+ // Get Simulator Data
+ PKX.ShowdownSet Set = new PKX.ShowdownSet(Clipboard.GetText());
+
+ if (Set.Species < 0)
+ { Util.Alert("Set data not found in clipboard."); return; }
+
+ if (DialogResult.Yes != Util.Prompt(MessageBoxButtons.YesNo, "Import this set?", Clipboard.GetText()))
+ { return; }
+
+ // Set Species & Nickname
+ CB_Species.SelectedValue = Set.Species;
+ CHK_Nicknamed.Checked = (Set.Nickname != null);
+ if (Set.Nickname != null)
+ TB_Nickname.Text = Set.Nickname;
+ if (Set.Gender != null && PKX.getGender(Set.Gender) != 2 && PKX.getGender(Set.Gender) != 2)
+ {
+ int Gender = PKX.getGender(Set.Gender);
+ Label_Gender.Text = gendersymbols[Gender];
+ Label_Gender.ForeColor = Gender == 2 ? Label_Species.ForeColor : (Gender == 1 ? Color.Red : Color.Blue);
+ }
+
+ // Set Form
+ string[] formStrings = PKX.getFormList(Set.Species,
+ Util.getStringList("Types", "en"),
+ Util.getStringList("Forms", "en"), gendersymbols);
+ int form = 0;
+ for (int i = 0; i < formStrings.Length; i++)
+ if (formStrings[i].Contains(Set.Form ?? ""))
+ { form = i; break; }
+ CB_Form.SelectedIndex = form;
+
+ // Set Ability
+ byte[] abilities = PKX.getAbilities(Set.Species, form);
+ int ability = Array.IndexOf(abilities, (byte)Set.Ability);
+ if (ability < 0) ability = 0;
+ CB_Ability.SelectedIndex = ability;
+ ComboBox[] m = { CB_Move1, CB_Move2, CB_Move3, CB_Move4, };
+ for (int i = 0; i < 4; i++) m[i].SelectedValue = Set.Moves[i];
+
+ // Set Item and Nature
+ CB_HeldItem.SelectedValue = (Set.Item < 0) ? 0 : Set.Item;
+ CB_Nature.SelectedValue = (Set.Nature < 0) ? 0 : Set.Nature;
+
+ // Set IVs
+ TB_HPIV.Text = Set.IVs[0].ToString();
+ TB_ATKIV.Text = Set.IVs[1].ToString();
+ TB_DEFIV.Text = Set.IVs[2].ToString();
+ TB_SPAIV.Text = Set.IVs[3].ToString();
+ TB_SPDIV.Text = Set.IVs[4].ToString();
+ TB_SPEIV.Text = Set.IVs[5].ToString();
+
+ // Set EVs
+ TB_HPEV.Text = Set.EVs[0].ToString();
+ TB_ATKEV.Text = Set.EVs[1].ToString();
+ TB_DEFEV.Text = Set.EVs[2].ToString();
+ TB_SPAEV.Text = Set.EVs[3].ToString();
+ TB_SPDEV.Text = Set.EVs[4].ToString();
+ TB_SPEEV.Text = Set.EVs[5].ToString();
+
+ // Set Level and Friendship
+ TB_Level.Text = Set.Level.ToString();
+ TB_Friendship.Text = Set.Friendship.ToString();
+
+ // Reset IV/EVs
+ BTN_RerollPID.PerformClick();
+ BTN_RerollEC.PerformClick();
+ if (Set.Shiny) BTN_Shinytize.PerformClick();
+ }
+ private void clickShowdownExportPK6(object sender, EventArgs e)
+ {
+ if (!verifiedPKX())
+ { Util.Alert("Fix data before exporting."); return; }
+
+ Clipboard.SetText(new PK6(preparepkx()).ShowdownText);
+ Util.Alert("Exported Showdown Set to Clipboard:", Clipboard.GetText());
+ }
+ private void clickShowdownExportParty(object sender, EventArgs e)
+ {
+ try
+ {
+ Clipboard.SetText(
+ SAV.PartyData.Aggregate("", (current, pk) => current + pk.ShowdownText
+ + Environment.NewLine + Environment.NewLine).Trim());
+ Util.Alert("Showdown Team (Party) set to Clipboard.");
+ }
+ catch { }
+ }
+ private void clickShowdownExportBattleBox(object sender, EventArgs e)
+ {
+ try
+ {
+ Clipboard.SetText(
+ SAV.BattleBoxData.Aggregate("", (current, pk) => current + pk.ShowdownText
+ + Environment.NewLine + Environment.NewLine).Trim());
+ Util.Alert("Showdown Team (Battle Box) set to Clipboard.");
+ }
+ catch { }
+ }
+ private void clickOpenTempFolder(object sender, EventArgs e)
+ {
+ string path = Util.GetTempFolder();
+ if (Directory.Exists(Path.Combine(path, "root")))
+ Process.Start("explorer.exe", @Path.Combine(path, "root"));
+ else if (Directory.Exists(path))
+ Process.Start("explorer.exe", @path);
+ else
+ Util.Alert("Can't find the temporary file.", "Make sure the Cyber Gadget software is paused.");
+ }
+ private void clickOpenCacheFolder(object sender, EventArgs e)
+ {
+ string path = Util.GetCacheFolder();
+ if (Directory.Exists(path))
+ Process.Start("explorer.exe", @path);
+ else
+ Util.Alert("Can't find the cache folder.");
+ }
+ private void clickOpenSDFFolder(object sender, EventArgs e)
+ {
+ string path;
+ if (path3DS != null && Directory.Exists(path = Util.GetSDFLocation()))
+ Process.Start("explorer.exe", @path);
+ else
+ Util.Alert("Can't find the SaveDataFiler folder.");
+ }
+ private void clickOpenSDBFolder(object sender, EventArgs e)
+ {
+ string path;
+ if (path3DS != null && Directory.Exists(path = Path.Combine(Path.GetPathRoot(path3DS), "SaveDataBackup")))
+ Process.Start("explorer.exe", @path);
+ else
+ Util.Alert("Can't find the SaveDataBackup folder.");
}
// Main Menu Subfunctions
@@ -542,7 +655,6 @@ private void openFile(byte[] input, string path, string ext)
SAV.setEK6Stored(data, baseOffset + i * PK6.SIZE_STORED);
}
setPKXBoxes();
- Width = largeWidth;
Util.Alert("Box Binary loaded.");
}
#endregion
@@ -564,7 +676,6 @@ private void openFile(byte[] input, string path, string ext)
SAV.setEK6Stored(data, SAV.Box + i * PK6.SIZE_STORED);
}
setPKXBoxes();
- Width = largeWidth;
Util.Alert("Injection Binary loaded.");
}
#endregion
@@ -591,7 +702,6 @@ private void openFile(byte[] input, string path, string ext)
SAV.setEK6Stored(data, SAV.Box + i*PK6.SIZE_STORED + CB_BoxSelect.SelectedIndex*30*PK6.SIZE_STORED);
}
setPKXBoxes();
- Width = largeWidth;
}
#endregion
#region Wondercard
@@ -659,7 +769,7 @@ private void openMAIN(byte[] input, string path, bool ram = false)
SAV = new SAV6(input);
// Load CyberGadget
- B_ExportSAV.Enabled = true;
+ Menu_ExportSAV.Enabled = true;
openSave();
}
@@ -717,7 +827,6 @@ private void openSave()
B_JPEG.Enabled = true;
SAV.Edited = false;
- Menu_ToggleBoxUI.Visible = false;
B_VerifyCHK.Enabled = ramsav == null;
DaycareSlot = 0;
@@ -744,7 +853,7 @@ private void openSave()
// Hide content if not present in game.
PAN_Box.Visible = CB_BoxSelect.Visible = B_BoxLeft.Visible = B_BoxRight.Visible = SAV.Box > -1;
- Menu_BoxIO.Enabled = reportToolStripMenuItem.Enabled = Menu_Modify.Enabled = B_SaveBoxBin.Enabled = SAV.Box > -1;
+ Menu_LoadBoxes.Enabled = Menu_Report.Enabled = Menu_Modify.Enabled = B_SaveBoxBin.Enabled = SAV.Box > -1;
PAN_BattleBox.Visible = L_BattleBox.Visible = L_ReadOnlyPBB.Visible = SAV.BattleBox > -1;
GB_Daycare.Visible = SAV.Daycare > -1;
GB_Fused.Visible = SAV.Fused > -1;
@@ -761,10 +870,8 @@ private void openSave()
B_OpenBerryField.Enabled = SAV.BerryField > -1;
B_JPEG.Enabled = SAV.JPEG > -1;
- Width = largeWidth;
-
- // Refresh instance of pk2pk
- refreshTrainerInfo();
+ // Refresh PK#->PK6 conversion info
+ Converter.updateConfig(SAV.SubRegion, SAV.Country, SAV.ConsoleRegion, SAV.OT, SAV.Gender);
// Indicate audibly the save is loaded
System.Media.SystemSounds.Beep.Play();
@@ -1418,7 +1525,7 @@ private void updateEXPLevel(object sender, EventArgs e)
// Change the XP
int Level = Util.ToInt32((MT_Level.Focused ? MT_Level : TB_Level).Text);
if (Level > 100) TB_Level.Text = "100";
- if (Level > 255) MT_Level.Text = "255";
+ if (Level > byte.MaxValue) MT_Level.Text = "255";
TB_EXP.Text = PKX.getEXP(Level, Util.getIndex(CB_Species)).ToString();
}
@@ -1574,12 +1681,24 @@ private void updateHackedStats(object sender, EventArgs e)
Stat_SPD.Enabled =
Stat_SPE.Enabled = CHK_HackedStats.Checked;
}
+ private void updateHackedStatText(object sender, EventArgs e)
+ {
+ if (!CHK_HackedStats.Checked || sender as TextBox == null)
+ return;
+
+ string text = (sender as TextBox).Text;
+ if (string.IsNullOrEmpty(text))
+ (sender as TextBox).Text = "0";
+
+ if (Convert.ToUInt32(text) > ushort.MaxValue)
+ (sender as TextBox).Text = "65535";
+ }
private void update255_MTB(object sender, EventArgs e)
{
MaskedTextBox mtb = sender as MaskedTextBox;
try
{
- if (Util.ToInt32((sender as MaskedTextBox).Text) > 255)
+ if (Util.ToInt32((sender as MaskedTextBox).Text) > byte.MaxValue)
(sender as MaskedTextBox).Text = "255";
}
catch { mtb.Text = "0"; }
@@ -1589,7 +1708,7 @@ private void update255_TB(object sender, EventArgs e)
TextBox tb = sender as TextBox;
try
{
- if (Util.ToInt32((sender as TextBox).Text) > 255)
+ if (Util.ToInt32((sender as TextBox).Text) > byte.MaxValue)
(sender as TextBox).Text = "255";
}
catch { tb.Text = "0"; }
@@ -1816,7 +1935,7 @@ private void updateOriginGame(object sender, EventArgs e)
private void updateExtraByteValue(object sender, EventArgs e)
{
// Changed Extra Byte's Value
- if (Util.ToInt32((sender as MaskedTextBox).Text) > 255)
+ if (Util.ToInt32((sender as MaskedTextBox).Text) > byte.MaxValue)
(sender as MaskedTextBox).Text = "255";
int value = Util.ToInt32(TB_ExtraByte.Text);
@@ -1850,18 +1969,12 @@ private void updateNickname(object sender, EventArgs e)
{
if (fieldsInitialized && ModifierKeys == Keys.Control) // Import Showdown
{
- getShowdownSet();
+ clickShowdownImportPK6(sender, e);
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());
+ clickShowdownExportPK6(sender, e);
return;
}
if (!fieldsInitialized || (CHK_Nicknamed.Checked)) return;
@@ -1981,15 +2094,15 @@ private void update_ID(object sender, EventArgs e)
TB_EC.Text = Util.getHEXval(TB_EC).ToString("X8");
// Max TID/SID is 65535
- if (Util.ToUInt32(TB_TID.Text) > 65535) TB_TID.Text = "65535";
- if (Util.ToUInt32(TB_SID.Text) > 65535) TB_SID.Text = "65535";
+ if (Util.ToUInt32(TB_TID.Text) > ushort.MaxValue) TB_TID.Text = "65535";
+ if (Util.ToUInt32(TB_SID.Text) > ushort.MaxValue) TB_SID.Text = "65535";
setIsShiny();
getQuickFiller(dragout);
updateIVs(null, null); // If the PID is changed, PID%6 (Characteristic) might be changed.
TB_PID.Select(60, 0); // position cursor at end of field
}
- private void validateComboBox(object sender, CancelEventArgs e)
+ private void validateComboBox(object sender, EventArgs e)
{
if (!(sender is ComboBox)) { return; }
@@ -2004,7 +2117,7 @@ private void validateComboBox(object sender, CancelEventArgs e)
private void validateComboBox2(object sender, EventArgs e)
{
ComboBox cb = sender as ComboBox;
- validateComboBox(sender, e as CancelEventArgs);
+ validateComboBox(sender, e);
if (cb == CB_Ability)
TB_AbilityNumber.Text = (1 << CB_Ability.SelectedIndex).ToString();
else if ((cb == CB_Move1) || (cb == CB_Move2) || (cb == CB_Move3) || (cb == CB_Move4))
@@ -2067,75 +2180,6 @@ private void updateStats()
labarray[decr].ForeColor = Color.Blue;
}
}
- private void getShowdownSet()
- {
- if (!Clipboard.ContainsText()) return;
-
- // Get Simulator Data
- PKX.ShowdownSet Set = new PKX.ShowdownSet(Clipboard.GetText());
-
- if (Set.Species < 0) return;
- if (DialogResult.Yes != Util.Prompt(MessageBoxButtons.YesNo, "Import this set?", Clipboard.GetText())) return;
-
- // Set Species & Nickname
- CB_Species.SelectedValue = Set.Species;
- CHK_Nicknamed.Checked = (Set.Nickname != null);
- if (Set.Nickname != null)
- TB_Nickname.Text = Set.Nickname;
- if (Set.Gender != null && PKX.getGender(Set.Gender) != 2 && PKX.getGender(Set.Gender) != 2)
- {
- int Gender = PKX.getGender(Set.Gender);
- Label_Gender.Text = gendersymbols[Gender];
- Label_Gender.ForeColor = Gender == 2 ? Label_Species.ForeColor : (Gender == 1 ? Color.Red : Color.Blue);
- }
-
- // Set Form
- string[] formStrings = PKX.getFormList(Set.Species,
- Util.getStringList("Types", "en"),
- Util.getStringList("Forms", "en"), gendersymbols);
- int form = 0;
- for (int i = 0; i < formStrings.Length; i++)
- if (formStrings[i].Contains(Set.Form ?? ""))
- { form = i; break; }
- CB_Form.SelectedIndex = form;
-
- // Set Ability
- byte[] abilities = PKX.getAbilities(Set.Species, form);
- int ability = Array.IndexOf(abilities, (byte)Set.Ability);
- if (ability < 0) ability = 0;
- CB_Ability.SelectedIndex = ability;
- ComboBox[] m = { CB_Move1, CB_Move2, CB_Move3, CB_Move4, };
- for (int i = 0; i < 4; i++) m[i].SelectedValue = Set.Moves[i];
-
- // Set Item and Nature
- CB_HeldItem.SelectedValue = (Set.Item < 0) ? 0 : Set.Item;
- CB_Nature.SelectedValue = (Set.Nature < 0) ? 0 : Set.Nature;
-
- // Set IVs
- TB_HPIV.Text = Set.IVs[0].ToString();
- TB_ATKIV.Text = Set.IVs[1].ToString();
- TB_DEFIV.Text = Set.IVs[2].ToString();
- TB_SPAIV.Text = Set.IVs[3].ToString();
- TB_SPDIV.Text = Set.IVs[4].ToString();
- TB_SPEIV.Text = Set.IVs[5].ToString();
-
- // Set EVs
- TB_HPEV.Text = Set.EVs[0].ToString();
- TB_ATKEV.Text = Set.EVs[1].ToString();
- TB_DEFEV.Text = Set.EVs[2].ToString();
- TB_SPAEV.Text = Set.EVs[3].ToString();
- TB_SPDEV.Text = Set.EVs[4].ToString();
- TB_SPEEV.Text = Set.EVs[5].ToString();
-
- // Set Level and Friendship
- TB_Level.Text = Set.Level.ToString();
- TB_Friendship.Text = Set.Friendship.ToString();
-
- // Reset IV/EVs
- BTN_RerollPID.PerformClick();
- BTN_RerollEC.PerformClick();
- if (Set.Shiny) BTN_Shinytize.PerformClick();
- }
// Secondary Windows for Ribbons/Amie/Memories
private void openRibbons(object sender, EventArgs e)
{
@@ -2233,14 +2277,14 @@ public byte[] preparepkx(bool click = true)
pk6.TID = Util.ToInt32(TB_TID.Text);
pk6.SID = Util.ToInt32(TB_SID.Text);
pk6.EXP = Util.ToUInt32(TB_EXP.Text);
- pk6.Ability = (byte)Array.IndexOf(abilitylist, (CB_Ability.Text).Remove((CB_Ability.Text).Length - 4));
+ pk6.Ability = (byte)Array.IndexOf(abilitylist, CB_Ability.Text.Remove(CB_Ability.Text.Length - 4));
pk6.AbilityNumber = Util.ToInt32(TB_AbilityNumber.Text); // Number
// pkx[0x16], pkx[0x17] are handled by the Medals UI (Hits & Training Bag)
pk6.PID = Util.getHEXval(TB_PID);
pk6.Nature = (byte)(Util.getIndex(CB_Nature));
pk6.FatefulEncounter = CHK_Fateful.Checked;
pk6.Gender = PKX.getGender(Label_Gender.Text);
- pk6.AltForm = Math.Min((MT_Form.Enabled) ? Convert.ToInt32(MT_Form.Text) : CB_Form.SelectedIndex, 32); // Form
+ pk6.AltForm = Math.Min(MT_Form.Enabled ? Convert.ToInt32(MT_Form.Text) : CB_Form.SelectedIndex, 32); // Form
pk6.EV_HP = Util.ToInt32(TB_HPEV.Text); // EVs
pk6.EV_ATK = Util.ToInt32(TB_ATKEV.Text);
pk6.EV_DEF = Util.ToInt32(TB_DEFEV.Text);
@@ -2359,13 +2403,13 @@ public byte[] preparepkx(bool click = true)
// Toss in Party Stats
Array.Resize(ref pk6.Data, PK6.SIZE_PARTY);
pk6.Stat_Level = Util.ToInt32(TB_Level.Text);
- pk6.Stat_HPCurrent = Math.Min(Util.ToInt32(Stat_HP.Text), 65535);
- pk6.Stat_HPMax = Math.Min(Util.ToInt32(Stat_HP.Text), 65535);
- pk6.Stat_ATK = Math.Min(Util.ToInt32(Stat_ATK.Text), 65535);
- pk6.Stat_DEF = Math.Min(Util.ToInt32(Stat_DEF.Text), 65535);
- pk6.Stat_SPE = Math.Min(Util.ToInt32(Stat_SPE.Text), 65535);
- pk6.Stat_SPA = Math.Min(Util.ToInt32(Stat_SPA.Text), 65535);
- pk6.Stat_SPD = Math.Min(Util.ToInt32(Stat_SPD.Text), 65535);
+ pk6.Stat_HPCurrent = Util.ToInt32(Stat_HP.Text);
+ pk6.Stat_HPMax = Util.ToInt32(Stat_HP.Text);
+ pk6.Stat_ATK = Util.ToInt32(Stat_ATK.Text);
+ pk6.Stat_DEF = Util.ToInt32(Stat_DEF.Text);
+ pk6.Stat_SPE = Util.ToInt32(Stat_SPE.Text);
+ pk6.Stat_SPA = Util.ToInt32(Stat_SPA.Text);
+ pk6.Stat_SPD = Util.ToInt32(Stat_SPD.Text);
// Unneeded Party Stats (Status, Flags, Unused)
pk6.Data[0xE8] = pk6.Data[0xE9] = pk6.Data[0xEA] = pk6.Data[0xEB] =
@@ -2377,7 +2421,7 @@ public byte[] preparepkx(bool click = true)
if (HaX)
{
pk6.Ability = (byte)Util.getIndex(DEV_Ability);
- pk6.Stat_Level = (byte)Math.Min(Convert.ToInt32(MT_Level.Text), 255);
+ pk6.Stat_Level = (byte)Math.Min(Convert.ToInt32(MT_Level.Text), byte.MaxValue);
}
// Fix Moves if a slot is empty
@@ -2793,32 +2837,6 @@ private void updateSecure2(object sender, EventArgs e)
SAV.Edited = true;
}
}
- private void refreshTrainerInfo()
- {
- Converter.updateConfig(SAV.SubRegion, SAV.Country, SAV.ConsoleRegion, SAV.OT, SAV.Gender);
- }
- private void clickExportParty(object sender, EventArgs e)
- {
- try
- {
- Clipboard.SetText(
- SAV.PartyData.Aggregate("", (current, pk) => current + pk.ShowdownText
- + Environment.NewLine + Environment.NewLine).Trim());
- Util.Alert("Showdown Team (Party) set to Clipboard.");
- }
- catch { }
- }
- private void clickExportBattleBox(object sender, EventArgs e)
- {
- try
- {
- Clipboard.SetText(
- SAV.BattleBoxData.Aggregate("", (current, pk) => current + pk.ShowdownText
- + Environment.NewLine + Environment.NewLine).Trim());
- Util.Alert("Showdown Team (Battle Box) set to Clipboard.");
- }
- catch { }
- }
// Generic Subfunctions //
private void setParty()
{
@@ -3111,12 +3129,7 @@ private void loadBoxesFromDB(string path)
if (ctr == 30 * 31) break; // break out if we have written all 31 boxes
}
if (ctr <= 0) return;
- // if we've written at least one pk6 in, go ahead and make sure the window is stretched.
- if (Width < Height) // expand if boxes aren't visible
- {
- Width = largeWidth;
- tabBoxMulti.SelectedIndex = 0;
- }
+
setPKXBoxes();
string result = String.Format("Loaded {0} files to boxes.", ctr);
if (pastctr > 0)
@@ -3158,7 +3171,8 @@ private void B_OpenBoxLayout_Click(object sender, EventArgs e)
private void B_OpenTrainerInfo_Click(object sender, EventArgs e)
{
new SAV_Trainer().ShowDialog();
- refreshTrainerInfo();
+ // Refresh PK#->PK6 conversion info
+ Converter.updateConfig(SAV.SubRegion, SAV.Country, SAV.ConsoleRegion, SAV.OT, SAV.Gender);
}
private void B_OpenPokepuffs_Click(object sender, EventArgs e)
{
@@ -3370,32 +3384,6 @@ private void clickSaveFileName(object sender, EventArgs e)
if (Util.Prompt(MessageBoxButtons.YesNo, "Open save file from the following location?", path) == DialogResult.Yes)
openQuick(path); // load save
}
- private void clickOpenTempFolder(object sender, EventArgs e)
- {
- string path;
- switch (ModifierKeys)
- {
- case Keys.Control: // Cache
- path = Util.GetCacheFolder();
- if (Directory.Exists(path)) System.Diagnostics.Process.Start("explorer.exe", @path); else Util.Alert("Can't find the cache folder.");
- break;
- case Keys.Shift: // SaveDataBackup
- Path.Combine(Path.GetPathRoot(path3DS), "SaveDataBackup", "main");
- if (path3DS != null && File.Exists(path = Path.Combine(Path.GetPathRoot(path3DS), "SaveDataBackup", "main")))
- System.Diagnostics.Process.Start("explorer.exe", @Path.GetDirectoryName(path)); else Util.Alert("Can't find the SaveDataBackup folder.");
- break;
- case Keys.Alt: // SaveDataFiler
- path = Util.GetSDFLocation();
- if (Directory.Exists(path)) System.Diagnostics.Process.Start("explorer.exe", @path); else Util.Alert("Can't find the SDF folder.");
- break;
- default: // Root
- path = Util.GetTempFolder();
- if (Directory.Exists(Path.Combine(path, "root"))) System.Diagnostics.Process.Start("explorer.exe", @Path.Combine(path, "root"));
- else if (Directory.Exists(path)) System.Diagnostics.Process.Start("explorer.exe", @path);
- else { Util.Error("Can't find the temporary file.", "Make sure the Cyber Gadget software is paused."); }
- break;
- }
- }
// Drag & Drop within Box
private void pbBoxSlot_MouseDown(object sender, MouseEventArgs e)
diff --git a/PKX/f1-Main.resx b/PKX/f1-Main.resx
index bddec55f0..ca86c1c99 100644
--- a/PKX/f1-Main.resx
+++ b/PKX/f1-Main.resx
@@ -243,6 +243,24 @@
True
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
True
@@ -375,24 +393,6 @@
True
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
True
@@ -582,9 +582,6 @@
True
-
- True
-
True
diff --git a/Resources/text/de/lang_de.txt b/Resources/text/de/lang_de.txt
index 5bf396752..8dea05c86 100644
--- a/Resources/text/de/lang_de.txt
+++ b/Resources/text/de/lang_de.txt
@@ -10,16 +10,44 @@
! lang_zh.txt = Chinese
! lang_pt.txt = Portuguese
! Make sure that each edit has a ' = ' between Control name and new Text!
-! For the Menu Bar, separate the DropDown Item names with ' ; '
!
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Main Form (PKHeX window) below.
! Main = PKHeX
- Change stuff below this line, not above.
-----------------Overall PKX Interface------------------
-Menu_File = File ; Open... ; Save as... ; Exit
-Menu_Tools = Tools ; Toggle Box Interface ; Load/Dump Boxes ; Box Data Report ; Code Generator
-Menu_Options = Options ; Language ; About PKHeX
+---------------------Menu Strip------------------------
+Menu_File = File
+Menu_Open = Open...
+Menu_Save = Save PK6...
+Menu_ExportSAV = Export SAV...
+Menu_Exit = Quit
+--
+Menu_Tools = Tools
+Menu_Showdown = Showdown
+Menu_ShowdownImportPK6 = Import Set from Clipboard
+Menu_ShowdownExportPK6 = Export Set from Clipboard
+Menu_ShowdownExportParty = Export Party to Clipboard
+Menu_ShowdownExportBattleBox = Export Battle Box to Clipboard
+Menu_CyberGadget = CyberGadget
+Menu_CodeGenerator = Code Generator
+Menu_OpenTemp = Open Temp Folder
+Menu_OpenCache = Open Cache Folder
+Menu_Data = Data
+Menu_LoadBoxes = Load Boxes
+Menu_DumpBoxes = Dump Boxes
+Menu_Report = Box Data Report
+Menu_Database = PK6 Datenbank
+Menu_Other = Andere
+Menu_OpenSDF = Open SaveDataFiler Folder
+Menu_OpenSDB = Open SaveDataBackup Folder
+--
+Menu_Options = Optionen
+Menu_Language = Sprache
+Menu_Modify = Bei Einstellung auf SAV
+Menu_ModifyDex = Ändern Pokédex
+Menu_ModifyPK6 = Ändern PK6 Info
+Menu_Unicode = Toggle Font
+Menu_About = Über PKHeX
--------------------Main Tab Data----------------------
Tab_Main = Haupt
Label_PID = PID:
@@ -91,12 +119,8 @@ GB_OT = Trainer Informationen
Label_TID = TID:
Label_SID = SID:
Label_OT = OT:
-RB_OTM = M
-RB_OTF = F
GB_nOT = Letzter (nicht OT) Handler
Label_PrevOT = OT:
-RB_nOTM = M
-RB_nOTF = F
GB_ExtraBytes = Extra Bytes
GB_Markings = Markierungen
BTN_Ribbons = Bänder/Medaillen
@@ -127,16 +151,10 @@ GB_SUBE = Alter Mann
DayCare_HasEgg = Ei verfügbar
L_DaycareSeed = Seed
L_ReadOnlyOther = Dieser Tab ist nur lesbar.
-B_BoxIO = Box Öffnen / Speichern
B_JPEG = Speichere PGL .JPEG
B_OpenHallofFame = Ruhmeshalle
B_OUTPasserby = Passanten
-L_IntegrityCheck = Integritäscheck:
B_VerifyCHK = Checksums
-B_VerifySHA = Hashes
-L_SAVManipulation = Spielstandmanipulation:
-B_SwitchSAV = SAV wechseln
-B_ExportSAV = SAV exportieren
! End
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Ribbons / Medals UI Below
diff --git a/Resources/text/en/lang_en.txt b/Resources/text/en/lang_en.txt
index 976a09ab7..718ff2cf7 100644
--- a/Resources/text/en/lang_en.txt
+++ b/Resources/text/en/lang_en.txt
@@ -10,16 +10,44 @@
! lang_zh.txt = Chinese
! lang_pt.txt = Portuguese
! Make sure that each edit has a ' = ' between Control name and new Text!
-! For the Menu Bar, separate the DropDown Item names with ' ; '
!
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Main Form (PKHeX window) below.
! Main = PKHeX
- Change stuff below this line, not above.
-----------------Overall PKX Interface------------------
-Menu_File = File ; Open... ; Save as... ; Exit
-Menu_Tools = Tools ; Toggle Box Interface ; Load/Dump Boxes ; Box Data Report ; Code Generator
-Menu_Options = Options ; Language ; About PKHeX ; Toggle Font
+---------------------Menu Strip------------------------
+Menu_File = File
+Menu_Open = Open...
+Menu_Save = Save PK6...
+Menu_ExportSAV = Export SAV...
+Menu_Exit = Quit
+--
+Menu_Tools = Tools
+Menu_Showdown = Showdown
+Menu_ShowdownImportPK6 = Import Set from Clipboard
+Menu_ShowdownExportPK6 = Export Set from Clipboard
+Menu_ShowdownExportParty = Export Party to Clipboard
+Menu_ShowdownExportBattleBox = Export Battle Box to Clipboard
+Menu_CyberGadget = CyberGadget
+Menu_CodeGenerator = Code Generator
+Menu_OpenTemp = Open Temp Folder
+Menu_OpenCache = Open Cache Folder
+Menu_Data = Data
+Menu_LoadBoxes = Load Boxes
+Menu_DumpBoxes = Dump Boxes
+Menu_Report = Box Data Report
+Menu_Database = PK6 Database
+Menu_Other = Other
+Menu_OpenSDF = Open SaveDataFiler Folder
+Menu_OpenSDB = Open SaveDataBackup Folder
+--
+Menu_Options = Options
+Menu_Language = Language
+Menu_Modify = Set to SAV
+Menu_ModifyDex = Modify Pokédex
+Menu_ModifyPK6 = Modify PK6 Info
+Menu_Unicode = Toggle Font
+Menu_About = About PKHeX
--------------------Main Tab Data----------------------
Tab_Main = Main
Label_PID = PID:
@@ -91,12 +119,8 @@ GB_OT = Trainer Information
Label_TID = TID:
Label_SID = SID:
Label_OT = OT:
-RB_OTM = ♂
-RB_OTF = ♀
GB_nOT = Latest (not OT) Handler
Label_PrevOT = OT:
-RB_nOTM = ♂
-RB_nOTF = ♀
GB_ExtraBytes = Extra Bytes
GB_Markings = Markings
BTN_Ribbons = Ribbons/Medals
@@ -133,14 +157,8 @@ GB_SUBE = OldMan
DayCare_HasEgg = Egg Available
L_DaycareSeed = Seed
L_ReadOnlyOther = This tab is read only.
-B_3DSSETemp = Open Temp 3DSSE
B_JPEG = Save PGL .JPEG
-L_IntegrityCheck = Integrity Check:
B_VerifyCHK = Verify Checksums
-B_VerifySHA = Hashes
-L_SAVManipulation = Save File Manipulation:
-B_SwitchSAV = Switch SAV
-B_ExportSAV = Export SAV
! End
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION.
diff --git a/Resources/text/es/lang_es.txt b/Resources/text/es/lang_es.txt
index 9a842350f..ccfe9ffd1 100644
--- a/Resources/text/es/lang_es.txt
+++ b/Resources/text/es/lang_es.txt
@@ -10,16 +10,44 @@
! lang_zh.txt = Chinese
! lang_pt.txt = Portuguese
! Make sure that each edit has a ' = ' between Control name and new Text!
-! For the Menu Bar, separate the DropDown Item names with ' ; '
!
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Main Form (PKHeX window) below.
! Main = PKHeX
- Change stuff below this line, not above.
-----------------Overall PKX Interface------------------
-Menu_File = Archivo ; Abrir... ; Guardar Como... ; Salir
-Menu_Tools = Herramientas ; Activar Interfaz de Cajas ; Cargar/Exportar Cajas ; Reporte de la caja ; Generador de codigos
-Menu_Options = Opciones ; Idioma ; Sobre PKHeX
+---------------------Menu Strip------------------------
+Menu_File = Archivo
+Menu_Open = Abrir...
+Menu_Save = Guardar PK6...
+Menu_ExportSAV = Guardar SAV...
+Menu_Exit = Salir
+--
+Menu_Tools = Útiles
+Menu_Showdown = Showdown
+Menu_ShowdownImportPK6 = Import Set from Clipboard
+Menu_ShowdownExportPK6 = Export Set from Clipboard
+Menu_ShowdownExportParty = Export Party to Clipboard
+Menu_ShowdownExportBattleBox = Export Battle Box to Clipboard
+Menu_CyberGadget = CyberGadget
+Menu_CodeGenerator = Generador de codigos
+Menu_OpenTemp = Abrir carpeta Temp
+Menu_OpenCache = Abrir carpeta Cache
+Menu_Data = Data
+Menu_LoadBoxes = Cargar Cajas
+Menu_DumpBoxes = Exportar Cajas
+Menu_Report = Reporte de la caja
+Menu_Database = PK6 Database
+Menu_Other = Otro
+Menu_OpenSDF = Abrir carpeta SaveDataFiler
+Menu_OpenSDB = Abrir carpeta SaveDataBackup
+--
+Menu_Options = Opciones
+Menu_Language = Idioma
+Menu_Modify = Ajuste a SAV
+Menu_ModifyDex = Modificar Pokédex
+Menu_ModifyPK6 = Modificar PK6 Info
+Menu_Unicode = Cambiar Fuente
+Menu_About = Sobre PKHeX
--------------------Main Tab Data----------------------
Tab_Main = Inicio
Label_PID = PID:
@@ -91,12 +119,8 @@ GB_OT = Trainer Information
Label_TID = ID:
Label_SID = IDS:
Label_OT = EO:
-RB_OTM = M
-RB_OTF = H
GB_nOT = Ultimo dueño (no OT)
Label_PrevOT = OT:
-RB_nOTM = M
-RB_nOTF = H
GB_ExtraBytes = Bytes Extras
GB_Markings = Marcas
BTN_Ribbons = Listones/Medales
@@ -128,16 +152,10 @@ GB_SUBE = Viejo
DayCare_HasEgg = Huevo Disponible
L_DaycareSeed = Seed
L_ReadOnlyOther = Sólo leer.
-B_BoxIO = Abrir/Guardar Contenidos de la Caja
B_JPEG = Guardar PGL .JPEG
B_OpenHallofFame = Hall de la fama
B_OUTPasserby = Transeúntes
-L_IntegrityCheck = Chequeo de integridad:
B_VerifyCHK = Checksums
-B_VerifySHA = Hashes
-L_SAVManipulation = Manipular archivo de partida:
-B_SwitchSAV = Cambiar SAV
-B_ExportSAV = Exportar SAV
! End
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Ribbons / Medals UI Below
diff --git a/Resources/text/fr/lang_fr.txt b/Resources/text/fr/lang_fr.txt
index 07597ebfa..f5014d82a 100644
--- a/Resources/text/fr/lang_fr.txt
+++ b/Resources/text/fr/lang_fr.txt
@@ -10,16 +10,44 @@
! lang_zh.txt = Chinese
! lang_pt.txt = Portuguese
! Make sure that each edit has a ' = ' between Control name and new Text!
-! For the Menu Bar, separate the DropDown Item names with ' ; '
!
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Main Form (PKHeX window) below.
! Main = PKHeX
- Change stuff below this line, not above.
-----------------Overall PKX Interface------------------
-Menu_File = Fichier ; Ouvrir... ; Enregistrer sous... ; Quitter
-Menu_Tools = Outils ; Afficher l'interface avancée ; Charger / Dumper Boîtes ; Rapport de données Box; Générateur Code
-Menu_Options = Options ; Langue ; A propos de PKHeX
+---------------------Menu Strip------------------------
+Menu_File = File
+Menu_Open = Ouvrir...
+Menu_Save = Enregistrer PK6...
+Menu_ExportSAV = Enregistrer SAV...
+Menu_Exit = Quitter
+--
+Menu_Tools = Outils
+Menu_Showdown = Showdown
+Menu_ShowdownImportPK6 = Import Set from Clipboard
+Menu_ShowdownExportPK6 = Export Set from Clipboard
+Menu_ShowdownExportParty = Export Party to Clipboard
+Menu_ShowdownExportBattleBox = Export Battle Box to Clipboard
+Menu_CyberGadget = CyberGadget
+Menu_CodeGenerator = Générateur Code
+Menu_OpenTemp = Ouvrir le dossier Temp
+Menu_OpenCache = Ouvrir le dossier Cache
+Menu_Data = Données
+Menu_LoadBoxes = Charger Boîtes
+Menu_DumpBoxes = Dumper Boîtes
+Menu_Report = Rapport de données Box
+Menu_Database = Base de données PK6
+Menu_Other = Autre
+Menu_OpenSDF = Ouvrir le dossier SaveDataFiler
+Menu_OpenSDB = Ouvrir le dossier SaveDataBackup
+--
+Menu_Options = Options
+Menu_Language = Langue
+Menu_Modify = Réglez SAV
+Menu_ModifyDex = Modifier Pokédex Infos
+Menu_ModifyPK6 = Modifier PK6 Infos
+Menu_Unicode = Basculer la police
+Menu_About = A propos de PKHeX
--------------------Main Tab Data----------------------
Tab_Main = Général
Label_PID = PID:
@@ -91,12 +119,8 @@ GB_OT = Infos Dresseur
Label_TID = ID :
Label_SID = SID :
Label_OT = DO :
-RB_OTM = G
-RB_OTF = F
GB_nOT = Dernier Dresseur connu
Label_PrevOT = DO :
-RB_nOTM = G
-RB_nOTF = F
GB_ExtraBytes = Octets supplémentaires
GB_Markings = Marquages
BTN_Ribbons = Rubans / Médaill.
@@ -128,16 +152,10 @@ GB_SUBE = Vieil H.
DayCare_HasEgg = Œuf disponible
L_DaycareSeed = Seed
L_ReadOnlyOther = Cet onglet est en lecture seule.
-B_BoxIO = Ouvr./Sauv. Boîte
B_JPEG = Sauver image PGL
B_OpenHallofFame = Panthéon
B_OUTPasserby = PSS
-L_IntegrityCheck = Vérificateur avancé :
B_VerifyCHK = Checksums
-B_VerifySHA = Hashs
-L_SAVManipulation = Options de sauvegarde :
-B_SwitchSAV = Switcher SAV
-B_ExportSAV = Exporter SAV
! End
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Ribbons / Medals UI Below
diff --git a/Resources/text/ja/lang_ja.txt b/Resources/text/ja/lang_ja.txt
index d8fb14ebe..7487c2142 100644
--- a/Resources/text/ja/lang_ja.txt
+++ b/Resources/text/ja/lang_ja.txt
@@ -10,16 +10,44 @@
! lang_zh.txt = Chinese
! lang_pt.txt = Portuguese
! Make sure that each edit has a ' = ' between Control name and new Text!
-! For the Menu Bar, separate the DropDown Item names with ' ; '
!
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Main Form (PKHeX window) below.
! Main = PKHeX
- Change stuff below this line, not above.
-----------------Overall PKX Interface------------------
-Menu_File = ファイル ; 読み込み... ; 保存... ; やめる
-Menu_Tools = ツール ; トグルボックスインタフェース ; ロード/ダンプボックス ; ボックスデータレポート ; コード生成
-Menu_Options = 設定 ; 言語 ; PKHeXについて
+---------------------Menu Strip------------------------
+Menu_File = ファイル
+Menu_Open = 読み込み...
+Menu_Save = 保存 PK6...
+Menu_ExportSAV = 保存 SAV...
+Menu_Exit = やめる
+--
+Menu_Tools = ツール
+Menu_Showdown = Showdown
+Menu_ShowdownImportPK6 = Import Set from Clipboard
+Menu_ShowdownExportPK6 = Export Set from Clipboard
+Menu_ShowdownExportParty = Export Party to Clipboard
+Menu_ShowdownExportBattleBox = Export Battle Box to Clipboard
+Menu_CyberGadget = CyberGadget
+Menu_CodeGenerator = コード生成
+Menu_OpenTemp = オープンTempフォルダ
+Menu_OpenCache = オープンCacheフォルダ
+Menu_Data = データ
+Menu_LoadBoxes = ロードボックス
+Menu_DumpBoxes = ダンプボックス
+Menu_Report = ボックスデータレポート
+Menu_Database = PK6データベース
+Menu_Other = その他
+Menu_OpenSDF = オープンSaveDataFilerフォルダ
+Menu_OpenSDB = オープンSaveDataBackupフォルダ
+--
+Menu_Options = 設定
+Menu_Language = 言語
+Menu_Modify = SAVに設定
+Menu_ModifyDex = ポケモン図鑑を変更
+Menu_ModifyPK6 = PK6情報の変更
+Menu_Unicode = トグルフォント
+Menu_About = PKHeXについて
--------------------Main Tab Data----------------------
Tab_Main = メイン
Label_PID = PID:
@@ -124,16 +152,10 @@ GB_SUBE = オールド·マン
DayCare_HasEgg = 利用可能な卵
L_DaycareSeed = Seed
L_ReadOnlyOther = このタブは読み取り専用です。
-B_BoxIO = 開く/保存パッケージ内容
B_JPEG = 保存PGL。JPEG
B_OpenHallofFame = 殿堂入り
B_OUTPasserby = 通行人
-L_IntegrityCheck = 整合性チェック
B_VerifyCHK = チェックサム
-B_VerifySHA = ハッシュ
-L_SAVManipulation = ファイル操作を保存
-B_SwitchSAV = 変わるSAV
-B_ExportSAV = 輸出SAV
! End
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Ribbons / Medals UI Below
diff --git a/Resources/text/ko/lang_ko.txt b/Resources/text/ko/lang_ko.txt
index c2f10c436..7840948a0 100644
--- a/Resources/text/ko/lang_ko.txt
+++ b/Resources/text/ko/lang_ko.txt
@@ -10,16 +10,44 @@
! lang_zh.txt = Chinese
! lang_pt.txt = Portuguese
! Make sure that each edit has a ' = ' between Control name and new Text!
-! For the Menu Bar, separate the DropDown Item names with ' ; '
!
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Main Form (PKHeX window) below.
! Main = PKHeX
- Change stuff below this line, not above.
-----------------Overall PKX Interface------------------
-Menu_File = 파일 ; 열기... ; 다른 이름으로 저장... ; 종료
-Menu_Tools = 도구 ; Toggle Box Interface ; Load/Dump Boxes ; 박스 데이터 리포트 ; 코드 생성기
-Menu_Options = 옵션 ; 언어 ; PKHeX에 대하여 ; 폰트 변경
+---------------------Menu Strip------------------------
+Menu_File = 파일
+Menu_Open = 열기...
+Menu_Save = 저장 PK6...
+Menu_ExportSAV = 저장 SAV...
+Menu_Exit = 종료
+--
+Menu_Tools = 도구
+Menu_Showdown = Showdown
+Menu_ShowdownImportPK6 = Import Set from Clipboard
+Menu_ShowdownExportPK6 = Export Set from Clipboard
+Menu_ShowdownExportParty = Export Party to Clipboard
+Menu_ShowdownExportBattleBox = Export Battle Box to Clipboard
+Menu_CyberGadget = CyberGadget
+Menu_CodeGenerator = 코드 생성기
+Menu_OpenTemp = 열기 Temp 폴더
+Menu_OpenCache = 열기 Cache 폴더
+Menu_Data = 데이터
+Menu_LoadBoxes = 로드 박스
+Menu_DumpBoxes = 덤프 박스
+Menu_Report = 박스 데이터 리포트
+Menu_Database = PK6 데이터베이스
+Menu_Other = 다른
+Menu_OpenSDF = 열기 SaveDataFiler 폴더
+Menu_OpenSDB = 열기 SaveDataBackup 폴더
+--
+Menu_Options = 옵션
+Menu_Language = 언어
+Menu_Modify = SAV로 설정
+Menu_ModifyDex = 포켓몬 도감 수정
+Menu_ModifyPK6 = PK6 정보 수정
+Menu_Unicode = 폰트 변경
+Menu_About = PKHeX에 대하여
--------------------Main Tab Data----------------------
Tab_Main = 기본
Label_PID = PID:
@@ -91,12 +119,8 @@ GB_OT = 트레이너 정보
Label_TID = TID:
Label_SID = SID:
Label_OT = OT:
-RB_OTM = ♂
-RB_OTF = ♀
GB_nOT = 최근 (주인이 아닌) 트레이너
Label_PrevOT = 주인:
-RB_nOTM = ♂
-RB_nOTF = ♀
GB_ExtraBytes = Extra Bytes
GB_Markings = 마킹
BTN_Ribbons = 리본/메달
@@ -133,14 +157,8 @@ GB_SUBE = 노인
DayCare_HasEgg = 알 발견 가능여부
L_DaycareSeed = 시드
L_ReadOnlyOther = 이 탭은 읽기 전용입니다.
-B_3DSSETemp = Open Temp 3DSSE
B_JPEG = Save PGL .JPEG
-L_IntegrityCheck = 완전성 체크:
B_VerifyCHK = 체크섬
-B_VerifySHA = 해시
-L_SAVManipulation = 세이브파일 조작:
-B_SwitchSAV = SAV 교체
-B_ExportSAV = SAV 내보내기
! End
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION.
diff --git a/Resources/text/other/lang_pt.txt b/Resources/text/other/lang_pt.txt
index 378d4ac86..894ee0684 100644
--- a/Resources/text/other/lang_pt.txt
+++ b/Resources/text/other/lang_pt.txt
@@ -10,16 +10,44 @@
! lang_zh.txt = Chinese
! lang_pt.txt = Portuguese
! Make sure that each edit has a ' = ' between Control name and new Text!
-! For the Menu Bar, separate the DropDown Item names with ' ; '
!
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Main Form (PKHeX window) below.
! Main = PKHeX
- Change stuff below this line, not above.
-----------------Overall PKX Interface------------------
-Menu_File = Ficheiro ; Abrir... ; Guardar como... ; Sair
-Menu_Tools = Ferramentas ; Alternar Interface da Box ; Carregar/Despejar Boxes ; Relatório de Dados das Boxes ; Gerador de Código
-Menu_Options = Opções ; Idioma ; Sobre o PKHeX ; Mudar Fonte
+---------------------Menu Strip------------------------
+Menu_File = Ficheiro
+Menu_Open = Abrir...
+Menu_Save = Guardar PK6...
+Menu_ExportSAV = Guardar SAV...
+Menu_Exit = Sair
+--
+Menu_Tools = Ferramentas
+Menu_Showdown = Showdown
+Menu_ShowdownImportPK6 = Import Set from Clipboard
+Menu_ShowdownExportPK6 = Export Set from Clipboard
+Menu_ShowdownExportParty = Export Party to Clipboard
+Menu_ShowdownExportBattleBox = Export Battle Box to Clipboard
+Menu_CyberGadget = CyberGadget
+Menu_CodeGenerator = Gerador de Código
+Menu_OpenTemp = Abrir pasta Temp
+Menu_OpenCache = Abrir pasta Cache
+Menu_Data = Dados
+Menu_LoadBoxes = Carregar Boxes
+Menu_DumpBoxes = Despejar Boxes
+Menu_Report = Relatório de Dados das Boxes
+Menu_Database = PK6 Database
+Menu_Other = Outro
+Menu_OpenSDF = Abrir pasta SaveDataFiler
+Menu_OpenSDB = Abrir pasta SaveDataBackup
+--
+Menu_Options = Opções
+Menu_Language = Idioma
+Menu_Modify = Defina para SAV
+Menu_ModifyDex = Modificar Pokédex
+Menu_ModifyPK6 = Modificar PK6 Info
+Menu_Unicode = Mudar Fonte
+Menu_About = Sobre o PKHeX
--------------------Main Tab Data----------------------
Tab_Main = Principal
Label_PID = PID:
@@ -91,12 +119,8 @@ GB_OT = Informação do Treinador
Label_TID = TID:
Label_SID = SID:
Label_OT = OT:
-RB_OTM = ?
-RB_OTF = ?
GB_nOT = Último (não OT) Treinador
Label_PrevOT = OT:
-RB_nOTM = ?
-RB_nOTF = ?
GB_ExtraBytes = Bytes Extra
GB_Markings = Marcas
BTN_Ribbons = Fitas/Medalhas
@@ -133,14 +157,8 @@ GB_SUBE = Velhote
DayCare_HasEgg = Ovo Disponível
L_DaycareSeed = Semente
L_ReadOnlyOther = Este separador é só de leitura.
-B_3DSSETemp = Abrir Temp 3DSSE
B_JPEG = Gravar PGL .JPEG
-L_IntegrityCheck = Verificação de Integridade:
B_VerifyCHK = Checksums
-B_VerifySHA = Hashes
-L_SAVManipulation = Manipulação do Ficheiro Guardado:
-B_SwitchSAV = Mudar SAV
-B_ExportSAV = Exportar SAV
! End
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION.
diff --git a/Resources/text/zh/lang_zh.txt b/Resources/text/zh/lang_zh.txt
index edd5227fd..14788ba22 100644
--- a/Resources/text/zh/lang_zh.txt
+++ b/Resources/text/zh/lang_zh.txt
@@ -10,16 +10,44 @@
! lang_zh.txt = Chinese
! lang_pt.txt = Portuguese
! Make sure that each edit has a ' = ' between Control name and new Text!
-! For the Menu Bar, separate the DropDown Item names with ' ; '
!
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Main Form (PKHeX window) below.
! Main = PKHeX
- Change stuff below this line, not above.
-----------------Overall PKX Interface------------------
-Menu_File = 文件 ; 读取... ; 保存... ; 退出
-Menu_Tools = 工具 ; 切换到箱子界面 ; 加载/转储箱 ; 箱子数据报告 ; 生成代码
-Menu_Options = 设置 ; 语言 ; 关于PKHeX ; Unicode
+---------------------Menu Strip------------------------
+Menu_File = 文件
+Menu_Open = 读取...
+Menu_Save = 保存 PK6...
+Menu_ExportSAV = 保存 SAV...
+Menu_Exit = 退出
+--
+Menu_Tools = 工具
+Menu_Showdown = Showdown
+Menu_ShowdownImportPK6 = 导入设置从剪贴板
+Menu_ShowdownExportPK6 = 出口设定从剪贴板
+Menu_ShowdownExportParty = 出口党到剪贴板
+Menu_ShowdownExportBattleBox = 出口碉堡到剪贴板
+Menu_CyberGadget = CyberGadget
+Menu_CodeGenerator = 生成代码
+Menu_OpenTemp = 打开文件夹Temp
+Menu_OpenCache = 打开文件夹Cache
+Menu_Data = 数据
+Menu_LoadBoxes = 负载箱
+Menu_DumpBoxes = 出口箱
+Menu_Report = 箱子数据报告
+Menu_Database = PK6数据库
+Menu_Other = 其他
+Menu_OpenSDF = 打开文件夹SaveDataFiler
+Menu_OpenSDB = 打开文件夹SaveDataBackup
+--
+Menu_Options = 设置
+Menu_Language = 语言
+Menu_Modify = 设置为SAV
+Menu_ModifyDex = 修改图鉴
+Menu_ModifyPK6 = 修改PK6信息
+Menu_Unicode = 切换的Unicode
+Menu_About = 关于PKHeX
--------------------Main Tab Data----------------------
Tab_Main = 主界面
Label_PID = PID:
@@ -124,16 +152,10 @@ GB_SUBE = SUBE
DayCare_HasEgg = 拥有蛋
L_DaycareSeed = 种子
L_ReadOnlyOther = 此选项卡是只读
-B_BoxIO = 读取/保存精灵箱子内容
B_JPEG = 保存PGL.JPEG
B_OpenHallofFame = 名人堂
B_OUTPasserby = 路人
-L_IntegrityCheck = 检测完整性
B_VerifyCHK = 校验
-B_VerifySHA = 哈希值
-L_SAVManipulation = 保存编辑过的文件
-B_SwitchSAV = 更变SAV
-B_ExportSAV = 输出SAV
! End
! -----------------------------------------------------
- DO NOT CHANGE THIS SECTION. Ribbons / Medals UI Below
@@ -273,4 +295,4 @@ L_Region = 地域
L_Country = 国
--
L_Arguments = 使用禁止 ; 左はありませんでした ; OT ; 前回のゲーム ; との思い出 ; ポケモン ; エリア ; 項目 ; わざ ; 場所 ;
-! End
+! End
\ No newline at end of file