mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
对多开内容进行翻译
This commit is contained in:
parent
25fed07686
commit
e37ce15b72
@ -239,7 +239,7 @@ namespace VPet_Simulator.Windows
|
|||||||
{
|
{
|
||||||
Main.ToolBar.MenuDIY.Items.Clear();
|
Main.ToolBar.MenuDIY.Items.Clear();
|
||||||
|
|
||||||
if (App.MutiSaves.Count > 0)
|
if (App.MutiSaves.Count > 1)
|
||||||
{
|
{
|
||||||
var list = App.MutiSaves.ToList();
|
var list = App.MutiSaves.ToList();
|
||||||
foreach (var win in App.MainWindows)
|
foreach (var win in App.MainWindows)
|
||||||
@ -273,7 +273,6 @@ namespace VPet_Simulator.Windows
|
|||||||
}
|
}
|
||||||
Main.ToolBar.MenuDIY.Items.Add(menuItem);
|
Main.ToolBar.MenuDIY.Items.Add(menuItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (Sub sub in Set["diy"])
|
foreach (Sub sub in Set["diy"])
|
||||||
|
@ -964,7 +964,7 @@ namespace VPet_Simulator.Windows
|
|||||||
LBHave.Items.Clear();
|
LBHave.Items.Clear();
|
||||||
foreach (var str in App.MutiSaves)
|
foreach (var str in App.MutiSaves)
|
||||||
{
|
{
|
||||||
var rn = str;
|
var rn = str.Translate();
|
||||||
if (str == "")
|
if (str == "")
|
||||||
rn = "默认存档".Translate();
|
rn = "默认存档".Translate();
|
||||||
if (str == mw.PrefixSave.Trim('-'))
|
if (str == mw.PrefixSave.Trim('-'))
|
||||||
@ -1001,13 +1001,14 @@ namespace VPet_Simulator.Windows
|
|||||||
{
|
{
|
||||||
MessageBoxX.Show("存档名不能包括特殊符号".Translate());
|
MessageBoxX.Show("存档名不能包括特殊符号".Translate());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var lps = new LPS(mw.Set.ToString());
|
var lps = new LPS(mw.Set.ToString());
|
||||||
lps.SetInt("savetimes", 0);
|
lps.SetInt("savetimes", 0);
|
||||||
lps["gameconfig"].SetString("petgraph", savename);
|
lps["gameconfig"].SetString("petgraph", savename);
|
||||||
File.WriteAllText(ExtensionValue.BaseDirectory + @$"\Setting-{savename}.lps", lps.ToString());
|
File.WriteAllText(ExtensionValue.BaseDirectory + @$"\Setting-{savename}.lps", lps.ToString());
|
||||||
App.MutiSaves.Add(savename);
|
App.MutiSaves.Add(savename);
|
||||||
new MainWindow(savename).Show();
|
new MainWindow(savename).Show();
|
||||||
|
LoadMutiUI();
|
||||||
return;
|
return;
|
||||||
case MessageBoxResult.No:
|
case MessageBoxResult.No:
|
||||||
break;
|
break;
|
||||||
@ -1455,7 +1456,7 @@ namespace VPet_Simulator.Windows
|
|||||||
{
|
{
|
||||||
if (LBHave.SelectedIndex == -1)
|
if (LBHave.SelectedIndex == -1)
|
||||||
return;
|
return;
|
||||||
var str = LBHave.SelectedItem as string;
|
var str = App.MutiSaves[LBHave.SelectedIndex];
|
||||||
if (str == "默认存档".Translate())
|
if (str == "默认存档".Translate())
|
||||||
{
|
{
|
||||||
str = string.Empty;
|
str = string.Empty;
|
||||||
@ -1494,7 +1495,7 @@ namespace VPet_Simulator.Windows
|
|||||||
{
|
{
|
||||||
if (LBHave.SelectedIndex == -1)
|
if (LBHave.SelectedIndex == -1)
|
||||||
return;
|
return;
|
||||||
var str = LBHave.SelectedItem as string;
|
var str = App.MutiSaves[LBHave.SelectedIndex];
|
||||||
if (str == "默认存档".Translate())
|
if (str == "默认存档".Translate())
|
||||||
{
|
{
|
||||||
MessageBoxX.Show("默认存档无法删除,请使用重新开始功能重新开始游戏".Translate());
|
MessageBoxX.Show("默认存档无法删除,请使用重新开始功能重新开始游戏".Translate());
|
||||||
|
Loading…
Reference in New Issue
Block a user