Add Restore Custom Command Button

i18n Update
This commit is contained in:
2022-05-21 15:48:27 +08:00
parent 563cee5c4c
commit 037d2c4a5a
9 changed files with 4404 additions and 6134 deletions

View File

@ -52,6 +52,7 @@ namespace GrasscutterTools.Forms
this.BtnLoadCustomCommands = new System.Windows.Forms.Button(); this.BtnLoadCustomCommands = new System.Windows.Forms.Button();
this.LblCustomName = new System.Windows.Forms.Label(); this.LblCustomName = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.LnkResetCustomCommands = new System.Windows.Forms.LinkLabel();
this.FLPCustomCommands = new System.Windows.Forms.FlowLayoutPanel(); this.FLPCustomCommands = new System.Windows.Forms.FlowLayoutPanel();
this.BtnRemoveCustomCommand = new System.Windows.Forms.Button(); this.BtnRemoveCustomCommand = new System.Windows.Forms.Button();
this.BtnSaveCustomCommand = new System.Windows.Forms.Button(); this.BtnSaveCustomCommand = new System.Windows.Forms.Button();
@ -316,12 +317,12 @@ namespace GrasscutterTools.Forms
// //
// TPHome // TPHome
// //
resources.ApplyResources(this.TPHome, "TPHome");
this.TPHome.Controls.Add(this.LblAbout); this.TPHome.Controls.Add(this.LblAbout);
this.TPHome.Controls.Add(this.BtnOpenTextMap); this.TPHome.Controls.Add(this.BtnOpenTextMap);
this.TPHome.Controls.Add(this.BtnOpenGachaBannerEditor); this.TPHome.Controls.Add(this.BtnOpenGachaBannerEditor);
this.TPHome.Controls.Add(this.pictureBox1); this.TPHome.Controls.Add(this.pictureBox1);
this.TPHome.Controls.Add(this.GrpSettings); this.TPHome.Controls.Add(this.GrpSettings);
resources.ApplyResources(this.TPHome, "TPHome");
this.TPHome.Name = "TPHome"; this.TPHome.Name = "TPHome";
this.TPHome.UseVisualStyleBackColor = true; this.TPHome.UseVisualStyleBackColor = true;
// //
@ -364,9 +365,9 @@ namespace GrasscutterTools.Forms
// //
// CmbLanguage // CmbLanguage
// //
resources.ApplyResources(this.CmbLanguage, "CmbLanguage");
this.CmbLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CmbLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CmbLanguage.FormattingEnabled = true; this.CmbLanguage.FormattingEnabled = true;
resources.ApplyResources(this.CmbLanguage, "CmbLanguage");
this.CmbLanguage.Name = "CmbLanguage"; this.CmbLanguage.Name = "CmbLanguage";
this.CmbLanguage.SelectedIndexChanged += new System.EventHandler(this.CmbLanguage_SelectedIndexChanged); this.CmbLanguage.SelectedIndexChanged += new System.EventHandler(this.CmbLanguage_SelectedIndexChanged);
// //
@ -403,6 +404,7 @@ namespace GrasscutterTools.Forms
// //
// TPCustom // TPCustom
// //
resources.ApplyResources(this.TPCustom, "TPCustom");
this.TPCustom.Controls.Add(this.BtnExportCustomCommands); this.TPCustom.Controls.Add(this.BtnExportCustomCommands);
this.TPCustom.Controls.Add(this.BtnLoadCustomCommands); this.TPCustom.Controls.Add(this.BtnLoadCustomCommands);
this.TPCustom.Controls.Add(this.LblCustomName); this.TPCustom.Controls.Add(this.LblCustomName);
@ -410,7 +412,6 @@ namespace GrasscutterTools.Forms
this.TPCustom.Controls.Add(this.BtnRemoveCustomCommand); this.TPCustom.Controls.Add(this.BtnRemoveCustomCommand);
this.TPCustom.Controls.Add(this.BtnSaveCustomCommand); this.TPCustom.Controls.Add(this.BtnSaveCustomCommand);
this.TPCustom.Controls.Add(this.TxtCustomName); this.TPCustom.Controls.Add(this.TxtCustomName);
resources.ApplyResources(this.TPCustom, "TPCustom");
this.TPCustom.Name = "TPCustom"; this.TPCustom.Name = "TPCustom";
this.TPCustom.UseVisualStyleBackColor = true; this.TPCustom.UseVisualStyleBackColor = true;
// //
@ -436,10 +437,18 @@ namespace GrasscutterTools.Forms
// groupBox1 // groupBox1
// //
resources.ApplyResources(this.groupBox1, "groupBox1"); resources.ApplyResources(this.groupBox1, "groupBox1");
this.groupBox1.Controls.Add(this.LnkResetCustomCommands);
this.groupBox1.Controls.Add(this.FLPCustomCommands); this.groupBox1.Controls.Add(this.FLPCustomCommands);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
// //
// LnkResetCustomCommands
//
resources.ApplyResources(this.LnkResetCustomCommands, "LnkResetCustomCommands");
this.LnkResetCustomCommands.Name = "LnkResetCustomCommands";
this.LnkResetCustomCommands.TabStop = true;
this.LnkResetCustomCommands.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkResetCustomCommands_LinkClicked);
//
// FLPCustomCommands // FLPCustomCommands
// //
resources.ApplyResources(this.FLPCustomCommands, "FLPCustomCommands"); resources.ApplyResources(this.FLPCustomCommands, "FLPCustomCommands");
@ -466,6 +475,7 @@ namespace GrasscutterTools.Forms
// //
// TPArtifact // TPArtifact
// //
resources.ApplyResources(this.TPArtifact, "TPArtifact");
this.TPArtifact.Controls.Add(this.BtnAddSubAttr); this.TPArtifact.Controls.Add(this.BtnAddSubAttr);
this.TPArtifact.Controls.Add(this.LblArtifactName); this.TPArtifact.Controls.Add(this.LblArtifactName);
this.TPArtifact.Controls.Add(this.NUDArtifactStars); this.TPArtifact.Controls.Add(this.NUDArtifactStars);
@ -485,7 +495,6 @@ namespace GrasscutterTools.Forms
this.TPArtifact.Controls.Add(this.LblSubAttribution); this.TPArtifact.Controls.Add(this.LblSubAttribution);
this.TPArtifact.Controls.Add(this.CmbMainAttribution); this.TPArtifact.Controls.Add(this.CmbMainAttribution);
this.TPArtifact.Controls.Add(this.LblMainAttribution); this.TPArtifact.Controls.Add(this.LblMainAttribution);
resources.ApplyResources(this.TPArtifact, "TPArtifact");
this.TPArtifact.Name = "TPArtifact"; this.TPArtifact.Name = "TPArtifact";
this.TPArtifact.UseVisualStyleBackColor = true; this.TPArtifact.UseVisualStyleBackColor = true;
// //
@ -656,13 +665,13 @@ namespace GrasscutterTools.Forms
// //
// TPQuest // TPQuest
// //
resources.ApplyResources(this.TPQuest, "TPQuest");
this.TPQuest.Controls.Add(this.GrpQuestFilters); this.TPQuest.Controls.Add(this.GrpQuestFilters);
this.TPQuest.Controls.Add(this.BtnFinishQuest); this.TPQuest.Controls.Add(this.BtnFinishQuest);
this.TPQuest.Controls.Add(this.BtnAddQuest); this.TPQuest.Controls.Add(this.BtnAddQuest);
this.TPQuest.Controls.Add(this.LblQuestDescription); this.TPQuest.Controls.Add(this.LblQuestDescription);
this.TPQuest.Controls.Add(this.TxtQuestFilter); this.TPQuest.Controls.Add(this.TxtQuestFilter);
this.TPQuest.Controls.Add(this.ListQuest); this.TPQuest.Controls.Add(this.ListQuest);
resources.ApplyResources(this.TPQuest, "TPQuest");
this.TPQuest.Name = "TPQuest"; this.TPQuest.Name = "TPQuest";
this.TPQuest.UseVisualStyleBackColor = true; this.TPQuest.UseVisualStyleBackColor = true;
// //
@ -734,6 +743,7 @@ namespace GrasscutterTools.Forms
// //
// TPSpawn // TPSpawn
// //
resources.ApplyResources(this.TPSpawn, "TPSpawn");
this.TPSpawn.Controls.Add(this.BtnSaveSpawnLog); this.TPSpawn.Controls.Add(this.BtnSaveSpawnLog);
this.TPSpawn.Controls.Add(this.BtnRemoveSpawnLog); this.TPSpawn.Controls.Add(this.BtnRemoveSpawnLog);
this.TPSpawn.Controls.Add(this.GrpSpawnRecord); this.TPSpawn.Controls.Add(this.GrpSpawnRecord);
@ -745,7 +755,6 @@ namespace GrasscutterTools.Forms
this.TPSpawn.Controls.Add(this.NUDEntityLevel); this.TPSpawn.Controls.Add(this.NUDEntityLevel);
this.TPSpawn.Controls.Add(this.TxtEntityFilter); this.TPSpawn.Controls.Add(this.TxtEntityFilter);
this.TPSpawn.Controls.Add(this.ListEntity); this.TPSpawn.Controls.Add(this.ListEntity);
resources.ApplyResources(this.TPSpawn, "TPSpawn");
this.TPSpawn.Name = "TPSpawn"; this.TPSpawn.Name = "TPSpawn";
this.TPSpawn.UseVisualStyleBackColor = true; this.TPSpawn.UseVisualStyleBackColor = true;
// //
@ -888,13 +897,13 @@ namespace GrasscutterTools.Forms
// //
// TPAvatar // TPAvatar
// //
resources.ApplyResources(this.TPAvatar, "TPAvatar");
this.TPAvatar.Controls.Add(this.LblAvatarGenWarning); this.TPAvatar.Controls.Add(this.LblAvatarGenWarning);
this.TPAvatar.Controls.Add(this.ImgAvatar); this.TPAvatar.Controls.Add(this.ImgAvatar);
this.TPAvatar.Controls.Add(this.LblAvatar); this.TPAvatar.Controls.Add(this.LblAvatar);
this.TPAvatar.Controls.Add(this.LblLevel); this.TPAvatar.Controls.Add(this.LblLevel);
this.TPAvatar.Controls.Add(this.NUDAvatarLevel); this.TPAvatar.Controls.Add(this.NUDAvatarLevel);
this.TPAvatar.Controls.Add(this.CmbAvatar); this.TPAvatar.Controls.Add(this.CmbAvatar);
resources.ApplyResources(this.TPAvatar, "TPAvatar");
this.TPAvatar.Name = "TPAvatar"; this.TPAvatar.Name = "TPAvatar";
this.TPAvatar.UseVisualStyleBackColor = true; this.TPAvatar.UseVisualStyleBackColor = true;
// //
@ -952,10 +961,10 @@ namespace GrasscutterTools.Forms
// //
// TPStats // TPStats
// //
resources.ApplyResources(this.TPStats, "TPStats");
this.TPStats.Controls.Add(this.GrpSetStats); this.TPStats.Controls.Add(this.GrpSetStats);
this.TPStats.Controls.Add(this.GrpTalentLevel); this.TPStats.Controls.Add(this.GrpTalentLevel);
this.TPStats.Controls.Add(this.LblStatsDescription); this.TPStats.Controls.Add(this.LblStatsDescription);
resources.ApplyResources(this.TPStats, "TPStats");
this.TPStats.Name = "TPStats"; this.TPStats.Name = "TPStats";
this.TPStats.UseVisualStyleBackColor = true; this.TPStats.UseVisualStyleBackColor = true;
// //
@ -998,9 +1007,9 @@ namespace GrasscutterTools.Forms
// //
// CmbStat // CmbStat
// //
resources.ApplyResources(this.CmbStat, "CmbStat");
this.CmbStat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CmbStat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CmbStat.FormattingEnabled = true; this.CmbStat.FormattingEnabled = true;
resources.ApplyResources(this.CmbStat, "CmbStat");
this.CmbStat.Name = "CmbStat"; this.CmbStat.Name = "CmbStat";
this.CmbStat.SelectedIndexChanged += new System.EventHandler(this.SetStatsInputChanged); this.CmbStat.SelectedIndexChanged += new System.EventHandler(this.SetStatsInputChanged);
// //
@ -1060,6 +1069,7 @@ namespace GrasscutterTools.Forms
// //
// TPWeapon // TPWeapon
// //
resources.ApplyResources(this.TPWeapon, "TPWeapon");
this.TPWeapon.Controls.Add(this.TxtWeaponFilter); this.TPWeapon.Controls.Add(this.TxtWeaponFilter);
this.TPWeapon.Controls.Add(this.LblWeaponDescription); this.TPWeapon.Controls.Add(this.LblWeaponDescription);
this.TPWeapon.Controls.Add(this.LblWeaponRefinement); this.TPWeapon.Controls.Add(this.LblWeaponRefinement);
@ -1069,7 +1079,6 @@ namespace GrasscutterTools.Forms
this.TPWeapon.Controls.Add(this.NUDWeaponAmout); this.TPWeapon.Controls.Add(this.NUDWeaponAmout);
this.TPWeapon.Controls.Add(this.NUDWeaponLevel); this.TPWeapon.Controls.Add(this.NUDWeaponLevel);
this.TPWeapon.Controls.Add(this.ListWeapons); this.TPWeapon.Controls.Add(this.ListWeapons);
resources.ApplyResources(this.TPWeapon, "TPWeapon");
this.TPWeapon.Name = "TPWeapon"; this.TPWeapon.Name = "TPWeapon";
this.TPWeapon.UseVisualStyleBackColor = true; this.TPWeapon.UseVisualStyleBackColor = true;
// //
@ -1166,6 +1175,7 @@ namespace GrasscutterTools.Forms
// //
// TPItem // TPItem
// //
resources.ApplyResources(this.TPItem, "TPItem");
this.TPItem.Controls.Add(this.BtnSaveGiveItemLog); this.TPItem.Controls.Add(this.BtnSaveGiveItemLog);
this.TPItem.Controls.Add(this.BtnRemoveGiveItemLog); this.TPItem.Controls.Add(this.BtnRemoveGiveItemLog);
this.TPItem.Controls.Add(this.GrpGiveItemRecord); this.TPItem.Controls.Add(this.GrpGiveItemRecord);
@ -1177,7 +1187,6 @@ namespace GrasscutterTools.Forms
this.TPItem.Controls.Add(this.NUDGameItemAmout); this.TPItem.Controls.Add(this.NUDGameItemAmout);
this.TPItem.Controls.Add(this.NUDGameItemLevel); this.TPItem.Controls.Add(this.NUDGameItemLevel);
this.TPItem.Controls.Add(this.LblGiveCommandDescription); this.TPItem.Controls.Add(this.LblGiveCommandDescription);
resources.ApplyResources(this.TPItem, "TPItem");
this.TPItem.Name = "TPItem"; this.TPItem.Name = "TPItem";
this.TPItem.UseVisualStyleBackColor = true; this.TPItem.UseVisualStyleBackColor = true;
// //
@ -1288,6 +1297,7 @@ namespace GrasscutterTools.Forms
// //
// TPScene // TPScene
// //
resources.ApplyResources(this.TPScene, "TPScene");
this.TPScene.Controls.Add(this.ChkIncludeSceneId); this.TPScene.Controls.Add(this.ChkIncludeSceneId);
this.TPScene.Controls.Add(this.LblTp); this.TPScene.Controls.Add(this.LblTp);
this.TPScene.Controls.Add(this.LblTpZ); this.TPScene.Controls.Add(this.LblTpZ);
@ -1301,7 +1311,6 @@ namespace GrasscutterTools.Forms
this.TPScene.Controls.Add(this.LblClimateType); this.TPScene.Controls.Add(this.LblClimateType);
this.TPScene.Controls.Add(this.LblSceneDescription); this.TPScene.Controls.Add(this.LblSceneDescription);
this.TPScene.Controls.Add(this.ListScenes); this.TPScene.Controls.Add(this.ListScenes);
resources.ApplyResources(this.TPScene, "TPScene");
this.TPScene.Name = "TPScene"; this.TPScene.Name = "TPScene";
this.TPScene.UseVisualStyleBackColor = true; this.TPScene.UseVisualStyleBackColor = true;
// //
@ -1340,12 +1349,12 @@ namespace GrasscutterTools.Forms
// //
// NUDTpZ // NUDTpZ
// //
resources.ApplyResources(this.NUDTpZ, "NUDTpZ");
this.NUDTpZ.Increment = new decimal(new int[] { this.NUDTpZ.Increment = new decimal(new int[] {
100, 100,
0, 0,
0, 0,
0}); 0});
resources.ApplyResources(this.NUDTpZ, "NUDTpZ");
this.NUDTpZ.Maximum = new decimal(new int[] { this.NUDTpZ.Maximum = new decimal(new int[] {
2147483647, 2147483647,
0, 0,
@ -1360,12 +1369,12 @@ namespace GrasscutterTools.Forms
// //
// NUDTpY // NUDTpY
// //
resources.ApplyResources(this.NUDTpY, "NUDTpY");
this.NUDTpY.Increment = new decimal(new int[] { this.NUDTpY.Increment = new decimal(new int[] {
100, 100,
0, 0,
0, 0,
0}); 0});
resources.ApplyResources(this.NUDTpY, "NUDTpY");
this.NUDTpY.Maximum = new decimal(new int[] { this.NUDTpY.Maximum = new decimal(new int[] {
2147483647, 2147483647,
0, 0,
@ -1385,12 +1394,12 @@ namespace GrasscutterTools.Forms
// //
// NUDTpX // NUDTpX
// //
resources.ApplyResources(this.NUDTpX, "NUDTpX");
this.NUDTpX.Increment = new decimal(new int[] { this.NUDTpX.Increment = new decimal(new int[] {
100, 100,
0, 0,
0, 0,
0}); 0});
resources.ApplyResources(this.NUDTpX, "NUDTpX");
this.NUDTpX.Maximum = new decimal(new int[] { this.NUDTpX.Maximum = new decimal(new int[] {
2147483647, 2147483647,
0, 0,
@ -1405,9 +1414,9 @@ namespace GrasscutterTools.Forms
// //
// CmbClimateType // CmbClimateType
// //
resources.ApplyResources(this.CmbClimateType, "CmbClimateType");
this.CmbClimateType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CmbClimateType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CmbClimateType.FormattingEnabled = true; this.CmbClimateType.FormattingEnabled = true;
resources.ApplyResources(this.CmbClimateType, "CmbClimateType");
this.CmbClimateType.Name = "CmbClimateType"; this.CmbClimateType.Name = "CmbClimateType";
this.CmbClimateType.SelectedIndexChanged += new System.EventHandler(this.CmbClimateType_SelectedIndexChanged); this.CmbClimateType.SelectedIndexChanged += new System.EventHandler(this.CmbClimateType_SelectedIndexChanged);
// //
@ -1430,9 +1439,9 @@ namespace GrasscutterTools.Forms
// //
// TPManage // TPManage
// //
resources.ApplyResources(this.TPManage, "TPManage");
this.TPManage.Controls.Add(this.GrpAccount); this.TPManage.Controls.Add(this.GrpAccount);
this.TPManage.Controls.Add(this.GrpPermission); this.TPManage.Controls.Add(this.GrpPermission);
resources.ApplyResources(this.TPManage, "TPManage");
this.TPManage.Name = "TPManage"; this.TPManage.Name = "TPManage";
this.TPManage.UseVisualStyleBackColor = true; this.TPManage.UseVisualStyleBackColor = true;
// //
@ -1509,10 +1518,10 @@ namespace GrasscutterTools.Forms
// //
// CmbPerm // CmbPerm
// //
resources.ApplyResources(this.CmbPerm, "CmbPerm");
this.CmbPerm.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.CmbPerm.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.CmbPerm.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.CmbPerm.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CmbPerm.FormattingEnabled = true; this.CmbPerm.FormattingEnabled = true;
resources.ApplyResources(this.CmbPerm, "CmbPerm");
this.CmbPerm.Name = "CmbPerm"; this.CmbPerm.Name = "CmbPerm";
// //
// NUDPermUID // NUDPermUID
@ -1558,10 +1567,10 @@ namespace GrasscutterTools.Forms
// //
// TPAbout // TPAbout
// //
resources.ApplyResources(this.TPAbout, "TPAbout");
this.TPAbout.Controls.Add(this.pictureBox2); this.TPAbout.Controls.Add(this.pictureBox2);
this.TPAbout.Controls.Add(this.LnkGithub); this.TPAbout.Controls.Add(this.LnkGithub);
this.TPAbout.Controls.Add(this.LblSupportDescription); this.TPAbout.Controls.Add(this.LblSupportDescription);
resources.ApplyResources(this.TPAbout, "TPAbout");
this.TPAbout.Name = "TPAbout"; this.TPAbout.Name = "TPAbout";
this.TPAbout.UseVisualStyleBackColor = true; this.TPAbout.UseVisualStyleBackColor = true;
// //
@ -1586,24 +1595,24 @@ namespace GrasscutterTools.Forms
// //
// TPRemoteCall // TPRemoteCall
// //
resources.ApplyResources(this.TPRemoteCall, "TPRemoteCall");
this.TPRemoteCall.Controls.Add(this.GrpServerStatus); this.TPRemoteCall.Controls.Add(this.GrpServerStatus);
this.TPRemoteCall.Controls.Add(this.GrpRemoteCommand); this.TPRemoteCall.Controls.Add(this.GrpRemoteCommand);
this.TPRemoteCall.Controls.Add(this.TxtHost); this.TPRemoteCall.Controls.Add(this.TxtHost);
this.TPRemoteCall.Controls.Add(this.BtnQueryServerStatus); this.TPRemoteCall.Controls.Add(this.BtnQueryServerStatus);
this.TPRemoteCall.Controls.Add(this.LblHost); this.TPRemoteCall.Controls.Add(this.LblHost);
resources.ApplyResources(this.TPRemoteCall, "TPRemoteCall");
this.TPRemoteCall.Name = "TPRemoteCall"; this.TPRemoteCall.Name = "TPRemoteCall";
this.TPRemoteCall.UseVisualStyleBackColor = true; this.TPRemoteCall.UseVisualStyleBackColor = true;
// //
// GrpServerStatus // GrpServerStatus
// //
resources.ApplyResources(this.GrpServerStatus, "GrpServerStatus");
this.GrpServerStatus.Controls.Add(this.LnkOpenCommandLabel); this.GrpServerStatus.Controls.Add(this.LnkOpenCommandLabel);
this.GrpServerStatus.Controls.Add(this.LblOpenCommandSupport); this.GrpServerStatus.Controls.Add(this.LblOpenCommandSupport);
this.GrpServerStatus.Controls.Add(this.LblServerVersion); this.GrpServerStatus.Controls.Add(this.LblServerVersion);
this.GrpServerStatus.Controls.Add(this.LblPlayerCount); this.GrpServerStatus.Controls.Add(this.LblPlayerCount);
this.GrpServerStatus.Controls.Add(this.LblServerVersionLabel); this.GrpServerStatus.Controls.Add(this.LblServerVersionLabel);
this.GrpServerStatus.Controls.Add(this.LblPlayerCountLabel); this.GrpServerStatus.Controls.Add(this.LblPlayerCountLabel);
resources.ApplyResources(this.GrpServerStatus, "GrpServerStatus");
this.GrpServerStatus.Name = "GrpServerStatus"; this.GrpServerStatus.Name = "GrpServerStatus";
this.GrpServerStatus.TabStop = false; this.GrpServerStatus.TabStop = false;
// //
@ -1648,14 +1657,15 @@ namespace GrasscutterTools.Forms
// //
// TPOpenCommandCheck // TPOpenCommandCheck
// //
resources.ApplyResources(this.TPOpenCommandCheck, "TPOpenCommandCheck");
this.TPOpenCommandCheck.Controls.Add(this.TPPlayerCheck); this.TPOpenCommandCheck.Controls.Add(this.TPPlayerCheck);
this.TPOpenCommandCheck.Controls.Add(this.TPConsoleCheck); this.TPOpenCommandCheck.Controls.Add(this.TPConsoleCheck);
resources.ApplyResources(this.TPOpenCommandCheck, "TPOpenCommandCheck");
this.TPOpenCommandCheck.Name = "TPOpenCommandCheck"; this.TPOpenCommandCheck.Name = "TPOpenCommandCheck";
this.TPOpenCommandCheck.SelectedIndex = 0; this.TPOpenCommandCheck.SelectedIndex = 0;
// //
// TPPlayerCheck // TPPlayerCheck
// //
resources.ApplyResources(this.TPPlayerCheck, "TPPlayerCheck");
this.TPPlayerCheck.Controls.Add(this.LnkRCHelp); this.TPPlayerCheck.Controls.Add(this.LnkRCHelp);
this.TPPlayerCheck.Controls.Add(this.NUDRemotePlayerId); this.TPPlayerCheck.Controls.Add(this.NUDRemotePlayerId);
this.TPPlayerCheck.Controls.Add(this.BtnConnectOpenCommand); this.TPPlayerCheck.Controls.Add(this.BtnConnectOpenCommand);
@ -1663,7 +1673,6 @@ namespace GrasscutterTools.Forms
this.TPPlayerCheck.Controls.Add(this.BtnSendVerificationCode); this.TPPlayerCheck.Controls.Add(this.BtnSendVerificationCode);
this.TPPlayerCheck.Controls.Add(this.NUDVerificationCode); this.TPPlayerCheck.Controls.Add(this.NUDVerificationCode);
this.TPPlayerCheck.Controls.Add(this.LblRemotePlayerId); this.TPPlayerCheck.Controls.Add(this.LblRemotePlayerId);
resources.ApplyResources(this.TPPlayerCheck, "TPPlayerCheck");
this.TPPlayerCheck.Name = "TPPlayerCheck"; this.TPPlayerCheck.Name = "TPPlayerCheck";
this.TPPlayerCheck.UseVisualStyleBackColor = true; this.TPPlayerCheck.UseVisualStyleBackColor = true;
// //
@ -1735,11 +1744,11 @@ namespace GrasscutterTools.Forms
// //
// TPConsoleCheck // TPConsoleCheck
// //
resources.ApplyResources(this.TPConsoleCheck, "TPConsoleCheck");
this.TPConsoleCheck.Controls.Add(this.BtnConsoleConnect); this.TPConsoleCheck.Controls.Add(this.BtnConsoleConnect);
this.TPConsoleCheck.Controls.Add(this.TxtToken); this.TPConsoleCheck.Controls.Add(this.TxtToken);
this.TPConsoleCheck.Controls.Add(this.LblToken); this.TPConsoleCheck.Controls.Add(this.LblToken);
this.TPConsoleCheck.Controls.Add(this.LblConsoleTip); this.TPConsoleCheck.Controls.Add(this.LblConsoleTip);
resources.ApplyResources(this.TPConsoleCheck, "TPConsoleCheck");
this.TPConsoleCheck.Name = "TPConsoleCheck"; this.TPConsoleCheck.Name = "TPConsoleCheck";
this.TPConsoleCheck.UseVisualStyleBackColor = true; this.TPConsoleCheck.UseVisualStyleBackColor = true;
// //
@ -1805,6 +1814,7 @@ namespace GrasscutterTools.Forms
this.TPCustom.ResumeLayout(false); this.TPCustom.ResumeLayout(false);
this.TPCustom.PerformLayout(); this.TPCustom.PerformLayout();
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.TPArtifact.ResumeLayout(false); this.TPArtifact.ResumeLayout(false);
this.TPArtifact.PerformLayout(); this.TPArtifact.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.NUDArtifactStars)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.NUDArtifactStars)).EndInit();
@ -2050,6 +2060,7 @@ namespace GrasscutterTools.Forms
private System.Windows.Forms.TextBox TxtToken; private System.Windows.Forms.TextBox TxtToken;
private System.Windows.Forms.Label LblToken; private System.Windows.Forms.Label LblToken;
private System.Windows.Forms.Label LblConsoleTip; private System.Windows.Forms.Label LblConsoleTip;
private System.Windows.Forms.LinkLabel LnkResetCustomCommands;
} }
} }

View File

@ -352,6 +352,16 @@ namespace GrasscutterTools.Forms
} }
} }
private void LnkResetCustomCommands_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (MessageBox.Show(Resources.RestoreCustomCommands, Resources.Tips, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
{
if (File.Exists(CustomCommandsFilePath))
File.Delete(CustomCommandsFilePath);
LoadCustomCommandControls(Resources.CustomCommands);
}
}
#endregion - - #endregion - -
#region - - #region - -
@ -1106,7 +1116,7 @@ namespace GrasscutterTools.Forms
Task.Run(async () => Task.Run(async () =>
{ {
await Task.Delay(1000); await Task.Delay(1000);
BeginInvoke(new Action(() => ShowTip("已从缓存中恢复Token", BtnInvokeOpenCommand))); BeginInvoke(new Action(() => ShowTip(Resources.TokenRestoredFromCache, BtnInvokeOpenCommand)));
}); });
} }
} }
@ -1136,7 +1146,7 @@ namespace GrasscutterTools.Forms
} }
catch (Exception ex) catch (Exception ex)
{ {
MessageBox.Show("查询服务端状态失败:" + ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(Resources.QueryServerStatusFailed + ex.Message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
OC = new OpenCommandAPI(TxtHost.Text); OC = new OpenCommandAPI(TxtHost.Text);
@ -1221,7 +1231,7 @@ namespace GrasscutterTools.Forms
{ {
if (string.IsNullOrEmpty(TxtToken.Text)) if (string.IsNullOrEmpty(TxtToken.Text))
{ {
MessageBox.Show("Token不能为空", Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(Resources.TokenCannotBeEmpty, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
return; return;
} }
OC.Token = TxtToken.Text; OC.Token = TxtToken.Text;

View File

@ -193,6 +193,15 @@
<data name="groupBox1.Text" xml:space="preserve"> <data name="groupBox1.Text" xml:space="preserve">
<value>List</value> <value>List</value>
</data> </data>
<data name="LnkResetCustomCommands.Location" type="System.Drawing.Point, System.Drawing">
<value>531, -1</value>
</data>
<data name="LnkResetCustomCommands.Size" type="System.Drawing.Size, System.Drawing">
<value>53, 17</value>
</data>
<data name="LnkResetCustomCommands.Text" xml:space="preserve">
<value>Restore</value>
</data>
<data name="BtnRemoveCustomCommand.Location" type="System.Drawing.Point, System.Drawing"> <data name="BtnRemoveCustomCommand.Location" type="System.Drawing.Point, System.Drawing">
<value>393, 216</value> <value>393, 216</value>
</data> </data>
@ -854,6 +863,6 @@ Tip: Most of the scenes have no effect and cannot be entered.</value>
<value>Host</value> <value>Host</value>
</data> </data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms"> <data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>Inherit</value> <value>NoControl</value>
</data> </data>
</root> </root>

File diff suppressed because it is too large Load Diff

View File

@ -196,6 +196,15 @@
<data name="LblCustomName.Text" xml:space="preserve"> <data name="LblCustomName.Text" xml:space="preserve">
<value>Метка</value> <value>Метка</value>
</data> </data>
<data name="LnkResetCustomCommands.Location" type="System.Drawing.Point, System.Drawing">
<value>488, -1</value>
</data>
<data name="LnkResetCustomCommands.Size" type="System.Drawing.Size, System.Drawing">
<value>96, 17</value>
</data>
<data name="LnkResetCustomCommands.Text" xml:space="preserve">
<value>перезагрузить</value>
</data>
<data name="groupBox1.Text" xml:space="preserve"> <data name="groupBox1.Text" xml:space="preserve">
<value>Список</value> <value>Список</value>
</data> </data>
@ -826,14 +835,8 @@
<data name="LnkGithub.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms"> <data name="LnkGithub.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Left</value> <value>Bottom, Left</value>
</data> </data>
<data name="LnkGithub.Size" type="System.Drawing.Size, System.Drawing">
<value>177, 17</value>
</data>
<data name="LnkGithub.Text" xml:space="preserve">
<value>Github</value>
</data>
<data name="LblSupportDescription.Size" type="System.Drawing.Size, System.Drawing"> <data name="LblSupportDescription.Size" type="System.Drawing.Size, System.Drawing">
<value>361, 102</value> <value>355, 68</value>
</data> </data>
<data name="LblSupportDescription.Text" xml:space="preserve"> <data name="LblSupportDescription.Text" xml:space="preserve">
<value>Grasscutter Tools - основной перевод Юрий Дворецкий <value>Grasscutter Tools - основной перевод Юрий Дворецкий

View File

@ -887,39 +887,43 @@ namespace GrasscutterTools.Properties {
} }
/// <summary> /// <summary>
/// 查找类似 347: 阅读占坑$HIDDEN /// 查找类似 查询服务端状态失败: 的本地化字符串。
///348: 猫尾酒馆留言板$HIDDEN /// </summary>
///349: 蒙德百货订货版$HIDDEN internal static string QueryServerStatusFailed {
///350: 捕风的异乡人$HIDDEN get {
///351: 流浪者的足迹 return ResourceManager.GetString("QueryServerStatusFailed", resourceCulture);
///362: 苹果教学$HIDDEN }
///352: 鸟瞰风物 }
///353: 异常的权柄
///361: 风魔龙飞过$HIDDEN /// <summary>
///355: 林间相会 /// 查找类似 30302 : 女神像解锁$HIDDEN
///354: 随风而来的骑士 ///30303 : 女神像解锁$HIDDEN
///360: 与轻风同行 ///30304 : 女神像解锁$HIDDEN
///356: 自由之都 ///30305 : 女神像解锁$HIDDEN
///357: 龙灾 ///30306 : 女神像解锁$HIDDEN
///358: 西风骑士团 ///30307 : 女神像解锁$HIDDEN
///359: (test)蒙德与三地城$HIDDEN ///30308 : 女神像解锁$HIDDEN
///306: 昔日的风 ///30309 : 女神像解锁$HIDDEN
///307: 骑士的现场教习 ///30310 : 女神像解锁$HIDDEN
///308: 书页里的电火花 ///30311 : 女神像解锁$HIDDEN
///309: (test)蒙德之围$HIDDEN ///30312 : 女神像解锁$HIDDEN
///310: 招募新伙伴 ///30313 : 女神像解锁$HIDDEN
///311: (test)一阶段结束$HIDDEN ///30314 : 女神像解锁$HIDDEN
///312: (test)丽莎地城,丽莎书本奖励$HIDDEN ///30315 : 女神像解锁$HIDDEN
///363: (test)控制第一幕开始的隐藏任务$HIDDEN ///30316 : 女神像解锁$HIDDEN
///370: 阴影下的蒙德 ///30317 : 女神像解锁$HIDDEN
///371: 不期而遇 ///30600 : 昔日的风
///372: 那个绿色的家伙 ///30601 : 昔日的风
///373: 听凭风引 ///30602 : 昔日的风
///374: 温迪的计划 ///30603 : 昔日的风
///375: 温迪的新计划 ///30604 : 昔日的风
///376: 逃亡 ///30607 : 昔日的风
///377: 幕后谈话 ///30608 : 昔日的风
///20101: [字符串的其余部分被截断]&quot;; 的本地化字符串。 ///30609 : 昔日的风
///30610 : 昔日的风
///30611 : 昔日的风
///30612 : 昔日的风
///30700 [字符串的其余部分被截断]&quot;; 的本地化字符串。
/// </summary> /// </summary>
internal static string Quest { internal static string Quest {
get { get {
@ -936,6 +940,15 @@ namespace GrasscutterTools.Properties {
} }
} }
/// <summary>
/// 查找类似 确认将自定义命令恢复到默认值? 的本地化字符串。
/// </summary>
internal static string RestoreCustomCommands {
get {
return ResourceManager.GetString("RestoreCustomCommands", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 1 : BigWorld_LevelStreaming /// 查找类似 1 : BigWorld_LevelStreaming
///2 : BigWorld_LevelStreaming ///2 : BigWorld_LevelStreaming
@ -994,6 +1007,24 @@ namespace GrasscutterTools.Properties {
} }
} }
/// <summary>
/// 查找类似 Token不能为空 的本地化字符串。
/// </summary>
internal static string TokenCannotBeEmpty {
get {
return ResourceManager.GetString("TokenCannotBeEmpty", resourceCulture);
}
}
/// <summary>
/// 查找类似 已从缓存中恢复Token 的本地化字符串。
/// </summary>
internal static string TokenRestoredFromCache {
get {
return ResourceManager.GetString("TokenRestoredFromCache", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 用户名不能为空! 的本地化字符串。 /// 查找类似 用户名不能为空! 的本地化字符串。
/// </summary> /// </summary>

View File

@ -225,12 +225,18 @@ Do you want to check for updates? Selecting No will no longer remind you of this
<data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
<data name="QueryServerStatusFailed" xml:space="preserve">
<value>Failed to query server status:</value>
</data>
<data name="Quest" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Quest" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\en-us\Quest.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\en-us\Quest.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
<data name="RequireOpenCommandTip" xml:space="preserve"> <data name="RequireOpenCommandTip" xml:space="preserve">
<value>Please connect to a server that supports [opencommand] first</value> <value>Please connect to a server that supports [opencommand] first</value>
</data> </data>
<data name="RestoreCustomCommands" xml:space="preserve">
<value>Are you sure you want to restore custom commands to defaults?</value>
</data>
<data name="Scene" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Scene" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\en-us\Scene.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\en-us\Scene.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
@ -243,6 +249,12 @@ Do you want to check for updates? Selecting No will no longer remind you of this
<data name="Tips" xml:space="preserve"> <data name="Tips" xml:space="preserve">
<value>Tips</value> <value>Tips</value>
</data> </data>
<data name="TokenCannotBeEmpty" xml:space="preserve">
<value>Token cannot be empty</value>
</data>
<data name="TokenRestoredFromCache" xml:space="preserve">
<value>Token restored from cache</value>
</data>
<data name="UsernameCannotBeEmpty" xml:space="preserve"> <data name="UsernameCannotBeEmpty" xml:space="preserve">
<value>Username cannot be empty!</value> <value>Username cannot be empty!</value>
</data> </data>
@ -252,4 +264,4 @@ Do you want to check for updates? Selecting No will no longer remind you of this
<data name="WeaponColor" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="WeaponColor" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WeaponColor.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\WeaponColor.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
</root> </root>

View File

@ -228,12 +228,18 @@
<data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
<data name="QueryServerStatusFailed" xml:space="preserve">
<value>查询服务端状态失败:</value>
</data>
<data name="Quest" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Quest" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\zh-cn\Quest.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\zh-cn\Quest.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
<data name="RequireOpenCommandTip" xml:space="preserve"> <data name="RequireOpenCommandTip" xml:space="preserve">
<value>请先连接到支持[OpenCommand]的服务器</value> <value>请先连接到支持[OpenCommand]的服务器</value>
</data> </data>
<data name="RestoreCustomCommands" xml:space="preserve">
<value>确认将自定义命令恢复到默认值?</value>
</data>
<data name="Scene" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Scene" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\zh-cn\Scene.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\zh-cn\Scene.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
@ -246,6 +252,12 @@
<data name="Tips" xml:space="preserve"> <data name="Tips" xml:space="preserve">
<value>提示</value> <value>提示</value>
</data> </data>
<data name="TokenCannotBeEmpty" xml:space="preserve">
<value>Token不能为空</value>
</data>
<data name="TokenRestoredFromCache" xml:space="preserve">
<value>已从缓存中恢复Token</value>
</data>
<data name="UsernameCannotBeEmpty" xml:space="preserve"> <data name="UsernameCannotBeEmpty" xml:space="preserve">
<value>用户名不能为空!</value> <value>用户名不能为空!</value>
</data> </data>

View File

@ -225,12 +225,18 @@
<data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Permissions" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\Permissions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
<data name="QueryServerStatusFailed" xml:space="preserve">
<value>Не удалось запросить состояние сервера:</value>
</data>
<data name="Quest" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Quest" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ru-ru\Quest.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\ru-ru\Quest.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
<data name="RequireOpenCommandTip" xml:space="preserve"> <data name="RequireOpenCommandTip" xml:space="preserve">
<value>Пожалуйста, сначала подключитесь к серверу, который поддерживает [команду открытия]</value> <value>Пожалуйста, сначала подключитесь к серверу, который поддерживает [команду открытия]</value>
</data> </data>
<data name="RestoreCustomCommands" xml:space="preserve">
<value>Вы уверены, что хотите восстановить пользовательские команды по умолчанию?</value>
</data>
<data name="Scene" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Scene" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ru-ru\Scene.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\ru-ru\Scene.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
@ -243,6 +249,12 @@
<data name="Tips" xml:space="preserve"> <data name="Tips" xml:space="preserve">
<value>Совет</value> <value>Совет</value>
</data> </data>
<data name="TokenCannotBeEmpty" xml:space="preserve">
<value>Токен не может быть пустым</value>
</data>
<data name="TokenRestoredFromCache" xml:space="preserve">
<value>Токен восстановлен из кеша</value>
</data>
<data name="UsernameCannotBeEmpty" xml:space="preserve"> <data name="UsernameCannotBeEmpty" xml:space="preserve">
<value>Имя пользователя не может быть пустым!</value> <value>Имя пользователя не может быть пустым!</value>
</data> </data>
@ -252,4 +264,4 @@
<data name="WeaponColor" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="WeaponColor" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WeaponColor.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\Resources\WeaponColor.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
</root> </root>