对多开内容进行翻译

This commit is contained in:
ZouJin 2023-10-31 15:26:01 +08:00
parent 25fed07686
commit e37ce15b72
2 changed files with 6 additions and 6 deletions

View File

@ -239,7 +239,7 @@ namespace VPet_Simulator.Windows
{
Main.ToolBar.MenuDIY.Items.Clear();
if (App.MutiSaves.Count > 0)
if (App.MutiSaves.Count > 1)
{
var list = App.MutiSaves.ToList();
foreach (var win in App.MainWindows)
@ -273,7 +273,6 @@ namespace VPet_Simulator.Windows
}
Main.ToolBar.MenuDIY.Items.Add(menuItem);
}
}
foreach (Sub sub in Set["diy"])

View File

@ -964,7 +964,7 @@ namespace VPet_Simulator.Windows
LBHave.Items.Clear();
foreach (var str in App.MutiSaves)
{
var rn = str;
var rn = str.Translate();
if (str == "")
rn = "默认存档".Translate();
if (str == mw.PrefixSave.Trim('-'))
@ -1008,6 +1008,7 @@ namespace VPet_Simulator.Windows
File.WriteAllText(ExtensionValue.BaseDirectory + @$"\Setting-{savename}.lps", lps.ToString());
App.MutiSaves.Add(savename);
new MainWindow(savename).Show();
LoadMutiUI();
return;
case MessageBoxResult.No:
break;
@ -1455,7 +1456,7 @@ namespace VPet_Simulator.Windows
{
if (LBHave.SelectedIndex == -1)
return;
var str = LBHave.SelectedItem as string;
var str = App.MutiSaves[LBHave.SelectedIndex];
if (str == "默认存档".Translate())
{
str = string.Empty;
@ -1494,7 +1495,7 @@ namespace VPet_Simulator.Windows
{
if (LBHave.SelectedIndex == -1)
return;
var str = LBHave.SelectedItem as string;
var str = App.MutiSaves[LBHave.SelectedIndex];
if (str == "默认存档".Translate())
{
MessageBoxX.Show("默认存档无法删除,请使用重新开始功能重新开始游戏".Translate());